@piveau/dpi 0.1.0-beta.39 → 0.1.0-beta.41
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 +393 -314
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +105 -69
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +95 -57
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +83 -55
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +116 -75
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +145 -124
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +41 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +123 -108
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +440 -258
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +37 -32
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +6 -6
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/data-provider-interface/components/DistLicense.vue.js +1 -1
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +401 -396
- package/dist/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +128 -118
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +40 -28
- package/dist/data-provider-interface/views/InputPage.vue.js +375 -746
- package/package.json +2 -2
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ref as v, computed as De, toRef as ot, onUnmounted as it, onMounted as st, getCurrentInstance as lt, watch as nt, createElementBlock as m, openBlock as u, Fragment as q, createElementVNode as f, createBlock as G, createCommentVNode as p, toDisplayString as $, renderList as _e, unref as T, createVNode as r, withDirectives as dt, vShow as ct } from "vue";
|
|
2
2
|
import "@formkit/core";
|
|
3
|
-
import { PhWarning as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { useStore as
|
|
6
|
-
import { useEditModeInfo as
|
|
7
|
-
import { useFormValues as
|
|
8
|
-
import
|
|
9
|
-
import { getFileTypes as
|
|
10
|
-
import { eventBus as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
3
|
+
import { PhWarning as Z } from "@phosphor-icons/vue";
|
|
4
|
+
import { useI18n as rt } from "vue-i18n";
|
|
5
|
+
import { useStore as ut } from "vuex";
|
|
6
|
+
import { useEditModeInfo as mt } from "../composables/useDpiEditMode.js";
|
|
7
|
+
import { useFormValues as ft } from "../composables/useDpiFormValues.js";
|
|
8
|
+
import E from "../config/dcatapdeHappyFlow/page-content-config.js";
|
|
9
|
+
import { getFileTypes as pt, getChecksumAlgorithms as vt, getPlannedAvailability as ht, getLanguages as gt } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
10
|
+
import { eventBus as Ie } from "../HappyFlowComponents/services/eventBus.js";
|
|
11
|
+
import M from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
12
|
+
import yt from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
13
|
+
import Q from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
14
|
+
import kt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
15
|
+
import xt from "../HappyFlowComponents/ui/ModalV3.vue.js";
|
|
16
|
+
import bt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
|
|
17
|
+
import wt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
|
|
18
|
+
import Dt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
|
|
19
|
+
import _t from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
|
|
20
|
+
import It from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
|
|
21
|
+
import Tt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
|
|
22
|
+
import Lt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
|
|
23
|
+
import Vt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
|
|
24
|
+
import X from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
|
|
25
|
+
import Ut from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
|
|
26
|
+
import Ct from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
|
|
27
|
+
import Rt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
|
|
28
|
+
import At from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
|
|
29
|
+
import St from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
|
|
30
|
+
import C from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
31
31
|
/* empty css */
|
|
32
|
-
import
|
|
33
|
-
const
|
|
32
|
+
import Ft from "../../_virtual/_plugin-vue_export-helper.js";
|
|
33
|
+
const $t = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
|
|
34
34
|
key: 1,
|
|
35
35
|
class: "copy-large-regular"
|
|
36
|
-
},
|
|
36
|
+
}, Bt = { class: "dpiV3_LinkAndMetadata input-container" }, zt = {
|
|
37
37
|
key: 0,
|
|
38
38
|
class: "accUrlError"
|
|
39
|
-
},
|
|
39
|
+
}, Pt = { class: "copy-mini-regular" }, Nt = {
|
|
40
40
|
key: 1,
|
|
41
41
|
class: "validation-error"
|
|
42
|
-
},
|
|
42
|
+
}, Ot = { class: "copy-mini-regular" }, Wt = {
|
|
43
43
|
key: 2,
|
|
44
44
|
class: "dpiV3_DocumentationsInDistr"
|
|
45
|
-
},
|
|
45
|
+
}, Ht = { class: "dpiV3_TitleDelete" }, jt = { class: "dpiV3_documentationContents" }, Jt = { class: "dpiV3_Documentation" }, Kt = {
|
|
46
46
|
key: 3,
|
|
47
47
|
class: "dpiV3_DocumentationsInDistr"
|
|
48
|
-
},
|
|
48
|
+
}, qt = { class: "dpiV3_TitleDelete" }, Gt = { class: "dpiV3_documentationContents" }, Zt = { class: "dpiV3_Documentation" }, Qt = { class: "dpiV3_DocumentationsInDistr" }, Xt = { class: "dpiV3_TitleDelete" }, Yt = {
|
|
49
49
|
key: 0,
|
|
50
50
|
class: "dpiV3_tempAddMore"
|
|
51
|
-
},
|
|
51
|
+
}, ea = {
|
|
52
52
|
key: 5,
|
|
53
53
|
class: "dpiV3_modified dpiV3_label"
|
|
54
|
-
},
|
|
54
|
+
}, ta = {
|
|
55
55
|
key: 6,
|
|
56
56
|
class: "dpiV3_modified dpiV3_label"
|
|
57
|
-
},
|
|
57
|
+
}, aa = { class: "dpiV3_modified dpiV3_label" }, oa = {
|
|
58
58
|
key: 7,
|
|
59
59
|
class: "dpiV3_modified dpiV3_label"
|
|
60
|
-
},
|
|
60
|
+
}, ia = {
|
|
61
61
|
key: 8,
|
|
62
62
|
class: "dpiV3_modified dpiV3_label"
|
|
63
|
-
},
|
|
63
|
+
}, sa = {
|
|
64
64
|
key: 9,
|
|
65
65
|
class: "dpiV3_modified dpiV3_label"
|
|
66
|
-
},
|
|
66
|
+
}, la = {
|
|
67
67
|
key: 10,
|
|
68
68
|
class: "dpiV3_modified dpiV3_label"
|
|
69
|
-
},
|
|
69
|
+
}, na = {
|
|
70
70
|
key: 11,
|
|
71
71
|
class: "dpiV3_DocumentationsInDistr"
|
|
72
|
-
},
|
|
72
|
+
}, da = { class: "dpiV3_TitleDelete" }, ca = {
|
|
73
73
|
key: 12,
|
|
74
74
|
class: "dpiV3_DocumentationsInDistr"
|
|
75
|
-
},
|
|
75
|
+
}, ra = { class: "dpiV3_TitleDelete" }, ua = {
|
|
76
76
|
key: 13,
|
|
77
77
|
class: "dpiV3_modified dpiV3_label"
|
|
78
|
-
},
|
|
78
|
+
}, ma = {
|
|
79
79
|
key: 14,
|
|
80
80
|
class: "dpiV3_modified dpiV3_label"
|
|
81
|
-
},
|
|
81
|
+
}, fa = {
|
|
82
82
|
key: 15,
|
|
83
83
|
class: "dpiV3_modified dpiV3_label"
|
|
84
|
-
},
|
|
84
|
+
}, pa = {
|
|
85
85
|
key: 16,
|
|
86
86
|
class: "dpiV3_modified dpiV3_label"
|
|
87
|
-
},
|
|
87
|
+
}, va = {
|
|
88
88
|
key: 17,
|
|
89
89
|
class: "dpiV3_modified dpiV3_label"
|
|
90
|
-
},
|
|
90
|
+
}, ha = {
|
|
91
91
|
key: 18,
|
|
92
92
|
class: "copy-mini-regular dpiV3_text_error"
|
|
93
|
-
},
|
|
93
|
+
}, ga = { class: "dpiV3_CTA-Distribution" }, ya = { class: "dpiV3_tempAddMore" }, ka = {
|
|
94
94
|
key: 2,
|
|
95
95
|
class: "dpiV3_errormsgWrapper"
|
|
96
|
-
},
|
|
96
|
+
}, xa = {
|
|
97
97
|
__name: "DistributionSimplePage",
|
|
98
98
|
props: {
|
|
99
99
|
context: Object,
|
|
100
100
|
inRap: Boolean
|
|
101
101
|
},
|
|
102
102
|
setup(R) {
|
|
103
|
-
var
|
|
104
|
-
const
|
|
103
|
+
var ye, ke, xe;
|
|
104
|
+
const B = R, { isEditMode: Y } = mt(), { t: D } = rt(), L = v(null), Te = {
|
|
105
105
|
isValid: "unset",
|
|
106
106
|
id: 1,
|
|
107
107
|
"dcat:accessURL": "",
|
|
@@ -133,48 +133,51 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
133
133
|
title: "",
|
|
134
134
|
"dcterms:license": ""
|
|
135
135
|
}
|
|
136
|
-
}, { formValues:
|
|
137
|
-
() =>
|
|
138
|
-
).value ?
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
for (let a = 0; a <
|
|
144
|
-
if (((
|
|
145
|
-
|
|
136
|
+
}, { formValues: w } = ft(), l = De(
|
|
137
|
+
() => Y.value || B.inRap
|
|
138
|
+
).value ? ot((ye = w.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Te]);
|
|
139
|
+
l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
|
|
140
|
+
const n = v({}), V = v({}), ee = v([]), A = v(!1), z = v(!1), x = v(0), y = v([]), te = v([]), ae = v([]), oe = v([]), P = v([...y.value]), Le = ut(), N = v(null);
|
|
141
|
+
v(null);
|
|
142
|
+
const O = v(!1), ie = v(!1), se = v(!1), W = v(!1), le = v(!0);
|
|
143
|
+
for (let a = 0; a < l.value.length; a++)
|
|
144
|
+
if (((ke = w.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((xe = w.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : xe.checksum.title) !== "") {
|
|
145
|
+
ie.value = !1;
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
148
|
+
function Ve() {
|
|
149
|
+
ee.value = [
|
|
150
150
|
{
|
|
151
151
|
title: D(
|
|
152
152
|
"message.dataupload.datasets.dcat:distribution.recommended.title"
|
|
153
153
|
),
|
|
154
|
-
items:
|
|
154
|
+
items: E.distributions.Recommended.map(
|
|
155
155
|
(a) => D(
|
|
156
156
|
`message.dataupload.datasets.dcat:distribution.recommended.${a}`
|
|
157
157
|
) || a
|
|
158
158
|
),
|
|
159
|
-
keys:
|
|
159
|
+
keys: E.distributions.Recommended
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
|
|
163
|
-
items:
|
|
163
|
+
items: E.distributions.Advanced.map(
|
|
164
164
|
(a) => D(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
|
|
165
165
|
),
|
|
166
|
-
keys:
|
|
166
|
+
keys: E.distributions.Advanced
|
|
167
167
|
}
|
|
168
168
|
];
|
|
169
169
|
}
|
|
170
170
|
function ne(a) {
|
|
171
|
-
|
|
171
|
+
var t, e, o;
|
|
172
|
+
(o = (e = (t = B.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (le.value || H(), le.value = !1);
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
+
function H(a) {
|
|
174
175
|
let t = !0;
|
|
175
|
-
|
|
176
|
-
var
|
|
177
|
-
const o =
|
|
176
|
+
l.value = l.value.map((e) => {
|
|
177
|
+
var c;
|
|
178
|
+
const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && j(e["dcat:accessURL"]), i = ((c = e["dct:format"]) == null ? void 0 : c.label) != null && e["dct:format"].label.trim() !== "" && y.value.some(
|
|
179
|
+
(g) => g["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
|
|
180
|
+
), s = o && i;
|
|
178
181
|
return s || (t = !1), a === e.id ? {
|
|
179
182
|
...e,
|
|
180
183
|
isValid: s,
|
|
@@ -186,50 +189,52 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
186
189
|
showErrorDownloadURL: !o,
|
|
187
190
|
showErrorFormat: !i
|
|
188
191
|
};
|
|
189
|
-
}), !t &&
|
|
192
|
+
}), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (W.value = !t), w.value.DistributionSimple["dcat:distribution"] = l.value;
|
|
190
193
|
}
|
|
191
|
-
function
|
|
194
|
+
function S(a, t) {
|
|
192
195
|
var o, i, s;
|
|
193
196
|
let e = !0;
|
|
194
197
|
if (t === "dcat:accessURL")
|
|
195
|
-
e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ?
|
|
198
|
+
e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? j(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((i = a[t]) == null ? void 0 : i.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein");
|
|
196
199
|
else if (t === "dct:format") {
|
|
197
|
-
const
|
|
198
|
-
e =
|
|
200
|
+
const c = (s = a[t].label) == null ? void 0 : s.trim();
|
|
201
|
+
e = c !== "" && y.value.some(
|
|
202
|
+
(g) => g["@value"].toLowerCase() === c.toLowerCase()
|
|
203
|
+
), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, c === "" ? a.formatErrorMessage = "Format ist erforderlich" : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
|
|
199
204
|
}
|
|
200
|
-
|
|
205
|
+
Ue();
|
|
201
206
|
}
|
|
202
|
-
function
|
|
207
|
+
function Ue() {
|
|
203
208
|
let a = !0;
|
|
204
|
-
|
|
205
|
-
var s,
|
|
206
|
-
const e = ((s = t["dcat:accessURL"]) == null ? void 0 : s.trim()) !== "" &&
|
|
209
|
+
l.value = l.value.map((t) => {
|
|
210
|
+
var s, c;
|
|
211
|
+
const e = ((s = t["dcat:accessURL"]) == null ? void 0 : s.trim()) !== "" && j(t["dcat:accessURL"]), o = ((c = t["dct:format"].label) == null ? void 0 : c.trim()) !== "" && y.value.some(
|
|
207
212
|
(g) => {
|
|
208
|
-
var
|
|
209
|
-
return g["@value"].toUpperCase() === ((
|
|
213
|
+
var h;
|
|
214
|
+
return g["@value"].toUpperCase() === ((h = t["dct:format"].label) == null ? void 0 : h.toUpperCase());
|
|
210
215
|
}
|
|
211
216
|
), i = e && o;
|
|
212
217
|
return i || (a = !1), {
|
|
213
218
|
...t,
|
|
214
219
|
isValid: i
|
|
215
220
|
};
|
|
216
|
-
}), !a &&
|
|
221
|
+
}), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), W.value = !a, w.value.DistributionSimple["dcat:distribution"] = l.value;
|
|
217
222
|
}
|
|
218
|
-
function
|
|
223
|
+
function j(a) {
|
|
219
224
|
return /^(https?:\/\/)?(www\.)?[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-\w()@:%+.~#?&/=]*)$/.test(a);
|
|
220
225
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}),
|
|
224
|
-
|
|
225
|
-
const a =
|
|
226
|
+
it(() => {
|
|
227
|
+
Ie.off("nextClicked", ne), L.value && clearTimeout(L.value);
|
|
228
|
+
}), st(async () => {
|
|
229
|
+
Ie.on("nextClicked", ne);
|
|
230
|
+
const a = lt(), t = a.appContext.app.config.globalProperties.$env;
|
|
226
231
|
if (a) {
|
|
227
232
|
const e = a.appContext.app.config.globalProperties.$env;
|
|
228
|
-
|
|
233
|
+
N.value = e.content.dataProviderInterface.specification;
|
|
229
234
|
} else
|
|
230
235
|
console.log("Instance is null!");
|
|
231
236
|
try {
|
|
232
|
-
const e = await
|
|
237
|
+
const e = await pt(t.api.baseUrl);
|
|
233
238
|
y.value = e.results.map((o) => ({
|
|
234
239
|
"@value": o.pref_label.en,
|
|
235
240
|
uri: o.resource,
|
|
@@ -239,80 +244,80 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
239
244
|
error.value = e;
|
|
240
245
|
}
|
|
241
246
|
try {
|
|
242
|
-
const e = await
|
|
243
|
-
|
|
244
|
-
const o = await
|
|
245
|
-
|
|
246
|
-
const i = await
|
|
247
|
-
|
|
247
|
+
const e = await vt(t.api.baseUrl);
|
|
248
|
+
te.value = e;
|
|
249
|
+
const o = await ht(t.api.baseUrl);
|
|
250
|
+
ae.value = o;
|
|
251
|
+
const i = await gt(t.api.baseUrl);
|
|
252
|
+
oe.value = i;
|
|
248
253
|
} catch (e) {
|
|
249
254
|
console.log(e);
|
|
250
255
|
}
|
|
251
|
-
|
|
256
|
+
Ve();
|
|
252
257
|
});
|
|
253
|
-
function
|
|
254
|
-
const e =
|
|
258
|
+
function Ce(a, t) {
|
|
259
|
+
const e = l.value.find((i) => i.id === t);
|
|
255
260
|
if (!e) return;
|
|
256
261
|
let o = y.value.find((i) => i["@value"] === a).uri || "";
|
|
257
|
-
e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "",
|
|
262
|
+
e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", S(e, "dct:format"), w.value.DistributionSimple["dcat:distribution"] = l.value;
|
|
258
263
|
}
|
|
259
264
|
function de(a, t) {
|
|
260
|
-
const e =
|
|
261
|
-
e ? (e["dct:modified"] = a,
|
|
262
|
-
}
|
|
263
|
-
function le(a, t) {
|
|
264
|
-
const e = n.value.find((o) => o.id === t);
|
|
265
|
-
e ? (e["dct:issued"] = a, d.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
265
|
+
const e = l.value.find((o) => o.id === t);
|
|
266
|
+
e ? (e["dct:modified"] = a, n.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
266
267
|
}
|
|
267
268
|
function ce(a, t) {
|
|
268
|
-
const e =
|
|
269
|
-
e ? (e["dct:
|
|
269
|
+
const e = l.value.find((o) => o.id === t);
|
|
270
|
+
e ? (e["dct:issued"] = a, n.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
270
271
|
}
|
|
271
|
-
function re(a, t
|
|
272
|
-
const
|
|
273
|
-
e
|
|
272
|
+
function re(a, t) {
|
|
273
|
+
const e = l.value.find((o) => o.id === t);
|
|
274
|
+
e ? (e["dct:description"] = a, n.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
274
275
|
}
|
|
275
|
-
function ue(a, t) {
|
|
276
|
-
const
|
|
277
|
-
e ? (
|
|
276
|
+
function ue(a, t, e) {
|
|
277
|
+
const o = l.value.find((i) => i.id === t);
|
|
278
|
+
e || (e = ae.value.find((i) => i.value === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, n.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
278
279
|
}
|
|
279
|
-
function me(a, t
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
o || (o = ee.value.find((s) => s.value === t).resource || ""), i ? (i.checksum.title = a, i.checksum["spdx:checksum"] = t, i.checksum.uri = o || "no URI", d.value.checksumText = a, d.value.checksumDropdownText = t, d.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
|
|
280
|
+
function me(a, t) {
|
|
281
|
+
const e = l.value.find((o) => o.id === t);
|
|
282
|
+
e ? (e["adms:status"] = a, n.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
283
283
|
}
|
|
284
|
-
function fe(a, t, e) {
|
|
284
|
+
function fe(a, t, e, o) {
|
|
285
285
|
ie.value = !0;
|
|
286
|
-
const
|
|
287
|
-
o
|
|
286
|
+
const i = l.value.find((s) => s.id === e);
|
|
287
|
+
o || (o = te.value.find((s) => s.value === t).resource || ""), i ? (i.checksum.title = a, i.checksum["spdx:checksum"] = t, i.checksum.uri = o || "no URI", n.value.checksumText = a, n.value.checksumDropdownText = t, n.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
|
|
288
288
|
}
|
|
289
289
|
function pe(a, t, e) {
|
|
290
|
-
|
|
291
|
-
|
|
290
|
+
se.value = !0;
|
|
291
|
+
const o = l.value.find((i) => i.id === e);
|
|
292
|
+
o ? (o.changeLicense.title = a, o.changeLicense["dcterms:license"] = t, n.value.changeLicenseText = a, n.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
|
|
292
293
|
}
|
|
293
|
-
function ve(a, t) {
|
|
294
|
-
const
|
|
295
|
-
e ? (
|
|
294
|
+
function ve(a, t, e) {
|
|
295
|
+
const o = l.value.find((i) => i.id === t);
|
|
296
|
+
e || (e = oe.value.find((i) => i.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], n.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
297
|
+
}
|
|
298
|
+
function he(a, t) {
|
|
299
|
+
const e = l.value.find((o) => o.id === t);
|
|
300
|
+
e ? (e["dcat:byteSize"] = a, n.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
296
301
|
}
|
|
297
302
|
function _(a, t, e) {
|
|
298
|
-
const o =
|
|
303
|
+
const o = l.value.find((s) => s.id === e);
|
|
299
304
|
let i = y.value.find((s) => s["@value"] === a).uri || "";
|
|
300
305
|
if (o)
|
|
301
306
|
switch (o[t] = { label: a, uri: i }, t) {
|
|
302
307
|
case "dcat:mediaType":
|
|
303
|
-
|
|
308
|
+
n.value.mediaTypeText = a;
|
|
304
309
|
break;
|
|
305
310
|
case "dcat:compressFormat":
|
|
306
|
-
|
|
311
|
+
n.value.compressFormatText = a;
|
|
307
312
|
break;
|
|
308
313
|
case "dcat:packageFormat":
|
|
309
|
-
|
|
314
|
+
n.value.packageFormatText = a;
|
|
310
315
|
break;
|
|
311
316
|
}
|
|
312
317
|
else
|
|
313
318
|
console.warn(`No matching distribution found for ID ${e}.`);
|
|
314
319
|
}
|
|
315
|
-
function
|
|
320
|
+
function Re(a) {
|
|
316
321
|
k(
|
|
317
322
|
a,
|
|
318
323
|
"Konform zu Standard",
|
|
@@ -321,7 +326,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
321
326
|
!0
|
|
322
327
|
);
|
|
323
328
|
}
|
|
324
|
-
function
|
|
329
|
+
function Ae(a) {
|
|
325
330
|
k(
|
|
326
331
|
a,
|
|
327
332
|
"Verfügbarkeit",
|
|
@@ -330,7 +335,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
330
335
|
!1
|
|
331
336
|
);
|
|
332
337
|
}
|
|
333
|
-
function
|
|
338
|
+
function Se(a) {
|
|
334
339
|
k(
|
|
335
340
|
a,
|
|
336
341
|
"Status",
|
|
@@ -339,7 +344,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
339
344
|
!1
|
|
340
345
|
);
|
|
341
346
|
}
|
|
342
|
-
function
|
|
347
|
+
function Fe(a) {
|
|
343
348
|
k(
|
|
344
349
|
a,
|
|
345
350
|
"Größe in Bytes",
|
|
@@ -348,7 +353,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
348
353
|
!1
|
|
349
354
|
);
|
|
350
355
|
}
|
|
351
|
-
function
|
|
356
|
+
function $e(a) {
|
|
352
357
|
k(
|
|
353
358
|
a,
|
|
354
359
|
"Sprache",
|
|
@@ -357,10 +362,10 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
357
362
|
!1
|
|
358
363
|
);
|
|
359
364
|
}
|
|
360
|
-
function
|
|
365
|
+
function J(a, t) {
|
|
361
366
|
k(t, a, a, !0, !1);
|
|
362
367
|
}
|
|
363
|
-
function
|
|
368
|
+
function ge(a) {
|
|
364
369
|
k(
|
|
365
370
|
a,
|
|
366
371
|
"Regelwerk",
|
|
@@ -369,7 +374,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
369
374
|
!0
|
|
370
375
|
);
|
|
371
376
|
}
|
|
372
|
-
function
|
|
377
|
+
function Ee(a) {
|
|
373
378
|
k(
|
|
374
379
|
a,
|
|
375
380
|
"Dokumentation",
|
|
@@ -378,7 +383,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
378
383
|
!0
|
|
379
384
|
);
|
|
380
385
|
}
|
|
381
|
-
function
|
|
386
|
+
function Me(a) {
|
|
382
387
|
k(
|
|
383
388
|
a,
|
|
384
389
|
"Ausliefernder Datenservice",
|
|
@@ -387,11 +392,11 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
387
392
|
!0
|
|
388
393
|
);
|
|
389
394
|
}
|
|
390
|
-
function
|
|
391
|
-
const o =
|
|
395
|
+
function Be(a, t, e) {
|
|
396
|
+
const o = w.value.DistributionSimple["dcat:distribution"].find((i) => i.id === t);
|
|
392
397
|
o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
|
|
393
398
|
}
|
|
394
|
-
function
|
|
399
|
+
function ze(a) {
|
|
395
400
|
k(
|
|
396
401
|
a,
|
|
397
402
|
"Aktualisierungsdatum",
|
|
@@ -399,7 +404,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
399
404
|
!1
|
|
400
405
|
);
|
|
401
406
|
}
|
|
402
|
-
function
|
|
407
|
+
function Pe(a) {
|
|
403
408
|
k(
|
|
404
409
|
a,
|
|
405
410
|
"Veröffentlichungsdatum",
|
|
@@ -407,7 +412,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
407
412
|
!1
|
|
408
413
|
);
|
|
409
414
|
}
|
|
410
|
-
function
|
|
415
|
+
function Ne(a) {
|
|
411
416
|
k(
|
|
412
417
|
a,
|
|
413
418
|
"Beschreibung",
|
|
@@ -415,12 +420,12 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
415
420
|
!0
|
|
416
421
|
);
|
|
417
422
|
}
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
}),
|
|
421
|
-
function
|
|
423
|
+
const Oe = De(() => N.value ? Le.getters["dpiStore/getNavSteps"](N.value) : {});
|
|
424
|
+
nt(Oe, (a) => {
|
|
425
|
+
}), Y.value || B.context.node.input([{ isValid: "unset" }]);
|
|
426
|
+
function We() {
|
|
422
427
|
const a = Date.now();
|
|
423
|
-
|
|
428
|
+
l.value.push({
|
|
424
429
|
isValid: "unset",
|
|
425
430
|
id: a,
|
|
426
431
|
"dcat:accessURL": "",
|
|
@@ -452,10 +457,10 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
452
457
|
title: "",
|
|
453
458
|
"dcterms:license": ""
|
|
454
459
|
}
|
|
455
|
-
}),
|
|
460
|
+
}), H(a);
|
|
456
461
|
}
|
|
457
|
-
function
|
|
458
|
-
const e =
|
|
462
|
+
function He(a, t) {
|
|
463
|
+
const e = l.value.find((o) => o.id === a);
|
|
459
464
|
if (!e) {
|
|
460
465
|
console.error(`Distribution with ID ${a} not found`);
|
|
461
466
|
return;
|
|
@@ -476,7 +481,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
476
481
|
...o
|
|
477
482
|
};
|
|
478
483
|
else {
|
|
479
|
-
const s = e.documentations.length > 0 ? Math.max(...e.documentations.map((
|
|
484
|
+
const s = e.documentations.length > 0 ? Math.max(...e.documentations.map((c) => c.id)) + 1 : 1;
|
|
480
485
|
e.documentations.push({
|
|
481
486
|
id: o.id || s,
|
|
482
487
|
"dcat:accessURL": o["dcat:accessURL"] || "",
|
|
@@ -488,8 +493,8 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
488
493
|
}
|
|
489
494
|
});
|
|
490
495
|
}
|
|
491
|
-
function
|
|
492
|
-
const e =
|
|
496
|
+
function je(a, t) {
|
|
497
|
+
const e = l.value.find((o) => o.id === a);
|
|
493
498
|
if (!e) {
|
|
494
499
|
console.error(`Distribution with ID ${a} not found`);
|
|
495
500
|
return;
|
|
@@ -515,7 +520,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
515
520
|
...o
|
|
516
521
|
};
|
|
517
522
|
else {
|
|
518
|
-
const s = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((
|
|
523
|
+
const s = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((c) => c.id)) + 1 : 1;
|
|
519
524
|
e.accessServices.push({
|
|
520
525
|
id: o.id || s,
|
|
521
526
|
"dcat:downloadURL": o["dcat:downloadURL"] || "",
|
|
@@ -525,9 +530,9 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
525
530
|
}
|
|
526
531
|
});
|
|
527
532
|
}
|
|
528
|
-
function
|
|
533
|
+
function Je(a, t) {
|
|
529
534
|
var o;
|
|
530
|
-
const e =
|
|
535
|
+
const e = l.value.find((i) => i.id === a);
|
|
531
536
|
if (!e) {
|
|
532
537
|
console.error(`Distribution with ID ${a} not found`);
|
|
533
538
|
return;
|
|
@@ -540,7 +545,7 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
540
545
|
(i) => t.some((s) => s.id === i.id)
|
|
541
546
|
)) || [], t.forEach((i) => {
|
|
542
547
|
const s = e.conformsToItems.findIndex(
|
|
543
|
-
(
|
|
548
|
+
(c) => c.id === i.id
|
|
544
549
|
);
|
|
545
550
|
if (s !== -1)
|
|
546
551
|
e.conformsToItems[s] = {
|
|
@@ -548,18 +553,18 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
548
553
|
...i
|
|
549
554
|
};
|
|
550
555
|
else {
|
|
551
|
-
const
|
|
556
|
+
const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((g) => g.id)) + 1 : 1;
|
|
552
557
|
e.conformsToItems.push({
|
|
553
|
-
id: i.id ||
|
|
558
|
+
id: i.id || c,
|
|
554
559
|
"dcat:downloadURL": i["dcat:downloadURL"] || "",
|
|
555
560
|
"dct:title": i["dct:title"] || ""
|
|
556
561
|
});
|
|
557
562
|
}
|
|
558
563
|
});
|
|
559
564
|
}
|
|
560
|
-
function
|
|
565
|
+
function Ke(a, t) {
|
|
561
566
|
var o;
|
|
562
|
-
const e =
|
|
567
|
+
const e = l.value.find((i) => i.id === a);
|
|
563
568
|
if (!e) {
|
|
564
569
|
console.error(`Distribution with ID ${a} not found`);
|
|
565
570
|
return;
|
|
@@ -571,9 +576,9 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
571
576
|
e.policyItems = ((o = e == null ? void 0 : e.policyItems) == null ? void 0 : o.filter(
|
|
572
577
|
(i) => t.some((s) => s.id === i.id)
|
|
573
578
|
)) || [], t.forEach((i) => {
|
|
574
|
-
var
|
|
575
|
-
const s = (
|
|
576
|
-
(
|
|
579
|
+
var c, g;
|
|
580
|
+
const s = (c = e == null ? void 0 : e.policyItems) == null ? void 0 : c.findIndex(
|
|
581
|
+
(h) => h.id === i.id
|
|
577
582
|
);
|
|
578
583
|
if (s !== -1)
|
|
579
584
|
e.policyItems[s] = {
|
|
@@ -581,27 +586,27 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
581
586
|
...i
|
|
582
587
|
};
|
|
583
588
|
else {
|
|
584
|
-
const
|
|
589
|
+
const h = ((g = e == null ? void 0 : e.policyItems) == null ? void 0 : g.length) > 0 ? Math.max(...e.policyItems.map((b) => b.id)) + 1 : 1;
|
|
585
590
|
e.policyItems.push({
|
|
586
|
-
id: i.id ||
|
|
591
|
+
id: i.id || h,
|
|
587
592
|
"dcat:accessURL": i["dcat:accessURL"] || ""
|
|
588
593
|
});
|
|
589
594
|
}
|
|
590
595
|
});
|
|
591
596
|
}
|
|
592
|
-
function
|
|
597
|
+
function qe(a) {
|
|
593
598
|
if (a === "deleteDataset" && x.value !== null) {
|
|
594
|
-
if (
|
|
595
|
-
|
|
599
|
+
if (l.value.length === 1) {
|
|
600
|
+
O.value = !0;
|
|
596
601
|
return;
|
|
597
602
|
}
|
|
598
|
-
|
|
603
|
+
l.value = l.value.filter(
|
|
599
604
|
(t) => t.id !== x.value
|
|
600
|
-
),
|
|
605
|
+
), O.value = !1, x.value = null, H();
|
|
601
606
|
}
|
|
602
607
|
}
|
|
603
|
-
function
|
|
604
|
-
const t = JSON.parse(a), e =
|
|
608
|
+
function Ge(a) {
|
|
609
|
+
const t = JSON.parse(a), e = l.value.find(
|
|
605
610
|
(o) => o.id === t.distributionId
|
|
606
611
|
);
|
|
607
612
|
if (t.isArray) {
|
|
@@ -610,11 +615,11 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
610
615
|
}
|
|
611
616
|
t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
|
|
612
617
|
}
|
|
613
|
-
function
|
|
614
|
-
var e, o, i, s,
|
|
618
|
+
function Ze(a) {
|
|
619
|
+
var e, o, i, s, c;
|
|
615
620
|
x.value = a;
|
|
616
|
-
const t =
|
|
617
|
-
t && (
|
|
621
|
+
const t = l.value.find((g) => g.id === a);
|
|
622
|
+
t && (n.value = {
|
|
618
623
|
button: "",
|
|
619
624
|
header: "Optionale Informationen hinzufügen",
|
|
620
625
|
text: "",
|
|
@@ -640,19 +645,19 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
640
645
|
checksumURI: t.checksum.uri || "",
|
|
641
646
|
checksumDropdownText: t.checksum["spdx:checksum"] || "",
|
|
642
647
|
changeLicenseText: ((s = t == null ? void 0 : t.changeLicense) == null ? void 0 : s.title) || "",
|
|
643
|
-
changeLicenseDropdownText: ((
|
|
648
|
+
changeLicenseDropdownText: ((c = t == null ? void 0 : t.changeLicense) == null ? void 0 : c["dcterms:license"]) || "",
|
|
644
649
|
conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
|
|
645
650
|
policyItems: (t == null ? void 0 : t.policyItems) || [],
|
|
646
651
|
downloadURL: (t == null ? void 0 : t.downloadURL) || []
|
|
647
|
-
},
|
|
652
|
+
}, A.value = !0, document.body.style.overflow = "hidden");
|
|
648
653
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
654
|
+
function Qe() {
|
|
655
|
+
A.value = !1, document.body.style.overflow = "auto";
|
|
651
656
|
}
|
|
652
|
-
function
|
|
657
|
+
function Xe(a) {
|
|
653
658
|
x.value = a;
|
|
654
|
-
const t =
|
|
655
|
-
|
|
659
|
+
const t = l.value.find((s) => s.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", i = t ? t["dcat:accessURL"] : "";
|
|
660
|
+
n.value = {
|
|
656
661
|
button: "Löschen",
|
|
657
662
|
header: D(
|
|
658
663
|
"message.dataupload.datasets.dcat:distribution.delete-distribution.header"
|
|
@@ -664,83 +669,83 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
664
669
|
title: e,
|
|
665
670
|
format: o,
|
|
666
671
|
distributionLink: i
|
|
667
|
-
},
|
|
672
|
+
}, A.value = !0;
|
|
668
673
|
}
|
|
669
674
|
function k(a, t, e, o, i) {
|
|
670
|
-
const
|
|
675
|
+
const c = JSON.stringify({
|
|
671
676
|
distributionId: a,
|
|
672
677
|
optType: e,
|
|
673
678
|
useUndefined: o,
|
|
674
679
|
isArray: i
|
|
675
680
|
});
|
|
676
|
-
|
|
681
|
+
V.value = {
|
|
677
682
|
button: "Löschen",
|
|
678
683
|
header: `${t} löschen`,
|
|
679
684
|
text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
|
|
680
|
-
action:
|
|
681
|
-
},
|
|
685
|
+
action: c
|
|
686
|
+
}, z.value = !0;
|
|
682
687
|
}
|
|
683
|
-
function
|
|
684
|
-
var i, s,
|
|
685
|
-
const o =
|
|
686
|
-
if (o)
|
|
688
|
+
function K(a, t, e) {
|
|
689
|
+
var i, s, c, g;
|
|
690
|
+
const o = l.value.find((h) => h.id === e);
|
|
691
|
+
if (o)
|
|
687
692
|
if (t === "dcat:accessURL") {
|
|
688
|
-
const
|
|
689
|
-
o[t] =
|
|
693
|
+
const h = (i = a == null ? void 0 : a.target) == null ? void 0 : i.value;
|
|
694
|
+
o[t] = h, L.value && clearTimeout(L.value), L.value = setTimeout(() => {
|
|
695
|
+
S(o, t);
|
|
696
|
+
}, 800);
|
|
690
697
|
} else if (t === "dct:format") {
|
|
691
|
-
const
|
|
692
|
-
if (o.showErrorFormat = !1, o.formatErrorMessage = "",
|
|
693
|
-
|
|
698
|
+
const h = typeof a == "string" ? a.trim() : (c = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value) == null ? void 0 : c.trim();
|
|
699
|
+
if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
|
|
700
|
+
P.value = [...y.value];
|
|
694
701
|
else {
|
|
695
|
-
const
|
|
696
|
-
(I) => I["@value"].toLowerCase() ===
|
|
702
|
+
const b = y.value.find(
|
|
703
|
+
(I) => I["@value"].toLowerCase() === h.toLowerCase()
|
|
697
704
|
);
|
|
698
|
-
|
|
699
|
-
(I) => I["@value"].toLowerCase().includes(
|
|
705
|
+
b ? (o[t] = { label: b["@value"], uri: b.uri }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), P.value = y.value.filter(
|
|
706
|
+
(I) => I["@value"].toLowerCase().includes(h.toLowerCase())
|
|
700
707
|
);
|
|
701
708
|
}
|
|
702
|
-
|
|
709
|
+
S(o, t);
|
|
703
710
|
} else
|
|
704
|
-
o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value;
|
|
705
|
-
t !== "dct:format" && O(o, t);
|
|
706
|
-
}
|
|
711
|
+
o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, S(o, t);
|
|
707
712
|
}
|
|
708
|
-
function
|
|
709
|
-
const e =
|
|
713
|
+
function Ye(a, t) {
|
|
714
|
+
const e = l.value.find((o) => o.id === a);
|
|
710
715
|
e.documentations = e.documentations.filter(
|
|
711
716
|
(o) => t.some((i) => i.id === o.id)
|
|
712
717
|
);
|
|
713
718
|
}
|
|
714
|
-
function
|
|
715
|
-
const e =
|
|
719
|
+
function et(a, t) {
|
|
720
|
+
const e = l.value.find((o) => o.id === a);
|
|
716
721
|
e.accessServices = e.accessServices.filter(
|
|
717
722
|
(o) => t.some((i) => i.id === o.id)
|
|
718
723
|
);
|
|
719
724
|
}
|
|
720
|
-
function
|
|
721
|
-
const e =
|
|
725
|
+
function tt(a, t) {
|
|
726
|
+
const e = l.value.find((o) => o.id === a);
|
|
722
727
|
e.conformsToItems = e.conformsToItems.filter(
|
|
723
728
|
(o) => t.some((i) => i.id === o.id)
|
|
724
729
|
);
|
|
725
730
|
}
|
|
726
|
-
function
|
|
727
|
-
const e =
|
|
731
|
+
function at(a, t) {
|
|
732
|
+
const e = l.value.find((o) => o.id === a);
|
|
728
733
|
e.policyItems = e.policyItems.filter(
|
|
729
734
|
(o) => t.some((i) => i.id === o.id)
|
|
730
735
|
);
|
|
731
736
|
}
|
|
732
|
-
return (a, t) => (u(), m(
|
|
733
|
-
f("div",
|
|
734
|
-
R.inRap ? p("", !0) : (u(), m("h4",
|
|
735
|
-
R.inRap ? p("", !0) : (u(), m("div",
|
|
736
|
-
(u(!0), m(
|
|
737
|
-
var i, s,
|
|
737
|
+
return (a, t) => (u(), m(q, null, [
|
|
738
|
+
f("div", $t, [
|
|
739
|
+
R.inRap ? p("", !0) : (u(), m("h4", Et, $(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
|
|
740
|
+
R.inRap ? p("", !0) : (u(), m("div", Mt, $(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
|
|
741
|
+
(u(!0), m(q, null, _e(T(l), (e, o) => {
|
|
742
|
+
var i, s, c, g, h, b, I, be, we;
|
|
738
743
|
return u(), m("div", {
|
|
739
744
|
key: e.id,
|
|
740
745
|
class: "dpiV3AutoCompleteWrap"
|
|
741
746
|
}, [
|
|
742
|
-
f("div",
|
|
743
|
-
|
|
747
|
+
f("div", Bt, [
|
|
748
|
+
r(Q, {
|
|
744
749
|
"add-on-text": !1,
|
|
745
750
|
datePicker: !1,
|
|
746
751
|
infoIcon: !0,
|
|
@@ -758,16 +763,16 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
758
763
|
showEndIcon: !1,
|
|
759
764
|
showError: e.showErrorDownloadURL,
|
|
760
765
|
"model-value": e["dcat:accessURL"],
|
|
761
|
-
onInput: (
|
|
766
|
+
onInput: (d) => K(d, "dcat:accessURL", e.id)
|
|
762
767
|
}, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
|
|
763
|
-
e.showErrorDownloadURL && e.urlErrorMessage ? (u(), m("div",
|
|
764
|
-
|
|
768
|
+
e.showErrorDownloadURL && e.urlErrorMessage ? (u(), m("div", zt, [
|
|
769
|
+
r(T(Z), {
|
|
765
770
|
size: 16,
|
|
766
771
|
weight: "fill"
|
|
767
772
|
}),
|
|
768
|
-
f("span",
|
|
773
|
+
f("span", Pt, $(e.urlErrorMessage), 1)
|
|
769
774
|
])) : p("", !0),
|
|
770
|
-
|
|
775
|
+
r(yt, {
|
|
771
776
|
"dropdown-width": "large",
|
|
772
777
|
type: "inputField",
|
|
773
778
|
"input-field-props": {
|
|
@@ -788,22 +793,22 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
788
793
|
autocomplete: "true",
|
|
789
794
|
showError: e.showErrorFormat
|
|
790
795
|
},
|
|
791
|
-
data:
|
|
796
|
+
data: P.value,
|
|
792
797
|
autocomplete: !0,
|
|
793
|
-
onInput: (
|
|
794
|
-
"onUpdate:modelValue": (
|
|
798
|
+
onInput: (d) => K(d, "dct:format", e.id),
|
|
799
|
+
"onUpdate:modelValue": (d) => Ce(d, e.id),
|
|
795
800
|
"model-value": (i = e == null ? void 0 : e["dct:format"]) == null ? void 0 : i.label
|
|
796
801
|
}, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
|
|
797
|
-
e.showErrorFormat && e.formatErrorMessage ? (u(), m("div",
|
|
798
|
-
|
|
802
|
+
e.showErrorFormat && e.formatErrorMessage ? (u(), m("div", Nt, [
|
|
803
|
+
r(T(Z), {
|
|
799
804
|
size: 16,
|
|
800
805
|
weight: "fill"
|
|
801
806
|
}),
|
|
802
|
-
f("span",
|
|
807
|
+
f("span", Ot, $(e.formatErrorMessage), 1)
|
|
803
808
|
])) : p("", !0),
|
|
804
|
-
|
|
809
|
+
r(Q, {
|
|
805
810
|
modelValue: e["dct:title"],
|
|
806
|
-
"onUpdate:modelValue": (
|
|
811
|
+
"onUpdate:modelValue": (d) => e["dct:title"] = d,
|
|
807
812
|
"add-on-text": !1,
|
|
808
813
|
"date-picker": !1,
|
|
809
814
|
"info-icon": !1,
|
|
@@ -817,74 +822,74 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
817
822
|
"message.dataupload.datasets.dcat:distribution.distribution-title.label"
|
|
818
823
|
),
|
|
819
824
|
"show-end-icon": !1,
|
|
820
|
-
onInput: (
|
|
825
|
+
onInput: (d) => K(d, "dct:title", e.id)
|
|
821
826
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
|
|
822
|
-
(e.documentations || []).length > 0 ? (u(), m("div",
|
|
823
|
-
f("div",
|
|
827
|
+
(e.documentations || []).length > 0 ? (u(), m("div", Wt, [
|
|
828
|
+
f("div", Ht, [
|
|
824
829
|
t[6] || (t[6] = f("div", null, "Webpage (optional)", -1)),
|
|
825
830
|
f("div", null, [
|
|
826
|
-
|
|
831
|
+
r(C, {
|
|
827
832
|
"button-text": "löschen",
|
|
828
|
-
onClick: (
|
|
833
|
+
onClick: (d) => Ee(e.id)
|
|
829
834
|
}, null, 8, ["onClick"])
|
|
830
835
|
])
|
|
831
836
|
]),
|
|
832
|
-
f("div",
|
|
833
|
-
f("div",
|
|
834
|
-
|
|
837
|
+
f("div", jt, [
|
|
838
|
+
f("div", Jt, [
|
|
839
|
+
r(Vt, {
|
|
835
840
|
documentations: e.documentations,
|
|
836
841
|
"file-types": y.value,
|
|
837
842
|
"distribution-id": e.id,
|
|
838
843
|
"as-card": !0,
|
|
839
844
|
"show-delete-button": !0,
|
|
840
|
-
onUpdate: (
|
|
845
|
+
onUpdate: (d) => Ye(e.id, d)
|
|
841
846
|
}, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
|
|
842
847
|
])
|
|
843
848
|
])
|
|
844
849
|
])) : p("", !0),
|
|
845
|
-
(e.accessServices || []).length > 0 ? (u(), m("div",
|
|
846
|
-
f("div",
|
|
850
|
+
(e.accessServices || []).length > 0 ? (u(), m("div", Kt, [
|
|
851
|
+
f("div", qt, [
|
|
847
852
|
t[7] || (t[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
|
|
848
853
|
f("div", null, [
|
|
849
|
-
|
|
854
|
+
r(C, {
|
|
850
855
|
"button-text": "löschen",
|
|
851
|
-
onClick: (
|
|
856
|
+
onClick: (d) => Me(e.id)
|
|
852
857
|
}, null, 8, ["onClick"])
|
|
853
858
|
])
|
|
854
859
|
]),
|
|
855
|
-
f("div",
|
|
856
|
-
f("div",
|
|
857
|
-
|
|
860
|
+
f("div", Gt, [
|
|
861
|
+
f("div", Zt, [
|
|
862
|
+
r(bt, {
|
|
858
863
|
"access-services": e.accessServices,
|
|
859
864
|
"distribution-id": e.id,
|
|
860
865
|
"as-card": !0,
|
|
861
866
|
"show-delete-button": !0,
|
|
862
|
-
onUpdate: (
|
|
867
|
+
onUpdate: (d) => et(
|
|
863
868
|
e.id,
|
|
864
|
-
|
|
869
|
+
d
|
|
865
870
|
)
|
|
866
871
|
}, null, 8, ["access-services", "distribution-id", "onUpdate"])
|
|
867
872
|
])
|
|
868
873
|
])
|
|
869
874
|
])) : p("", !0),
|
|
870
|
-
(u(!0), m(
|
|
871
|
-
f("div",
|
|
875
|
+
(u(!0), m(q, { key: 4 }, _e(e["dcat:downloadURL"], (d, F) => (u(), m("div", Qt, [
|
|
876
|
+
f("div", Xt, [
|
|
872
877
|
t[8] || (t[8] = f("div", {
|
|
873
878
|
class: "dpiV3_label",
|
|
874
879
|
style: { margin: "0" }
|
|
875
880
|
}, "DownloadURL (optional)", -1)),
|
|
876
881
|
f("div", null, [
|
|
877
|
-
|
|
882
|
+
r(C, {
|
|
878
883
|
"button-text": "löschen",
|
|
879
|
-
onClick: (
|
|
884
|
+
onClick: (U) => ge(e.id)
|
|
880
885
|
}, null, 8, ["onClick"])
|
|
881
886
|
])
|
|
882
887
|
]),
|
|
883
|
-
|
|
884
|
-
onInput: (
|
|
885
|
-
|
|
888
|
+
r(Q, {
|
|
889
|
+
onInput: (U) => Be(
|
|
890
|
+
U.target.value,
|
|
886
891
|
e.id,
|
|
887
|
-
|
|
892
|
+
F
|
|
888
893
|
),
|
|
889
894
|
addOnText: !1,
|
|
890
895
|
datePicker: !1,
|
|
@@ -894,284 +899,284 @@ const At = { class: "dpiV3InnerComponentWrap" }, St = { key: 0 }, $t = {
|
|
|
894
899
|
inputFieldSize: "large",
|
|
895
900
|
initialHintText: !1,
|
|
896
901
|
label: "",
|
|
897
|
-
modelValue: e["dcat:downloadURL"][
|
|
898
|
-
"onUpdate:modelValue": (
|
|
902
|
+
modelValue: e["dcat:downloadURL"][F]["@id"],
|
|
903
|
+
"onUpdate:modelValue": (U) => e["dcat:downloadURL"][F]["@id"] = U,
|
|
899
904
|
showEndIcon: !1
|
|
900
905
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
|
|
901
|
-
|
|
902
|
-
|
|
906
|
+
F === e["dcat:downloadURL"].length - 1 ? (u(), m("div", Yt, [
|
|
907
|
+
r(M, {
|
|
903
908
|
buttonText: "Weitere DownloadURL hinzufügen",
|
|
904
909
|
size: "small",
|
|
905
910
|
iconStart: "plus",
|
|
906
911
|
variant: "tertiary",
|
|
907
|
-
onClick: (
|
|
912
|
+
onClick: (U) => e["dcat:downloadURL"].push({ "@id": "" })
|
|
908
913
|
}, null, 8, ["onClick"])
|
|
909
914
|
])) : p("", !0)
|
|
910
915
|
]))), 256)),
|
|
911
|
-
e["dct:modified"] && e["dct:modified"].trim() !== "" ? (u(), m("div",
|
|
912
|
-
|
|
916
|
+
e["dct:modified"] && e["dct:modified"].trim() !== "" ? (u(), m("div", ea, [
|
|
917
|
+
r(Rt, {
|
|
913
918
|
"show-delete-button": !0,
|
|
914
919
|
"distribution-id": e.id,
|
|
915
920
|
"model-value": e["dct:modified"],
|
|
916
921
|
onAddModifiedDate: de,
|
|
917
|
-
onDeleteButtonClicked: (
|
|
922
|
+
onDeleteButtonClicked: (d) => ze(e.id)
|
|
918
923
|
}, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
|
|
919
924
|
])) : p("", !0),
|
|
920
|
-
e["dct:issued"] && e["dct:issued"].trim() !== "" ? (u(), m("div",
|
|
921
|
-
|
|
925
|
+
e["dct:issued"] && e["dct:issued"].trim() !== "" ? (u(), m("div", ta, [
|
|
926
|
+
r(Ut, {
|
|
922
927
|
"show-delete-button": !0,
|
|
923
928
|
"distribution-id": e.id,
|
|
924
929
|
"model-value": e["dct:issued"],
|
|
925
|
-
onAddIssuedDate:
|
|
926
|
-
onDeleteButtonClicked: (
|
|
930
|
+
onAddIssuedDate: ce,
|
|
931
|
+
onDeleteButtonClicked: (d) => Pe(e.id)
|
|
927
932
|
}, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
|
|
928
933
|
])) : p("", !0),
|
|
929
|
-
|
|
930
|
-
|
|
934
|
+
dt(f("div", aa, [
|
|
935
|
+
r(Lt, {
|
|
931
936
|
"distribution-id": e.id,
|
|
932
937
|
"description-text": e["dct:description"],
|
|
933
938
|
"show-delete-button": !0,
|
|
934
|
-
onAddDescription:
|
|
935
|
-
onDeleteDescription: (
|
|
939
|
+
onAddDescription: re,
|
|
940
|
+
onDeleteDescription: (d) => Ne(e.id)
|
|
936
941
|
}, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
|
|
937
942
|
], 512), [
|
|
938
943
|
[
|
|
939
|
-
|
|
944
|
+
ct,
|
|
940
945
|
e["dct:description"] !== void 0 && e["dct:description"] !== ""
|
|
941
946
|
]
|
|
942
947
|
]),
|
|
943
|
-
e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (u(), m("div",
|
|
944
|
-
|
|
948
|
+
e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (u(), m("div", oa, [
|
|
949
|
+
r(wt, {
|
|
945
950
|
"availability-text": e["dcatap:availability"].label.de,
|
|
946
951
|
"distribution-id": e.id,
|
|
947
952
|
"show-delete-button": !0,
|
|
948
|
-
onAddAvailability:
|
|
949
|
-
onDeleteButtonClicked: (
|
|
953
|
+
onAddAvailability: ue,
|
|
954
|
+
onDeleteButtonClicked: (d) => Ae(e.id)
|
|
950
955
|
}, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
|
|
951
956
|
])) : p("", !0),
|
|
952
|
-
e["adms:status"].label && e["adms:status"].label.trim() !== "" ? (u(), m("div",
|
|
953
|
-
|
|
957
|
+
e["adms:status"].label && e["adms:status"].label.trim() !== "" ? (u(), m("div", ia, [
|
|
958
|
+
r(St, {
|
|
954
959
|
"status-text": e["adms:status"].label,
|
|
955
960
|
"distribution-id": e.id,
|
|
956
961
|
"show-delete-button": !0,
|
|
957
|
-
onAddStatus:
|
|
958
|
-
onDeleteButtonClicked: (
|
|
962
|
+
onAddStatus: me,
|
|
963
|
+
onDeleteButtonClicked: (d) => Se(e.id)
|
|
959
964
|
}, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
|
|
960
965
|
])) : p("", !0),
|
|
961
|
-
e.checksum["spdx:checksum"] != "" ? (u(), m("div",
|
|
962
|
-
|
|
966
|
+
e.checksum["spdx:checksum"] != "" ? (u(), m("div", sa, [
|
|
967
|
+
r(It, {
|
|
963
968
|
"checksum-text": e.checksum.title,
|
|
964
969
|
"checksum-dropdown-text": e.checksum["spdx:checksum"],
|
|
965
970
|
"distribution-id": e.id,
|
|
966
971
|
distIndex: o,
|
|
967
972
|
"checksum-u-r-i": e.checksum.uri,
|
|
968
973
|
"show-delete-button": !0,
|
|
969
|
-
onAddChecksum:
|
|
974
|
+
onAddChecksum: fe
|
|
970
975
|
}, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
|
|
971
976
|
])) : p("", !0),
|
|
972
|
-
|
|
973
|
-
|
|
977
|
+
se.value ? (u(), m("div", la, [
|
|
978
|
+
r(_t, {
|
|
974
979
|
"change-license-text": e.changeLicense.title,
|
|
975
980
|
"change-license-dropdown-text": e.changeLicense["dcterms:license"],
|
|
976
981
|
"distribution-id": e.id,
|
|
977
982
|
"as-card": !0,
|
|
978
983
|
"show-delete-button": !0,
|
|
979
|
-
onAddChangeLicense:
|
|
984
|
+
onAddChangeLicense: pe
|
|
980
985
|
}, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
|
|
981
986
|
])) : p("", !0),
|
|
982
|
-
e.conformsToItems && e.conformsToItems.length > 0 ? (u(), m("div",
|
|
983
|
-
f("div",
|
|
987
|
+
e.conformsToItems && e.conformsToItems.length > 0 ? (u(), m("div", na, [
|
|
988
|
+
f("div", da, [
|
|
984
989
|
t[9] || (t[9] = f("div", null, "Konform zu Standard (optional)", -1)),
|
|
985
990
|
f("div", null, [
|
|
986
|
-
|
|
991
|
+
r(C, {
|
|
987
992
|
"button-text": "löschen",
|
|
988
|
-
onClick: (
|
|
993
|
+
onClick: (d) => Re(e.id)
|
|
989
994
|
}, null, 8, ["onClick"])
|
|
990
995
|
])
|
|
991
996
|
]),
|
|
992
|
-
|
|
997
|
+
r(Tt, {
|
|
993
998
|
"conforms-to-items": e.conformsToItems,
|
|
994
999
|
"distribution-id": e.id,
|
|
995
1000
|
"as-card": !0,
|
|
996
1001
|
"show-delete-button": !0,
|
|
997
|
-
onUpdate: (
|
|
1002
|
+
onUpdate: (d) => tt(e.id, d)
|
|
998
1003
|
}, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
|
|
999
1004
|
])) : p("", !0),
|
|
1000
|
-
e.policyItems && e.policyItems.length > 0 ? (u(), m("div",
|
|
1001
|
-
f("div",
|
|
1005
|
+
((c = (s = e == null ? void 0 : e.policyItems) == null ? void 0 : s[0]) == null ? void 0 : c["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (u(), m("div", ca, [
|
|
1006
|
+
f("div", ra, [
|
|
1002
1007
|
t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
|
|
1003
1008
|
f("div", null, [
|
|
1004
|
-
|
|
1009
|
+
r(C, {
|
|
1005
1010
|
"button-text": "löschen",
|
|
1006
|
-
onClick: (
|
|
1011
|
+
onClick: (d) => ge(e.id)
|
|
1007
1012
|
}, null, 8, ["onClick"])
|
|
1008
1013
|
])
|
|
1009
1014
|
]),
|
|
1010
|
-
|
|
1015
|
+
r(At, {
|
|
1011
1016
|
"policy-items": e.policyItems,
|
|
1012
1017
|
"distribution-id": e.id,
|
|
1013
1018
|
"as-card": !0,
|
|
1014
|
-
onUpdate: (
|
|
1019
|
+
onUpdate: (d) => at(e.id, d)
|
|
1015
1020
|
}, null, 8, ["policy-items", "distribution-id", "onUpdate"])
|
|
1016
1021
|
])) : p("", !0),
|
|
1017
|
-
(
|
|
1018
|
-
|
|
1022
|
+
(h = (g = e["dct:language"]) == null ? void 0 : g[0]) != null && h.label || (I = (b = e["dct:language"]) == null ? void 0 : b[0]) != null && I["@value"] && ((we = (be = e["dct:language"]) == null ? void 0 : be[0]) == null ? void 0 : we["@value"].trim()) !== "" ? (u(), m("div", ua, [
|
|
1023
|
+
r(Ct, {
|
|
1019
1024
|
"distribution-id": e.id,
|
|
1020
1025
|
"show-delete-button": !1,
|
|
1021
|
-
onAddLanguage:
|
|
1022
|
-
onDeleteButtonClicked: (
|
|
1026
|
+
onAddLanguage: ve,
|
|
1027
|
+
onDeleteButtonClicked: (d) => $e(e.id),
|
|
1023
1028
|
inOverview: !0
|
|
1024
1029
|
}, null, 8, ["distribution-id", "onDeleteButtonClicked"])
|
|
1025
1030
|
])) : p("", !0),
|
|
1026
|
-
e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (u(), m("div",
|
|
1027
|
-
|
|
1031
|
+
e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (u(), m("div", ma, [
|
|
1032
|
+
r(Dt, {
|
|
1028
1033
|
"byte-size-prop": e["dcat:byteSize"],
|
|
1029
1034
|
"distribution-id": e.id,
|
|
1030
1035
|
"show-delete-button": !0,
|
|
1031
|
-
onAddByteSize:
|
|
1032
|
-
onDeleteButtonClicked: (
|
|
1036
|
+
onAddByteSize: he,
|
|
1037
|
+
onDeleteButtonClicked: (d) => Fe(e.id)
|
|
1033
1038
|
}, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
|
|
1034
1039
|
])) : p("", !0),
|
|
1035
|
-
e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (u(), m("div",
|
|
1036
|
-
|
|
1040
|
+
e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (u(), m("div", fa, [
|
|
1041
|
+
r(X, {
|
|
1037
1042
|
"distribution-id": e.id,
|
|
1038
1043
|
"file-types": y.value,
|
|
1039
1044
|
"file-format-type": "dcat:mediaType",
|
|
1040
1045
|
"file-format-text": e["dcat:mediaType"].label,
|
|
1041
1046
|
"show-delete-button": !0,
|
|
1042
1047
|
onAddMediaType: _,
|
|
1043
|
-
onDeleteButtonClicked: t[0] || (t[0] = (
|
|
1048
|
+
onDeleteButtonClicked: t[0] || (t[0] = (d) => J("dcat:mediaType", x.value))
|
|
1044
1049
|
}, null, 8, ["distribution-id", "file-types", "file-format-text"])
|
|
1045
1050
|
])) : p("", !0),
|
|
1046
|
-
e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (u(), m("div",
|
|
1047
|
-
|
|
1051
|
+
e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (u(), m("div", pa, [
|
|
1052
|
+
r(X, {
|
|
1048
1053
|
"distribution-id": e.id,
|
|
1049
1054
|
"file-types": y.value,
|
|
1050
1055
|
"file-format-type": "dcat:compressFormat",
|
|
1051
1056
|
"compress-format-text": e["dcat:compressFormat"].label,
|
|
1052
1057
|
"show-delete-button": !0,
|
|
1053
1058
|
onAddCompressFormat: _,
|
|
1054
|
-
onDeleteButtonClicked: t[1] || (t[1] = (
|
|
1059
|
+
onDeleteButtonClicked: t[1] || (t[1] = (d) => J("dcat:compressFormat", x.value))
|
|
1055
1060
|
}, null, 8, ["distribution-id", "file-types", "compress-format-text"])
|
|
1056
1061
|
])) : p("", !0),
|
|
1057
|
-
e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (u(), m("div",
|
|
1058
|
-
|
|
1062
|
+
e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (u(), m("div", va, [
|
|
1063
|
+
r(X, {
|
|
1059
1064
|
"distribution-id": e.id,
|
|
1060
1065
|
"file-types": y.value,
|
|
1061
1066
|
"file-format-type": "dcat:packageFormat",
|
|
1062
1067
|
"package-format-text": e["dcat:packageFormat"].label,
|
|
1063
1068
|
"show-delete-button": !0,
|
|
1064
1069
|
onAddPackageFormat: _,
|
|
1065
|
-
onDeleteButtonClicked: t[2] || (t[2] = (
|
|
1070
|
+
onDeleteButtonClicked: t[2] || (t[2] = (d) => J("dcat:packageFormat", x.value))
|
|
1066
1071
|
}, null, 8, ["distribution-id", "file-types", "package-format-text"])
|
|
1067
1072
|
])) : p("", !0),
|
|
1068
|
-
|
|
1073
|
+
O.value && T(l).length === 1 ? (u(), m("p", ha, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
|
|
1069
1074
|
]),
|
|
1070
|
-
f("div",
|
|
1071
|
-
|
|
1075
|
+
f("div", ga, [
|
|
1076
|
+
r(M, {
|
|
1072
1077
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
|
|
1073
1078
|
size: "small",
|
|
1074
1079
|
"icon-start": "PlusSquare",
|
|
1075
1080
|
variant: "tertiary",
|
|
1076
|
-
onClick: (
|
|
1081
|
+
onClick: (d) => Ze(e.id)
|
|
1077
1082
|
}, null, 8, ["button-text", "onClick"]),
|
|
1078
|
-
|
|
1083
|
+
T(l).length > 1 ? (u(), G(M, {
|
|
1079
1084
|
key: 0,
|
|
1080
1085
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
|
|
1081
1086
|
size: "small",
|
|
1082
1087
|
"icon-start": "trash",
|
|
1083
1088
|
variant: "tertiary",
|
|
1084
|
-
onClick: (
|
|
1089
|
+
onClick: (d) => Xe(e.id)
|
|
1085
1090
|
}, null, 8, ["button-text", "onClick"])) : p("", !0)
|
|
1086
1091
|
])
|
|
1087
1092
|
]);
|
|
1088
1093
|
}), 128)),
|
|
1089
|
-
f("div",
|
|
1090
|
-
|
|
1094
|
+
f("div", ya, [
|
|
1095
|
+
r(M, {
|
|
1091
1096
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
|
|
1092
1097
|
size: "large",
|
|
1093
1098
|
"icon-start": "plus",
|
|
1094
1099
|
variant: "tertiary",
|
|
1095
|
-
onClick:
|
|
1100
|
+
onClick: We
|
|
1096
1101
|
}, null, 8, ["button-text"])
|
|
1097
1102
|
]),
|
|
1098
|
-
|
|
1099
|
-
|
|
1103
|
+
W.value ? (u(), m("div", ka, [
|
|
1104
|
+
r(T(Z), {
|
|
1100
1105
|
size: 16,
|
|
1101
1106
|
weight: "fill"
|
|
1102
1107
|
}),
|
|
1103
1108
|
t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
1104
1109
|
])) : p("", !0)
|
|
1105
1110
|
]),
|
|
1106
|
-
|
|
1111
|
+
A.value ? (u(), G(xt, {
|
|
1107
1112
|
key: 0,
|
|
1108
1113
|
"distibution-id": x.value,
|
|
1109
1114
|
"file-types": y.value,
|
|
1110
|
-
buttons:
|
|
1111
|
-
"header-text":
|
|
1112
|
-
text:
|
|
1113
|
-
"show-buttons":
|
|
1114
|
-
"optional-info-view":
|
|
1115
|
-
documentations:
|
|
1116
|
-
"access-services":
|
|
1117
|
-
action:
|
|
1118
|
-
title:
|
|
1119
|
-
format:
|
|
1120
|
-
"distribution-link":
|
|
1121
|
-
sections:
|
|
1115
|
+
buttons: n.value.button,
|
|
1116
|
+
"header-text": n.value.header,
|
|
1117
|
+
text: n.value.text,
|
|
1118
|
+
"show-buttons": n.value.showButtons,
|
|
1119
|
+
"optional-info-view": n.value.optionalInfoView,
|
|
1120
|
+
documentations: n.value.documentations,
|
|
1121
|
+
"access-services": n.value.accessServices,
|
|
1122
|
+
action: n.value.action,
|
|
1123
|
+
title: n.value.title,
|
|
1124
|
+
format: n.value.format,
|
|
1125
|
+
"distribution-link": n.value.distributionLink,
|
|
1126
|
+
sections: ee.value,
|
|
1122
1127
|
context: R.context,
|
|
1123
|
-
"distribution-id":
|
|
1124
|
-
"modified-date":
|
|
1125
|
-
"issued-date":
|
|
1126
|
-
"description-text":
|
|
1127
|
-
"access-rights-text":
|
|
1128
|
-
"availability-text":
|
|
1129
|
-
"language-text":
|
|
1130
|
-
"byte-size-text":
|
|
1131
|
-
"media-type-text":
|
|
1132
|
-
"compress-format-text":
|
|
1133
|
-
"package-format-text":
|
|
1134
|
-
"status-text":
|
|
1135
|
-
"checksum-text":
|
|
1136
|
-
"checksum-u-r-i":
|
|
1137
|
-
"checksum-dropdown-text":
|
|
1138
|
-
"change-license-text":
|
|
1139
|
-
"change-license-dropdown-text":
|
|
1140
|
-
"conforms-to-items":
|
|
1141
|
-
"policy-items":
|
|
1142
|
-
"download-URL":
|
|
1143
|
-
onClose:
|
|
1144
|
-
onActionHandling: t[3] || (t[3] = (e) =>
|
|
1145
|
-
onAddDocumentations:
|
|
1146
|
-
onAddAccessServices:
|
|
1128
|
+
"distribution-id": n.value.distributionId,
|
|
1129
|
+
"modified-date": n.value.dctModified || "",
|
|
1130
|
+
"issued-date": n.value.dctIssued || "",
|
|
1131
|
+
"description-text": n.value.dctDescription || "",
|
|
1132
|
+
"access-rights-text": n.value.accessRightsText || "",
|
|
1133
|
+
"availability-text": n.value.availabilityText || "",
|
|
1134
|
+
"language-text": n.value.languageText || "",
|
|
1135
|
+
"byte-size-text": n.value.byteSizeText || "",
|
|
1136
|
+
"media-type-text": n.value.mediaTypeText || "",
|
|
1137
|
+
"compress-format-text": n.value.compressFormatText || "",
|
|
1138
|
+
"package-format-text": n.value.packageFormatText || "",
|
|
1139
|
+
"status-text": n.value.statusText || "",
|
|
1140
|
+
"checksum-text": n.value.checksumText || "",
|
|
1141
|
+
"checksum-u-r-i": n.value.checksumURI || "",
|
|
1142
|
+
"checksum-dropdown-text": n.value.checksumDropdownText || "",
|
|
1143
|
+
"change-license-text": n.value.changeLicenseText || "",
|
|
1144
|
+
"change-license-dropdown-text": n.value.changeLicenseDropdownText || "",
|
|
1145
|
+
"conforms-to-items": n.value.conformsToItems,
|
|
1146
|
+
"policy-items": n.value.policyItems,
|
|
1147
|
+
"download-URL": n.value.downloadURL,
|
|
1148
|
+
onClose: Qe,
|
|
1149
|
+
onActionHandling: t[3] || (t[3] = (e) => qe(e)),
|
|
1150
|
+
onAddDocumentations: He,
|
|
1151
|
+
onAddAccessServices: je,
|
|
1147
1152
|
onAddModifiedDate: de,
|
|
1148
|
-
onAddIssuedDate:
|
|
1149
|
-
onAddDescription:
|
|
1153
|
+
onAddIssuedDate: ce,
|
|
1154
|
+
onAddDescription: re,
|
|
1150
1155
|
onAddAccessRights: a.handleAccessRights,
|
|
1151
|
-
onAddAvailability:
|
|
1152
|
-
onAddLanguage:
|
|
1153
|
-
onAddByteSize:
|
|
1156
|
+
onAddAvailability: ue,
|
|
1157
|
+
onAddLanguage: ve,
|
|
1158
|
+
onAddByteSize: he,
|
|
1154
1159
|
onAddMediaType: _,
|
|
1155
1160
|
onAddCompressFormat: _,
|
|
1156
1161
|
onAddPackageFormat: _,
|
|
1157
|
-
onAddStatus:
|
|
1158
|
-
onAddChecksum:
|
|
1159
|
-
onAddChangeLicense:
|
|
1160
|
-
onAddConformsToItems:
|
|
1161
|
-
onAddPolicyItems:
|
|
1162
|
+
onAddStatus: me,
|
|
1163
|
+
onAddChecksum: fe,
|
|
1164
|
+
onAddChangeLicense: pe,
|
|
1165
|
+
onAddConformsToItems: Je,
|
|
1166
|
+
onAddPolicyItems: Ke
|
|
1162
1167
|
}, 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),
|
|
1163
|
-
|
|
1168
|
+
z.value ? (u(), G(kt, {
|
|
1164
1169
|
key: 1,
|
|
1165
|
-
buttons:
|
|
1166
|
-
"header-text":
|
|
1167
|
-
text:
|
|
1168
|
-
action:
|
|
1169
|
-
onClose: t[4] || (t[4] = (e) =>
|
|
1170
|
-
onActionHandling: t[5] || (t[5] = (e) =>
|
|
1170
|
+
buttons: V.value.button,
|
|
1171
|
+
"header-text": V.value.header,
|
|
1172
|
+
text: V.value.text,
|
|
1173
|
+
action: V.value.action,
|
|
1174
|
+
onClose: t[4] || (t[4] = (e) => z.value = !1),
|
|
1175
|
+
onActionHandling: t[5] || (t[5] = (e) => Ge(e))
|
|
1171
1176
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
|
|
1172
1177
|
], 64));
|
|
1173
1178
|
}
|
|
1174
|
-
},
|
|
1179
|
+
}, eo = /* @__PURE__ */ Ft(xa, [["__scopeId", "data-v-bcf5fd29"]]);
|
|
1175
1180
|
export {
|
|
1176
|
-
|
|
1181
|
+
eo as default
|
|
1177
1182
|
};
|