@piveau/dpi 0.1.0-beta.42 → 0.1.0-beta.44
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/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +327 -244
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +47 -47
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +208 -199
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +44 -35
- package/dist/data-provider-interface/views/InputPage.vue.js +95 -96
- package/package.json +1 -1
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js
CHANGED
|
@@ -1,164 +1,246 @@
|
|
|
1
|
-
import { ref as C, getCurrentInstance as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { ref as C, getCurrentInstance as Ve, reactive as we, watch as Ue, computed as ue, resolveComponent as G, createElementBlock as h, openBlock as s, Fragment as H, createVNode as g, createCommentVNode as c, withCtx as P, createTextVNode as Re, toDisplayString as I, createBlock as d, renderList as Z, createElementVNode as L, unref as b, isRef as _ } from "vue";
|
|
2
|
+
import ee from "../ButtonV3.vue.js";
|
|
3
|
+
import S from "../InputField.vue.js";
|
|
4
|
+
import se from "../TextAreaV3.vue.js";
|
|
5
|
+
import te from "../Dropdown.vue.js";
|
|
6
6
|
import { PhWarning as E } from "@phosphor-icons/vue";
|
|
7
7
|
import "@formkit/core";
|
|
8
|
-
import { getOptionalURIs as
|
|
9
|
-
import { useFormValues as
|
|
10
|
-
import
|
|
8
|
+
import { getOptionalURIs as Te } from "../../services/dpiV3_apis.js";
|
|
9
|
+
import { useFormValues as Ie } from "../../../composables/useDpiFormValues.js";
|
|
10
|
+
import Le from "../TextButtonSmall.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
const
|
|
12
|
+
const Se = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "dpiV3_errorMessage"
|
|
15
|
-
},
|
|
15
|
+
}, Be = { class: "copy-mini-regular" }, Fe = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "dpiV3_errorMessage"
|
|
18
|
-
},
|
|
18
|
+
}, Ce = { class: "copy-mini-regular" }, Ee = {
|
|
19
19
|
key: 6,
|
|
20
20
|
class: "dpiV3_errorMessage"
|
|
21
|
-
},
|
|
21
|
+
}, Ae = { class: "copy-mini-regular" }, Oe = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "dpiV3_errorMessage"
|
|
24
|
-
},
|
|
24
|
+
}, ze = { class: "copy-mini-regular" }, He = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "dpiV3_errorMessage"
|
|
27
|
-
},
|
|
27
|
+
}, Pe = { class: "copy-mini-regular" }, Ne = {
|
|
28
28
|
key: 3,
|
|
29
29
|
class: "dpiV3_errorMessage"
|
|
30
|
-
},
|
|
30
|
+
}, Me = { class: "copy-mini-regular" }, We = {
|
|
31
31
|
key: 6,
|
|
32
32
|
class: "dpiV3_errorMessage"
|
|
33
|
-
},
|
|
33
|
+
}, je = { class: "copy-mini-regular" }, qe = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "dpiV3_tempAddMore"
|
|
36
|
-
},
|
|
36
|
+
}, Ge = { class: "dpiV3_actionButtonWrap" }, lt = {
|
|
37
37
|
__name: "AdditionalsSubModal",
|
|
38
38
|
props: {
|
|
39
39
|
context: Object,
|
|
40
40
|
item: Object
|
|
41
41
|
},
|
|
42
42
|
setup(e, { emit: me }) {
|
|
43
|
-
const
|
|
44
|
-
let N = C([{}]),
|
|
45
|
-
const { formValues:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const r = F.item.identifier;
|
|
61
|
-
let u = i !== null ? `${r}-${i}` : r;
|
|
62
|
-
if (n[u] = null, !L(l))
|
|
43
|
+
const le = me;
|
|
44
|
+
let N = C([{}]), O = C([]), M = C(!1), p = C(), ce = Ve().appContext.app.config.globalProperties.$env;
|
|
45
|
+
const { formValues: J } = Ie(), i = we({}), r = C([]), B = e;
|
|
46
|
+
Ue(
|
|
47
|
+
() => {
|
|
48
|
+
var l;
|
|
49
|
+
return (l = J.value.Additionals) == null ? void 0 : l[B.item.name];
|
|
50
|
+
},
|
|
51
|
+
(l) => {
|
|
52
|
+
l && l.length > 0 && (r.value = JSON.parse(JSON.stringify(l)));
|
|
53
|
+
},
|
|
54
|
+
{ immediate: !0 }
|
|
55
|
+
);
|
|
56
|
+
const fe = ue(() => r.value.length === 0 ? [{}] : r.value), K = (l) => l ? Object.entries(l).some(([n, u]) => typeof u == "string" ? u.trim() !== "" : typeof u == "object" && u !== null ? K(u) : !1) : !1, y = (l) => !l || l.trim() === "" ? !1 : /^(https?|ftp):\/\/([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}(\/[^\s]*)?$/.test(l.trim()), W = (l, n = null) => {
|
|
57
|
+
const u = B.item.identifier;
|
|
58
|
+
let a = n !== null ? `${u}-${n}` : u;
|
|
59
|
+
if (i[a] = null, console.log(u), !K(l))
|
|
63
60
|
return !0;
|
|
64
|
-
switch (
|
|
61
|
+
switch (u) {
|
|
65
62
|
case "conformsTo":
|
|
66
63
|
const f = l["@id"] || "";
|
|
67
64
|
if (!f.trim())
|
|
68
|
-
return
|
|
69
|
-
if (!
|
|
70
|
-
return
|
|
65
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
66
|
+
if (!y(f))
|
|
67
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
68
|
+
break;
|
|
69
|
+
case "admsIdentifier":
|
|
70
|
+
const $ = l["@id"] || "";
|
|
71
|
+
if (!$.trim())
|
|
72
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
73
|
+
if (!y($))
|
|
74
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
75
|
+
break;
|
|
76
|
+
case "relation":
|
|
77
|
+
const k = l["@id"] || "";
|
|
78
|
+
if (!k.trim())
|
|
79
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
80
|
+
if (!y(k))
|
|
81
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
82
|
+
break;
|
|
83
|
+
case "qualifiedRelation":
|
|
84
|
+
const o = l["@id"] || "";
|
|
85
|
+
if (!o.trim())
|
|
86
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
87
|
+
if (!y(o))
|
|
88
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
89
|
+
case "qualifiedAttribution":
|
|
90
|
+
const t = l["@id"] || "";
|
|
91
|
+
if (!t.trim())
|
|
92
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
93
|
+
if (!y(t))
|
|
94
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
95
|
+
case "source":
|
|
96
|
+
const v = l["@id"] || "";
|
|
97
|
+
if (!v.trim())
|
|
98
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
99
|
+
if (!y(v))
|
|
100
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
101
|
+
case "hasVersion":
|
|
102
|
+
const V = l["@id"] || "";
|
|
103
|
+
if (!V.trim())
|
|
104
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
105
|
+
if (!y(V))
|
|
106
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
107
|
+
case "isVersionOf":
|
|
108
|
+
const w = l["@id"] || "";
|
|
109
|
+
if (!w.trim())
|
|
110
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
111
|
+
if (!y(w))
|
|
112
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
113
|
+
break;
|
|
114
|
+
case "isReferencedBy":
|
|
115
|
+
const R = l["@id"] || "";
|
|
116
|
+
if (!R.trim())
|
|
117
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
118
|
+
if (!y(R))
|
|
119
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
120
|
+
break;
|
|
121
|
+
case "references":
|
|
122
|
+
const T = l["@id"] || "";
|
|
123
|
+
if (!T.trim())
|
|
124
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
125
|
+
if (!y(T))
|
|
126
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
127
|
+
break;
|
|
128
|
+
case "wasGeneratedBy":
|
|
129
|
+
const F = l["@id"] || "";
|
|
130
|
+
if (!F.trim())
|
|
131
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
132
|
+
if (!y(F))
|
|
133
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
134
|
+
break;
|
|
135
|
+
case "landingPage":
|
|
136
|
+
const z = l["@id"] || "";
|
|
137
|
+
if (!z.trim())
|
|
138
|
+
return i[a] = "URL ist erforderlich", !1;
|
|
139
|
+
if (!y(z))
|
|
140
|
+
return i[a] = "Bitte geben Sie eine gültige URL ein", !1;
|
|
71
141
|
break;
|
|
72
142
|
case "temporalResolution":
|
|
73
|
-
|
|
74
|
-
const
|
|
75
|
-
if ([
|
|
76
|
-
|
|
77
|
-
|
|
143
|
+
a = "temporalResolution-0";
|
|
144
|
+
const j = Object.assign({}, ...r.value);
|
|
145
|
+
if ([
|
|
146
|
+
"Year",
|
|
147
|
+
"Month",
|
|
148
|
+
"Day",
|
|
149
|
+
"Hour",
|
|
150
|
+
"Minute",
|
|
151
|
+
"Second"
|
|
152
|
+
].filter((q) => {
|
|
153
|
+
const A = j[q];
|
|
154
|
+
return !A || typeof A == "string" && A.trim() === "";
|
|
78
155
|
}).length > 0)
|
|
79
|
-
return
|
|
80
|
-
|
|
156
|
+
return i[a] = "Alle Zeiteinheiten sind erforderlich", !1;
|
|
157
|
+
i[a] = null;
|
|
81
158
|
break;
|
|
82
159
|
case "creator":
|
|
83
160
|
if (!(l["foaf:name"] || l["@value"] || "").trim())
|
|
84
|
-
return
|
|
161
|
+
return i[a] = "Name ist erforderlich", !1;
|
|
85
162
|
break;
|
|
86
163
|
case "contributor":
|
|
87
164
|
if (!(l["foaf:name"] || l["@value"] || "").trim())
|
|
88
|
-
return
|
|
165
|
+
return i[a] = "Name ist erforderlich", !1;
|
|
89
166
|
break;
|
|
90
167
|
}
|
|
91
168
|
return !0;
|
|
92
169
|
}, de = () => {
|
|
93
170
|
let l = !0;
|
|
94
|
-
Object.keys(
|
|
95
|
-
|
|
171
|
+
Object.keys(i).forEach((a) => {
|
|
172
|
+
i[a] = null;
|
|
96
173
|
});
|
|
97
|
-
const
|
|
98
|
-
return [
|
|
99
|
-
|
|
174
|
+
const n = B.item.identifier;
|
|
175
|
+
return [
|
|
176
|
+
"conformsTo",
|
|
177
|
+
"temporalResolution",
|
|
178
|
+
"creator",
|
|
179
|
+
"contributor"
|
|
180
|
+
].includes(n) && r.value.forEach((a, f) => {
|
|
181
|
+
W(a, f) || (l = !1);
|
|
100
182
|
}), l;
|
|
101
183
|
}, ve = (l) => {
|
|
102
|
-
|
|
184
|
+
r.value.push({});
|
|
103
185
|
}, he = () => {
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
if (
|
|
109
|
-
for (let l = 0; l <
|
|
110
|
-
const
|
|
111
|
-
if (n
|
|
186
|
+
le("goBack", !1);
|
|
187
|
+
}, ge = (l, n) => {
|
|
188
|
+
r.value.splice(n, 1), delete i[`${B.item.identifier}-${n}`];
|
|
189
|
+
}, ie = ue(() => {
|
|
190
|
+
if (B.item.identifier !== "temporalResolution") return null;
|
|
191
|
+
for (let l = 0; l < r.value.length; l++) {
|
|
192
|
+
const n = `temporalResolution-${l}`;
|
|
193
|
+
if (i[n])
|
|
112
194
|
return {
|
|
113
|
-
key:
|
|
114
|
-
message: n
|
|
195
|
+
key: n,
|
|
196
|
+
message: i[n]
|
|
115
197
|
};
|
|
116
198
|
}
|
|
117
199
|
return null;
|
|
118
|
-
}), be = (l,
|
|
119
|
-
|
|
120
|
-
|
|
200
|
+
}), be = (l, n, u) => {
|
|
201
|
+
r.value[n] || (r.value[n] = {}), r.value[n]["@value"] = l.pref_label.de || l.pref_label.en, r.value[n].uri = l.resource, setTimeout(() => {
|
|
202
|
+
W(r.value[n], n);
|
|
121
203
|
}, 0);
|
|
122
|
-
},
|
|
123
|
-
var
|
|
124
|
-
const f = typeof l == "string" ? l : ((
|
|
125
|
-
|
|
126
|
-
|
|
204
|
+
}, U = (l, n, u, a) => {
|
|
205
|
+
var $;
|
|
206
|
+
const f = typeof l == "string" ? l : (($ = l == null ? void 0 : l.target) == null ? void 0 : $.value) ?? "";
|
|
207
|
+
r.value[u] || (r.value[u] = {}), n === "dct:issued" ? r.value[u][a] = ke(f) : r.value[u][a] = f, f != "" && (N.value[0][n] = f), a === "@id" && f != "" && (N.value[0][n] = "https://" + f), setTimeout(() => {
|
|
208
|
+
W(r.value[u], u);
|
|
127
209
|
}, 0);
|
|
128
210
|
};
|
|
129
|
-
function
|
|
130
|
-
const [
|
|
131
|
-
return `${
|
|
211
|
+
function ke(l) {
|
|
212
|
+
const [n, u, a] = l.split("-");
|
|
213
|
+
return `${a}.${u}.${n}`;
|
|
132
214
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
215
|
+
const ye = (l, n, u, a) => {
|
|
216
|
+
r.value[u] || (r.value[u] = {}), r.value[u][a] = l, setTimeout(() => {
|
|
217
|
+
W(r.value[u], u);
|
|
136
218
|
}, 0);
|
|
137
|
-
},
|
|
219
|
+
}, $e = (l) => (p.value = l.pref_label.de, N.value = [
|
|
138
220
|
{ "@value": l.pref_label.de, uri: l.resource }
|
|
139
|
-
], l),
|
|
140
|
-
if (
|
|
141
|
-
let
|
|
221
|
+
], l), Y = async (l, n, u) => {
|
|
222
|
+
if (u === "select") {
|
|
223
|
+
let a = C([]);
|
|
142
224
|
if (l.forEach((f) => {
|
|
143
|
-
|
|
144
|
-
}),
|
|
225
|
+
a.value.push({ "@value": f, selected: !1 });
|
|
226
|
+
}), n !== "")
|
|
145
227
|
try {
|
|
146
|
-
|
|
228
|
+
O.value = a.value;
|
|
147
229
|
} catch (f) {
|
|
148
230
|
console.log(f);
|
|
149
231
|
}
|
|
150
232
|
}
|
|
151
|
-
if (
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
233
|
+
if (u === "auto") {
|
|
234
|
+
let a = C(await Te(n, ce.api.baseUrl, l));
|
|
235
|
+
if (n !== "")
|
|
154
236
|
try {
|
|
155
237
|
const f = {
|
|
156
|
-
label:
|
|
157
|
-
const
|
|
158
|
-
return
|
|
238
|
+
label: a.value.filter(($) => {
|
|
239
|
+
const k = $.pref_label.de || $.pref_label.en;
|
|
240
|
+
return k && n.trim() && (k == null ? void 0 : k.toLowerCase().startsWith(n.trim().toLowerCase()));
|
|
159
241
|
})
|
|
160
242
|
};
|
|
161
|
-
f.uri =
|
|
243
|
+
f.uri = a.value.filter(($) => $.resource), O.value = f.label;
|
|
162
244
|
} catch (f) {
|
|
163
245
|
console.log(f);
|
|
164
246
|
}
|
|
@@ -166,45 +248,46 @@ const Ce = {
|
|
|
166
248
|
}, pe = () => {
|
|
167
249
|
if (!de())
|
|
168
250
|
return;
|
|
169
|
-
const l =
|
|
170
|
-
|
|
251
|
+
const l = r.value.filter(
|
|
252
|
+
(n) => K(n)
|
|
253
|
+
);
|
|
254
|
+
l.length > 0 && (J.value.Additionals[B.item.name] = l), M.value && (J.value.Additionals[B.item.name] = N.value), le("sst", "close");
|
|
171
255
|
};
|
|
172
|
-
return (l,
|
|
173
|
-
const
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
default:
|
|
177
|
-
|
|
256
|
+
return (l, n) => {
|
|
257
|
+
const u = G("additionalText"), a = G("itemWrapperAdditionals"), f = G("activeItem"), $ = G("interaction");
|
|
258
|
+
return s(), h(H, null, [
|
|
259
|
+
g(u, null, {
|
|
260
|
+
default: P(() => [
|
|
261
|
+
Re(I(e.item.help), 1)
|
|
178
262
|
]),
|
|
179
263
|
_: 1
|
|
180
264
|
}),
|
|
181
|
-
|
|
182
|
-
default:
|
|
183
|
-
e.item.$formkit === "repeatable" ? (
|
|
265
|
+
g(f, null, {
|
|
266
|
+
default: P(() => [
|
|
267
|
+
e.item.$formkit === "repeatable" ? (s(!0), h(H, { key: 0 }, Z(fe.value, (k, o) => (s(), h("div", {
|
|
184
268
|
class: "repeatableOuter dpiV3AutoCompleteWrap",
|
|
185
269
|
key: o
|
|
186
270
|
}, [
|
|
187
|
-
e.item.$formkit === "repeatable" ? (
|
|
271
|
+
e.item.$formkit === "repeatable" ? (s(!0), h(H, { key: 0 }, Z(e.item.children[0].children.filter(
|
|
188
272
|
(t) => t.$formkit !== "group"
|
|
189
|
-
), (t,
|
|
190
|
-
default:
|
|
191
|
-
var V,
|
|
273
|
+
), (t, v) => (s(), d(a, { key: v }, {
|
|
274
|
+
default: P(() => {
|
|
275
|
+
var V, w, R, T, F, z, j, Q, X, D, x, q, A, ae, re, ne, oe;
|
|
192
276
|
return [
|
|
193
|
-
|
|
194
|
-
t.$formkit === "url" && e.item.name === "@id" ? (m(), d(A, {
|
|
277
|
+
t.$formkit === "url" && e.item.name === "@id" ? (s(), d(S, {
|
|
195
278
|
key: 0,
|
|
196
279
|
label: t.label,
|
|
197
280
|
placeholder: e.item.placeholder,
|
|
198
281
|
infoIcon: !1,
|
|
199
282
|
preIcon: !1,
|
|
200
283
|
showEndIcon: !1,
|
|
201
|
-
"show-error": !!
|
|
202
|
-
onInput: (
|
|
284
|
+
"show-error": !!i[`${e.item.identifier}-${o}`],
|
|
285
|
+
onInput: (m) => U(m, e.item.name, o, "@id"),
|
|
203
286
|
initialHintText: !1,
|
|
204
|
-
"model-value": (V =
|
|
205
|
-
"v-model": (
|
|
206
|
-
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) :
|
|
207
|
-
t.$formkit === "url" && e.item.name != "@id" ? (
|
|
287
|
+
"model-value": (V = r.value[o]) == null ? void 0 : V["@id"],
|
|
288
|
+
"v-model": (w = r.value[o]) == null ? void 0 : w["@id"]
|
|
289
|
+
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
290
|
+
t.$formkit === "url" && e.item.name != "@id" ? (s(), d(S, {
|
|
208
291
|
key: 1,
|
|
209
292
|
label: t.label,
|
|
210
293
|
placeholder: e.item.placeholder,
|
|
@@ -212,68 +295,68 @@ const Ce = {
|
|
|
212
295
|
preIcon: !1,
|
|
213
296
|
showEndIcon: !1,
|
|
214
297
|
"show-error": !1,
|
|
215
|
-
onInput: (
|
|
298
|
+
onInput: (m) => U(m, e.item.name, o, t.name),
|
|
216
299
|
initialHintText: !1,
|
|
217
|
-
"model-value": (
|
|
218
|
-
"v-model": (
|
|
219
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) :
|
|
220
|
-
t.$formkit === "url" && t.label != "Homepage" && t.label != "Contributor Homepage" && e.item.name != "@id" &&
|
|
221
|
-
|
|
300
|
+
"model-value": (R = r.value[o]) == null ? void 0 : R[t.name],
|
|
301
|
+
"v-model": (T = r.value[o]) == null ? void 0 : T[t.name]
|
|
302
|
+
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
303
|
+
t.$formkit === "url" && t.label != "Homepage" && t.label != "Contributor Homepage" && e.item.name != "@id" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Se, [
|
|
304
|
+
g(b(E), {
|
|
222
305
|
size: 16,
|
|
223
306
|
weight: "fill"
|
|
224
307
|
}),
|
|
225
|
-
|
|
226
|
-
])) :
|
|
227
|
-
t.$formkit === "text" && e.item.name === "@value" ? (
|
|
308
|
+
L("span", Be, I(i[`${e.item.identifier}-${o}`]), 1)
|
|
309
|
+
])) : c("", !0),
|
|
310
|
+
t.$formkit === "text" && e.item.name === "@value" ? (s(), d(S, {
|
|
228
311
|
key: 3,
|
|
229
312
|
label: t.label,
|
|
230
313
|
placeholder: e.item.placeholder,
|
|
231
314
|
infoIcon: !1,
|
|
232
315
|
preIcon: !1,
|
|
233
316
|
showEndIcon: !1,
|
|
234
|
-
"show-error": !!
|
|
235
|
-
onInput: (
|
|
317
|
+
"show-error": !!i[`${e.item.identifier}-${o}`],
|
|
318
|
+
onInput: (m) => U(m, e.item.name, o, "@value"),
|
|
236
319
|
initialHintText: !1,
|
|
237
|
-
"model-value": (
|
|
238
|
-
"v-model": (
|
|
239
|
-
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) :
|
|
240
|
-
t.$formkit === "text" && e.item.name === "@value" &&
|
|
241
|
-
|
|
320
|
+
"model-value": (F = r.value[o]) == null ? void 0 : F["@value"],
|
|
321
|
+
"v-model": (z = r.value[o]) == null ? void 0 : z["@value"]
|
|
322
|
+
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
323
|
+
t.$formkit === "text" && e.item.name === "@value" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Fe, [
|
|
324
|
+
g(b(E), {
|
|
242
325
|
size: 16,
|
|
243
326
|
weight: "fill"
|
|
244
327
|
}),
|
|
245
|
-
|
|
246
|
-
])) :
|
|
247
|
-
t.$formkit === "text" && e.item.name != "@value" ? (
|
|
328
|
+
L("span", Ce, I(i[`${e.item.identifier}-${o}`]), 1)
|
|
329
|
+
])) : c("", !0),
|
|
330
|
+
t.$formkit === "text" && e.item.name != "@value" ? (s(), d(S, {
|
|
248
331
|
key: 5,
|
|
249
332
|
label: t.label,
|
|
250
333
|
placeholder: e.item.placeholder,
|
|
251
334
|
infoIcon: !1,
|
|
252
335
|
preIcon: !1,
|
|
253
336
|
showEndIcon: !1,
|
|
254
|
-
"show-error": t.name === "foaf:name" && !!
|
|
255
|
-
onInput: (
|
|
337
|
+
"show-error": t.name === "foaf:name" && !!i[`${e.item.identifier}-${o}`],
|
|
338
|
+
onInput: (m) => U(m, e.item.name, o, t.name),
|
|
256
339
|
initialHintText: !1,
|
|
257
|
-
"model-value": (
|
|
258
|
-
"v-model": (
|
|
259
|
-
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) :
|
|
260
|
-
t.$formkit === "text" && t.name === "foaf:name" &&
|
|
261
|
-
|
|
340
|
+
"model-value": (j = r.value[o]) == null ? void 0 : j[t.name],
|
|
341
|
+
"v-model": (Q = r.value[o]) == null ? void 0 : Q[t.name]
|
|
342
|
+
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) : c("", !0),
|
|
343
|
+
t.$formkit === "text" && t.name === "foaf:name" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Ee, [
|
|
344
|
+
g(b(E), {
|
|
262
345
|
size: 16,
|
|
263
346
|
weight: "fill"
|
|
264
347
|
}),
|
|
265
|
-
|
|
266
|
-
])) :
|
|
267
|
-
t.$formkit === "select" && t.identifier !== "language" ? (
|
|
348
|
+
L("span", Ae, I(i[`${e.item.identifier}-${o}`]), 1)
|
|
349
|
+
])) : c("", !0),
|
|
350
|
+
t.$formkit === "select" && t.identifier !== "language" ? (s(), d(te, {
|
|
268
351
|
key: 7,
|
|
269
352
|
dropdownWidth: "large",
|
|
270
353
|
type: "inputField",
|
|
271
|
-
onClick: (
|
|
354
|
+
onClick: (m) => Y(
|
|
272
355
|
Object.values(t.options),
|
|
273
|
-
|
|
356
|
+
m,
|
|
274
357
|
t.$formkit
|
|
275
358
|
),
|
|
276
|
-
"v-model": (
|
|
359
|
+
"v-model": (X = r.value[o]) == null ? void 0 : X[t.name],
|
|
277
360
|
inputFieldProps: {
|
|
278
361
|
addOnText: !1,
|
|
279
362
|
initialHintText: !1,
|
|
@@ -282,23 +365,23 @@ const Ce = {
|
|
|
282
365
|
preIcon: !1,
|
|
283
366
|
label: t.label,
|
|
284
367
|
dropdown_dpiV3: !0,
|
|
285
|
-
placeholder: ((
|
|
368
|
+
placeholder: ((D = r.value[o]) == null ? void 0 : D[t.name]) || t.placeholder,
|
|
286
369
|
inputFieldSize: "large",
|
|
287
370
|
autocomplete: "true",
|
|
288
|
-
modelValue: (
|
|
289
|
-
showError: e.item.identifier === "temporalResolution" && !!
|
|
371
|
+
modelValue: (x = r.value[o]) == null ? void 0 : x[t.name],
|
|
372
|
+
showError: e.item.identifier === "temporalResolution" && !!i[`${e.item.identifier}-${o}`]
|
|
290
373
|
},
|
|
291
|
-
"onUpdate:modelValue": (
|
|
292
|
-
data:
|
|
374
|
+
"onUpdate:modelValue": (m) => ye(m, e.item.name, o, t.name),
|
|
375
|
+
data: b(O),
|
|
293
376
|
autocomplete: !1
|
|
294
|
-
}, null, 8, ["onClick", "v-model", "inputFieldProps", "onUpdate:modelValue", "data"])) :
|
|
295
|
-
t.$formkit === "auto" ? (
|
|
377
|
+
}, null, 8, ["onClick", "v-model", "inputFieldProps", "onUpdate:modelValue", "data"])) : c("", !0),
|
|
378
|
+
t.$formkit === "auto" ? (s(), d(te, {
|
|
296
379
|
key: 8,
|
|
297
380
|
dropdownWidth: "large",
|
|
298
381
|
type: "inputField",
|
|
299
|
-
onInput: (
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue":
|
|
382
|
+
onInput: (m) => Y(e.item.voc, m, t.$formkit),
|
|
383
|
+
modelValue: b(p),
|
|
384
|
+
"onUpdate:modelValue": n[0] || (n[0] = (m) => _(p) ? p.value = m : p = m),
|
|
302
385
|
inputFieldProps: {
|
|
303
386
|
addOnText: !1,
|
|
304
387
|
initialHintText: !1,
|
|
@@ -307,39 +390,39 @@ const Ce = {
|
|
|
307
390
|
preIcon: !1,
|
|
308
391
|
label: t.label,
|
|
309
392
|
dropdown_dpiV3: !0,
|
|
310
|
-
placeholder: ((
|
|
393
|
+
placeholder: ((q = r.value[o]) == null ? void 0 : q["@value"]) || e.item.placeholder,
|
|
311
394
|
inputFieldSize: "large",
|
|
312
395
|
autocomplete: "true",
|
|
313
|
-
modelValue:
|
|
396
|
+
modelValue: b(p),
|
|
314
397
|
showError: !1
|
|
315
398
|
},
|
|
316
|
-
onChosenVocItem: (
|
|
317
|
-
data:
|
|
399
|
+
onChosenVocItem: (m) => be(m, o, e.item.name),
|
|
400
|
+
data: b(O),
|
|
318
401
|
autocomplete: !0
|
|
319
|
-
}, null, 8, ["onInput", "modelValue", "inputFieldProps", "onChosenVocItem", "data"])) :
|
|
320
|
-
t.$formkit === "textarea" && e.item.name === "@value" ? (
|
|
402
|
+
}, null, 8, ["onInput", "modelValue", "inputFieldProps", "onChosenVocItem", "data"])) : c("", !0),
|
|
403
|
+
t.$formkit === "textarea" && e.item.name === "@value" ? (s(), d(se, {
|
|
321
404
|
key: 9,
|
|
322
405
|
label: t.label,
|
|
323
|
-
placeholder: ((
|
|
406
|
+
placeholder: ((A = r.value[o]) == null ? void 0 : A[t.name]) || e.item.placeholder,
|
|
324
407
|
infoIcon: !1,
|
|
325
408
|
preIcon: !1,
|
|
326
409
|
showEndIcon: !1,
|
|
327
|
-
onInput: (
|
|
410
|
+
onInput: (m) => U(m, e.item.name, o, "@value"),
|
|
328
411
|
initialHintText: !1,
|
|
329
|
-
"model-value": (ae =
|
|
330
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) :
|
|
331
|
-
t.$formkit === "textarea" && e.item.name != "@value" ? (
|
|
412
|
+
"model-value": (ae = r.value[o]) == null ? void 0 : ae["@value"]
|
|
413
|
+
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
|
|
414
|
+
t.$formkit === "textarea" && e.item.name != "@value" ? (s(), d(se, {
|
|
332
415
|
key: 10,
|
|
333
416
|
label: t.label,
|
|
334
|
-
placeholder: ((
|
|
417
|
+
placeholder: ((re = r.value[o]) == null ? void 0 : re[t.name]) || e.item.placeholder,
|
|
335
418
|
infoIcon: !1,
|
|
336
419
|
preIcon: !1,
|
|
337
420
|
showEndIcon: !1,
|
|
338
|
-
onInput: (
|
|
421
|
+
onInput: (m) => U(m, e.item.name, o, t.name),
|
|
339
422
|
initialHintText: !1,
|
|
340
|
-
"model-value": (
|
|
341
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) :
|
|
342
|
-
t.$formkit === "email" ? (
|
|
423
|
+
"model-value": (ne = r.value[o]) == null ? void 0 : ne[t.name]
|
|
424
|
+
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
|
|
425
|
+
t.$formkit === "email" ? (s(), d(S, {
|
|
343
426
|
key: 11,
|
|
344
427
|
label: t.label,
|
|
345
428
|
placeholder: e.item.placeholder,
|
|
@@ -348,77 +431,77 @@ const Ce = {
|
|
|
348
431
|
preIcon: !1,
|
|
349
432
|
showEndIcon: !1,
|
|
350
433
|
"show-error": !1,
|
|
351
|
-
onInput: (
|
|
434
|
+
onInput: (m) => U(m, e.item.name, o, "@value"),
|
|
352
435
|
initialHintText: !1,
|
|
353
|
-
"model-value": (
|
|
354
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) :
|
|
436
|
+
"model-value": (oe = r.value[o]) == null ? void 0 : oe["@value"]
|
|
437
|
+
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0)
|
|
355
438
|
];
|
|
356
439
|
}),
|
|
357
440
|
_: 2
|
|
358
|
-
}, 1024))), 128)) :
|
|
359
|
-
e.item.identifier === "temporalResolution" &&
|
|
360
|
-
|
|
441
|
+
}, 1024))), 128)) : c("", !0),
|
|
442
|
+
e.item.identifier === "temporalResolution" && i[`${e.item.identifier}-${o}`] ? (s(), h("div", Oe, [
|
|
443
|
+
g(b(E), {
|
|
361
444
|
size: 16,
|
|
362
445
|
weight: "fill"
|
|
363
446
|
}),
|
|
364
|
-
|
|
365
|
-
])) :
|
|
366
|
-
|
|
447
|
+
L("span", ze, I(i[`${e.item.identifier}-${o}`]), 1)
|
|
448
|
+
])) : c("", !0),
|
|
449
|
+
g(Le, {
|
|
367
450
|
"button-text": "löschen",
|
|
368
451
|
class: "rightAlign",
|
|
369
|
-
onClick: (t) =>
|
|
452
|
+
onClick: (t) => ge(e.item.name, o)
|
|
370
453
|
}, null, 8, ["onClick"])
|
|
371
|
-
]))), 128)) :
|
|
372
|
-
e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (
|
|
373
|
-
default:
|
|
374
|
-
var
|
|
454
|
+
]))), 128)) : c("", !0),
|
|
455
|
+
e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (s(), d(a, { key: 1 }, {
|
|
456
|
+
default: P(() => {
|
|
457
|
+
var k, o;
|
|
375
458
|
return [
|
|
376
|
-
e.item.$formkit === "simpleInput" ? (
|
|
459
|
+
e.item.$formkit === "simpleInput" ? (s(), d(S, {
|
|
377
460
|
key: 0,
|
|
378
461
|
label: e.item.label,
|
|
379
462
|
placeholder: e.item.placeholder,
|
|
380
463
|
infoIcon: !1,
|
|
381
464
|
preIcon: !1,
|
|
382
465
|
showEndIcon: !1,
|
|
383
|
-
"show-error": !!
|
|
384
|
-
onInput:
|
|
466
|
+
"show-error": !!i[e.item.identifier],
|
|
467
|
+
onInput: n[1] || (n[1] = (t) => U(t, e.item.name, 0, "@value")),
|
|
385
468
|
initialHintText: !1,
|
|
386
|
-
"model-value": (
|
|
387
|
-
}, null, 8, ["label", "placeholder", "show-error", "model-value"])) :
|
|
388
|
-
e.item.$formkit === "simpleInput" &&
|
|
389
|
-
|
|
469
|
+
"model-value": (k = r.value[0]) == null ? void 0 : k["@value"]
|
|
470
|
+
}, null, 8, ["label", "placeholder", "show-error", "model-value"])) : c("", !0),
|
|
471
|
+
e.item.$formkit === "simpleInput" && i[e.item.identifier] ? (s(), h("div", He, [
|
|
472
|
+
g(b(E), {
|
|
390
473
|
size: 16,
|
|
391
474
|
weight: "fill"
|
|
392
475
|
}),
|
|
393
|
-
|
|
394
|
-
])) :
|
|
395
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (
|
|
396
|
-
var V,
|
|
397
|
-
return
|
|
398
|
-
key:
|
|
476
|
+
L("span", Pe, I(i[e.item.identifier]), 1)
|
|
477
|
+
])) : c("", !0),
|
|
478
|
+
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (s(!0), h(H, { key: 2 }, Z(e.item.children, (t, v) => {
|
|
479
|
+
var V, w;
|
|
480
|
+
return s(), d(S, {
|
|
481
|
+
key: v,
|
|
399
482
|
label: t.label,
|
|
400
483
|
placeholder: e.item.placeholder,
|
|
401
484
|
infoIcon: !1,
|
|
402
485
|
preIcon: !1,
|
|
403
486
|
showEndIcon: !1,
|
|
404
|
-
"show-error": !!
|
|
405
|
-
onInput: (
|
|
487
|
+
"show-error": !!i[e.item.identifier],
|
|
488
|
+
onInput: (R) => U(R, e.item.name, v, t.name),
|
|
406
489
|
initialHintText: !1,
|
|
407
|
-
"model-value": (V =
|
|
408
|
-
"v-model": (
|
|
490
|
+
"model-value": (V = r.value[v]) == null ? void 0 : V[t.name],
|
|
491
|
+
"v-model": (w = r.value[v]) == null ? void 0 : w[t.name]
|
|
409
492
|
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"]);
|
|
410
|
-
}), 128)) :
|
|
411
|
-
|
|
412
|
-
|
|
493
|
+
}), 128)) : c("", !0),
|
|
494
|
+
ie.value ? (s(), h("div", Ne, [
|
|
495
|
+
g(b(E), {
|
|
413
496
|
size: 16,
|
|
414
497
|
weight: "fill"
|
|
415
498
|
}),
|
|
416
|
-
|
|
417
|
-
])) :
|
|
418
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (
|
|
419
|
-
var V,
|
|
420
|
-
return
|
|
421
|
-
key:
|
|
499
|
+
L("span", Me, I(ie.value.message), 1)
|
|
500
|
+
])) : c("", !0),
|
|
501
|
+
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (s(!0), h(H, { key: 4 }, Z(e.item.children, (t, v) => {
|
|
502
|
+
var V, w, R, T;
|
|
503
|
+
return s(), d(S, {
|
|
504
|
+
key: v,
|
|
422
505
|
label: t.label,
|
|
423
506
|
placeholder: e.item.placeholder,
|
|
424
507
|
infoIcon: !1,
|
|
@@ -427,21 +510,21 @@ const Ce = {
|
|
|
427
510
|
inputType: "date",
|
|
428
511
|
showEndIcon: !1,
|
|
429
512
|
"show-error": !1,
|
|
430
|
-
onInput: (
|
|
513
|
+
onInput: (F) => U(F, e.item.name, v, t.name),
|
|
431
514
|
initialHintText: !1,
|
|
432
|
-
"model-value": (
|
|
433
|
-
"v-model": (
|
|
515
|
+
"model-value": (w = (V = r.value[v]) == null ? void 0 : V[t.name]) == null ? void 0 : w["@value"],
|
|
516
|
+
"v-model": (T = (R = r.value[v]) == null ? void 0 : R[t.name]) == null ? void 0 : T["@value"]
|
|
434
517
|
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"]);
|
|
435
|
-
}), 128)) :
|
|
436
|
-
e.item.$formkit === "auto" ? (
|
|
518
|
+
}), 128)) : c("", !0),
|
|
519
|
+
e.item.$formkit === "auto" ? (s(), d(te, {
|
|
437
520
|
key: 5,
|
|
438
521
|
dropdownWidth: "large",
|
|
439
522
|
type: "inputField",
|
|
440
|
-
onInput:
|
|
441
|
-
|
|
523
|
+
onInput: n[2] || (n[2] = (t) => {
|
|
524
|
+
Y(e.item.voc, t, e.item.$formkit), _(M) ? M.value = !0 : M = !0;
|
|
442
525
|
}),
|
|
443
|
-
modelValue:
|
|
444
|
-
"onUpdate:modelValue":
|
|
526
|
+
modelValue: b(p),
|
|
527
|
+
"onUpdate:modelValue": n[3] || (n[3] = (t) => _(p) ? p.value = t : p = t),
|
|
445
528
|
inputFieldProps: {
|
|
446
529
|
addOnText: !1,
|
|
447
530
|
initialHintText: !1,
|
|
@@ -450,51 +533,51 @@ const Ce = {
|
|
|
450
533
|
preIcon: !1,
|
|
451
534
|
label: e.item.label,
|
|
452
535
|
dropdown_dpiV3: !0,
|
|
453
|
-
placeholder: ((o =
|
|
536
|
+
placeholder: ((o = r.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
|
|
454
537
|
inputFieldSize: "large",
|
|
455
538
|
autocomplete: "true",
|
|
456
|
-
modelValue:
|
|
457
|
-
showError: !!
|
|
539
|
+
modelValue: b(p),
|
|
540
|
+
showError: !!i[e.item.identifier]
|
|
458
541
|
},
|
|
459
|
-
onChosenVocItem:
|
|
460
|
-
data:
|
|
542
|
+
onChosenVocItem: $e,
|
|
543
|
+
data: b(O),
|
|
461
544
|
autocomplete: !0
|
|
462
|
-
}, null, 8, ["modelValue", "inputFieldProps", "data"])) :
|
|
463
|
-
|
|
464
|
-
|
|
545
|
+
}, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
|
|
546
|
+
i[e.item.identifier] ? (s(), h("div", We, [
|
|
547
|
+
g(b(E), {
|
|
465
548
|
size: 16,
|
|
466
549
|
weight: "fill"
|
|
467
550
|
}),
|
|
468
|
-
|
|
469
|
-
])) :
|
|
551
|
+
L("span", je, I(i[e.item.identifier]), 1)
|
|
552
|
+
])) : c("", !0)
|
|
470
553
|
];
|
|
471
554
|
}),
|
|
472
555
|
_: 1
|
|
473
|
-
})) :
|
|
556
|
+
})) : c("", !0)
|
|
474
557
|
]),
|
|
475
558
|
_: 1
|
|
476
559
|
}),
|
|
477
|
-
e.item.$formkit === "repeatable" ? (
|
|
478
|
-
|
|
560
|
+
e.item.$formkit === "repeatable" ? (s(), h("div", qe, [
|
|
561
|
+
g(ee, {
|
|
479
562
|
buttonText: "Weitere hinzufügen",
|
|
480
563
|
size: "large",
|
|
481
564
|
iconStart: "plus",
|
|
482
565
|
variant: "tertiary",
|
|
483
566
|
class: "mt-3",
|
|
484
|
-
onClick:
|
|
567
|
+
onClick: n[4] || (n[4] = (k) => ve(e.item))
|
|
485
568
|
})
|
|
486
|
-
])) :
|
|
487
|
-
|
|
488
|
-
default:
|
|
489
|
-
|
|
490
|
-
|
|
569
|
+
])) : c("", !0),
|
|
570
|
+
g($, { class: "dpiV3_interactionWrap" }, {
|
|
571
|
+
default: P(() => [
|
|
572
|
+
L("div", Ge, [
|
|
573
|
+
g(ee, {
|
|
491
574
|
onClick: he,
|
|
492
575
|
buttonText: "Zurück",
|
|
493
576
|
size: "large",
|
|
494
577
|
iconStart: "CaretLeft",
|
|
495
578
|
variant: "tertiary"
|
|
496
579
|
}),
|
|
497
|
-
|
|
580
|
+
g(ee, {
|
|
498
581
|
onClick: pe,
|
|
499
582
|
buttonText: "Speichern",
|
|
500
583
|
size: "large"
|