@piveau/dpi 0.1.0-beta.66 → 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.
@@ -1,15 +1,15 @@
1
- import { ref as F, getCurrentInstance as Ve, reactive as Ue, 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 T, createBlock as d, renderList as Q, createElementVNode as B, unref as k, isRef as ie } from "vue";
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 L from "../InputField.vue.js";
4
- import se from "../TextAreaV3.vue.js";
5
- import ae from "../Dropdown.vue.js";
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 Be } from "../../services/dpiV3_apis.js";
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 Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
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 Te = { 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" }, at = {
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: me }) {
43
- const ne = me;
44
- let Z = F([{}]), P = F([]), J = F(!1), p = F(), ce = Ve().appContext.app.config.globalProperties.$env;
45
- const { formValues: X } = Se(), l = Ue({}), n = F([]), A = e;
46
- we(
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 = X.value.Additionals) == null ? void 0 : t[A.item.name];
49
+ return (t = D.value.Additionals) == null ? void 0 : t[A.item.name];
50
50
  },
51
51
  (t) => {
52
- t && t.length > 0 && (n.value = JSON.parse(JSON.stringify(t)));
52
+ t && t.length > 0 && (r.value = JSON.parse(JSON.stringify(t)));
53
53
  },
54
54
  { immediate: !0 }
