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