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