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