55
55
  );
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) => {
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 a = r !== null ? `${u}-${r}` : u;
59
- if (l[a] = null, console.log(u), !D(t))
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
75
+ return l[n] = "Bitte geben Sie eine gültige URL ein.", !1;
76
76
  if (!g(y))
77
- return l[a] = "Bitte geben Sie eine gültige URL ein", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
91
+ return l[n] = "Bitte geben Sie eine gültige URL ein.", !1;
92
92
  case "source":
93
- const V = t["@id"] || "";
94
- if (!V.trim() || !g(V))
95
- return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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
96
  case "hasVersion":
97
97
  const U = t["@id"] || "";
98
98
  if (!U.trim() || !g(U))
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
103
+ return l[n] = "Bitte geben Sie eine gültige URL ein.", !1;
104
104
  break;
105
105
  case "isReferencedBy":
106
106
  const S = t["@id"] || "";
107
107
  if (!S.trim() || !g(S))
108
- return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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[a] = "Bitte geben Sie eine gültige URL ein.", !1;
118
+ return l[n] = "Bitte geben Sie eine gültige URL ein.", !1;
124
119
  break;
125
- case "page":
126
- const M = t["foaf:homepage"] || "";
120
+ case "landingPage":
121
+ const M = t["@id"] || "";
127
122
  if (!M.trim() || !g(M))
128
- return l[a] = "Bitte geben Sie eine gültige URL ein.", !1;
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
- a = "temporalResolution-0";
132
- const N = Object.assign({}, ...n.value), W = [
131
+ n = "temporalResolution-0";
132
+ const W = Object.assign({}, ...r.value), j = [
133
133
  "Year",
134
134
  "Month",
135
135
  "Day",
@@ -137,34 +137,34 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
137
137
  "Minute",
138
138
  "Second"
139
139
  ];
140
- if (W.some((j) => {
141
- const I = N[j];
140
+ if (j.some((q) => {
141
+ const I = W[q];
142
142
  return I && typeof I == "string" && I.trim() !== "";
143
143
  })) {
144
- if (W.filter((I) => {
145
- const O = N[I];
146
- return !O || typeof O == "string" && O.trim() === "";
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[a] = "Alle Zeiteinheiten sind erforderlich", !1;
149
- l[a] = null;
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[a] = "Name ist erforderlich", !1;
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[a] = "Name ist erforderlich", !1;
158
+ return l[n] = "Name ist erforderlich", !1;
159
159
  break;
160
160
  }
161
161
  return !0;
162
- }, de = () => {
162
+ }, ge = () => {
163
163
  let t = !0;
164
- Object.keys(l).forEach((a) => {
165
- l[a] = null;
164
+ Object.keys(l).forEach((n) => {
165
+ l[n] = null;
166
166
  });
167
- const r = A.item.identifier;
167
+ const a = A.item.identifier;
168
168
  return [
169
169
  "conformsTo",
170
170
  "temporalResolution",
@@ -182,105 +182,105 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
182
182
  "isVersionOf",
183
183
  "isReferencedBy",
184
184
  "references"
185
- ].includes(r) && n.value.forEach((a, f) => {
186
- K(a, f) || (t = !1);
185
+ ].includes(a) && r.value.forEach((n, f) => {
186
+ Y(n, f) || (t = !1);
187
187
  }), t;
188
- }, ge = (t) => {
189
- n.value.push({});
190
- }, ve = () => {
191
- ne("goBack", !1);
192
- }, he = (t, r) => {
193
- n.value.splice(r, 1), delete l[`${A.item.identifier}-${r}`];
194
- }, re = ue(() => {
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(() => {
195
195
  if (A.item.identifier !== "temporalResolution") return null;
196
- for (let t = 0; t < n.value.length; t++) {
197
- const r = `temporalResolution-${t}`;
198
- if (l[r])
196
+ for (let t = 0; t < r.value.length; t++) {
197
+ const a = `temporalResolution-${t}`;
198
+ if (l[a])
199
199
  return {
200
- key: r,
201
- message: l[r]
200
+ key: a,
201
+ message: l[a]
202
202
  };
203
203
  }
204
204
  return null;
205
- }), be = (t, r, u) => {
206
- 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(() => {
207
- K(n.value[r], r);
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);
208
208
  }, 0);
209
- }, w = (t, r, u, a) => {
209
+ }, w = (t, a, u, n) => {
210
210
  var $;
211
211
  const f = typeof t == "string" ? t : (($ = t == null ? void 0 : t.target) == null ? void 0 : $.value) ?? "";
212
- 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(() => {
213
- K(n.value[u], u);
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);
214
214
  }, 0);
215
215
  };
216
- function ke(t) {
217
- const [r, u, a] = t.split("-");
218
- return `${a}.${u}.${r}`;
216
+ function ye(t) {
217
+ const [a, u, n] = t.split("-");
218
+ return `${n}.${u}.${a}`;
219
219
  }
220
- const ye = (t, r, u, a) => {
221
- n.value[u] || (n.value[u] = {}), n.value[u][a] = t, setTimeout(() => {
222
- K(n.value[u], u);
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);
223
223
  }, 0);
224
- }, $e = (t) => (p.value = t.pref_label.de, Z.value = [
224
+ }, Ve = (t) => (V.value = t.pref_label.de, J.value = [
225
225
  { "@value": t.pref_label.de, uri: t.resource }
226
- ], t), x = async (t, r, u) => {
227
- if (u === "select") {
228
- let a = F([]);
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([]);
229
229
  if (t.forEach((f) => {
230
- a.value.push({ "@value": f, selected: !1 });
231
- }), r !== "")
230
+ n.value.push({ "@value": f, selected: !1 });
231
+ }), a !== "")
232
232
  try {
233
- P.value = a.value;
233
+ O.value = n.value;
234
234
  } catch (f) {
235
235
  console.log(f);
236
236
  }
237
237
  }
238
- if (u === "auto") {
239
- let a = F(await Be(r, ce.api.baseUrl, t));
240
- if (r !== "")
238
+ if (u === "auto" && a !== "prefill") {
239
+ let n = F(await ce(a, re.api.baseUrl, t));
240
+ if (a !== "")
241
241
  try {
242
242
  const f = {
243
- label: a.value.filter(($) => {
243
+ label: n.value.filter(($) => {
244
244
  const y = $.pref_label.de || $.pref_label.en;
245
- return y && r.trim() && (y == null ? void 0 : y.toLowerCase().startsWith(r.trim().toLowerCase()));
245
+ return y && a.trim() && (y == null ? void 0 : y.toLowerCase().startsWith(a.trim().toLowerCase()));
246
246
  })
247
247
  };
248
- f.uri = a.value.filter(($) => $.resource), P.value = f.label;
248
+ f.uri = n.value.filter(($) => $.resource), O.value = f.label;
249
249
  } catch (f) {
250
250
  console.log(f);
251
251
  }
252
252
  }
253
253
  }, pe = () => {
254
- if (!de())
254
+ if (!ge())
255
255
  return;
256
- const t = n.value.filter(
257
- (r) => D(r)
256
+ const t = r.value.filter(
257
+ (a) => x(a)
258
258
  );
259
- t.length > 0 && (X.value.Additionals[A.item.name] = t), J.value && (X.value.Additionals[A.item.name] = Z.value), ne("sst", "close");
259
+ t.length > 0 && (D.value.Additionals[A.item.name] = t), K.value && (D.value.Additionals[A.item.name] = J.value), ae("sst", "close");
260
260
  };
261
- return (t, r) => {
262
- const u = Y("additionalText"), a = Y("itemWrapperAdditionals"), f = Y("activeItem"), $ = Y("interaction");
263
- return s(), h(q, null, [
261
+ return (t, a) => {
262
+ const u = Q("additionalText"), n = Q("itemWrapperAdditionals"), f = Q("activeItem"), $ = Q("interaction");
263
+ return s(), h(G, null, [
264
264
  b(u, null, {
265
- default: G(() => [
266
- Re(T(e.item.help), 1)
265
+ default: Z(() => [
266
+ Be(L(e.item.help), 1)
267
267
  ]),
268
268
  _: 1
269
269
  }),
270
270
  b(f, null, {
271
- default: G(() => [
272
- e.item.$formkit === "repeatable" ? (s(!0), h(q, { key: 0 }, Q(fe.value, (y, o) => (s(), h("div", {
271
+ default: Z(() => [
272
+ e.item.$formkit === "repeatable" ? (s(!0), h(G, { 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(q, { key: 0 }, Q(e.item.children[0].children.filter(
276
+ e.item.$formkit === "repeatable" ? (s(!0), h(G, { key: 0 }, X(e.item.children[0].children.filter(
277
277
  (i) => i.$formkit !== "group"
278
- ), (i, v) => (s(), d(a, { key: v }, {
279
- default: G(() => {
280
- var V, U, R, S, C, z, H, M, N, W, _, ee, te, j, I, O, oe;
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;
281
281
  return [
282
- B("div", Te, [
283
- i.$formkit === "url" && e.item.name === "@id" ? (s(), d(L, {
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": (V = n.value[o]) == null ? void 0 : V["@id"],
294
- "v-model": (U = n.value[o]) == null ? void 0 : U["@id"]
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(L, {
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 = n.value[o]) == null ? void 0 : R[i.name],
307
- "v-model": (S = n.value[o]) == null ? void 0 : S[i.name]
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", Le, [
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
310
  b(k(E), {
311
311
  size: 16,
312
312
  weight: "fill"
313
313
  }),
314
- B("span", Ae, T(l[`${e.item.identifier}-${o}`]), 1)
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(L, {
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": (C = n.value[o]) == null ? void 0 : C["@value"],
327
- "v-model": (z = n.value[o]) == null ? void 0 : z["@value"]
326
+ "model-value": (C = r.value[o]) == null ? void 0 : C["@value"],
327
+ "v-model": (H = r.value[o]) == null ? void 0 : H["@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
330
  b(k(E), {
331
331
  size: 16,
332
332
  weight: "fill"
333
333
  }),
334
- B("span", Fe, T(l[`${e.item.identifier}-${o}`]), 1)
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(L, {
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": (H = n.value[o]) == null ? void 0 : H[i.name],
347
- "v-model": (M = n.value[o]) == null ? void 0 : M[i.name]
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]
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
350
  b(k(E), {
351
351
  size: 16,
352
352
  weight: "fill"
353
353
  }),
354
- B("span", Oe, T(l[`${e.item.identifier}-${o}`]), 1)
354
+ B("span", Oe, L(l[`${e.item.identifier}-${o}`]), 1)
355
355
  ])) : c("", !0),
356
- i.$formkit === "select" && i.identifier !== "language" ? (s(), d(ae, {
356
+ i.$formkit === "select" && i.identifier !== "language" ? (s(), d(ne, {
357
357
  key: 7,
358
358
  dropdownWidth: "large",
359
359
  type: "inputField",
360
- onClick: (m) => x(
360
+ onClick: (m) => z(
361
361
  Object.values(i.options),
362
362
  m,
363
363
  i.$formkit
364
364
  ),
365
- "v-model": (N = n.value[o]) == null ? void 0 : N[i.name],
365
+ "v-model": (W = r.value[o]) == null ? void 0 : W[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: ((W = n.value[o]) == null ? void 0 : W[i.name]) || i.placeholder,
374
+ placeholder: ((j = r.value[o]) == null ? void 0 : j[i.name]) || i.placeholder,
375
375
  inputFieldSize: "large",
376
376
  autocomplete: "true",
377
- modelValue: (_ = n.value[o]) == null ? void 0 : _[i.name],
377
+ modelValue: (_ = r.value[o]) == null ? void 0 : _[i.name],
378
378
  showError: e.item.identifier === "temporalResolution" && !!l[`${e.item.identifier}-${o}`]
379
379
  },
380
- "onUpdate:modelValue": (m) => ye(m, e.item.name, o, i.name),
381
- data: k(P),
382
- autocomplete: !1
380
+ "onUpdate:modelValue": (m) => $e(m, e.item.name, o, i.name),
381
+ data: k(O)
383
382
  }, null, 8, ["onClick", "v-model", "inputFieldProps", "onUpdate:modelValue", "data"])) : c("", !0),
384
- i.$formkit === "auto" ? (s(), d(ae, {
383
+ i.$formkit === "auto" ? (s(), d(ne, {
385
384
  key: 8,
386
385
  dropdownWidth: "large",
387
386
  type: "inputField",
388
- onInput: (m) => x(e.item.voc, m, i.$formkit),
389
- modelValue: k(p),
390
- "onUpdate:modelValue": r[0] || (r[0] = (m) => ie(p) ? p.value = m : p = m),
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),
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: ((ee = n.value[o]) == null ? void 0 : ee["@value"]) || e.item.placeholder,
399
+ placeholder: ((ee = r.value[o]) == null ? void 0 : ee["@value"]) || e.item.placeholder,
400
400
  inputFieldSize: "large",
401
401
  autocomplete: "true",
402
- modelValue: k(p),
402
+ modelValue: k(V),
403
403
  showError: !1
404
404
  },
405
- onChosenVocItem: (m) => be(m, o, e.item.name),
406
- data: k(P),
407
- autocomplete: !0
405
+ onChosenVocItem: (m) => ke(m, o, e.item.name),
406
+ data: k(O)
408
407
  }, null, 8, ["onInput", "modelValue", "inputFieldProps", "onChosenVocItem", "data"])) : c("", !0),
409
- i.$formkit === "textarea" && e.item.name === "@value" ? (s(), d(se, {
408
+ i.$formkit === "textarea" && e.item.name === "@value" ? (s(), d(me, {
410
409
  key: 9,
411
410
  label: i.label,
412
- placeholder: ((te = n.value[o]) == null ? void 0 : te[i.name]) || e.item.placeholder,
411
+ placeholder: ((te = r.value[o]) == null ? void 0 : te[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": (j = n.value[o]) == null ? void 0 : j["@value"]
417
+ "model-value": (q = r.value[o]) == null ? void 0 : q["@value"]
419
418
  }, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
420
- i.$formkit === "textarea" && e.item.name != "@value" ? (s(), d(se, {
419
+ i.$formkit === "textarea" && e.item.name != "@value" ? (s(), d(me, {
421
420
  key: 10,
422
421
  label: i.label,
423
- placeholder: ((I = n.value[o]) == null ? void 0 : I[i.name]) || e.item.placeholder,
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": (O = n.value[o]) == null ? void 0 : O[i.name]
428
+ "model-value": (P = r.value[o]) == null ? void 0 : P[i.name]
430
429
  }, null, 8, ["label", "placeholder", "onInput", "model-value"])) : c("", !0),
431
- i.$formkit === "email" ? (s(), d(L, {
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": (oe = n.value[o]) == null ? void 0 : oe["@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
  ];
@@ -451,20 +450,21 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
451
450
  size: 16,
452
451
  weight: "fill"
453
452
  }),
454
- B("span", ze, T(l[`${e.item.identifier}-${o}`]), 1)
453
+ B("span", ze, L(l[`${e.item.identifier}-${o}`]), 1)
455
454
  ])) : c("", !0),
456
455
  b(Ie, {
457
- "button-text": "löschen",
456
+ "button-text": "Löschen",
457
+ "icon-start": "trash",
458
458
  class: "rightAlign",
459
- onClick: (i) => he(e.item.name, o)
459
+ onClick: (i) => be(e.item.name, o)
460
460
  }, null, 8, ["onClick"])
461
461
  ]))), 128)) : c("", !0),
462
- e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (s(), d(a, { key: 1 }, {
463
- default: G(() => {
462
+ e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (s(), d(n, { key: 1 }, {
463
+ default: Z(() => {
464
464
  var y, o;
465
465
  return [
466
466
  B("div", He, [
467
- e.item.$formkit === "simpleInput" ? (s(), d(L, {
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: r[1] || (r[1] = (i) => w(i, e.item.name, 0, "@value")),
475
+ onInput: a[2] || (a[2] = (i) => w(i, e.item.name, 0, "@value")),
476
476
  initialHintText: !1,
477
- "model-value": (y = n.value[0]) == null ? void 0 : y["@value"]
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
480
  b(k(E), {
481
481
  size: 16,
482
482
  weight: "fill"
483
483
  }),
484
- B("span", Ne, T(l[e.item.identifier]), 1)
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(q, { key: 2 }, Q(e.item.children, (i, v) => {
487
- var V, U;
488
- return s(), d(L, {
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, {
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": (V = n.value[v]) == null ? void 0 : V[i.name],
499
- "v-model": (U = n.value[v]) == null ? void 0 : U[i.name]
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
- re.value ? (s(), h("div", We, [
502
+ oe.value ? (s(), h("div", We, [
503
503
  b(k(E), {
504
504
  size: 16,
505
505
  weight: "fill"
506
506
  }),
507
- B("span", je, T(re.value.message), 1)
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(q, { key: 4 }, Q(e.item.children, (i, v) => {
510
- var V, U, R, S;
511
- return s(), d(L, {
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, {
512
512
  key: v,
513
513
  label: i.label,
514
514
  placeholder: e.item.placeholder,
@@ -520,19 +520,20 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
520
520
  "show-error": !1,
521
521
  onInput: (C) => w(C, e.item.name, v, i.name),
522
522
  initialHintText: !1,
523
- "model-value": (U = (V = n.value[v]) == null ? void 0 : V[i.name]) == null ? void 0 : U["@value"],
524
- "v-model": (S = (R = n.value[v]) == null ? void 0 : R[i.name]) == null ? void 0 : S["@value"]
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
- e.item.$formkit === "auto" ? (s(), d(ae, {
527
+ e.item.$formkit === "auto" ? (s(), d(ne, {
528
528
  key: 5,
529
529
  dropdownWidth: "large",
530
530
  type: "inputField",
531
- onInput: r[2] || (r[2] = (i) => {
532
- x(e.item.voc, i, e.item.$formkit), ie(J) ? J.value = !0 : J = !0;
531
+ onInput: a[3] || (a[3] = (i) => {
532
+ z(e.item.voc, i, e.item.$formkit), ie(K) ? K.value = !0 : K = !0;
533
533
  }),
534
- modelValue: k(p),
535
- "onUpdate:modelValue": r[3] || (r[3] = (i) => ie(p) ? p.value = i : p = i),
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),
536
537
  inputFieldProps: {
537
538
  addOnText: !1,
538
539
  initialHintText: !1,
@@ -541,22 +542,21 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
541
542
  preIcon: !1,
542
543
  label: e.item.label,
543
544
  dropdown_dpiV3: !0,
544
- placeholder: ((o = n.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
545
+ placeholder: ((o = r.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
545
546
  inputFieldSize: "large",
546
547
  autocomplete: "true",
547
- modelValue: k(p),
548
+ modelValue: k(V),
548
549
  showError: !!l[e.item.identifier]
549
550
  },
550
- onChosenVocItem: $e,
551
- data: k(P),
552
- autocomplete: !0
551
+ onChosenVocItem: Ve,
552
+ data: k(O)
553
553
  }, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
554
554
  l[e.item.identifier] ? (s(), h("div", qe, [
555
555
  b(k(E), {
556
556
  size: 16,
557
557
  weight: "fill"
558
558
  }),
559
- B("span", Ge, T(l[e.item.identifier]), 1)
559
+ B("span", Ge, L(l[e.item.identifier]), 1)
560
560
  ])) : c("", !0)
561
561
  ])
562
562
  ];
@@ -573,14 +573,14 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
573
573
  iconStart: "plus",
574
574
  variant: "tertiary",
575
575
  class: "mt-3",
576
- onClick: r[4] || (r[4] = (y) => ge(e.item))
576
+ onClick: a[6] || (a[6] = (y) => ve(e.item))
577
577
  })
578
578
  ])) : c("", !0),
579
579
  b($, { class: "dpiV3_interactionWrap" }, {
580
- default: G(() => [
580
+ default: Z(() => [
581
581
  B("div", Je, [
582
582
  b(le, {
583
- onClick: ve,
583
+ onClick: he,
584
584
  buttonText: "Zurück",
585
585
  size: "large",
586
586
  iconStart: "CaretLeft",
@@ -600,5 +600,5 @@ const Te = { class: "dpiV3_LinkAndMetadata" }, Le = {
600
600
  }
601
601
  };
602
602
  export {
603
- at as default
603
+ nt as default
604
604
  };