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