@piveau/dpi 0.1.0-beta.62 → 0.1.0-beta.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +133 -131
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +28 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +8 -8
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +194 -221
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +287 -286
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +41 -41
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as i, watch as Je, onMounted as Ke, getCurrentInstance as Qe, createElementBlock as
|
|
1
|
+
import { ref as i, watch as Je, onMounted as Ke, getCurrentInstance as Qe, createElementBlock as c, openBlock as o, Fragment as D, createCommentVNode as d, createElementVNode as u, normalizeClass as S, createVNode as y, toDisplayString as h, renderList as Ve, createBlock as g } from "vue";
|
|
2
2
|
import Xe from "./TextButtonSmall.vue.js";
|
|
3
3
|
import L from "./ButtonV3.vue.js";
|
|
4
|
-
import
|
|
4
|
+
import re from "./CrossOutButton.vue.js";
|
|
5
5
|
import Ye from "./CloseOpenButtonV3.vue.js";
|
|
6
6
|
import { getPlannedAvailability as et, getLanguages as tt } from "../services/dpiV3_apis.js";
|
|
7
7
|
import at from "./OptionalInformation/DocumentationsV3.vue.js";
|
|
@@ -10,79 +10,81 @@ import st from "./OptionalInformation/DescriptionV3.vue.js";
|
|
|
10
10
|
import ot from "./OptionalInformation/AvailabilityV3.vue.js";
|
|
11
11
|
import lt from "./OptionalInformation/ByteSizeV3.vue.js";
|
|
12
12
|
import dt from "./OptionalInformation/IssuedDateV3.vue.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
13
|
+
import rt from "./OptionalInformation/LanguageV3.vue.js";
|
|
14
|
+
import ne from "./OptionalInformation/FileFormatV3.vue.js";
|
|
15
|
+
import nt from "./OptionalInformation/StatusV3.vue.js";
|
|
16
|
+
import ct from "./OptionalInformation/ChecksumV3.vue.js";
|
|
17
|
+
import ut from "./OptionalInformation/ConformsToV3.vue.js";
|
|
18
18
|
import mt from "./OptionalInformation/PolicyV3.vue.js";
|
|
19
19
|
import pt from "./OptionalInformation/AccessServiceV3.vue.js";
|
|
20
20
|
import ft from "./OptionalInformation/ChangeLicenseV3.vue.js";
|
|
21
21
|
/* empty css */
|
|
22
|
-
|
|
22
|
+
/* empty css */
|
|
23
|
+
import vt from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
24
|
+
const yt = {
|
|
23
25
|
key: 0,
|
|
24
26
|
class: "dpiV3_modalBackground"
|
|
25
|
-
},
|
|
27
|
+
}, ht = { class: "dpiV3_modalHeaderWrap" }, kt = { class: "dpiV3_modalText" }, gt = {
|
|
26
28
|
key: 0,
|
|
27
29
|
class: "dpiV3AutoCompleteWrapDeleteModal copy-large-semi-bold"
|
|
28
|
-
},
|
|
30
|
+
}, bt = { class: "dpiV3_LinkInfos" }, Tt = ["href"], Vt = { class: "dpiV3_title" }, _t = ["href"], It = { class: "dpiV3_title" }, xt = {
|
|
29
31
|
key: 2,
|
|
30
32
|
class: "dpiV3_File-Format copy-small-regular"
|
|
31
|
-
},
|
|
33
|
+
}, Dt = {
|
|
32
34
|
key: 0,
|
|
33
35
|
class: "dpiV3_modalButtonWrap"
|
|
34
|
-
},
|
|
36
|
+
}, Lt = {
|
|
35
37
|
key: 1,
|
|
36
38
|
class: "dpiV3_optionalInfoContent"
|
|
37
|
-
},
|
|
39
|
+
}, Ct = { class: "dpiV3_ListMetaData" }, wt = { class: "dpiV3_title-description" }, Ut = { class: "dpiV3_group-title" }, Ft = { class: "dpiV3_caret" }, At = ["onClick"], St = {
|
|
38
40
|
key: 1,
|
|
39
41
|
class: "dpiV3_sectionDivider"
|
|
40
|
-
},
|
|
42
|
+
}, Rt = {
|
|
41
43
|
key: 1,
|
|
42
44
|
class: "dpiV3_modalBackground"
|
|
43
|
-
},
|
|
45
|
+
}, qt = { class: "dpiV3_modalHeaderWrap" }, Bt = {
|
|
44
46
|
key: 0,
|
|
45
47
|
class: "dpiV3_modalContent"
|
|
46
|
-
},
|
|
48
|
+
}, zt = {
|
|
47
49
|
key: 1,
|
|
48
50
|
class: "dpiV3_modalContent"
|
|
49
|
-
},
|
|
51
|
+
}, Mt = {
|
|
50
52
|
key: 2,
|
|
51
53
|
class: "dpiV3_modalContent"
|
|
52
|
-
},
|
|
54
|
+
}, Pt = {
|
|
53
55
|
key: 3,
|
|
54
56
|
class: "dpiV3_modified"
|
|
55
|
-
},
|
|
57
|
+
}, $t = {
|
|
56
58
|
key: 4,
|
|
57
59
|
class: "dpiV3_modified"
|
|
58
|
-
},
|
|
60
|
+
}, Wt = {
|
|
59
61
|
key: 5,
|
|
60
62
|
class: "dpiV3_modified"
|
|
61
|
-
},
|
|
63
|
+
}, Et = {
|
|
62
64
|
key: 6,
|
|
63
65
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
64
|
-
},
|
|
66
|
+
}, Ot = {
|
|
65
67
|
key: 7,
|
|
66
68
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
67
|
-
},
|
|
69
|
+
}, Ht = {
|
|
68
70
|
key: 11,
|
|
69
71
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
70
|
-
},
|
|
72
|
+
}, Nt = {
|
|
71
73
|
key: 12,
|
|
72
74
|
class: "dpiV3_DocumentationV3_Wrap"
|
|
73
|
-
},
|
|
75
|
+
}, jt = { class: "dpiV3_modalButtonWrap" }, Zt = {
|
|
74
76
|
key: 2,
|
|
75
77
|
class: "dpiV3_modalBackground"
|
|
76
|
-
},
|
|
78
|
+
}, Gt = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, Jt = { class: "dpiV3_modalHeaderWrap" }, Kt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, Qt = { class: "dpiV3_LinkInfos" }, Xt = {
|
|
77
79
|
key: 0,
|
|
78
80
|
class: "dpiV3_title"
|
|
79
|
-
},
|
|
81
|
+
}, Yt = {
|
|
80
82
|
key: 1,
|
|
81
83
|
class: "dpiV3_title"
|
|
82
|
-
},
|
|
84
|
+
}, ea = {
|
|
83
85
|
key: 2,
|
|
84
86
|
class: "dpiV3_title"
|
|
85
|
-
},
|
|
87
|
+
}, ta = { class: "dpiV3_modalButtonWrap" }, aa = {
|
|
86
88
|
__name: "ModalV3",
|
|
87
89
|
props: {
|
|
88
90
|
headerText: { type: String, required: !0 },
|
|
@@ -145,24 +147,24 @@ const vt = {
|
|
|
145
147
|
setup(f, { emit: _e }) {
|
|
146
148
|
const e = f, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), P = i(null), v = _e, $ = i(!1), W = i(!1), E = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1);
|
|
147
149
|
i(!1);
|
|
148
|
-
const
|
|
150
|
+
const ce = i(!1), Z = i(!1), G = i(!1), J = i(!1), K = i(!1), Q = i(!1), X = i(!1), Y = i(!1), ee = i(!1), te = i(!1), I = i([]), r = i({ key: "", text: "" }), Ie = i(null), ae = i(!1), C = i(null), ie = i(null);
|
|
149
151
|
i([...e.fileTypes]);
|
|
150
152
|
const xe = i([]), De = i([]);
|
|
151
153
|
i(null);
|
|
152
|
-
const Le = i(!1),
|
|
154
|
+
const Le = i(!1), ue = i(""), me = i(""), pe = i(""), Ce = i(""), b = i({}), T = i({}), V = i({}), _ = i({}), fe = i(""), ve = i(""), ye = i(""), he = i(0), ke = i(""), ge = i(""), be = i(""), w = i(""), U = i(""), we = i(""), F = i(""), A = i(""), se = i(!0);
|
|
153
155
|
i(!0);
|
|
154
156
|
const Ue = (a, t) => {
|
|
155
|
-
se.value = !1,
|
|
157
|
+
se.value = !1, r.value = {
|
|
156
158
|
key: e.sections[a].keys[t],
|
|
157
159
|
text: e.sections[a].items[t]
|
|
158
160
|
}, b.value[e.distributionId] || (b.value[e.distributionId] = []), T.value[e.distributionId] || (T.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []), _.value[e.distributionId] || (_.value[e.distributionId] = []);
|
|
159
161
|
}, oe = () => {
|
|
160
|
-
se.value = !0,
|
|
162
|
+
se.value = !0, r.value = { key: "", text: "" };
|
|
161
163
|
}, Fe = () => {
|
|
162
164
|
const a = (t) => {
|
|
163
165
|
if (!t || t.trim() === "") return !1;
|
|
164
|
-
const
|
|
165
|
-
return /\.[a-zA-Z]{2,}$/.test(
|
|
166
|
+
const n = t.trim();
|
|
167
|
+
return /\.[a-zA-Z]{2,}$/.test(n);
|
|
166
168
|
};
|
|
167
169
|
if (E.value) {
|
|
168
170
|
const t = V.value[e.distributionId] || [];
|
|
@@ -196,13 +198,13 @@ const vt = {
|
|
|
196
198
|
m.length > 0 && v("addPolicyItems", e.distributionId, m), O.value = !1;
|
|
197
199
|
}
|
|
198
200
|
if ($.value) {
|
|
199
|
-
const t = b.value[e.distributionId] || [],
|
|
201
|
+
const t = b.value[e.distributionId] || [], n = (s) => {
|
|
200
202
|
const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0);
|
|
201
203
|
return p || k || x;
|
|
202
204
|
};
|
|
203
205
|
if (t.some((s) => {
|
|
204
206
|
const p = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
|
|
205
|
-
return !!(
|
|
207
|
+
return !!(n(s) && (!p || !a(p)) || p && !a(p));
|
|
206
208
|
})) {
|
|
207
209
|
q.value && q.value.validateAllItems();
|
|
208
210
|
return;
|
|
@@ -218,13 +220,13 @@ const vt = {
|
|
|
218
220
|
), $.value = !1;
|
|
219
221
|
}
|
|
220
222
|
if (W.value) {
|
|
221
|
-
const t = T.value[e.distributionId] || [],
|
|
223
|
+
const t = T.value[e.distributionId] || [], n = (s) => {
|
|
222
224
|
const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "";
|
|
223
225
|
return p || k;
|
|
224
226
|
};
|
|
225
227
|
if (t.some((s) => {
|
|
226
228
|
const p = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
|
|
227
|
-
return !!(
|
|
229
|
+
return !!(n(s) && (!p || !a(p)) || p && !a(p));
|
|
228
230
|
})) {
|
|
229
231
|
B.value && B.value.validateAllItems();
|
|
230
232
|
return;
|
|
@@ -239,13 +241,13 @@ const vt = {
|
|
|
239
241
|
l
|
|
240
242
|
), W.value = !1;
|
|
241
243
|
}
|
|
242
|
-
if (H.value && (v("addModifiedDate",
|
|
243
|
-
const t = w.value && w.value.trim() !== "",
|
|
244
|
-
if ((t ||
|
|
244
|
+
if (H.value && (v("addModifiedDate", ue.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", me.value, e.distributionId), N.value = !1), j.value && (v("addDescription", pe.value, e.distributionId), j.value = !1), ce.value && (v("addAccessRights", Ce.value, e.distributionId), ce.value = !1), Z.value && (v("addAvailability", fe.value, e.distributionId, e.uri), Z.value = !1), Y.value && (v("addStatus", ve.value, e.distributionId), Y.value = !1), ee.value) {
|
|
245
|
+
const t = w.value && w.value.trim() !== "", n = U.value && U.value.trim() !== "";
|
|
246
|
+
if ((t || n) && (!t || !n)) {
|
|
245
247
|
z.value && z.value.validateAllItems();
|
|
246
248
|
return;
|
|
247
249
|
}
|
|
248
|
-
t &&
|
|
250
|
+
t && n && v(
|
|
249
251
|
"addChecksum",
|
|
250
252
|
w.value,
|
|
251
253
|
U.value,
|
|
@@ -254,13 +256,13 @@ const vt = {
|
|
|
254
256
|
), ee.value = !1;
|
|
255
257
|
}
|
|
256
258
|
if (te.value) {
|
|
257
|
-
const t = typeof A.value == "string" ? A.value.trim() : "",
|
|
258
|
-
if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !
|
|
259
|
-
|
|
259
|
+
const t = typeof A.value == "string" ? A.value.trim() : "", n = typeof F.value == "string" ? F.value.trim() : "";
|
|
260
|
+
if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !n || // by- license without attribution
|
|
261
|
+
n && !t) {
|
|
260
262
|
M.value && M.value.validate();
|
|
261
263
|
return;
|
|
262
264
|
}
|
|
263
|
-
(t ||
|
|
265
|
+
(t || n) && v(
|
|
264
266
|
"addChangeLicense",
|
|
265
267
|
F.value,
|
|
266
268
|
A.value,
|
|
@@ -287,7 +289,7 @@ const vt = {
|
|
|
287
289
|
Je(
|
|
288
290
|
() => e.sections,
|
|
289
291
|
(a) => {
|
|
290
|
-
Array.isArray(a) && a.length > 0 && (I.value = a.map((t,
|
|
292
|
+
Array.isArray(a) && a.length > 0 && (I.value = a.map((t, n) => n === 0));
|
|
291
293
|
},
|
|
292
294
|
{ immediate: !0 }
|
|
293
295
|
);
|
|
@@ -310,9 +312,9 @@ const vt = {
|
|
|
310
312
|
} catch (m) {
|
|
311
313
|
console.error("Failed to load planned availability data", m);
|
|
312
314
|
}
|
|
313
|
-
const
|
|
315
|
+
const n = a.appContext.app.config.globalProperties.$i18n.locale;
|
|
314
316
|
try {
|
|
315
|
-
const m = await tt(t.api.baseUrl,
|
|
317
|
+
const m = await tt(t.api.baseUrl, n);
|
|
316
318
|
De.value = m.map((l) => ({
|
|
317
319
|
"@value": l.label,
|
|
318
320
|
label: l.label
|
|
@@ -330,7 +332,7 @@ const vt = {
|
|
|
330
332
|
}, ze = (a, t) => {
|
|
331
333
|
_.value[a] = t, O.value = !0;
|
|
332
334
|
}, Me = (a) => {
|
|
333
|
-
|
|
335
|
+
ue.value = a, H.value = !0;
|
|
334
336
|
}, Pe = (a) => {
|
|
335
337
|
me.value = a, N.value = !0;
|
|
336
338
|
}, $e = (a) => {
|
|
@@ -341,8 +343,8 @@ const vt = {
|
|
|
341
343
|
ve.value = a, Y.value = !0;
|
|
342
344
|
}, Oe = (a, t) => {
|
|
343
345
|
console.log(e.checksumURI), ee.value = !0, U.value = t, w.value = a;
|
|
344
|
-
}, He = (a, t,
|
|
345
|
-
console.log(a, t,
|
|
346
|
+
}, He = (a, t, n, m) => {
|
|
347
|
+
console.log(a, t, n, m), te.value = !0, A.value = t, F.value = a;
|
|
346
348
|
}, Ne = (a) => {
|
|
347
349
|
ye.value = a, G.value = !0;
|
|
348
350
|
}, de = (a, t) => {
|
|
@@ -364,47 +366,47 @@ const vt = {
|
|
|
364
366
|
}, Ze = () => {
|
|
365
367
|
ae.value = !1, Le.value = !1;
|
|
366
368
|
};
|
|
367
|
-
return (a, t) => (o(),
|
|
368
|
-
se.value ? (o(),
|
|
369
|
-
|
|
369
|
+
return (a, t) => (o(), c(D, null, [
|
|
370
|
+
se.value ? (o(), c("div", yt, [
|
|
371
|
+
u("div", {
|
|
370
372
|
class: S(["dpiV3_modalWrap", {
|
|
371
|
-
dpiV3_optionalInfo: e.optionalInfoView ||
|
|
373
|
+
dpiV3_optionalInfo: e.optionalInfoView || r.value.key === "foaf:page"
|
|
372
374
|
}])
|
|
373
375
|
}, [
|
|
374
|
-
|
|
376
|
+
u("div", {
|
|
375
377
|
class: S(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
|
|
376
378
|
}, [
|
|
377
|
-
|
|
378
|
-
|
|
379
|
+
u("div", ht, [
|
|
380
|
+
u("h2", {
|
|
379
381
|
class: S({ dpiV3_optionalInfoHeader: e.optionalInfoView })
|
|
380
382
|
}, h(e.headerText), 3),
|
|
381
|
-
y(
|
|
383
|
+
y(re, {
|
|
382
384
|
class: "dpiv3_modalCrossout",
|
|
383
385
|
onClick: le
|
|
384
386
|
})
|
|
385
387
|
]),
|
|
386
|
-
|
|
387
|
-
!e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(),
|
|
388
|
-
|
|
389
|
-
e.title ? (o(),
|
|
388
|
+
u("span", kt, h(e.text), 1),
|
|
389
|
+
!e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(), c("div", gt, [
|
|
390
|
+
u("div", bt, [
|
|
391
|
+
e.title ? (o(), c("a", {
|
|
390
392
|
key: 0,
|
|
391
393
|
href: e.distributionLink,
|
|
392
394
|
target: "_blank"
|
|
393
395
|
}, [
|
|
394
|
-
|
|
395
|
-
], 8,
|
|
396
|
-
e.distributionLink && !e.title ? (o(),
|
|
396
|
+
u("div", Vt, h(e.title), 1)
|
|
397
|
+
], 8, Tt)) : d("", !0),
|
|
398
|
+
e.distributionLink && !e.title ? (o(), c("a", {
|
|
397
399
|
key: 1,
|
|
398
400
|
href: e.distributionLink,
|
|
399
401
|
target: "_blank"
|
|
400
402
|
}, [
|
|
401
|
-
|
|
402
|
-
], 8,
|
|
403
|
-
e.format ? (o(),
|
|
403
|
+
u("div", It, h(e.distributionLink), 1)
|
|
404
|
+
], 8, _t)) : d("", !0),
|
|
405
|
+
e.format ? (o(), c("div", xt, h(e.format), 1)) : d("", !0)
|
|
404
406
|
])
|
|
405
407
|
])) : d("", !0)
|
|
406
408
|
], 2),
|
|
407
|
-
e.showButtons ? (o(),
|
|
409
|
+
e.showButtons ? (o(), c("div", Dt, [
|
|
408
410
|
y(Xe, {
|
|
409
411
|
buttonText: a.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
|
|
410
412
|
class: "dpiv3_modalCancelButton",
|
|
@@ -417,13 +419,13 @@ const vt = {
|
|
|
417
419
|
size: "large"
|
|
418
420
|
}, null, 8, ["buttonText"])
|
|
419
421
|
])) : d("", !0),
|
|
420
|
-
e.optionalInfoView ? (o(),
|
|
421
|
-
|
|
422
|
-
(o(!0),
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
422
|
+
e.optionalInfoView ? (o(), c("div", Lt, [
|
|
423
|
+
u("div", Ct, [
|
|
424
|
+
(o(!0), c(D, null, Ve(f.sections, (n, m) => (o(), c(D, { key: m }, [
|
|
425
|
+
u("div", wt, [
|
|
426
|
+
u("div", Ut, [
|
|
427
|
+
u("div", null, h(n.title), 1),
|
|
428
|
+
u("div", Ft, [
|
|
427
429
|
y(Ye, {
|
|
428
430
|
onClick: (l) => Ae(m),
|
|
429
431
|
expanded: !I.value[m]
|
|
@@ -431,142 +433,142 @@ const vt = {
|
|
|
431
433
|
])
|
|
432
434
|
])
|
|
433
435
|
]),
|
|
434
|
-
I.value[m] ? (o(!0),
|
|
435
|
-
t[4] || (t[4] =
|
|
436
|
-
|
|
436
|
+
I.value[m] ? (o(!0), c(D, { key: 0 }, Ve(n.items, (l, s) => (o(), c(D, { key: s }, [
|
|
437
|
+
t[4] || (t[4] = u("div", { class: "dpiV3_itemDivider" }, null, -1)),
|
|
438
|
+
u("div", {
|
|
437
439
|
class: "dpiV3_itemOptional",
|
|
438
440
|
onClick: (p) => Ue(m, s)
|
|
439
|
-
}, h(l), 9,
|
|
441
|
+
}, h(l), 9, At)
|
|
440
442
|
], 64))), 128)) : d("", !0),
|
|
441
|
-
m < f.sections.length - 1 ? (o(),
|
|
443
|
+
m < f.sections.length - 1 ? (o(), c("div", St)) : d("", !0)
|
|
442
444
|
], 64))), 128))
|
|
443
445
|
])
|
|
444
446
|
])) : d("", !0)
|
|
445
447
|
], 2)
|
|
446
448
|
])) : d("", !0),
|
|
447
|
-
|
|
448
|
-
|
|
449
|
+
r.value.key ? (o(), c("div", Rt, [
|
|
450
|
+
u("div", {
|
|
449
451
|
class: S(["dpiV3_modalWrap", {
|
|
450
|
-
dpiV3_removeOverflow:
|
|
452
|
+
dpiV3_removeOverflow: r.value.key === "dcatap:availability" || r.value.key === "dct:language" || r.value.key === "dcat:mediaType" || r.value.key === "dcat:compressFormat" || r.value.key === "dcat:packageFormat" || r.value.key === "spdx:checksum" || r.value.key === "adms:status"
|
|
451
453
|
}])
|
|
452
454
|
}, [
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
y(
|
|
455
|
+
u("div", qt, [
|
|
456
|
+
u("h2", null, h(r.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
|
|
457
|
+
y(re, {
|
|
456
458
|
class: "dpiv3_modalCrossout",
|
|
457
459
|
onClick: oe
|
|
458
460
|
})
|
|
459
461
|
]),
|
|
460
|
-
|
|
462
|
+
r.value.key === "dcatap:availability" ? (o(), c("p", Bt, h(a.$t(
|
|
461
463
|
"message.dataupload.datasets.dcat:distribution.modal.availability_paragraph"
|
|
462
464
|
)), 1)) : d("", !0),
|
|
463
|
-
|
|
465
|
+
r.value.key === "dcat:byteSize" ? (o(), c("p", zt, h(a.$t(
|
|
464
466
|
"message.dataupload.datasets.dcat:distribution.modal.byte-size-paragraph"
|
|
465
467
|
)), 1)) : d("", !0),
|
|
466
|
-
|
|
468
|
+
r.value.key === "foaf:page" ? (o(), c("p", Mt, h(a.$t(
|
|
467
469
|
"message.dataupload.datasets.dcat:distribution.modal.documentation-paragraph"
|
|
468
470
|
)), 1)) : d("", !0),
|
|
469
|
-
|
|
471
|
+
r.value.key === "dct:modified" ? (o(), c("div", Pt, [
|
|
470
472
|
y(it, {
|
|
471
473
|
modelValue: f.modifiedDate,
|
|
472
474
|
onAddModifiedDate: Me
|
|
473
475
|
}, null, 8, ["modelValue"])
|
|
474
476
|
])) : d("", !0),
|
|
475
|
-
|
|
477
|
+
r.value.key === "dct:issued" ? (o(), c("div", $t, [
|
|
476
478
|
y(dt, {
|
|
477
479
|
modelValue: f.issuedDate,
|
|
478
|
-
labelText:
|
|
480
|
+
labelText: r.value.text + " (optional)",
|
|
479
481
|
onAddIssuedDate: Pe
|
|
480
482
|
}, null, 8, ["modelValue", "labelText"])
|
|
481
483
|
])) : d("", !0),
|
|
482
|
-
|
|
484
|
+
r.value.key === "dct:description" ? (o(), c("div", Wt, [
|
|
483
485
|
y(st, {
|
|
484
486
|
onAddDescription: $e,
|
|
485
487
|
descriptionText: f.descriptionText
|
|
486
488
|
}, null, 8, ["descriptionText"])
|
|
487
489
|
])) : d("", !0),
|
|
488
|
-
|
|
490
|
+
r.value.key === "foaf:page" ? (o(), c("div", Et, [
|
|
489
491
|
y(at, {
|
|
490
492
|
ref_key: "documentationsV3Ref",
|
|
491
493
|
ref: q,
|
|
492
494
|
documentations: b.value[e.distributionId] || [],
|
|
493
495
|
fileTypes: f.fileTypes,
|
|
494
|
-
onUpdate: t[0] || (t[0] = (
|
|
496
|
+
onUpdate: t[0] || (t[0] = (n) => Re(e.distributionId, n)),
|
|
495
497
|
distributionId: e.distributionId
|
|
496
498
|
}, null, 8, ["documentations", "fileTypes", "distributionId"])
|
|
497
499
|
])) : d("", !0),
|
|
498
|
-
|
|
500
|
+
r.value.key === "dcat:accessService" ? (o(), c("div", Ot, [
|
|
499
501
|
y(pt, {
|
|
500
502
|
ref_key: "accessServiceV3Ref",
|
|
501
503
|
ref: B,
|
|
502
504
|
accessServices: T.value[e.distributionId] || [],
|
|
503
|
-
onUpdate: t[1] || (t[1] = (
|
|
505
|
+
onUpdate: t[1] || (t[1] = (n) => qe(e.distributionId, n)),
|
|
504
506
|
distributionId: e.distributionId
|
|
505
507
|
}, null, 8, ["accessServices", "distributionId"])
|
|
506
508
|
])) : d("", !0),
|
|
507
|
-
|
|
509
|
+
r.value.key === "dcat:byteSize" ? (o(), g(lt, {
|
|
508
510
|
key: 8,
|
|
509
511
|
byteSizeProp: f.byteSizeText,
|
|
510
512
|
onAddByteSize: je
|
|
511
513
|
}, null, 8, ["byteSizeProp"])) : d("", !0),
|
|
512
|
-
|
|
514
|
+
r.value.key === "dcatap:availability" ? (o(), g(ot, {
|
|
513
515
|
key: 9,
|
|
514
516
|
availabilityText: f.availabilityText,
|
|
515
517
|
onAddAvailability: We
|
|
516
518
|
}, null, 8, ["availabilityText"])) : d("", !0),
|
|
517
|
-
|
|
519
|
+
r.value.key === "dct:language" ? (o(), g(rt, {
|
|
518
520
|
key: 10,
|
|
519
521
|
languageText: f.languageText,
|
|
520
522
|
distributionId: f.distributionId,
|
|
521
523
|
onAddLanguage: Ne
|
|
522
524
|
}, null, 8, ["languageText", "distributionId"])) : d("", !0),
|
|
523
|
-
|
|
524
|
-
y(
|
|
525
|
+
r.value.key === "dct:conformsTo" ? (o(), c("div", Ht, [
|
|
526
|
+
y(ut, {
|
|
525
527
|
ref_key: "conformsToV3Ref",
|
|
526
528
|
ref: R,
|
|
527
529
|
conformsToItems: V.value[e.distributionId] || [],
|
|
528
|
-
onUpdate: t[2] || (t[2] = (
|
|
530
|
+
onUpdate: t[2] || (t[2] = (n) => Be(e.distributionId, n)),
|
|
529
531
|
asCard: !1,
|
|
530
532
|
distributionId: e.distributionId
|
|
531
533
|
}, null, 8, ["conformsToItems", "distributionId"])
|
|
532
534
|
])) : d("", !0),
|
|
533
|
-
|
|
535
|
+
r.value.key === "odrl:hasPolicy" ? (o(), c("div", Nt, [
|
|
534
536
|
y(mt, {
|
|
535
537
|
ref_key: "policyV3Ref",
|
|
536
538
|
ref: P,
|
|
537
539
|
policyItems: _.value[e.distributionId] || [],
|
|
538
|
-
onUpdate: t[3] || (t[3] = (
|
|
540
|
+
onUpdate: t[3] || (t[3] = (n) => ze(e.distributionId, n)),
|
|
539
541
|
asCard: !1,
|
|
540
542
|
distributionId: e.distributionId
|
|
541
543
|
}, null, 8, ["policyItems", "distributionId"])
|
|
542
544
|
])) : d("", !0),
|
|
543
|
-
|
|
545
|
+
r.value.key === "dcat:mediaType" ? (o(), g(ne, {
|
|
544
546
|
key: 13,
|
|
545
547
|
onAddMediaType: de,
|
|
546
548
|
fileTypes: f.fileTypes,
|
|
547
549
|
fileFormatType: "dcat:mediaType",
|
|
548
550
|
fileFormatText: f.mediaTypeText
|
|
549
551
|
}, null, 8, ["fileTypes", "fileFormatText"])) : d("", !0),
|
|
550
|
-
|
|
552
|
+
r.value.key === "dcat:compressFormat" ? (o(), g(ne, {
|
|
551
553
|
key: 14,
|
|
552
554
|
onAddCompressFormat: de,
|
|
553
555
|
fileTypes: f.fileTypes,
|
|
554
556
|
fileFormatType: "dcat:compressFormat",
|
|
555
557
|
compressFormatText: f.compressFormatText
|
|
556
558
|
}, null, 8, ["fileTypes", "compressFormatText"])) : d("", !0),
|
|
557
|
-
|
|
559
|
+
r.value.key === "dcat:packageFormat" ? (o(), g(ne, {
|
|
558
560
|
key: 15,
|
|
559
561
|
onAddPackageFormat: de,
|
|
560
562
|
fileTypes: f.fileTypes,
|
|
561
563
|
fileFormatType: "dcat:packageFormat",
|
|
562
564
|
packageFormatText: f.packageFormatText
|
|
563
565
|
}, null, 8, ["fileTypes", "packageFormatText"])) : d("", !0),
|
|
564
|
-
|
|
566
|
+
r.value.key === "adms:status" ? (o(), g(nt, {
|
|
565
567
|
key: 16,
|
|
566
568
|
statusText: f.statusText,
|
|
567
569
|
onAddStatus: Ee
|
|
568
570
|
}, null, 8, ["statusText"])) : d("", !0),
|
|
569
|
-
|
|
571
|
+
r.value.key === "spdx:checksum" ? (o(), g(ct, {
|
|
570
572
|
key: 17,
|
|
571
573
|
ref_key: "checksumV3Ref",
|
|
572
574
|
ref: z,
|
|
@@ -574,7 +576,7 @@ const vt = {
|
|
|
574
576
|
checksumText: f.checksumText,
|
|
575
577
|
checksumDropdownText: f.checksumDropdownText
|
|
576
578
|
}, null, 8, ["checksumText", "checksumDropdownText"])) : d("", !0),
|
|
577
|
-
|
|
579
|
+
r.value.key === "dcterms:license" ? (o(), g(ft, {
|
|
578
580
|
key: 18,
|
|
579
581
|
ref_key: "changeLicenseV3Ref",
|
|
580
582
|
ref: M,
|
|
@@ -582,7 +584,7 @@ const vt = {
|
|
|
582
584
|
changeLicenseText: f.changeLicenseText,
|
|
583
585
|
changeLicenseDropdownText: f.changeLicenseDropdownText
|
|
584
586
|
}, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : d("", !0),
|
|
585
|
-
|
|
587
|
+
u("div", jt, [
|
|
586
588
|
y(L, {
|
|
587
589
|
onClick: oe,
|
|
588
590
|
buttonText: "Zurück",
|
|
@@ -598,26 +600,26 @@ const vt = {
|
|
|
598
600
|
])
|
|
599
601
|
], 2)
|
|
600
602
|
])) : d("", !0),
|
|
601
|
-
ae.value ? (o(),
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
t[5] || (t[5] =
|
|
605
|
-
y(
|
|
603
|
+
ae.value ? (o(), c("div", Zt, [
|
|
604
|
+
u("div", Gt, [
|
|
605
|
+
u("div", Jt, [
|
|
606
|
+
t[5] || (t[5] = u("h2", null, "Dokumentation löschen", -1)),
|
|
607
|
+
y(re, {
|
|
606
608
|
class: "dpiv3_modalCrossout",
|
|
607
609
|
onClick: Te
|
|
608
610
|
})
|
|
609
611
|
]),
|
|
610
|
-
t[6] || (t[6] =
|
|
611
|
-
|
|
612
|
+
t[6] || (t[6] = u("div", { class: "dpiV3_modalContent" }, [
|
|
613
|
+
u("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
|
|
612
614
|
], -1)),
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
C.value ? (o(),
|
|
616
|
-
ie.value && C.value === "" ? (o(),
|
|
617
|
-
ie.value === "" && C.value === "" ? (o(),
|
|
615
|
+
u("div", Kt, [
|
|
616
|
+
u("div", Qt, [
|
|
617
|
+
C.value ? (o(), c("div", Xt, h(C.value), 1)) : d("", !0),
|
|
618
|
+
ie.value && C.value === "" ? (o(), c("div", Yt, h(ie.value), 1)) : d("", !0),
|
|
619
|
+
ie.value === "" && C.value === "" ? (o(), c("div", ea, " Es wurde keine URL angegeben! ")) : d("", !0)
|
|
618
620
|
])
|
|
619
621
|
]),
|
|
620
|
-
|
|
622
|
+
u("div", ta, [
|
|
621
623
|
y(L, {
|
|
622
624
|
onClick: Te,
|
|
623
625
|
buttonText: "Abbrechen",
|
|
@@ -634,7 +636,7 @@ const vt = {
|
|
|
634
636
|
])) : d("", !0)
|
|
635
637
|
], 64));
|
|
636
638
|
}
|
|
637
|
-
};
|
|
639
|
+
}, Da = /* @__PURE__ */ vt(aa, [["__scopeId", "data-v-e69e9437"]]);
|
|
638
640
|
export {
|
|
639
|
-
|
|
641
|
+
Da as default
|
|
640
642
|
};
|