@piveau/dpi 0.1.0-beta.43 → 0.1.0-beta.44

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