@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.
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { PhWarning as
|
|
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
|
|
9
|
-
import { useFormValues as
|
|
10
|
-
import
|
|
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
|
|
12
|
+
const Se = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "dpiV3_errorMessage"
|
|
15
|
-
},
|
|
15
|
+
}, Be = { class: "copy-mini-regular" }, Fe = {
|
|
16
16
|
key: 4,
|
|
17
17
|
class: "dpiV3_errorMessage"
|
|
18
|
-
},
|
|
18
|
+
}, Ce = { class: "copy-mini-regular" }, Ee = {
|
|
19
19
|
key: 6,
|
|
20
20
|
class: "dpiV3_errorMessage"
|
|
21
|
-
},
|
|
21
|
+
}, Ae = { class: "copy-mini-regular" }, Oe = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "dpiV3_errorMessage"
|
|
24
|
-
},
|
|
24
|
+
}, ze = { class: "copy-mini-regular" }, He = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "dpiV3_errorMessage"
|
|
27
|
-
},
|
|
27
|
+
}, Pe = { class: "copy-mini-regular" }, Ne = {
|
|
28
28
|
key: 3,
|
|
29
29
|
class: "dpiV3_errorMessage"
|
|
30
|
-
},
|
|
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
|
|
44
|
-
let N =
|
|
45
|
-
const { formValues:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
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 (
|
|
61
|
+
switch (u) {
|
|
65
62
|
case "conformsTo":
|
|
66
63
|
const f = l["@id"] || "";
|
|
67
64
|
if (!f.trim())
|
|
68
|
-
return
|
|
69
|
-
if (!
|
|
70
|
-
return
|
|
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
|
-
|
|
74
|
-
const
|
|
75
|
-
if ([
|
|
76
|
-
|
|
77
|
-
|
|
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
|
|
80
|
-
|
|
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
|
|
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
|
|
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(
|
|
95
|
-
|
|
171
|
+
Object.keys(i).forEach((a) => {
|
|
172
|
+
i[a] = null;
|
|
96
173
|
});
|
|
97
|
-
const
|
|
98
|
-
return [
|
|
99
|
-
|
|
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
|
-
|
|
184
|
+
r.value.push({});
|
|
103
185
|
}, he = () => {
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
if (
|
|
109
|
-
for (let l = 0; l <
|
|
110
|
-
const
|
|
111
|
-
if (n
|
|
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:
|
|
114
|
-
message: n
|
|
195
|
+
key: n,
|
|
196
|
+
message: i[n]
|
|
115
197
|
};
|
|
116
198
|
}
|
|
117
199
|
return null;
|
|
118
|
-
}), be = (l,
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
},
|
|
123
|
-
var
|
|
124
|
-
const f = typeof l == "string" ? l : ((
|
|
125
|
-
|
|
126
|
-
|
|
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
|
|
130
|
-
const [
|
|
131
|
-
return `${
|
|
211
|
+
function ke(l) {
|
|
212
|
+
const [n, u, a] = l.split("-");
|
|
213
|
+
return `${a}.${u}.${n}`;
|
|
132
214
|
}
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
},
|
|
219
|
+
}, $e = (l) => (p.value = l.pref_label.de, N.value = [
|
|
138
220
|
{ "@value": l.pref_label.de, uri: l.resource }
|
|
139
|
-
], l),
|
|
140
|
-
if (
|
|
141
|
-
let
|
|
221
|
+
], l), Y = async (l, n, u) => {
|
|
222
|
+
if (u === "select") {
|
|
223
|
+
let a = C([]);
|
|
142
224
|
if (l.forEach((f) => {
|
|
143
|
-
|
|
144
|
-
}),
|
|
225
|
+
a.value.push({ "@value": f, selected: !1 });
|
|
226
|
+
}), n !== "")
|
|
145
227
|
try {
|
|
146
|
-
O.value =
|
|
228
|
+
O.value = a.value;
|
|
147
229
|
} catch (f) {
|
|
148
230
|
console.log(f);
|
|
149
231
|
}
|
|
150
232
|
}
|
|
151
|
-
if (
|
|
152
|
-
let
|
|
153
|
-
if (
|
|
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:
|
|
157
|
-
const
|
|
158
|
-
return
|
|
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 =
|
|
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 =
|
|
170
|
-
|
|
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,
|
|
173
|
-
const
|
|
174
|
-
return
|
|
175
|
-
|
|
176
|
-
default:
|
|
177
|
-
|
|
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
|
-
|
|
182
|
-
default:
|
|
183
|
-
e.item.$formkit === "repeatable" ? (
|
|
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" ? (
|
|
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,
|
|
190
|
-
default:
|
|
191
|
-
var V,
|
|
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" ? (
|
|
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": !!
|
|
201
|
-
onInput: (
|
|
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 =
|
|
204
|
-
"v-model": (
|
|
205
|
-
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) :
|
|
206
|
-
t.$formkit === "url" && e.item.name != "@id" ? (
|
|
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: (
|
|
298
|
+
onInput: (m) => U(m, e.item.name, o, t.name),
|
|
215
299
|
initialHintText: !1,
|
|
216
|
-
"model-value": (
|
|
217
|
-
"v-model": (
|
|
218
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value", "v-model"])) :
|
|
219
|
-
t.$formkit === "url" && t.label != "Homepage" && t.label != "Contributor Homepage" && e.item.name != "@id" &&
|
|
220
|
-
|
|
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
|
-
|
|
225
|
-
])) :
|
|
226
|
-
t.$formkit === "text" && e.item.name === "@value" ? (
|
|
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": !!
|
|
234
|
-
onInput: (
|
|
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": (
|
|
237
|
-
"v-model": (
|
|
238
|
-
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) :
|
|
239
|
-
t.$formkit === "text" && e.item.name === "@value" &&
|
|
240
|
-
|
|
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
|
-
|
|
245
|
-
])) :
|
|
246
|
-
t.$formkit === "text" && e.item.name != "@value" ? (
|
|
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" && !!
|
|
254
|
-
onInput: (
|
|
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": (
|
|
257
|
-
"v-model": (
|
|
258
|
-
}, null, 8, ["label", "placeholder", "show-error", "onInput", "model-value", "v-model"])) :
|
|
259
|
-
t.$formkit === "text" && t.name === "foaf:name" &&
|
|
260
|
-
|
|
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
|
-
|
|
265
|
-
])) :
|
|
266
|
-
t.$formkit === "select" && t.identifier !== "language" ? (
|
|
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: (
|
|
354
|
+
onClick: (m) => Y(
|
|
271
355
|
Object.values(t.options),
|
|
272
|
-
|
|
356
|
+
m,
|
|
273
357
|
t.$formkit
|
|
274
358
|
),
|
|
275
|
-
"v-model": (
|
|
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: ((
|
|
368
|
+
placeholder: ((D = r.value[o]) == null ? void 0 : D[t.name]) || t.placeholder,
|
|
285
369
|
inputFieldSize: "large",
|
|
286
370
|
autocomplete: "true",
|
|
287
|
-
modelValue: (
|
|
288
|
-
showError: e.item.identifier === "temporalResolution" && !!
|
|
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": (
|
|
291
|
-
data:
|
|
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"])) :
|
|
294
|
-
t.$formkit === "auto" ? (
|
|
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: (
|
|
299
|
-
modelValue:
|
|
300
|
-
"onUpdate:modelValue":
|
|
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: ((
|
|
393
|
+
placeholder: ((q = r.value[o]) == null ? void 0 : q["@value"]) || e.item.placeholder,
|
|
310
394
|
inputFieldSize: "large",
|
|
311
395
|
autocomplete: "true",
|
|
312
|
-
modelValue:
|
|
396
|
+
modelValue: b(p),
|
|
313
397
|
showError: !1
|
|
314
398
|
},
|
|
315
|
-
onChosenVocItem: (
|
|
316
|
-
data:
|
|
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"])) :
|
|
319
|
-
t.$formkit === "textarea" && e.item.name === "@value" ? (
|
|
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: ((
|
|
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: (
|
|
410
|
+
onInput: (m) => U(m, e.item.name, o, "@value"),
|
|
327
411
|
initialHintText: !1,
|
|
328
|
-
"model-value": (ae =
|
|
329
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) :
|
|
330
|
-
t.$formkit === "textarea" && e.item.name != "@value" ? (
|
|
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: ((
|
|
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: (
|
|
421
|
+
onInput: (m) => U(m, e.item.name, o, t.name),
|
|
338
422
|
initialHintText: !1,
|
|
339
|
-
"model-value": (
|
|
340
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) :
|
|
341
|
-
t.$formkit === "email" ? (
|
|
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: (
|
|
434
|
+
onInput: (m) => U(m, e.item.name, o, "@value"),
|
|
351
435
|
initialHintText: !1,
|
|
352
|
-
"model-value": (
|
|
353
|
-
}, null, 8, ["label", "placeholder", "onInput", "model-value"])) :
|
|
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)) :
|
|
358
|
-
e.item.identifier === "temporalResolution" &&
|
|
359
|
-
|
|
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
|
-
|
|
364
|
-
])) :
|
|
365
|
-
|
|
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) =>
|
|
452
|
+
onClick: (t) => ge(e.item.name, o)
|
|
369
453
|
}, null, 8, ["onClick"])
|
|
370
|
-
]))), 128)) :
|
|
371
|
-
e.item.$formkit != "repeatable" || e.item.$formkit != "group" ? (
|
|
372
|
-
default:
|
|
373
|
-
var
|
|
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" ? (
|
|
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": !!
|
|
383
|
-
onInput:
|
|
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": (
|
|
386
|
-
}, null, 8, ["label", "placeholder", "show-error", "model-value"])) :
|
|
387
|
-
e.item.$formkit === "simpleInput" &&
|
|
388
|
-
|
|
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
|
-
|
|
393
|
-
])) :
|
|
394
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit !== "date" ? (
|
|
395
|
-
var V,
|
|
396
|
-
return
|
|
397
|
-
key:
|
|
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": !!
|
|
404
|
-
onInput: (
|
|
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 =
|
|
407
|
-
"v-model": (
|
|
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)) :
|
|
410
|
-
|
|
411
|
-
|
|
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
|
-
|
|
416
|
-
])) :
|
|
417
|
-
e.item.$formkit === "formkitGroup" && e.item.children[0].$formkit === "date" ? (
|
|
418
|
-
var V,
|
|
419
|
-
return
|
|
420
|
-
key:
|
|
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: (
|
|
513
|
+
onInput: (F) => U(F, e.item.name, v, t.name),
|
|
430
514
|
initialHintText: !1,
|
|
431
|
-
"model-value": (
|
|
432
|
-
"v-model": (
|
|
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)) :
|
|
435
|
-
e.item.$formkit === "auto" ? (
|
|
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:
|
|
440
|
-
|
|
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:
|
|
443
|
-
"onUpdate:modelValue":
|
|
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 =
|
|
536
|
+
placeholder: ((o = r.value[0]) == null ? void 0 : o["@value"]) || e.item.placeholder,
|
|
453
537
|
inputFieldSize: "large",
|
|
454
538
|
autocomplete: "true",
|
|
455
|
-
modelValue:
|
|
456
|
-
showError: !!
|
|
539
|
+
modelValue: b(p),
|
|
540
|
+
showError: !!i[e.item.identifier]
|
|
457
541
|
},
|
|
458
|
-
onChosenVocItem:
|
|
459
|
-
data:
|
|
542
|
+
onChosenVocItem: $e,
|
|
543
|
+
data: b(O),
|
|
460
544
|
autocomplete: !0
|
|
461
|
-
}, null, 8, ["modelValue", "inputFieldProps", "data"])) :
|
|
462
|
-
|
|
463
|
-
|
|
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
|
-
|
|
468
|
-
])) :
|
|
551
|
+
L("span", je, I(i[e.item.identifier]), 1)
|
|
552
|
+
])) : c("", !0)
|
|
469
553
|
];
|
|
470
554
|
}),
|
|
471
555
|
_: 1
|
|
472
|
-
})) :
|
|
556
|
+
})) : c("", !0)
|
|
473
557
|
]),
|
|
474
558
|
_: 1
|
|
475
559
|
}),
|
|
476
|
-
e.item.$formkit === "repeatable" ? (
|
|
477
|
-
|
|
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:
|
|
567
|
+
onClick: n[4] || (n[4] = (k) => ve(e.item))
|
|
484
568
|
})
|
|
485
|
-
])) :
|
|
486
|
-
|
|
487
|
-
default:
|
|
488
|
-
|
|
489
|
-
|
|
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
|
-
|
|
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,
|
|
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": (
|
|
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((
|
|
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
|
-
}), ((
|
|
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
|
"#####################",
|