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