@piveau/dpi 0.1.0-beta.69 → 0.1.0-beta.70

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