@piveau/dpi 0.1.0-beta.76 → 0.1.0-beta.79

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