@piveau/dpi 0.1.0-beta.62 → 0.1.0-beta.64

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