@piveau/dpi 0.1.0-beta.68 → 0.1.0-beta.69
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,100 +1,100 @@
|
|
|
1
|
-
import { ref as v, computed as
|
|
1
|
+
import { ref as v, computed as Ce, toRef as ut, onUnmounted as mt, onMounted as ft, getCurrentInstance as pt, watch as vt, createElementBlock as f, openBlock as r, Fragment as ee, createElementVNode as m, createBlock as te, createCommentVNode as p, toDisplayString as E, renderList as Se, unref as U, createVNode as u, withDirectives as ht, vShow as gt, normalizeClass as yt } from "vue";
|
|
2
2
|
import "@formkit/core";
|
|
3
3
|
import { PhWarning as O } from "@phosphor-icons/vue";
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useStore as
|
|
6
|
-
import { useEditModeInfo as
|
|
7
|
-
import { useFormValues as
|
|
4
|
+
import { useI18n as kt } from "vue-i18n";
|
|
5
|
+
import { useStore as xt } from "vuex";
|
|
6
|
+
import { useEditModeInfo as wt } from "../composables/useDpiEditMode.js";
|
|
7
|
+
import { useFormValues as bt } from "../composables/useDpiFormValues.js";
|
|
8
8
|
import W from "../config/dcatapdeHappyFlow/page-content-config.js";
|
|
9
|
-
import { getLicenses as
|
|
10
|
-
import { eventBus as
|
|
9
|
+
import { getLicenses as _t, getFileTypes as Dt, getFormatTypes as Tt, getChecksumAlgorithms as It, getPlannedAvailability as Lt, getLanguages as Ut } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
10
|
+
import { eventBus as Ae } from "../HappyFlowComponents/services/eventBus.js";
|
|
11
11
|
import j from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
12
|
-
import
|
|
12
|
+
import Vt from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
13
13
|
import ae from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
14
|
+
import Rt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
15
|
+
import Ct from "../HappyFlowComponents/ui/ModalV3.vue.js";
|
|
16
|
+
import St from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
|
|
17
|
+
import At from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
|
|
18
|
+
import Ft from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
|
|
19
|
+
import $t from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
|
|
20
|
+
import Et from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
|
|
21
|
+
import Mt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
|
|
22
|
+
import Bt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
|
|
23
|
+
import zt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
|
|
24
24
|
import oe from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
25
|
+
import Pt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
|
|
26
|
+
import Nt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
|
|
27
|
+
import Ot from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
|
|
28
|
+
import Wt from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
|
|
29
|
+
import jt from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
|
|
30
30
|
import M from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
31
31
|
import "zod/v4/locales";
|
|
32
32
|
/* empty css */
|
|
33
|
-
import
|
|
34
|
-
const
|
|
33
|
+
import Ht from "../../_virtual/_plugin-vue_export-helper.js";
|
|
34
|
+
const Jt = { class: "dpiV3InnerComponentWrap" }, Kt = { key: 0 }, qt = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "copy-large-regular"
|
|
37
|
-
},
|
|
37
|
+
}, Gt = { class: "dpiV3_LinkAndMetadata input-container" }, Qt = { style: { position: "relative", width: "100%" } }, Xt = {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "validation-error"
|
|
40
|
-
},
|
|
40
|
+
}, Yt = { class: "copy-mini-regular" }, Zt = { style: { position: "relative", width: "100%" } }, ea = {
|
|
41
41
|
key: 0,
|
|
42
42
|
class: "validation-error"
|
|
43
|
-
},
|
|
43
|
+
}, ta = { class: "copy-mini-regular" }, aa = {
|
|
44
44
|
key: 0,
|
|
45
45
|
class: "dpiV3_DocumentationsInDistr"
|
|
46
|
-
},
|
|
46
|
+
}, oa = { class: "dpiV3_TitleDelete" }, sa = { class: "dpiV3_documentationContents" }, ia = { class: "dpiV3_Documentation" }, la = {
|
|
47
47
|
key: 1,
|
|
48
48
|
class: "dpiV3_DocumentationsInDistr"
|
|
49
|
-
},
|
|
49
|
+
}, na = { class: "dpiV3_TitleDelete" }, da = { class: "dpiV3_documentationContents" }, ca = { class: "dpiV3_Documentation" }, ra = { class: "dpiV3_TitleDelete" }, ua = { key: 0 }, ma = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, fa = {
|
|
50
50
|
key: 0,
|
|
51
51
|
class: "validation-error"
|
|
52
|
-
},
|
|
52
|
+
}, pa = { class: "copy-mini-regular" }, va = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "dpiV3_tempAddMore"
|
|
55
|
-
},
|
|
55
|
+
}, ha = {
|
|
56
56
|
key: 2,
|
|
57
57
|
class: "dpiV3_modified dpiV3_label"
|
|
58
|
-
},
|
|
58
|
+
}, ga = {
|
|
59
59
|
key: 3,
|
|
60
60
|
class: "dpiV3_modified dpiV3_label"
|
|
61
|
-
},
|
|
61
|
+
}, ya = { class: "dpiV3_modified dpiV3_label" }, ka = {
|
|
62
62
|
key: 4,
|
|
63
63
|
class: "dpiV3_modified dpiV3_label"
|
|
64
|
-
},
|
|
64
|
+
}, xa = {
|
|
65
65
|
key: 5,
|
|
66
66
|
class: "dpiV3_modified dpiV3_label"
|
|
67
|
-
},
|
|
67
|
+
}, wa = {
|
|
68
68
|
key: 6,
|
|
69
69
|
class: "dpiV3_modified dpiV3_label"
|
|
70
|
-
},
|
|
70
|
+
}, ba = {
|
|
71
71
|
key: 7,
|
|
72
72
|
class: "dpiV3_modified dpiV3_label"
|
|
73
|
-
},
|
|
73
|
+
}, _a = {
|
|
74
74
|
key: 8,
|
|
75
75
|
class: "dpiV3_DocumentationsInDistr"
|
|
76
|
-
},
|
|
76
|
+
}, Da = { class: "dpiV3_TitleDelete" }, Ta = {
|
|
77
77
|
key: 9,
|
|
78
78
|
class: "dpiV3_DocumentationsInDistr"
|
|
79
|
-
},
|
|
79
|
+
}, Ia = { class: "dpiV3_TitleDelete" }, La = {
|
|
80
80
|
key: 10,
|
|
81
81
|
class: "dpiV3_modified dpiV3_label"
|
|
82
|
-
},
|
|
82
|
+
}, Ua = {
|
|
83
83
|
key: 11,
|
|
84
84
|
class: "dpiV3_modified dpiV3_label"
|
|
85
|
-
},
|
|
85
|
+
}, Va = {
|
|
86
86
|
key: 12,
|
|
87
87
|
class: "dpiV3_modified dpiV3_label"
|
|
88
|
-
},
|
|
88
|
+
}, Ra = {
|
|
89
89
|
key: 13,
|
|
90
90
|
class: "dpiV3_modified dpiV3_label"
|
|
91
|
-
},
|
|
91
|
+
}, Ca = {
|
|
92
92
|
key: 14,
|
|
93
93
|
class: "dpiV3_modified dpiV3_label"
|
|
94
|
-
},
|
|
94
|
+
}, Sa = {
|
|
95
95
|
key: 15,
|
|
96
96
|
class: "copy-mini-regular dpiV3_text_error"
|
|
97
|
-
},
|
|
97
|
+
}, Aa = { class: "dpiV3_CTA-Distribution" }, Fa = { class: "dpiV3_tempAddMore" }, $a = {
|
|
98
98
|
__name: "DistributionSimplePage",
|
|
99
99
|
props: {
|
|
100
100
|
context: Object,
|
|
@@ -102,7 +102,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
102
102
|
},
|
|
103
103
|
setup(S) {
|
|
104
104
|
var we, be, _e;
|
|
105
|
-
const I = S, { isEditMode: se } =
|
|
105
|
+
const I = S, { isEditMode: se } = wt(), { t: V } = kt(), _ = v(null), Fe = {
|
|
106
106
|
isValid: "unset",
|
|
107
107
|
id: 1,
|
|
108
108
|
"dcat:accessURL": "",
|
|
@@ -134,13 +134,13 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
134
134
|
title: "",
|
|
135
135
|
"dcterms:license": ""
|
|
136
136
|
}
|
|
137
|
-
}, { formValues: L } =
|
|
137
|
+
}, { formValues: L } = bt(), i = Ce(
|
|
138
138
|
() => se.value || I.inRap
|
|
139
|
-
).value ?
|
|
139
|
+
).value ? ut((we = L.value.DistributionSimple) == null ? void 0 : we["dcat:distribution"]) : v([Fe]);
|
|
140
140
|
i.value[0]["dcat:downloadURL"] || (console.log(i["dcat:downloadURL"], i), i.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
|
|
141
141
|
const l = v({}), A = v({}), ie = v([]), B = v(!1), H = v(!1), b = v(0), D = v([]), w = v([]), le = v([]), J = v([]), ne = v([]);
|
|
142
142
|
v([...D.value]);
|
|
143
|
-
const z = v([...w.value]),
|
|
143
|
+
const z = v([...w.value]), $e = xt(), K = v(null);
|
|
144
144
|
v(null);
|
|
145
145
|
const q = v(!1), de = v(!1), F = v(!1), ce = v(!0);
|
|
146
146
|
for (let a = 0; a < i.value.length; a++)
|
|
@@ -148,7 +148,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
148
148
|
de.value = !1;
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function Ee() {
|
|
152
152
|
ie.value = [
|
|
153
153
|
{
|
|
154
154
|
title: V(
|
|
@@ -231,26 +231,26 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
231
231
|
function R(a) {
|
|
232
232
|
return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
mt(() => {
|
|
235
|
+
Ae.off("nextClicked", re), _.value && clearTimeout(_.value);
|
|
236
236
|
});
|
|
237
237
|
let ue = v([]);
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
const a =
|
|
238
|
+
ft(async () => {
|
|
239
|
+
Ae.on("nextClicked", re);
|
|
240
|
+
const a = pt(), t = a.appContext.app.config.globalProperties.$env;
|
|
241
241
|
if (a) {
|
|
242
242
|
const e = a.appContext.app.config.globalProperties.$env;
|
|
243
243
|
K.value = e.content.dataProviderInterface.specification;
|
|
244
244
|
} else
|
|
245
245
|
console.log("Instance is null!");
|
|
246
246
|
try {
|
|
247
|
-
const e = await
|
|
247
|
+
const e = await _t(t.api.baseUrl);
|
|
248
248
|
ue.value = e.map((s) => ({
|
|
249
249
|
uri: s.uri,
|
|
250
250
|
"@value": s.value,
|
|
251
251
|
label: s.label
|
|
252
252
|
}));
|
|
253
|
-
const o = await
|
|
253
|
+
const o = await Dt(t.api.baseUrl);
|
|
254
254
|
D.value = o.results.map((s) => ({
|
|
255
255
|
"@value": s.pref_label.en,
|
|
256
256
|
uri: s.resource,
|
|
@@ -260,7 +260,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
260
260
|
error.value = e;
|
|
261
261
|
}
|
|
262
262
|
try {
|
|
263
|
-
const e = await
|
|
263
|
+
const e = await Tt(t.api.baseUrl);
|
|
264
264
|
w.value = e.results.map((o) => ({
|
|
265
265
|
"@value": o.pref_label.en,
|
|
266
266
|
uri: o.resource,
|
|
@@ -270,18 +270,18 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
270
270
|
error.value = e;
|
|
271
271
|
}
|
|
272
272
|
try {
|
|
273
|
-
const e = await
|
|
273
|
+
const e = await It(t.api.baseUrl);
|
|
274
274
|
le.value = e;
|
|
275
|
-
const o = await
|
|
275
|
+
const o = await Lt(t.api.baseUrl);
|
|
276
276
|
J.value = o;
|
|
277
|
-
const s = await
|
|
277
|
+
const s = await Ut(t.api.baseUrl);
|
|
278
278
|
ne.value = s;
|
|
279
279
|
} catch (e) {
|
|
280
280
|
console.log(e);
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
Ee();
|
|
283
283
|
});
|
|
284
|
-
function
|
|
284
|
+
function Me(a, t) {
|
|
285
285
|
const e = i.value.find((s) => s.id === t);
|
|
286
286
|
if (!e) return;
|
|
287
287
|
let o = w.value.find((s) => s["@value"] === a).uri || "";
|
|
@@ -351,7 +351,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
351
351
|
else
|
|
352
352
|
console.warn(`No matching distribution found for ID ${e}.`);
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Be(a) {
|
|
355
355
|
k(
|
|
356
356
|
a,
|
|
357
357
|
"Konform zu Standard",
|
|
@@ -360,7 +360,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
360
360
|
!0
|
|
361
361
|
);
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function ze(a) {
|
|
364
364
|
k(
|
|
365
365
|
a,
|
|
366
366
|
"Verfügbarkeit",
|
|
@@ -369,7 +369,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
369
369
|
!1
|
|
370
370
|
);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function Pe(a) {
|
|
373
373
|
k(
|
|
374
374
|
a,
|
|
375
375
|
"Status",
|
|
@@ -378,7 +378,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
378
378
|
!1
|
|
379
379
|
);
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function Ne(a) {
|
|
382
382
|
k(
|
|
383
383
|
a,
|
|
384
384
|
"Größe in Bytes",
|
|
@@ -387,7 +387,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
387
387
|
!1
|
|
388
388
|
);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Oe(a) {
|
|
391
391
|
k(
|
|
392
392
|
a,
|
|
393
393
|
"Sprache",
|
|
@@ -399,7 +399,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
399
399
|
function X(a, t) {
|
|
400
400
|
k(t, a, a, !0, !1);
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function We(a) {
|
|
403
403
|
k(
|
|
404
404
|
a,
|
|
405
405
|
"Regelwerk",
|
|
@@ -408,7 +408,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
408
408
|
!0
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function je(a) {
|
|
412
412
|
k(
|
|
413
413
|
a,
|
|
414
414
|
"Dokumentation",
|
|
@@ -417,7 +417,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
417
417
|
!0
|
|
418
418
|
);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function He(a) {
|
|
421
421
|
k(
|
|
422
422
|
a,
|
|
423
423
|
"Ausliefernder Datenservice",
|
|
@@ -426,14 +426,14 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
426
426
|
!0
|
|
427
427
|
);
|
|
428
428
|
}
|
|
429
|
-
function
|
|
429
|
+
function Je(a, t, e) {
|
|
430
430
|
const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
|
|
431
431
|
s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
|
|
432
432
|
const n = a.trim();
|
|
433
433
|
n === "" || R(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), Q(!0);
|
|
434
434
|
}, 800);
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Ke(a) {
|
|
437
437
|
k(
|
|
438
438
|
a,
|
|
439
439
|
"Aktualisierungsdatum",
|
|
@@ -441,7 +441,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
441
441
|
!1
|
|
442
442
|
);
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function qe(a) {
|
|
445
445
|
k(
|
|
446
446
|
a,
|
|
447
447
|
"Veröffentlichungsdatum",
|
|
@@ -449,7 +449,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
449
449
|
!1
|
|
450
450
|
);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Ge(a) {
|
|
453
453
|
k(
|
|
454
454
|
a,
|
|
455
455
|
"Beschreibung",
|
|
@@ -457,10 +457,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
457
457
|
!0
|
|
458
458
|
);
|
|
459
459
|
}
|
|
460
|
-
const
|
|
461
|
-
|
|
460
|
+
const Qe = Ce(() => K.value ? $e.getters["dpiStore/getNavSteps"](K.value) : {});
|
|
461
|
+
vt(Qe, (a) => {
|
|
462
462
|
}), se.value || I.context.node.input([{ isValid: "unset" }]);
|
|
463
|
-
function
|
|
463
|
+
function Xe() {
|
|
464
464
|
const a = Date.now();
|
|
465
465
|
i.value.push({
|
|
466
466
|
isValid: "unset",
|
|
@@ -496,7 +496,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
496
496
|
}
|
|
497
497
|
}), G(a);
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function Ye(a, t) {
|
|
500
500
|
const e = i.value.find((o) => o.id === a);
|
|
501
501
|
if (!e) {
|
|
502
502
|
console.error(`Distribution with ID ${a} not found`);
|
|
@@ -530,7 +530,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Ze(a, t) {
|
|
534
534
|
const e = i.value.find((o) => o.id === a);
|
|
535
535
|
if (!e) {
|
|
536
536
|
console.error(`Distribution with ID ${a} not found`);
|
|
@@ -567,7 +567,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
function
|
|
570
|
+
function et(a, t) {
|
|
571
571
|
var o;
|
|
572
572
|
const e = i.value.find((s) => s.id === a);
|
|
573
573
|
if (!e) {
|
|
@@ -599,9 +599,9 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function tt(a, t) {
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function at(a) {
|
|
605
605
|
if (a === "deleteDataset" && b.value !== null) {
|
|
606
606
|
if (i.value.length === 1) {
|
|
607
607
|
q.value = !0;
|
|
@@ -612,7 +612,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
612
612
|
), q.value = !1, b.value = null, G();
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function ot(a) {
|
|
616
616
|
const t = JSON.parse(a), e = i.value.find(
|
|
617
617
|
(o) => o.id === t.distributionId
|
|
618
618
|
);
|
|
@@ -622,7 +622,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
622
622
|
}
|
|
623
623
|
t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function st(a) {
|
|
626
626
|
var e, o, s, n, c;
|
|
627
627
|
b.value = a;
|
|
628
628
|
const t = i.value.find((g) => g.id === a);
|
|
@@ -658,10 +658,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
658
658
|
downloadURL: (t == null ? void 0 : t.downloadURL) || []
|
|
659
659
|
}, B.value = !0, document.body.style.overflow = "hidden");
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function it() {
|
|
662
662
|
B.value = !1, document.body.style.overflow = "auto";
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function lt(a) {
|
|
665
665
|
b.value = a;
|
|
666
666
|
const t = i.value.find((n) => n.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
|
|
667
667
|
l.value = {
|
|
@@ -720,42 +720,42 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
720
720
|
} else
|
|
721
721
|
o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, P(o, t);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function nt(a, t) {
|
|
724
724
|
const e = i.value.find((o) => o.id === a);
|
|
725
725
|
e.documentations = e.documentations.filter(
|
|
726
726
|
(o) => t.some((s) => s.id === o.id)
|
|
727
727
|
);
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function dt(a, t) {
|
|
730
730
|
const e = i.value.find((o) => o.id === a);
|
|
731
731
|
e.accessServices = e.accessServices.filter(
|
|
732
732
|
(o) => t.some((s) => s.id === o.id)
|
|
733
733
|
);
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function ct(a, t) {
|
|
736
736
|
const e = i.value.find((o) => o.id === a);
|
|
737
737
|
e.conformsToItems = e.conformsToItems.filter(
|
|
738
738
|
(o) => t.some((s) => s.id === o.id)
|
|
739
739
|
);
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function rt(a, t) {
|
|
742
742
|
const e = i.value.find((o) => o.id === a);
|
|
743
743
|
e.policyItems = e.policyItems.filter(
|
|
744
744
|
(o) => t.some((s) => s.id === o.id)
|
|
745
745
|
);
|
|
746
746
|
}
|
|
747
747
|
return (a, t) => (r(), f(ee, null, [
|
|
748
|
-
m("div",
|
|
749
|
-
S.inRap ? p("", !0) : (r(), f("h4",
|
|
750
|
-
S.inRap ? p("", !0) : (r(), f("div",
|
|
751
|
-
(r(!0), f(ee, null,
|
|
752
|
-
var s, n, c, g, h, x, y, T, $, De, Te, Ie;
|
|
748
|
+
m("div", Jt, [
|
|
749
|
+
S.inRap ? p("", !0) : (r(), f("h4", Kt, E(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
|
|
750
|
+
S.inRap ? p("", !0) : (r(), f("div", qt, E(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
|
|
751
|
+
(r(!0), f(ee, null, Se(U(i), (e, o) => {
|
|
752
|
+
var s, n, c, g, h, x, y, T, $, De, Te, Ie, Le, Ue, Ve, Re;
|
|
753
753
|
return r(), f("div", {
|
|
754
754
|
key: e.id,
|
|
755
755
|
class: "dpiV3AutoCompleteWrap"
|
|
756
756
|
}, [
|
|
757
|
-
m("div",
|
|
758
|
-
m("div",
|
|
757
|
+
m("div", Gt, [
|
|
758
|
+
m("div", Qt, [
|
|
759
759
|
u(ae, {
|
|
760
760
|
"add-on-text": !1,
|
|
761
761
|
datePicker: !1,
|
|
@@ -776,16 +776,16 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
776
776
|
"model-value": e["dcat:accessURL"],
|
|
777
777
|
onInput: (d) => Y(d, "dcat:accessURL", e.id)
|
|
778
778
|
}, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
|
|
779
|
-
e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div",
|
|
779
|
+
e.showErrorDownloadURL && e.urlErrorMessage ? (r(), f("div", Xt, [
|
|
780
780
|
u(U(O), {
|
|
781
781
|
size: 16,
|
|
782
782
|
weight: "fill"
|
|
783
783
|
}),
|
|
784
|
-
m("span",
|
|
784
|
+
m("span", Yt, E(e.urlErrorMessage), 1)
|
|
785
785
|
])) : p("", !0)
|
|
786
786
|
]),
|
|
787
|
-
m("div",
|
|
788
|
-
u(
|
|
787
|
+
m("div", Zt, [
|
|
788
|
+
u(Vt, {
|
|
789
789
|
"dropdown-width": "large",
|
|
790
790
|
type: "inputField",
|
|
791
791
|
"input-field-props": {
|
|
@@ -809,15 +809,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
809
809
|
data: z.value,
|
|
810
810
|
autocomplete: !0,
|
|
811
811
|
onInput: (d) => Y(d, "dct:format", e.id),
|
|
812
|
-
"onUpdate:modelValue": (d) =>
|
|
812
|
+
"onUpdate:modelValue": (d) => Me(d, e.id),
|
|
813
813
|
"model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
|
|
814
814
|
}, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
|
|
815
|
-
e.showErrorFormat && e.formatErrorMessage ? (r(), f("div",
|
|
815
|
+
e.showErrorFormat && e.formatErrorMessage ? (r(), f("div", ea, [
|
|
816
816
|
u(U(O), {
|
|
817
817
|
size: 16,
|
|
818
818
|
weight: "fill"
|
|
819
819
|
}),
|
|
820
|
-
m("span",
|
|
820
|
+
m("span", ta, E(e.formatErrorMessage), 1)
|
|
821
821
|
])) : p("", !0)
|
|
822
822
|
]),
|
|
823
823
|
u(ae, {
|
|
@@ -838,47 +838,47 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
838
838
|
"show-end-icon": !1,
|
|
839
839
|
onInput: (d) => Y(d, "dct:title", e.id)
|
|
840
840
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
|
|
841
|
-
(e.documentations || []).length > 0 ? (r(), f("div",
|
|
842
|
-
m("div",
|
|
841
|
+
(e.documentations || []).length > 0 ? (r(), f("div", aa, [
|
|
842
|
+
m("div", oa, [
|
|
843
843
|
t[6] || (t[6] = m("div", null, "Dokumentation (optional)", -1)),
|
|
844
844
|
m("div", null, [
|
|
845
845
|
u(M, {
|
|
846
846
|
"button-text": "löschen",
|
|
847
|
-
onClick: (d) =>
|
|
847
|
+
onClick: (d) => je(e.id)
|
|
848
848
|
}, null, 8, ["onClick"])
|
|
849
849
|
])
|
|
850
850
|
]),
|
|
851
|
-
m("div",
|
|
852
|
-
m("div",
|
|
853
|
-
u(
|
|
851
|
+
m("div", sa, [
|
|
852
|
+
m("div", ia, [
|
|
853
|
+
u(zt, {
|
|
854
854
|
documentations: e.documentations,
|
|
855
855
|
"file-types": D.value,
|
|
856
856
|
"distribution-id": e.id,
|
|
857
857
|
"as-card": !0,
|
|
858
858
|
"show-delete-button": !0,
|
|
859
|
-
onUpdate: (d) =>
|
|
859
|
+
onUpdate: (d) => nt(e.id, d)
|
|
860
860
|
}, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
|
|
861
861
|
])
|
|
862
862
|
])
|
|
863
863
|
])) : p("", !0),
|
|
864
|
-
(e.accessServices || []).length > 0 ? (r(), f("div",
|
|
865
|
-
m("div",
|
|
864
|
+
(e.accessServices || []).length > 0 ? (r(), f("div", la, [
|
|
865
|
+
m("div", na, [
|
|
866
866
|
t[7] || (t[7] = m("div", null, "Ausliefernder Datenservice (optional)", -1)),
|
|
867
867
|
m("div", null, [
|
|
868
868
|
u(M, {
|
|
869
869
|
"button-text": "löschen",
|
|
870
|
-
onClick: (d) =>
|
|
870
|
+
onClick: (d) => He(e.id)
|
|
871
871
|
}, null, 8, ["onClick"])
|
|
872
872
|
])
|
|
873
873
|
]),
|
|
874
|
-
m("div",
|
|
875
|
-
m("div",
|
|
876
|
-
u(
|
|
874
|
+
m("div", da, [
|
|
875
|
+
m("div", ca, [
|
|
876
|
+
u(St, {
|
|
877
877
|
"access-services": e.accessServices,
|
|
878
878
|
"distribution-id": e.id,
|
|
879
879
|
"as-card": !0,
|
|
880
880
|
"show-delete-button": !0,
|
|
881
|
-
onUpdate: (d) =>
|
|
881
|
+
onUpdate: (d) => dt(
|
|
882
882
|
e.id,
|
|
883
883
|
d
|
|
884
884
|
)
|
|
@@ -886,26 +886,26 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
886
886
|
])
|
|
887
887
|
])
|
|
888
888
|
])) : p("", !0),
|
|
889
|
-
(r(!0), f(ee, null,
|
|
889
|
+
(r(!0), f(ee, null, Se(e["dcat:downloadURL"], (d, N) => (r(), f("div", {
|
|
890
890
|
key: N,
|
|
891
891
|
class: "dpiV3_DocumentationsInDistr"
|
|
892
892
|
}, [
|
|
893
|
-
m("div",
|
|
893
|
+
m("div", ra, [
|
|
894
894
|
t[8] || (t[8] = m("div", {
|
|
895
895
|
class: "dpiV3_label",
|
|
896
896
|
style: { margin: "0" }
|
|
897
897
|
}, " DownloadURL (optional) ", -1)),
|
|
898
|
-
e["dcat:downloadURL"].length !== 1 ? (r(), f("div",
|
|
898
|
+
e["dcat:downloadURL"].length !== 1 ? (r(), f("div", ua, [
|
|
899
899
|
u(M, {
|
|
900
900
|
"button-text": "löschen",
|
|
901
901
|
onClick: (Z) => e["dcat:downloadURL"].splice(N, 1)
|
|
902
902
|
}, null, 8, ["onClick"])
|
|
903
903
|
])) : p("", !0)
|
|
904
904
|
]),
|
|
905
|
-
m("div",
|
|
905
|
+
m("div", ma, [
|
|
906
906
|
u(ae, {
|
|
907
907
|
"model-value": d["@id"],
|
|
908
|
-
onInput: (Z) =>
|
|
908
|
+
onInput: (Z) => Je(Z.target.value, e.id, N),
|
|
909
909
|
showError: d.showError,
|
|
910
910
|
initialHintText: !1,
|
|
911
911
|
addOnText: !1,
|
|
@@ -913,15 +913,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
913
913
|
inputFieldSize: "large",
|
|
914
914
|
label: ""
|
|
915
915
|
}, null, 8, ["model-value", "onInput", "showError"]),
|
|
916
|
-
d.showError ? (r(), f("div",
|
|
916
|
+
d.showError ? (r(), f("div", fa, [
|
|
917
917
|
u(U(O), {
|
|
918
918
|
size: 16,
|
|
919
919
|
weight: "fill"
|
|
920
920
|
}),
|
|
921
|
-
m("span",
|
|
921
|
+
m("span", pa, E(d.errorMessage), 1)
|
|
922
922
|
])) : p("", !0)
|
|
923
923
|
]),
|
|
924
|
-
N === e["dcat:downloadURL"].length - 1 ? (r(), f("div",
|
|
924
|
+
N === e["dcat:downloadURL"].length - 1 ? (r(), f("div", va, [
|
|
925
925
|
u(j, {
|
|
926
926
|
buttonText: "Weitere DownloadURL hinzufügen",
|
|
927
927
|
size: "small",
|
|
@@ -931,58 +931,58 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
931
931
|
}, null, 8, ["onClick"])
|
|
932
932
|
])) : p("", !0)
|
|
933
933
|
]))), 128)),
|
|
934
|
-
e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), f("div",
|
|
935
|
-
u(
|
|
934
|
+
e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), f("div", ha, [
|
|
935
|
+
u(Ot, {
|
|
936
936
|
"show-delete-button": !0,
|
|
937
937
|
"distribution-id": e.id,
|
|
938
938
|
"model-value": e["dct:modified"],
|
|
939
939
|
onAddModifiedDate: me,
|
|
940
|
-
onDeleteButtonClicked: (d) =>
|
|
940
|
+
onDeleteButtonClicked: (d) => Ke(e.id)
|
|
941
941
|
}, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
|
|
942
942
|
])) : p("", !0),
|
|
943
|
-
e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), f("div",
|
|
944
|
-
u(
|
|
943
|
+
e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), f("div", ga, [
|
|
944
|
+
u(Pt, {
|
|
945
945
|
"show-delete-button": !0,
|
|
946
946
|
"distribution-id": e.id,
|
|
947
947
|
"model-value": e["dct:issued"],
|
|
948
948
|
onAddIssuedDate: fe,
|
|
949
|
-
onDeleteButtonClicked: (d) =>
|
|
949
|
+
onDeleteButtonClicked: (d) => qe(e.id)
|
|
950
950
|
}, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
|
|
951
951
|
])) : p("", !0),
|
|
952
|
-
|
|
953
|
-
u(
|
|
952
|
+
ht(m("div", ya, [
|
|
953
|
+
u(Bt, {
|
|
954
954
|
"distribution-id": e.id,
|
|
955
955
|
"description-text": e["dct:description"],
|
|
956
956
|
"show-delete-button": !0,
|
|
957
957
|
onAddDescription: pe,
|
|
958
|
-
onDeleteDescription: (d) =>
|
|
958
|
+
onDeleteDescription: (d) => Ge(e.id)
|
|
959
959
|
}, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
|
|
960
960
|
], 512), [
|
|
961
961
|
[
|
|
962
|
-
|
|
962
|
+
gt,
|
|
963
963
|
e["dct:description"] !== void 0 && e["dct:description"] !== ""
|
|
964
964
|
]
|
|
965
965
|
]),
|
|
966
|
-
e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), f("div",
|
|
967
|
-
u(
|
|
966
|
+
e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), f("div", ka, [
|
|
967
|
+
u(At, {
|
|
968
968
|
"availability-text": e["dcatap:availability"].label.de,
|
|
969
969
|
"distribution-id": e.id,
|
|
970
970
|
"show-delete-button": !0,
|
|
971
971
|
onAddAvailability: ve,
|
|
972
|
-
onDeleteButtonClicked: (d) =>
|
|
972
|
+
onDeleteButtonClicked: (d) => ze(e.id)
|
|
973
973
|
}, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
|
|
974
974
|
])) : p("", !0),
|
|
975
|
-
e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), f("div",
|
|
976
|
-
u(
|
|
975
|
+
e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), f("div", xa, [
|
|
976
|
+
u(jt, {
|
|
977
977
|
"status-text": e["adms:status"]["@value"],
|
|
978
978
|
"distribution-id": e.id,
|
|
979
979
|
"show-delete-button": !0,
|
|
980
980
|
onAddStatus: he,
|
|
981
|
-
onDeleteButtonClicked: (d) =>
|
|
981
|
+
onDeleteButtonClicked: (d) => Pe(e.id)
|
|
982
982
|
}, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
|
|
983
983
|
])) : p("", !0),
|
|
984
|
-
e.checksum["spdx:checksum"] != "" ? (r(), f("div",
|
|
985
|
-
u(
|
|
984
|
+
e.checksum["spdx:checksum"] != "" ? (r(), f("div", wa, [
|
|
985
|
+
u(Et, {
|
|
986
986
|
"checksum-text": e.checksum.title,
|
|
987
987
|
"checksum-dropdown-text": e.checksum["spdx:checksum"],
|
|
988
988
|
"distribution-id": e.id,
|
|
@@ -992,8 +992,8 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
992
992
|
onAddChecksum: ge
|
|
993
993
|
}, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
|
|
994
994
|
])) : p("", !0),
|
|
995
|
-
Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), f("div",
|
|
996
|
-
u(
|
|
995
|
+
Object.keys(e["dct:license"]).length > 0 && ((n = e["dct:license"]) == null ? void 0 : n["dcterms:license"]) != "" ? (r(), f("div", ba, [
|
|
996
|
+
u($t, {
|
|
997
997
|
"change-license-text": (c = e["dct:license"]) == null ? void 0 : c.title,
|
|
998
998
|
"change-license-dropdown-text": (g = e["dct:license"]) == null ? void 0 : g["dcterms:license"],
|
|
999
999
|
"distribution-id": e.id,
|
|
@@ -1002,60 +1002,60 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1002
1002
|
onAddChangeLicense: ye
|
|
1003
1003
|
}, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
|
|
1004
1004
|
])) : p("", !0),
|
|
1005
|
-
e.conformsToItems && e.conformsToItems.length > 0 ? (r(), f("div",
|
|
1006
|
-
m("div",
|
|
1005
|
+
e.conformsToItems && e.conformsToItems.length > 0 ? (r(), f("div", _a, [
|
|
1006
|
+
m("div", Da, [
|
|
1007
1007
|
t[9] || (t[9] = m("div", null, "Konform zu Standard (optional)", -1)),
|
|
1008
1008
|
m("div", null, [
|
|
1009
1009
|
u(M, {
|
|
1010
1010
|
"button-text": "löschen",
|
|
1011
|
-
onClick: (d) =>
|
|
1011
|
+
onClick: (d) => Be(e.id)
|
|
1012
1012
|
}, null, 8, ["onClick"])
|
|
1013
1013
|
])
|
|
1014
1014
|
]),
|
|
1015
|
-
u(
|
|
1015
|
+
u(Mt, {
|
|
1016
1016
|
"conforms-to-items": e.conformsToItems,
|
|
1017
1017
|
"distribution-id": e.id,
|
|
1018
1018
|
"as-card": !0,
|
|
1019
1019
|
"show-delete-button": !0,
|
|
1020
|
-
onUpdate: (d) =>
|
|
1020
|
+
onUpdate: (d) => ct(e.id, d)
|
|
1021
1021
|
}, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
|
|
1022
1022
|
])) : p("", !0),
|
|
1023
|
-
((x = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : x["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), f("div",
|
|
1024
|
-
m("div",
|
|
1023
|
+
((x = (h = e == null ? void 0 : e.policyItems) == null ? void 0 : h[0]) == null ? void 0 : x["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), f("div", Ta, [
|
|
1024
|
+
m("div", Ia, [
|
|
1025
1025
|
t[10] || (t[10] = m("div", null, "Regelwerk (optional)", -1)),
|
|
1026
1026
|
m("div", null, [
|
|
1027
1027
|
u(M, {
|
|
1028
1028
|
"button-text": "löschen",
|
|
1029
|
-
onClick: (d) =>
|
|
1029
|
+
onClick: (d) => We(e.id)
|
|
1030
1030
|
}, null, 8, ["onClick"])
|
|
1031
1031
|
])
|
|
1032
1032
|
]),
|
|
1033
|
-
u(
|
|
1033
|
+
u(Wt, {
|
|
1034
1034
|
"policy-items": e.policyItems,
|
|
1035
1035
|
"distribution-id": e.id,
|
|
1036
1036
|
"as-card": !0,
|
|
1037
|
-
onUpdate: (d) =>
|
|
1037
|
+
onUpdate: (d) => rt(e.id, d)
|
|
1038
1038
|
}, null, 8, ["policy-items", "distribution-id", "onUpdate"])
|
|
1039
1039
|
])) : p("", !0),
|
|
1040
|
-
(T = (y = e["dct:language"]) == null ? void 0 : y[0]) != null && T.label || (De = ($ = e["dct:language"]) == null ? void 0 : $[0]) != null && De["@value"] && ((Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), f("div",
|
|
1041
|
-
u(
|
|
1040
|
+
(T = (y = e["dct:language"]) == null ? void 0 : y[0]) != null && T.label || (De = ($ = e["dct:language"]) == null ? void 0 : $[0]) != null && De["@value"] && ((Ie = (Te = e["dct:language"]) == null ? void 0 : Te[0]) == null ? void 0 : Ie["@value"].trim()) !== "" ? (r(), f("div", La, [
|
|
1041
|
+
u(Nt, {
|
|
1042
1042
|
"distribution-id": e.id,
|
|
1043
1043
|
"show-delete-button": !1,
|
|
1044
1044
|
onAddLanguage: ke,
|
|
1045
|
-
onDeleteButtonClicked: (d) =>
|
|
1045
|
+
onDeleteButtonClicked: (d) => Oe(e.id),
|
|
1046
1046
|
inOverview: !0
|
|
1047
1047
|
}, null, 8, ["distribution-id", "onDeleteButtonClicked"])
|
|
1048
1048
|
])) : p("", !0),
|
|
1049
|
-
e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), f("div",
|
|
1050
|
-
u(
|
|
1049
|
+
e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), f("div", Ua, [
|
|
1050
|
+
u(Ft, {
|
|
1051
1051
|
"byte-size-prop": e["dcat:byteSize"],
|
|
1052
1052
|
"distribution-id": e.id,
|
|
1053
1053
|
"show-delete-button": !0,
|
|
1054
1054
|
onAddByteSize: xe,
|
|
1055
|
-
onDeleteButtonClicked: (d) =>
|
|
1055
|
+
onDeleteButtonClicked: (d) => Ne(e.id)
|
|
1056
1056
|
}, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
|
|
1057
1057
|
])) : p("", !0),
|
|
1058
|
-
e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), f("div",
|
|
1058
|
+
e["dcat:mediaType"] && ((Le = e["dcat:mediaType"]) != null && Le.label) && ((Ue = e["dcat:mediaType"]) == null ? void 0 : Ue.label.trim()) !== "" ? (r(), f("div", Va, [
|
|
1059
1059
|
u(oe, {
|
|
1060
1060
|
"distribution-id": e.id,
|
|
1061
1061
|
"file-types": D.value,
|
|
@@ -1066,7 +1066,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1066
1066
|
onDeleteButtonClicked: t[0] || (t[0] = (d) => X("dcat:mediaType", b.value))
|
|
1067
1067
|
}, null, 8, ["distribution-id", "file-types", "file-format-text"])
|
|
1068
1068
|
])) : p("", !0),
|
|
1069
|
-
e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), f("div",
|
|
1069
|
+
e["dcat:compressFormat"] && ((Ve = e["dcat:compressFormat"]) != null && Ve.label) && ((Re = e["dcat:compressFormat"]) == null ? void 0 : Re.label.trim()) !== "" ? (r(), f("div", Ra, [
|
|
1070
1070
|
u(oe, {
|
|
1071
1071
|
"distribution-id": e.id,
|
|
1072
1072
|
"file-types": D.value,
|
|
@@ -1077,7 +1077,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1077
1077
|
onDeleteButtonClicked: t[1] || (t[1] = (d) => X("dcat:compressFormat", b.value))
|
|
1078
1078
|
}, null, 8, ["distribution-id", "file-types", "compress-format-text"])
|
|
1079
1079
|
])) : p("", !0),
|
|
1080
|
-
e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), f("div",
|
|
1080
|
+
e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), f("div", Ca, [
|
|
1081
1081
|
u(oe, {
|
|
1082
1082
|
"distribution-id": e.id,
|
|
1083
1083
|
"file-types": D.value,
|
|
@@ -1088,15 +1088,15 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1088
1088
|
onDeleteButtonClicked: t[2] || (t[2] = (d) => X("dcat:packageFormat", b.value))
|
|
1089
1089
|
}, null, 8, ["distribution-id", "file-types", "package-format-text"])
|
|
1090
1090
|
])) : p("", !0),
|
|
1091
|
-
q.value && U(i).length === 1 ? (r(), f("p",
|
|
1091
|
+
q.value && U(i).length === 1 ? (r(), f("p", Sa, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
|
|
1092
1092
|
]),
|
|
1093
|
-
m("div",
|
|
1093
|
+
m("div", Aa, [
|
|
1094
1094
|
u(j, {
|
|
1095
1095
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
|
|
1096
1096
|
size: "small",
|
|
1097
1097
|
"icon-start": "PlusSquare",
|
|
1098
1098
|
variant: "tertiary",
|
|
1099
|
-
onClick: (d) =>
|
|
1099
|
+
onClick: (d) => st(e.id)
|
|
1100
1100
|
}, null, 8, ["button-text", "onClick"]),
|
|
1101
1101
|
U(i).length > 1 ? (r(), te(j, {
|
|
1102
1102
|
key: 0,
|
|
@@ -1104,23 +1104,23 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1104
1104
|
size: "small",
|
|
1105
1105
|
"icon-start": "trash",
|
|
1106
1106
|
variant: "tertiary",
|
|
1107
|
-
onClick: (d) =>
|
|
1107
|
+
onClick: (d) => lt(e.id)
|
|
1108
1108
|
}, null, 8, ["button-text", "onClick"])) : p("", !0)
|
|
1109
1109
|
])
|
|
1110
1110
|
]);
|
|
1111
1111
|
}), 128)),
|
|
1112
|
-
m("div",
|
|
1112
|
+
m("div", Fa, [
|
|
1113
1113
|
u(j, {
|
|
1114
1114
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
|
|
1115
1115
|
size: "large",
|
|
1116
1116
|
"icon-start": "plus",
|
|
1117
1117
|
variant: "tertiary",
|
|
1118
|
-
onClick:
|
|
1118
|
+
onClick: Xe
|
|
1119
1119
|
}, null, 8, ["button-text"])
|
|
1120
1120
|
]),
|
|
1121
1121
|
F.value ? (r(), f("div", {
|
|
1122
1122
|
key: 2,
|
|
1123
|
-
class:
|
|
1123
|
+
class: yt(S.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper")
|
|
1124
1124
|
}, [
|
|
1125
1125
|
u(U(O), {
|
|
1126
1126
|
size: 16,
|
|
@@ -1129,7 +1129,7 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1129
1129
|
t[11] || (t[11] = m("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
1130
1130
|
], 2)) : p("", !0)
|
|
1131
1131
|
]),
|
|
1132
|
-
B.value ? (r(), te(
|
|
1132
|
+
B.value ? (r(), te(Ct, {
|
|
1133
1133
|
key: 0,
|
|
1134
1134
|
"distibution-id": b.value,
|
|
1135
1135
|
"file-types": D.value,
|
|
@@ -1166,10 +1166,10 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1166
1166
|
"conforms-to-items": l.value.conformsToItems,
|
|
1167
1167
|
"policy-items": l.value.policyItems,
|
|
1168
1168
|
"download-URL": l.value.downloadURL,
|
|
1169
|
-
onClose:
|
|
1170
|
-
onActionHandling: t[3] || (t[3] = (e) =>
|
|
1171
|
-
onAddDocumentations:
|
|
1172
|
-
onAddAccessServices:
|
|
1169
|
+
onClose: it,
|
|
1170
|
+
onActionHandling: t[3] || (t[3] = (e) => at(e)),
|
|
1171
|
+
onAddDocumentations: Ye,
|
|
1172
|
+
onAddAccessServices: Ze,
|
|
1173
1173
|
onAddModifiedDate: me,
|
|
1174
1174
|
onAddIssuedDate: fe,
|
|
1175
1175
|
onAddDescription: pe,
|
|
@@ -1183,21 +1183,21 @@ const Ot = { class: "dpiV3InnerComponentWrap" }, Wt = { key: 0 }, jt = {
|
|
|
1183
1183
|
onAddStatus: he,
|
|
1184
1184
|
onAddChecksum: ge,
|
|
1185
1185
|
onAddChangeLicense: ye,
|
|
1186
|
-
onAddConformsToItems:
|
|
1187
|
-
onAddPolicyItems:
|
|
1186
|
+
onAddConformsToItems: et,
|
|
1187
|
+
onAddPolicyItems: tt
|
|
1188
1188
|
}, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "download-URL", "onAddAccessRights"])) : p("", !0),
|
|
1189
|
-
H.value ? (r(), te(
|
|
1189
|
+
H.value ? (r(), te(Rt, {
|
|
1190
1190
|
key: 1,
|
|
1191
1191
|
buttons: A.value.button,
|
|
1192
1192
|
"header-text": A.value.header,
|
|
1193
1193
|
text: A.value.text,
|
|
1194
1194
|
action: A.value.action,
|
|
1195
1195
|
onClose: t[4] || (t[4] = (e) => H.value = !1),
|
|
1196
|
-
onActionHandling: t[5] || (t[5] = (e) =>
|
|
1196
|
+
onActionHandling: t[5] || (t[5] = (e) => ot(e))
|
|
1197
1197
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
|
|
1198
1198
|
], 64));
|
|
1199
1199
|
}
|
|
1200
|
-
},
|
|
1200
|
+
}, go = /* @__PURE__ */ Ht($a, [["__scopeId", "data-v-80791d05"]]);
|
|
1201
1201
|
export {
|
|
1202
|
-
|
|
1202
|
+
go as default
|
|
1203
1203
|
};
|