@piveau/dpi 0.2.0-alpha.59 → 0.2.0-alpha.60
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/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +6 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +414 -386
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +299 -312
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +265 -261
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +82 -82
- package/package.json +1 -1
package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js
CHANGED
|
@@ -1,115 +1,111 @@
|
|
|
1
|
-
import { ref as h, computed as
|
|
1
|
+
import { ref as h, computed as Pe, toRef as _t, onUnmounted as Dt, onMounted as Tt, getCurrentInstance as It, watch as Ut, createElementBlock as f, openBlock as m, Fragment as ee, createElementVNode as r, createBlock as te, createCommentVNode as p, toDisplayString as M, renderList as Ne, unref as V, createVNode as u, withDirectives as Vt, vShow as Rt, normalizeClass as Lt } 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 Ct } from "vue-i18n";
|
|
5
|
+
import { useStore as St } from "vuex";
|
|
6
|
+
import { useEditModeInfo as At } from "../composables/useDpiEditMode.js";
|
|
7
|
+
import { useFormValues as Ft } from "../composables/useDpiFormValues.js";
|
|
8
8
|
import W from "../config/dcatapdeHappyFlow/page-content-config.js";
|
|
9
|
-
import { getLicenses as
|
|
10
|
-
import { eventBus as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
9
|
+
import { getLicenses as $t, getFileTypes as Et, getFormatTypes as Mt, getChecksumAlgorithms as Bt, getPlannedAvailability as zt, getLanguages as Pt } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
10
|
+
import { eventBus as Oe } from "../HappyFlowComponents/services/eventBus.js";
|
|
11
|
+
import H from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
12
|
+
import Nt 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
|
|
24
|
-
import ta from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
|
|
14
|
+
import Ot from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
15
|
+
import Wt from "../HappyFlowComponents/ui/ModalV3.vue.js";
|
|
16
|
+
import Ht from "../HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js";
|
|
17
|
+
import jt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
|
|
18
|
+
import Gt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
|
|
19
|
+
import Jt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
|
|
20
|
+
import Kt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
|
|
21
|
+
import qt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
|
|
22
|
+
import Zt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
|
|
23
|
+
import Qt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
|
|
25
24
|
import oe from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
25
|
+
import Xt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
|
|
26
|
+
import Yt from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
|
|
27
|
+
import ea from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
|
|
28
|
+
import ta from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
|
|
29
|
+
import aa from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
|
|
31
30
|
import S from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
32
31
|
import "zod/v4/locales";
|
|
33
32
|
/* empty css */
|
|
34
|
-
import
|
|
35
|
-
const
|
|
33
|
+
import oa from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
34
|
+
const sa = { class: "dpiV3InnerComponentWrap" }, ia = { key: 0 }, la = {
|
|
36
35
|
key: 1,
|
|
37
36
|
class: "copy-large-regular"
|
|
38
|
-
},
|
|
37
|
+
}, na = { class: "dpiV3_LinkAndMetadata input-container" }, da = { style: { position: "relative", width: "100%" } }, ca = {
|
|
39
38
|
key: 0,
|
|
40
39
|
class: "validation-error"
|
|
41
|
-
},
|
|
40
|
+
}, ra = { class: "copy-mini-regular" }, ua = { style: { position: "relative", width: "100%" } }, ma = {
|
|
42
41
|
key: 0,
|
|
43
42
|
class: "validation-error"
|
|
44
|
-
},
|
|
43
|
+
}, fa = { class: "copy-mini-regular" }, pa = {
|
|
45
44
|
key: 0,
|
|
46
45
|
class: "dpiV3_DocumentationsInDistr"
|
|
47
|
-
},
|
|
46
|
+
}, va = { class: "dpiV3_TitleDelete" }, ha = { class: "dpiV3_documentationContents" }, ga = { class: "dpiV3_Documentation" }, ya = {
|
|
48
47
|
key: 1,
|
|
49
48
|
class: "dpiV3_DocumentationsInDistr"
|
|
50
|
-
},
|
|
49
|
+
}, ka = { class: "dpiV3_TitleDelete" }, ba = { class: "dpiV3_documentationContents" }, xa = { class: "dpiV3_Documentation" }, wa = { class: "dpiV3_TitleDelete" }, _a = { key: 0 }, Da = { style: { position: "relative", width: "100%", "margin-bottom": "10px" } }, Ta = {
|
|
51
50
|
key: 0,
|
|
52
51
|
class: "validation-error"
|
|
53
|
-
},
|
|
52
|
+
}, Ia = { class: "copy-mini-regular" }, Ua = {
|
|
54
53
|
key: 0,
|
|
55
54
|
class: "dpiV3_tempAddMore"
|
|
56
|
-
},
|
|
55
|
+
}, Va = {
|
|
57
56
|
key: 2,
|
|
58
57
|
class: "dpiV3_modified dpiV3_label"
|
|
59
|
-
},
|
|
58
|
+
}, Ra = {
|
|
60
59
|
key: 3,
|
|
61
60
|
class: "dpiV3_modified dpiV3_label"
|
|
62
|
-
},
|
|
61
|
+
}, La = { class: "dpiV3_modified dpiV3_label" }, Ca = {
|
|
63
62
|
key: 4,
|
|
64
63
|
class: "dpiV3_modified dpiV3_label"
|
|
65
|
-
},
|
|
64
|
+
}, Sa = {
|
|
66
65
|
key: 5,
|
|
67
66
|
class: "dpiV3_modified dpiV3_label"
|
|
68
|
-
},
|
|
67
|
+
}, Aa = {
|
|
69
68
|
key: 6,
|
|
70
69
|
class: "dpiV3_modified dpiV3_label"
|
|
71
|
-
},
|
|
70
|
+
}, Fa = {
|
|
72
71
|
key: 7,
|
|
73
72
|
class: "dpiV3_modified dpiV3_label"
|
|
74
|
-
},
|
|
73
|
+
}, $a = {
|
|
75
74
|
class: "dpiV3_TitleDelete",
|
|
76
75
|
style: { "margin-bottom": "var(--Spacing-1, 4px)" }
|
|
77
|
-
},
|
|
78
|
-
key: 8,
|
|
79
|
-
class: "dpiV3_modified dpiV3_label"
|
|
80
|
-
}, Na = {
|
|
76
|
+
}, Ea = {
|
|
81
77
|
key: 9,
|
|
82
78
|
class: "dpiV3_DocumentationsInDistr"
|
|
83
|
-
},
|
|
79
|
+
}, Ma = { class: "dpiV3_TitleDelete" }, Ba = {
|
|
84
80
|
key: 10,
|
|
85
81
|
class: "dpiV3_DocumentationsInDistr"
|
|
86
|
-
},
|
|
82
|
+
}, za = { class: "dpiV3_TitleDelete" }, Pa = {
|
|
87
83
|
key: 11,
|
|
88
84
|
class: "dpiV3_modified dpiV3_label"
|
|
89
|
-
},
|
|
85
|
+
}, Na = {
|
|
90
86
|
key: 12,
|
|
91
87
|
class: "dpiV3_modified dpiV3_label"
|
|
92
|
-
},
|
|
88
|
+
}, Oa = {
|
|
93
89
|
key: 13,
|
|
94
90
|
class: "dpiV3_modified dpiV3_label"
|
|
95
|
-
},
|
|
91
|
+
}, Wa = {
|
|
96
92
|
key: 14,
|
|
97
93
|
class: "dpiV3_modified dpiV3_label"
|
|
98
|
-
},
|
|
94
|
+
}, Ha = {
|
|
99
95
|
key: 15,
|
|
100
96
|
class: "dpiV3_modified dpiV3_label"
|
|
101
|
-
},
|
|
97
|
+
}, ja = {
|
|
102
98
|
key: 16,
|
|
103
99
|
class: "copy-mini-regular dpiV3_text_error"
|
|
104
|
-
},
|
|
100
|
+
}, Ga = { class: "dpiV3_CTA-Distribution" }, Ja = { class: "dpiV3_tempAddMore" }, Ka = {
|
|
105
101
|
__name: "DistributionSimplePage",
|
|
106
102
|
props: {
|
|
107
103
|
context: Object,
|
|
108
104
|
inRap: Boolean
|
|
109
105
|
},
|
|
110
106
|
setup(A) {
|
|
111
|
-
var we, _e, De, Te
|
|
112
|
-
const I = A, { isEditMode: se } =
|
|
107
|
+
var xe, we, _e, De, Te;
|
|
108
|
+
const I = A, { isEditMode: se } = At(), { t: R } = Ct(), _ = h(null), We = {
|
|
113
109
|
isValid: "unset",
|
|
114
110
|
id: 1,
|
|
115
111
|
"dcat:accessURL": "",
|
|
@@ -142,37 +138,37 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
142
138
|
title: "",
|
|
143
139
|
"dcterms:license": ""
|
|
144
140
|
}
|
|
145
|
-
}, { formValues:
|
|
141
|
+
}, { formValues: U } = Ft(), i = Pe(
|
|
146
142
|
() => se.value || I.inRap
|
|
147
|
-
).value ?
|
|
143
|
+
).value ? _t((xe = U.value.DistributionSimple) == null ? void 0 : xe["dcat:distribution"]) : h([We]);
|
|
148
144
|
i.value[0]["dcat:downloadURL"] || (console.log(i["dcat:downloadURL"], i), i.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
|
|
149
|
-
const l = h({}), F = h({}), ie = h([]), B = h(!1),
|
|
145
|
+
const l = h({}), F = h({}), ie = h([]), B = h(!1), j = h(!1), w = h(0), D = h([]), x = h([]), le = h([]), G = h([]), ne = h([]);
|
|
150
146
|
h([...D.value]);
|
|
151
|
-
const z = h([...
|
|
147
|
+
const z = h([...x.value]), He = St(), J = h(null);
|
|
152
148
|
h(null);
|
|
153
149
|
const K = h(!1), de = h(!1), $ = h(!1), ce = h(!0);
|
|
154
150
|
for (let a = 0; a < i.value.length; a++)
|
|
155
|
-
if (((
|
|
151
|
+
if (((_e = (we = U.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : we.checksum) == null ? void 0 : _e.uri) !== "" || ((Te = (De = U.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : De.checksum) == null ? void 0 : Te.title) !== "") {
|
|
156
152
|
de.value = !1;
|
|
157
153
|
break;
|
|
158
154
|
}
|
|
159
|
-
function
|
|
155
|
+
function je() {
|
|
160
156
|
ie.value = [
|
|
161
157
|
{
|
|
162
|
-
title:
|
|
158
|
+
title: R(
|
|
163
159
|
"message.dataupload.datasets.dcat:distribution.recommended.title"
|
|
164
160
|
),
|
|
165
161
|
items: W.distributions.Recommended.map(
|
|
166
|
-
(a) =>
|
|
162
|
+
(a) => R(
|
|
167
163
|
`message.dataupload.datasets.dcat:distribution.recommended.${a}`
|
|
168
164
|
) || a
|
|
169
165
|
),
|
|
170
166
|
keys: W.distributions.Recommended
|
|
171
167
|
},
|
|
172
168
|
{
|
|
173
|
-
title:
|
|
169
|
+
title: R("message.dataupload.datasets.dcat:distribution.advanced.title"),
|
|
174
170
|
items: W.distributions.Advanced.map(
|
|
175
|
-
(a) =>
|
|
171
|
+
(a) => R(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
|
|
176
172
|
),
|
|
177
173
|
keys: W.distributions.Advanced
|
|
178
174
|
}
|
|
@@ -186,38 +182,38 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
186
182
|
let t = !0;
|
|
187
183
|
i.value = i.value.map((e) => {
|
|
188
184
|
var g;
|
|
189
|
-
const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" &&
|
|
185
|
+
const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && L(e["dcat:accessURL"]), s = !!((g = e["dct:format"]) != null && g.label) && e["dct:format"].label.trim() !== "" && x.value.some(
|
|
190
186
|
(v) => v["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
|
|
191
187
|
), n = e["dcat:downloadURL"].every(
|
|
192
188
|
(v) => {
|
|
193
189
|
var k;
|
|
194
190
|
const y = (k = v["@id"]) == null ? void 0 : k.trim();
|
|
195
|
-
return y === "" ||
|
|
191
|
+
return y === "" || L(y);
|
|
196
192
|
}
|
|
197
|
-
),
|
|
198
|
-
return
|
|
193
|
+
), c = o && s && n;
|
|
194
|
+
return c || (t = !1), a === e.id && !I.inRap ? {
|
|
199
195
|
...e,
|
|
200
|
-
isValid:
|
|
196
|
+
isValid: c,
|
|
201
197
|
showErrorDownloadURL: !1,
|
|
202
198
|
showErrorFormat: !1
|
|
203
199
|
} : {
|
|
204
200
|
...e,
|
|
205
|
-
isValid:
|
|
201
|
+
isValid: c,
|
|
206
202
|
showErrorDownloadURL: !o,
|
|
207
203
|
showErrorFormat: !s
|
|
208
204
|
};
|
|
209
|
-
}), I.inRap == !0 && Z(), console.log(t), t && ($.value = !1), !t && i.value.length > 0 && (console.log("invalid"), i.value[0].isValid = !1), t && i.value.length > 0 && (console.log("valid"), i.value[0].isValid = !0), a == null && ($.value = !t),
|
|
205
|
+
}), I.inRap == !0 && Z(), console.log(t), t && ($.value = !1), !t && i.value.length > 0 && (console.log("invalid"), i.value[0].isValid = !1), t && i.value.length > 0 && (console.log("valid"), i.value[0].isValid = !0), a == null && ($.value = !t), U.value.DistributionSimple["dcat:distribution"] = i.value;
|
|
210
206
|
}
|
|
211
207
|
function P(a, t) {
|
|
212
208
|
var o, s, n;
|
|
213
209
|
let e = !0;
|
|
214
210
|
if (t === "dcat:accessURL")
|
|
215
|
-
e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ?
|
|
211
|
+
e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? L(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, (s = a[t]) == null || s.trim(), a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein.");
|
|
216
212
|
else if (t === "dct:format") {
|
|
217
|
-
const
|
|
218
|
-
e =
|
|
219
|
-
(g) => g["@value"].toLowerCase() ===
|
|
220
|
-
), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0,
|
|
213
|
+
const c = (n = a[t].label) == null ? void 0 : n.trim();
|
|
214
|
+
e = c !== "" && x.value.some(
|
|
215
|
+
(g) => g["@value"].toLowerCase() === c.toLowerCase()
|
|
216
|
+
), 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");
|
|
221
217
|
}
|
|
222
218
|
Z(!0);
|
|
223
219
|
}
|
|
@@ -225,7 +221,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
225
221
|
let t = !0;
|
|
226
222
|
i.value = i.value.map((e) => {
|
|
227
223
|
var g, v, y;
|
|
228
|
-
const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" &&
|
|
224
|
+
const o = ((g = e["dcat:accessURL"]) == null ? void 0 : g.trim()) !== "" && L(e["dcat:accessURL"]), s = ((y = (v = e["dct:format"]) == null ? void 0 : v.label) == null ? void 0 : y.trim()) !== "" && x.value.some(
|
|
229
225
|
(k) => {
|
|
230
226
|
var T;
|
|
231
227
|
return k["@value"].toUpperCase() === ((T = e["dct:format"].label) == null ? void 0 : T.toUpperCase());
|
|
@@ -234,35 +230,35 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
234
230
|
(k) => {
|
|
235
231
|
var E;
|
|
236
232
|
const T = (E = k["@id"]) == null ? void 0 : E.trim();
|
|
237
|
-
return T === "" ||
|
|
233
|
+
return T === "" || L(T);
|
|
238
234
|
}
|
|
239
|
-
),
|
|
240
|
-
return
|
|
241
|
-
}), i.value.length > 0 && (i.value[0].isValid = t), (I.inRap === !0 || !a || $.value === !0) && ($.value = !t),
|
|
235
|
+
), c = o && s && n;
|
|
236
|
+
return c || (t = !1), { ...e, isValid: c };
|
|
237
|
+
}), i.value.length > 0 && (i.value[0].isValid = t), (I.inRap === !0 || !a || $.value === !0) && ($.value = !t), U.value.DistributionSimple["dcat:distribution"] = i.value;
|
|
242
238
|
}
|
|
243
|
-
function
|
|
239
|
+
function L(a) {
|
|
244
240
|
return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
|
|
245
241
|
}
|
|
246
|
-
|
|
247
|
-
|
|
242
|
+
Dt(() => {
|
|
243
|
+
Oe.off("nextClicked", re), _.value && clearTimeout(_.value);
|
|
248
244
|
});
|
|
249
245
|
let ue = h([]);
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
const a =
|
|
246
|
+
Tt(async () => {
|
|
247
|
+
Oe.on("nextClicked", re);
|
|
248
|
+
const a = It(), t = a.appContext.app.config.globalProperties.$env;
|
|
253
249
|
if (a) {
|
|
254
250
|
const e = a.appContext.app.config.globalProperties.$env;
|
|
255
251
|
J.value = e.content.dataProviderInterface.specification;
|
|
256
252
|
} else
|
|
257
253
|
console.log("Instance is null!");
|
|
258
254
|
try {
|
|
259
|
-
const e = await
|
|
255
|
+
const e = await $t(t.api.baseUrl);
|
|
260
256
|
ue.value = e.map((s) => ({
|
|
261
257
|
uri: s.uri,
|
|
262
258
|
"@value": s.value,
|
|
263
259
|
label: s.label
|
|
264
260
|
}));
|
|
265
|
-
const o = await
|
|
261
|
+
const o = await Et(t.api.baseUrl);
|
|
266
262
|
D.value = o.results.map((s) => ({
|
|
267
263
|
"@value": s.pref_label.en,
|
|
268
264
|
uri: s.resource,
|
|
@@ -272,32 +268,32 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
272
268
|
error.value = e;
|
|
273
269
|
}
|
|
274
270
|
try {
|
|
275
|
-
const e = await
|
|
276
|
-
|
|
271
|
+
const e = await Mt(t.api.baseUrl);
|
|
272
|
+
x.value = e.results.map((o) => ({
|
|
277
273
|
"@value": o.pref_label.en,
|
|
278
274
|
uri: o.resource,
|
|
279
275
|
selected: !1
|
|
280
|
-
})).sort((o, s) => o["@value"].localeCompare(s["@value"])), z.value = [...
|
|
276
|
+
})).sort((o, s) => o["@value"].localeCompare(s["@value"])), z.value = [...x.value];
|
|
281
277
|
} catch (e) {
|
|
282
278
|
error.value = e;
|
|
283
279
|
}
|
|
284
280
|
try {
|
|
285
|
-
const e = await
|
|
281
|
+
const e = await Bt(t.api.baseUrl);
|
|
286
282
|
le.value = e;
|
|
287
|
-
const o = await
|
|
283
|
+
const o = await zt(t.api.baseUrl);
|
|
288
284
|
G.value = o;
|
|
289
|
-
const s = await
|
|
285
|
+
const s = await Pt(t.api.baseUrl);
|
|
290
286
|
ne.value = s;
|
|
291
287
|
} catch (e) {
|
|
292
288
|
console.log(e);
|
|
293
289
|
}
|
|
294
|
-
|
|
290
|
+
je();
|
|
295
291
|
});
|
|
296
|
-
function
|
|
292
|
+
function Ge(a, t) {
|
|
297
293
|
const e = i.value.find((s) => s.id === t);
|
|
298
294
|
if (!e) return;
|
|
299
|
-
let o =
|
|
300
|
-
e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", P(e, "dct:format"),
|
|
295
|
+
let o = x.value.find((s) => s["@value"] === a).uri || "";
|
|
296
|
+
e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", P(e, "dct:format"), U.value.DistributionSimple["dcat:distribution"] = i.value;
|
|
301
297
|
}
|
|
302
298
|
function me(a, t) {
|
|
303
299
|
const e = i.value.find((o) => o.id === t);
|
|
@@ -332,12 +328,12 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
332
328
|
const s = i.value.find((n) => n.id === e);
|
|
333
329
|
o || (o = le.value.find((n) => n.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", l.value.checksumText = a, l.value.checksumDropdownText = t, l.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
|
|
334
330
|
}
|
|
335
|
-
function
|
|
336
|
-
const s = i.value.find((
|
|
331
|
+
function Je(a, t, e, o) {
|
|
332
|
+
const s = i.value.find((c) => c.id === e);
|
|
337
333
|
let n = ue.value.find(
|
|
338
|
-
(
|
|
334
|
+
(c) => c["@value"] === t
|
|
339
335
|
);
|
|
340
|
-
s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri,
|
|
336
|
+
s ? (s["dct:license"].title = a, s["dcatde:licenseAttributionByText"] = a, s["dct:license"]["dcterms:license"] = t, s["dct:license"].uri = n.uri, U.value.DistributionSimple["dct:license"] = [
|
|
341
337
|
{
|
|
342
338
|
title: a,
|
|
343
339
|
"dcterms:license": t,
|
|
@@ -345,7 +341,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
345
341
|
}
|
|
346
342
|
], l.value.changeLicenseText = a, l.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
|
|
347
343
|
}
|
|
348
|
-
function
|
|
344
|
+
function ke(a, t, e) {
|
|
349
345
|
const o = i.value.find((s) => s.id === t);
|
|
350
346
|
e || (e = ne.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], l.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
|
|
351
347
|
}
|
|
@@ -371,8 +367,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
371
367
|
else
|
|
372
368
|
console.warn(`No matching distribution found for ID ${e}.`);
|
|
373
369
|
}
|
|
374
|
-
function
|
|
375
|
-
|
|
370
|
+
function Ke(a) {
|
|
371
|
+
b(
|
|
376
372
|
a,
|
|
377
373
|
"Konform zu Standard",
|
|
378
374
|
"conformsToItems",
|
|
@@ -380,8 +376,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
380
376
|
!0
|
|
381
377
|
);
|
|
382
378
|
}
|
|
383
|
-
function
|
|
384
|
-
|
|
379
|
+
function qe(a) {
|
|
380
|
+
b(
|
|
385
381
|
a,
|
|
386
382
|
"Verfügbarkeit",
|
|
387
383
|
"dcatap:availability",
|
|
@@ -389,8 +385,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
389
385
|
!1
|
|
390
386
|
);
|
|
391
387
|
}
|
|
392
|
-
function
|
|
393
|
-
|
|
388
|
+
function Ze(a) {
|
|
389
|
+
b(
|
|
394
390
|
a,
|
|
395
391
|
"Status",
|
|
396
392
|
"adms:status",
|
|
@@ -398,8 +394,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
398
394
|
!1
|
|
399
395
|
);
|
|
400
396
|
}
|
|
401
|
-
function
|
|
402
|
-
|
|
397
|
+
function Qe(a) {
|
|
398
|
+
b(
|
|
403
399
|
a,
|
|
404
400
|
"Größe in Bytes",
|
|
405
401
|
"dcat:byteSize",
|
|
@@ -407,8 +403,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
407
403
|
!1
|
|
408
404
|
);
|
|
409
405
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
406
|
+
function Xe(a) {
|
|
407
|
+
b(
|
|
412
408
|
a,
|
|
413
409
|
"Sprache",
|
|
414
410
|
"dct:language",
|
|
@@ -417,10 +413,10 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
417
413
|
);
|
|
418
414
|
}
|
|
419
415
|
function Q(a, t) {
|
|
420
|
-
|
|
416
|
+
b(t, a, a, !0, !1);
|
|
421
417
|
}
|
|
422
|
-
function
|
|
423
|
-
|
|
418
|
+
function Ye(a) {
|
|
419
|
+
b(
|
|
424
420
|
a,
|
|
425
421
|
"Regelwerk",
|
|
426
422
|
"policyItems",
|
|
@@ -428,11 +424,11 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
428
424
|
!0
|
|
429
425
|
);
|
|
430
426
|
}
|
|
431
|
-
function
|
|
432
|
-
|
|
427
|
+
function et(a) {
|
|
428
|
+
b(a, "Prüfsumme", "checksum", !0, !0);
|
|
433
429
|
}
|
|
434
|
-
function
|
|
435
|
-
|
|
430
|
+
function tt(a) {
|
|
431
|
+
b(
|
|
436
432
|
a,
|
|
437
433
|
"Dokumentation",
|
|
438
434
|
"documentations",
|
|
@@ -440,8 +436,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
440
436
|
!0
|
|
441
437
|
);
|
|
442
438
|
}
|
|
443
|
-
function
|
|
444
|
-
|
|
439
|
+
function at(a) {
|
|
440
|
+
b(
|
|
445
441
|
a,
|
|
446
442
|
"Ausliefernder Datenservice",
|
|
447
443
|
"accessServices",
|
|
@@ -449,49 +445,49 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
449
445
|
!0
|
|
450
446
|
);
|
|
451
447
|
}
|
|
452
|
-
function
|
|
448
|
+
function ot(a, t, e) {
|
|
453
449
|
const s = i.value.find((n) => n.id === t)["dcat:downloadURL"][e];
|
|
454
450
|
s["@id"] = a, _.value && clearTimeout(_.value), _.value = setTimeout(() => {
|
|
455
451
|
const n = a.trim();
|
|
456
|
-
n === "" ||
|
|
452
|
+
n === "" || L(n) ? (s.showError = !1, s.errorMessage = "") : (s.showError = !0, s.errorMessage = "Bitte geben Sie eine gültige URL ein."), Z(!0);
|
|
457
453
|
}, 800);
|
|
458
454
|
}
|
|
459
|
-
function
|
|
460
|
-
|
|
455
|
+
function st(a) {
|
|
456
|
+
b(
|
|
461
457
|
a,
|
|
462
458
|
"Aktualisierungsdatum",
|
|
463
459
|
"dct:modified",
|
|
464
460
|
!1
|
|
465
461
|
);
|
|
466
462
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
463
|
+
function it(a) {
|
|
464
|
+
b(
|
|
469
465
|
a,
|
|
470
466
|
"Veröffentlichungsdatum",
|
|
471
467
|
"dct:issued",
|
|
472
468
|
!1
|
|
473
469
|
);
|
|
474
470
|
}
|
|
475
|
-
function
|
|
476
|
-
|
|
471
|
+
function lt(a) {
|
|
472
|
+
b(
|
|
477
473
|
a,
|
|
478
474
|
"Beschreibung",
|
|
479
475
|
"dct:description",
|
|
480
476
|
!0
|
|
481
477
|
);
|
|
482
478
|
}
|
|
483
|
-
function
|
|
484
|
-
|
|
479
|
+
function nt(a) {
|
|
480
|
+
b(
|
|
485
481
|
a,
|
|
486
482
|
"Grad der Zugänglichkeit",
|
|
487
483
|
"dct:accessRights",
|
|
488
484
|
!1
|
|
489
485
|
);
|
|
490
486
|
}
|
|
491
|
-
const
|
|
492
|
-
|
|
487
|
+
const dt = Pe(() => J.value ? He.getters["dpiStore/getNavSteps"](J.value) : {});
|
|
488
|
+
Ut(dt, (a) => {
|
|
493
489
|
}), se.value || I.context.node.input([{ isValid: "unset" }]);
|
|
494
|
-
function
|
|
490
|
+
function ct() {
|
|
495
491
|
const a = Date.now();
|
|
496
492
|
i.value.push({
|
|
497
493
|
isValid: "unset",
|
|
@@ -527,7 +523,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
527
523
|
}
|
|
528
524
|
}), q(a);
|
|
529
525
|
}
|
|
530
|
-
function
|
|
526
|
+
function rt(a, t) {
|
|
531
527
|
const e = i.value.find((o) => o.id === a);
|
|
532
528
|
if (!e) {
|
|
533
529
|
console.error(`Distribution with ID ${a} not found`);
|
|
@@ -549,7 +545,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
549
545
|
...o
|
|
550
546
|
};
|
|
551
547
|
else {
|
|
552
|
-
const n = e.documentations.length > 0 ? Math.max(...e.documentations.map((
|
|
548
|
+
const n = e.documentations.length > 0 ? Math.max(...e.documentations.map((c) => c.id)) + 1 : 1;
|
|
553
549
|
e.documentations.push({
|
|
554
550
|
id: o.id || n,
|
|
555
551
|
"dcat:accessURL": o["dcat:accessURL"] || "",
|
|
@@ -561,7 +557,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
561
557
|
}
|
|
562
558
|
});
|
|
563
559
|
}
|
|
564
|
-
function
|
|
560
|
+
function ut(a, t) {
|
|
565
561
|
const e = i.value.find((o) => o.id === a);
|
|
566
562
|
if (!e) {
|
|
567
563
|
console.error(`Distribution with ID ${a} not found`);
|
|
@@ -588,7 +584,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
588
584
|
...o
|
|
589
585
|
};
|
|
590
586
|
else {
|
|
591
|
-
const n = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((
|
|
587
|
+
const n = e.accessServices.length > 0 ? Math.max(...e.accessServices.map((c) => c.id)) + 1 : 1;
|
|
592
588
|
e.accessServices.push({
|
|
593
589
|
id: o.id || n,
|
|
594
590
|
"dcat:downloadURL": o["dcat:downloadURL"] || "",
|
|
@@ -598,7 +594,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
598
594
|
}
|
|
599
595
|
});
|
|
600
596
|
}
|
|
601
|
-
function
|
|
597
|
+
function mt(a, t) {
|
|
602
598
|
var o;
|
|
603
599
|
const e = i.value.find((s) => s.id === a);
|
|
604
600
|
if (!e) {
|
|
@@ -613,7 +609,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
613
609
|
(s) => t.some((n) => n.id === s.id)
|
|
614
610
|
)) || [], t.forEach((s) => {
|
|
615
611
|
const n = e.conformsToItems.findIndex(
|
|
616
|
-
(
|
|
612
|
+
(c) => c.id === s.id
|
|
617
613
|
);
|
|
618
614
|
if (n !== -1)
|
|
619
615
|
e.conformsToItems[n] = {
|
|
@@ -621,18 +617,18 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
621
617
|
...s
|
|
622
618
|
};
|
|
623
619
|
else {
|
|
624
|
-
const
|
|
620
|
+
const c = e.conformsToItems.length > 0 ? Math.max(...e.conformsToItems.map((g) => g.id)) + 1 : 1;
|
|
625
621
|
e.conformsToItems.push({
|
|
626
|
-
id: s.id ||
|
|
622
|
+
id: s.id || c,
|
|
627
623
|
"dcat:downloadURL": s["dcat:downloadURL"] || "",
|
|
628
624
|
"dct:title": s["dct:title"] || ""
|
|
629
625
|
});
|
|
630
626
|
}
|
|
631
627
|
});
|
|
632
628
|
}
|
|
633
|
-
function
|
|
629
|
+
function ft(a, t) {
|
|
634
630
|
}
|
|
635
|
-
function
|
|
631
|
+
function pt(a) {
|
|
636
632
|
if (a === "deleteDataset" && w.value !== null) {
|
|
637
633
|
if (i.value.length === 1) {
|
|
638
634
|
K.value = !0;
|
|
@@ -643,7 +639,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
643
639
|
), K.value = !1, w.value = null, q();
|
|
644
640
|
}
|
|
645
641
|
}
|
|
646
|
-
function
|
|
642
|
+
function vt(a) {
|
|
647
643
|
const t = JSON.parse(a);
|
|
648
644
|
let e = i.value.find(
|
|
649
645
|
(o) => o.id === t.distributionId
|
|
@@ -660,8 +656,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
660
656
|
(o) => o.id === t.distributionId
|
|
661
657
|
)), e[t.optType] = void 0) : e[t.optType] = "";
|
|
662
658
|
}
|
|
663
|
-
function
|
|
664
|
-
var e, o, s, n,
|
|
659
|
+
function ht(a) {
|
|
660
|
+
var e, o, s, n, c, g, v, y;
|
|
665
661
|
w.value = a;
|
|
666
662
|
const t = i.value.find((k) => k.id === a);
|
|
667
663
|
t && (l.value = {
|
|
@@ -684,7 +680,7 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
684
680
|
byteSizeText: t["dcat:byteSize"] || "",
|
|
685
681
|
mediaTypeText: ((n = t["dcat:mediaType"]) == null ? void 0 : n.label) || "",
|
|
686
682
|
// compressFormatText: distribution["dcat:compressFormat"].label || "",
|
|
687
|
-
packageFormatText: ((
|
|
683
|
+
packageFormatText: ((c = t["dcat:packageFormat"]) == null ? void 0 : c.label) || "",
|
|
688
684
|
statusText: ((g = t["adms:status"]) == null ? void 0 : g.label) || "",
|
|
689
685
|
checksumText: t.checksum.title || "",
|
|
690
686
|
checksumURI: t.checksum.uri || "",
|
|
@@ -696,18 +692,18 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
696
692
|
downloadURL: (t == null ? void 0 : t.downloadURL) || []
|
|
697
693
|
}, B.value = !0, document.body.style.overflow = "hidden");
|
|
698
694
|
}
|
|
699
|
-
function
|
|
695
|
+
function gt() {
|
|
700
696
|
B.value = !1, document.body.style.overflow = "auto";
|
|
701
697
|
}
|
|
702
|
-
function
|
|
698
|
+
function yt(a) {
|
|
703
699
|
w.value = a;
|
|
704
700
|
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"] : "";
|
|
705
701
|
l.value = {
|
|
706
702
|
button: "Löschen",
|
|
707
|
-
header:
|
|
703
|
+
header: R(
|
|
708
704
|
"message.dataupload.datasets.dcat:distribution.delete-distribution.header"
|
|
709
705
|
),
|
|
710
|
-
text:
|
|
706
|
+
text: R(
|
|
711
707
|
"message.dataupload.datasets.dcat:distribution.delete-distribution.text"
|
|
712
708
|
),
|
|
713
709
|
action: "deleteDataset",
|
|
@@ -716,8 +712,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
716
712
|
distributionLink: s
|
|
717
713
|
}, B.value = !0;
|
|
718
714
|
}
|
|
719
|
-
function
|
|
720
|
-
const
|
|
715
|
+
function b(a, t, e, o, s) {
|
|
716
|
+
const c = JSON.stringify({
|
|
721
717
|
distributionId: a,
|
|
722
718
|
optType: e,
|
|
723
719
|
useUndefined: o,
|
|
@@ -727,11 +723,11 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
727
723
|
button: "Löschen",
|
|
728
724
|
header: `${t} löschen`,
|
|
729
725
|
text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
|
|
730
|
-
action:
|
|
731
|
-
},
|
|
726
|
+
action: c
|
|
727
|
+
}, j.value = !0;
|
|
732
728
|
}
|
|
733
729
|
function X(a, t, e) {
|
|
734
|
-
var s, n,
|
|
730
|
+
var s, n, c, g;
|
|
735
731
|
const o = i.value.find((v) => v.id === e);
|
|
736
732
|
if (o)
|
|
737
733
|
if (t === "dcat:accessURL") {
|
|
@@ -740,17 +736,17 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
740
736
|
P(o, t);
|
|
741
737
|
}, 800);
|
|
742
738
|
} else if (t === "dct:format") {
|
|
743
|
-
const v = typeof a == "string" ? a.trim() : (
|
|
739
|
+
const v = typeof a == "string" ? a.trim() : (c = (n = a == null ? void 0 : a.target) == null ? void 0 : n.value) == null ? void 0 : c.trim();
|
|
744
740
|
if (o.showErrorFormat = !1, o.formatErrorMessage = "", v === "")
|
|
745
|
-
o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), z.value = [...
|
|
741
|
+
o[t] = { label: "", uri: "" }, I.inRap ? (o.showErrorFormat = !0, o.formatErrorMessage = "Format ist erforderlich") : (o.showErrorFormat = !1, o.formatErrorMessage = ""), z.value = [...x.value];
|
|
746
742
|
else {
|
|
747
|
-
const y =
|
|
743
|
+
const y = x.value.find(
|
|
748
744
|
(k) => k["@value"].toLowerCase() === v.toLowerCase()
|
|
749
745
|
);
|
|
750
746
|
y ? (o[t] = {
|
|
751
747
|
label: y["@value"],
|
|
752
748
|
uri: y.uri
|
|
753
|
-
}, o.showErrorFormat = !1, o.formatErrorMessage = "") : v === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: v, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), z.value =
|
|
749
|
+
}, o.showErrorFormat = !1, o.formatErrorMessage = "") : v === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: v, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), z.value = x.value.filter(
|
|
754
750
|
(k) => k["@value"].toLowerCase().includes(v.toLowerCase())
|
|
755
751
|
);
|
|
756
752
|
}
|
|
@@ -758,43 +754,43 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
758
754
|
} else
|
|
759
755
|
o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, P(o, t);
|
|
760
756
|
}
|
|
761
|
-
function
|
|
757
|
+
function kt(a, t) {
|
|
762
758
|
const e = i.value.find((o) => o.id === a);
|
|
763
759
|
e.documentations = e.documentations.filter(
|
|
764
760
|
(o) => t.some((s) => s.id === o.id)
|
|
765
761
|
);
|
|
766
762
|
}
|
|
767
|
-
function
|
|
763
|
+
function bt(a, t) {
|
|
768
764
|
const e = i.value.find((o) => o.id === a);
|
|
769
765
|
e.accessServices = e.accessServices.filter(
|
|
770
766
|
(o) => t.some((s) => s.id === o.id)
|
|
771
767
|
);
|
|
772
768
|
}
|
|
773
|
-
function
|
|
769
|
+
function xt(a, t) {
|
|
774
770
|
const e = i.value.find((o) => o.id === a);
|
|
775
771
|
e.conformsToItems = e.conformsToItems.filter(
|
|
776
772
|
(o) => t.some((s) => s.id === o.id)
|
|
777
773
|
);
|
|
778
774
|
}
|
|
779
|
-
function
|
|
775
|
+
function wt(a, t) {
|
|
780
776
|
const e = i.value.find((o) => o.id === a);
|
|
781
777
|
e.policyItems = e.policyItems.filter(
|
|
782
778
|
(o) => t.some((s) => s.id === o.id)
|
|
783
779
|
);
|
|
784
780
|
}
|
|
785
|
-
return (a, t) => (
|
|
786
|
-
|
|
787
|
-
A.inRap ? p("", !0) : (
|
|
788
|
-
A.inRap ? p("", !0) : (
|
|
789
|
-
(
|
|
790
|
-
var s, n,
|
|
791
|
-
return
|
|
781
|
+
return (a, t) => (m(), f(ee, null, [
|
|
782
|
+
r("div", sa, [
|
|
783
|
+
A.inRap ? p("", !0) : (m(), f("h4", ia, M(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
|
|
784
|
+
A.inRap ? p("", !0) : (m(), f("div", la, M(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
|
|
785
|
+
(m(!0), f(ee, null, Ne(V(i), (e, o) => {
|
|
786
|
+
var s, n, c, g, v, y, k, T, E, Ie, Ue, Ve, Re, Le, Ce, Se, Ae, Fe, $e, Ee, Me, Be, ze;
|
|
787
|
+
return m(), f("div", {
|
|
792
788
|
key: e.id,
|
|
793
789
|
class: "dpiV3AutoCompleteWrap"
|
|
794
790
|
}, [
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
791
|
+
r("div", na, [
|
|
792
|
+
r("div", da, [
|
|
793
|
+
u(ae, {
|
|
798
794
|
"add-on-text": !1,
|
|
799
795
|
datePicker: !1,
|
|
800
796
|
infoIcon: !0,
|
|
@@ -814,16 +810,16 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
814
810
|
"model-value": e["dcat:accessURL"],
|
|
815
811
|
onInput: (d) => X(d, "dcat:accessURL", e.id)
|
|
816
812
|
}, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
|
|
817
|
-
e.showErrorDownloadURL && e.urlErrorMessage ? (
|
|
818
|
-
|
|
813
|
+
e.showErrorDownloadURL && e.urlErrorMessage ? (m(), f("div", ca, [
|
|
814
|
+
u(V(O), {
|
|
819
815
|
size: 16,
|
|
820
816
|
weight: "fill"
|
|
821
817
|
}),
|
|
822
|
-
|
|
818
|
+
r("span", ra, M(e.urlErrorMessage), 1)
|
|
823
819
|
])) : p("", !0)
|
|
824
820
|
]),
|
|
825
|
-
|
|
826
|
-
|
|
821
|
+
r("div", ua, [
|
|
822
|
+
u(Nt, {
|
|
827
823
|
"dropdown-width": "large",
|
|
828
824
|
type: "inputField",
|
|
829
825
|
"input-field-props": {
|
|
@@ -847,18 +843,18 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
847
843
|
data: z.value,
|
|
848
844
|
autocomplete: !0,
|
|
849
845
|
onInput: (d) => X(d, "dct:format", e.id),
|
|
850
|
-
"onUpdate:modelValue": (d) =>
|
|
846
|
+
"onUpdate:modelValue": (d) => Ge(d, e.id),
|
|
851
847
|
"model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
|
|
852
848
|
}, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
|
|
853
|
-
e.showErrorFormat && e.formatErrorMessage ? (
|
|
854
|
-
|
|
849
|
+
e.showErrorFormat && e.formatErrorMessage ? (m(), f("div", ma, [
|
|
850
|
+
u(V(O), {
|
|
855
851
|
size: 16,
|
|
856
852
|
weight: "fill"
|
|
857
853
|
}),
|
|
858
|
-
|
|
854
|
+
r("span", fa, M(e.formatErrorMessage), 1)
|
|
859
855
|
])) : p("", !0)
|
|
860
856
|
]),
|
|
861
|
-
|
|
857
|
+
u(ae, {
|
|
862
858
|
modelValue: e["dct:title"],
|
|
863
859
|
"onUpdate:modelValue": (d) => e["dct:title"] = d,
|
|
864
860
|
"add-on-text": !1,
|
|
@@ -876,47 +872,47 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
876
872
|
"show-end-icon": !1,
|
|
877
873
|
onInput: (d) => X(d, "dct:title", e.id)
|
|
878
874
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
|
|
879
|
-
(e.documentations || []).length > 0 ? (
|
|
880
|
-
|
|
881
|
-
t[6] || (t[6] =
|
|
882
|
-
|
|
883
|
-
|
|
875
|
+
(e.documentations || []).length > 0 ? (m(), f("div", pa, [
|
|
876
|
+
r("div", va, [
|
|
877
|
+
t[6] || (t[6] = r("div", null, "Dokumentation (optional)", -1)),
|
|
878
|
+
r("div", null, [
|
|
879
|
+
u(S, {
|
|
884
880
|
"button-text": "löschen",
|
|
885
|
-
onClick: (d) =>
|
|
881
|
+
onClick: (d) => tt(e.id)
|
|
886
882
|
}, null, 8, ["onClick"])
|
|
887
883
|
])
|
|
888
884
|
]),
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
885
|
+
r("div", ha, [
|
|
886
|
+
r("div", ga, [
|
|
887
|
+
u(Qt, {
|
|
892
888
|
documentations: e.documentations,
|
|
893
889
|
"file-types": D.value,
|
|
894
890
|
"distribution-id": e.id,
|
|
895
891
|
"as-card": !0,
|
|
896
892
|
"show-delete-button": !0,
|
|
897
|
-
onUpdate: (d) =>
|
|
893
|
+
onUpdate: (d) => kt(e.id, d)
|
|
898
894
|
}, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
|
|
899
895
|
])
|
|
900
896
|
])
|
|
901
897
|
])) : p("", !0),
|
|
902
|
-
(e.accessServices || []).length > 0 ? (
|
|
903
|
-
|
|
904
|
-
t[7] || (t[7] =
|
|
905
|
-
|
|
906
|
-
|
|
898
|
+
(e.accessServices || []).length > 0 ? (m(), f("div", ya, [
|
|
899
|
+
r("div", ka, [
|
|
900
|
+
t[7] || (t[7] = r("div", null, "Ausliefernder Datenservice (optional)", -1)),
|
|
901
|
+
r("div", null, [
|
|
902
|
+
u(S, {
|
|
907
903
|
"button-text": "löschen",
|
|
908
|
-
onClick: (d) =>
|
|
904
|
+
onClick: (d) => at(e.id)
|
|
909
905
|
}, null, 8, ["onClick"])
|
|
910
906
|
])
|
|
911
907
|
]),
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
908
|
+
r("div", ba, [
|
|
909
|
+
r("div", xa, [
|
|
910
|
+
u(jt, {
|
|
915
911
|
"access-services": e.accessServices,
|
|
916
912
|
"distribution-id": e.id,
|
|
917
913
|
"as-card": !0,
|
|
918
914
|
"show-delete-button": !0,
|
|
919
|
-
onUpdate: (d) =>
|
|
915
|
+
onUpdate: (d) => bt(
|
|
920
916
|
e.id,
|
|
921
917
|
d
|
|
922
918
|
)
|
|
@@ -924,26 +920,26 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
924
920
|
])
|
|
925
921
|
])
|
|
926
922
|
])) : p("", !0),
|
|
927
|
-
(
|
|
923
|
+
(m(!0), f(ee, null, Ne(e["dcat:downloadURL"], (d, N) => (m(), f("div", {
|
|
928
924
|
key: N,
|
|
929
925
|
class: "dpiV3_DocumentationsInDistr"
|
|
930
926
|
}, [
|
|
931
|
-
|
|
932
|
-
t[8] || (t[8] =
|
|
927
|
+
r("div", wa, [
|
|
928
|
+
t[8] || (t[8] = r("div", {
|
|
933
929
|
class: "dpiV3_label",
|
|
934
930
|
style: { margin: "0" }
|
|
935
931
|
}, " DownloadURL (optional) ", -1)),
|
|
936
|
-
e["dcat:downloadURL"].length !== 1 ? (
|
|
937
|
-
|
|
932
|
+
e["dcat:downloadURL"].length !== 1 ? (m(), f("div", _a, [
|
|
933
|
+
u(S, {
|
|
938
934
|
"button-text": "löschen",
|
|
939
935
|
onClick: (Y) => e["dcat:downloadURL"].splice(N, 1)
|
|
940
936
|
}, null, 8, ["onClick"])
|
|
941
937
|
])) : p("", !0)
|
|
942
938
|
]),
|
|
943
|
-
|
|
944
|
-
|
|
939
|
+
r("div", Da, [
|
|
940
|
+
u(ae, {
|
|
945
941
|
"model-value": d["@id"],
|
|
946
|
-
onInput: (Y) =>
|
|
942
|
+
onInput: (Y) => ot(
|
|
947
943
|
Y.target.value,
|
|
948
944
|
e.id,
|
|
949
945
|
N
|
|
@@ -955,16 +951,16 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
955
951
|
inputFieldSize: "large",
|
|
956
952
|
label: ""
|
|
957
953
|
}, null, 8, ["model-value", "onInput", "showError"]),
|
|
958
|
-
d.showError ? (
|
|
959
|
-
|
|
954
|
+
d.showError ? (m(), f("div", Ta, [
|
|
955
|
+
u(V(O), {
|
|
960
956
|
size: 16,
|
|
961
957
|
weight: "fill"
|
|
962
958
|
}),
|
|
963
|
-
|
|
959
|
+
r("span", Ia, M(d.errorMessage), 1)
|
|
964
960
|
])) : p("", !0)
|
|
965
961
|
]),
|
|
966
|
-
N === e["dcat:downloadURL"].length - 1 ? (
|
|
967
|
-
|
|
962
|
+
N === e["dcat:downloadURL"].length - 1 ? (m(), f("div", Ua, [
|
|
963
|
+
u(H, {
|
|
968
964
|
buttonText: "Weitere DownloadURL hinzufügen",
|
|
969
965
|
size: "small",
|
|
970
966
|
iconStart: "plus",
|
|
@@ -977,76 +973,76 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
977
973
|
}, null, 8, ["onClick"])
|
|
978
974
|
])) : p("", !0)
|
|
979
975
|
]))), 128)),
|
|
980
|
-
e["dct:modified"] && e["dct:modified"].trim() !== "" ? (
|
|
981
|
-
|
|
976
|
+
e["dct:modified"] && e["dct:modified"].trim() !== "" ? (m(), f("div", Va, [
|
|
977
|
+
u(ea, {
|
|
982
978
|
"show-delete-button": !0,
|
|
983
979
|
"distribution-id": e.id,
|
|
984
980
|
"model-value": e["dct:modified"],
|
|
985
981
|
onAddModifiedDate: me,
|
|
986
|
-
onDeleteButtonClicked: (d) =>
|
|
982
|
+
onDeleteButtonClicked: (d) => st(e.id)
|
|
987
983
|
}, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
|
|
988
984
|
])) : p("", !0),
|
|
989
|
-
e["dct:issued"] && e["dct:issued"].trim() !== "" ? (
|
|
990
|
-
|
|
985
|
+
e["dct:issued"] && e["dct:issued"].trim() !== "" ? (m(), f("div", Ra, [
|
|
986
|
+
u(Xt, {
|
|
991
987
|
"show-delete-button": !0,
|
|
992
988
|
"distribution-id": e.id,
|
|
993
989
|
"model-value": e["dct:issued"],
|
|
994
990
|
onAddIssuedDate: fe,
|
|
995
|
-
onDeleteButtonClicked: (d) =>
|
|
991
|
+
onDeleteButtonClicked: (d) => it(e.id)
|
|
996
992
|
}, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
|
|
997
993
|
])) : p("", !0),
|
|
998
|
-
|
|
999
|
-
|
|
994
|
+
Vt(r("div", La, [
|
|
995
|
+
u(Zt, {
|
|
1000
996
|
"distribution-id": e.id,
|
|
1001
997
|
"description-text": e["dct:description"],
|
|
1002
998
|
"show-delete-button": !0,
|
|
1003
999
|
onAddDescription: pe,
|
|
1004
|
-
onDeleteDescription: (d) =>
|
|
1000
|
+
onDeleteDescription: (d) => lt(e.id)
|
|
1005
1001
|
}, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
|
|
1006
1002
|
], 512), [
|
|
1007
1003
|
[
|
|
1008
|
-
|
|
1004
|
+
Rt,
|
|
1009
1005
|
e["dct:description"] !== void 0 && e["dct:description"] !== ""
|
|
1010
1006
|
]
|
|
1011
1007
|
]),
|
|
1012
|
-
(n = e["dct:accessRights"]) != null && n.uri && ((
|
|
1013
|
-
|
|
1008
|
+
(n = e["dct:accessRights"]) != null && n.uri && ((c = e["dct:accessRights"]) == null ? void 0 : c.uri.trim()) !== "" ? (m(), f("div", Ca, [
|
|
1009
|
+
u(Ht, {
|
|
1014
1010
|
"show-delete-button": !0,
|
|
1015
1011
|
"distribution-id": e.id,
|
|
1016
1012
|
"access-rights-prop": (g = e["dct:accessRights"]) == null ? void 0 : g.label.de,
|
|
1017
1013
|
onAddAccessRights: ve,
|
|
1018
|
-
onDeleteButtonClicked: (d) =>
|
|
1014
|
+
onDeleteButtonClicked: (d) => nt(e.id)
|
|
1019
1015
|
}, null, 8, ["distribution-id", "access-rights-prop", "onDeleteButtonClicked"])
|
|
1020
1016
|
])) : p("", !0),
|
|
1021
|
-
((v = e["dcatap:availability"]) == null ? void 0 : v.label) != null && ((y = e["dcatap:availability"]) != null && y.label.de) && ((k = e["dcatap:availability"]) == null ? void 0 : k.label.de.trim()) !== "" ? (
|
|
1022
|
-
|
|
1017
|
+
((v = e["dcatap:availability"]) == null ? void 0 : v.label) != null && ((y = e["dcatap:availability"]) != null && y.label.de) && ((k = e["dcatap:availability"]) == null ? void 0 : k.label.de.trim()) !== "" ? (m(), f("div", Sa, [
|
|
1018
|
+
u(Gt, {
|
|
1023
1019
|
"availability-text": e["dcatap:availability"].label.de,
|
|
1024
1020
|
"distribution-id": e.id,
|
|
1025
1021
|
"show-delete-button": !0,
|
|
1026
1022
|
onAddAvailability: he,
|
|
1027
|
-
onDeleteButtonClicked: (d) =>
|
|
1023
|
+
onDeleteButtonClicked: (d) => qe(e.id)
|
|
1028
1024
|
}, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
|
|
1029
1025
|
])) : p("", !0),
|
|
1030
|
-
(T = e["adms:status"]) != null && T["@value"] && ((E = e["adms:status"]) == null ? void 0 : E["@value"].trim()) !== "" ? (
|
|
1031
|
-
|
|
1026
|
+
(T = e["adms:status"]) != null && T["@value"] && ((E = e["adms:status"]) == null ? void 0 : E["@value"].trim()) !== "" ? (m(), f("div", Aa, [
|
|
1027
|
+
u(aa, {
|
|
1032
1028
|
"status-text": e["adms:status"]["@value"],
|
|
1033
1029
|
"distribution-id": e.id,
|
|
1034
1030
|
"show-delete-button": !0,
|
|
1035
1031
|
onAddStatus: ge,
|
|
1036
|
-
onDeleteButtonClicked: (d) =>
|
|
1032
|
+
onDeleteButtonClicked: (d) => Ze(e.id)
|
|
1037
1033
|
}, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
|
|
1038
1034
|
])) : p("", !0),
|
|
1039
|
-
e.checksum["spdx:checksum"] != "" ? (
|
|
1040
|
-
|
|
1041
|
-
t[9] || (t[9] =
|
|
1042
|
-
|
|
1043
|
-
|
|
1035
|
+
e.checksum["spdx:checksum"] != "" ? (m(), f("div", Fa, [
|
|
1036
|
+
r("div", $a, [
|
|
1037
|
+
t[9] || (t[9] = r("div", null, "Prüfsumme (optional)", -1)),
|
|
1038
|
+
r("div", null, [
|
|
1039
|
+
u(S, {
|
|
1044
1040
|
"button-text": "löschen",
|
|
1045
|
-
onClick: (d) =>
|
|
1041
|
+
onClick: (d) => et(e.id)
|
|
1046
1042
|
}, null, 8, ["onClick"])
|
|
1047
1043
|
])
|
|
1048
1044
|
]),
|
|
1049
|
-
|
|
1045
|
+
u(Kt, {
|
|
1050
1046
|
"checksum-text": e.checksum.title,
|
|
1051
1047
|
"checksum-dropdown-text": e.checksum["spdx:checksum"],
|
|
1052
1048
|
"distribution-id": e.id,
|
|
@@ -1057,71 +1053,62 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
1057
1053
|
onAddChecksum: ye
|
|
1058
1054
|
}, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
|
|
1059
1055
|
])) : p("", !0),
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
"
|
|
1065
|
-
|
|
1066
|
-
"show-delete-button": !0,
|
|
1067
|
-
onAddChangeLicense: ke
|
|
1068
|
-
}, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
|
|
1069
|
-
])) : p("", !0),
|
|
1070
|
-
e.conformsToItems && e.conformsToItems.length > 0 ? (u(), f("div", Na, [
|
|
1071
|
-
m("div", Oa, [
|
|
1072
|
-
t[10] || (t[10] = m("div", null, "Konform zu Standard (optional)", -1)),
|
|
1073
|
-
m("div", null, [
|
|
1074
|
-
c(S, {
|
|
1056
|
+
p("", !0),
|
|
1057
|
+
e.conformsToItems && e.conformsToItems.length > 0 ? (m(), f("div", Ea, [
|
|
1058
|
+
r("div", Ma, [
|
|
1059
|
+
t[10] || (t[10] = r("div", null, "Konform zu Standard (optional)", -1)),
|
|
1060
|
+
r("div", null, [
|
|
1061
|
+
u(S, {
|
|
1075
1062
|
"button-text": "löschen",
|
|
1076
|
-
onClick: (d) =>
|
|
1063
|
+
onClick: (d) => Ke(e.id)
|
|
1077
1064
|
}, null, 8, ["onClick"])
|
|
1078
1065
|
])
|
|
1079
1066
|
]),
|
|
1080
|
-
|
|
1067
|
+
u(qt, {
|
|
1081
1068
|
"conforms-to-items": e.conformsToItems,
|
|
1082
1069
|
"distribution-id": e.id,
|
|
1083
1070
|
"as-card": !0,
|
|
1084
1071
|
"show-delete-button": !0,
|
|
1085
|
-
onUpdate: (d) =>
|
|
1072
|
+
onUpdate: (d) => xt(e.id, d)
|
|
1086
1073
|
}, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
|
|
1087
1074
|
])) : p("", !0),
|
|
1088
|
-
((
|
|
1089
|
-
|
|
1090
|
-
t[11] || (t[11] =
|
|
1091
|
-
|
|
1092
|
-
|
|
1075
|
+
((Ue = (Ie = e == null ? void 0 : e.policyItems) == null ? void 0 : Ie[0]) == null ? void 0 : Ue["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (m(), f("div", Ba, [
|
|
1076
|
+
r("div", za, [
|
|
1077
|
+
t[11] || (t[11] = r("div", null, "Regelwerk (optional)", -1)),
|
|
1078
|
+
r("div", null, [
|
|
1079
|
+
u(S, {
|
|
1093
1080
|
"button-text": "löschen",
|
|
1094
|
-
onClick: (d) =>
|
|
1081
|
+
onClick: (d) => Ye(e.id)
|
|
1095
1082
|
}, null, 8, ["onClick"])
|
|
1096
1083
|
])
|
|
1097
1084
|
]),
|
|
1098
|
-
|
|
1085
|
+
u(ta, {
|
|
1099
1086
|
"policy-items": e.policyItems,
|
|
1100
1087
|
"distribution-id": e.id,
|
|
1101
1088
|
"as-card": !0,
|
|
1102
|
-
onUpdate: (d) =>
|
|
1089
|
+
onUpdate: (d) => wt(e.id, d)
|
|
1103
1090
|
}, null, 8, ["policy-items", "distribution-id", "onUpdate"])
|
|
1104
1091
|
])) : p("", !0),
|
|
1105
|
-
(
|
|
1106
|
-
|
|
1092
|
+
(Re = (Ve = e["dct:language"]) == null ? void 0 : Ve[0]) != null && Re.label || (Ce = (Le = e["dct:language"]) == null ? void 0 : Le[0]) != null && Ce["@value"] && ((Ae = (Se = e["dct:language"]) == null ? void 0 : Se[0]) == null ? void 0 : Ae["@value"].trim()) !== "" ? (m(), f("div", Pa, [
|
|
1093
|
+
u(Yt, {
|
|
1107
1094
|
"distribution-id": e.id,
|
|
1108
1095
|
"show-delete-button": !1,
|
|
1109
|
-
onAddLanguage:
|
|
1110
|
-
onDeleteButtonClicked: (d) =>
|
|
1096
|
+
onAddLanguage: ke,
|
|
1097
|
+
onDeleteButtonClicked: (d) => Xe(e.id),
|
|
1111
1098
|
inOverview: !0
|
|
1112
1099
|
}, null, 8, ["distribution-id", "onDeleteButtonClicked"])
|
|
1113
1100
|
])) : p("", !0),
|
|
1114
|
-
e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (
|
|
1115
|
-
|
|
1101
|
+
e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (m(), f("div", Na, [
|
|
1102
|
+
u(Jt, {
|
|
1116
1103
|
"byte-size-prop": e["dcat:byteSize"],
|
|
1117
1104
|
"distribution-id": e.id,
|
|
1118
1105
|
"show-delete-button": !0,
|
|
1119
1106
|
onAddByteSize: be,
|
|
1120
|
-
onDeleteButtonClicked: (d) =>
|
|
1107
|
+
onDeleteButtonClicked: (d) => Qe(e.id)
|
|
1121
1108
|
}, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
|
|
1122
1109
|
])) : p("", !0),
|
|
1123
|
-
e["dcat:mediaType"] && ((
|
|
1124
|
-
|
|
1110
|
+
e["dcat:mediaType"] && ((Fe = e["dcat:mediaType"]) != null && Fe.label) && (($e = e["dcat:mediaType"]) == null ? void 0 : $e.label.trim()) !== "" ? (m(), f("div", Oa, [
|
|
1111
|
+
u(oe, {
|
|
1125
1112
|
"distribution-id": e.id,
|
|
1126
1113
|
"file-types": D.value,
|
|
1127
1114
|
"file-format-type": "dcat:mediaType",
|
|
@@ -1131,8 +1118,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
1131
1118
|
onDeleteButtonClicked: t[0] || (t[0] = (d) => Q("dcat:mediaType", w.value))
|
|
1132
1119
|
}, null, 8, ["distribution-id", "file-types", "file-format-text"])
|
|
1133
1120
|
])) : p("", !0),
|
|
1134
|
-
e["dcat:compressFormat"] && ((
|
|
1135
|
-
|
|
1121
|
+
e["dcat:compressFormat"] && ((Ee = e["dcat:compressFormat"]) != null && Ee.label) && ((Me = e["dcat:compressFormat"]) == null ? void 0 : Me.label.trim()) !== "" ? (m(), f("div", Wa, [
|
|
1122
|
+
u(oe, {
|
|
1136
1123
|
"distribution-id": e.id,
|
|
1137
1124
|
"file-types": D.value,
|
|
1138
1125
|
"file-format-type": "dcat:compressFormat",
|
|
@@ -1142,8 +1129,8 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
1142
1129
|
onDeleteButtonClicked: t[1] || (t[1] = (d) => Q("dcat:compressFormat", w.value))
|
|
1143
1130
|
}, null, 8, ["distribution-id", "file-types", "compress-format-text"])
|
|
1144
1131
|
])) : p("", !0),
|
|
1145
|
-
(
|
|
1146
|
-
|
|
1132
|
+
(Be = e["dcat:packageFormat"]) != null && Be.label && ((ze = e["dcat:packageFormat"]) == null ? void 0 : ze.label.trim()) !== "" ? (m(), f("div", Ha, [
|
|
1133
|
+
u(oe, {
|
|
1147
1134
|
"distribution-id": e.id,
|
|
1148
1135
|
"file-types": D.value,
|
|
1149
1136
|
"file-format-type": "dcat:packageFormat",
|
|
@@ -1153,50 +1140,50 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
1153
1140
|
onDeleteButtonClicked: t[2] || (t[2] = (d) => Q("dcat:packageFormat", w.value))
|
|
1154
1141
|
}, null, 8, ["distribution-id", "file-types", "package-format-text"])
|
|
1155
1142
|
])) : p("", !0),
|
|
1156
|
-
K.value &&
|
|
1143
|
+
K.value && V(i).length === 1 ? (m(), f("p", ja, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
|
|
1157
1144
|
]),
|
|
1158
|
-
|
|
1159
|
-
|
|
1145
|
+
r("div", Ga, [
|
|
1146
|
+
u(H, {
|
|
1160
1147
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
|
|
1161
1148
|
size: "small",
|
|
1162
1149
|
"icon-start": "PlusSquare",
|
|
1163
1150
|
variant: "tertiary",
|
|
1164
|
-
onClick: (d) =>
|
|
1151
|
+
onClick: (d) => ht(e.id)
|
|
1165
1152
|
}, null, 8, ["button-text", "onClick"]),
|
|
1166
|
-
|
|
1153
|
+
V(i).length > 1 ? (m(), te(H, {
|
|
1167
1154
|
key: 0,
|
|
1168
1155
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
|
|
1169
1156
|
size: "small",
|
|
1170
1157
|
"icon-start": "trash",
|
|
1171
1158
|
variant: "tertiary",
|
|
1172
|
-
onClick: (d) =>
|
|
1159
|
+
onClick: (d) => yt(e.id)
|
|
1173
1160
|
}, null, 8, ["button-text", "onClick"])) : p("", !0)
|
|
1174
1161
|
])
|
|
1175
1162
|
]);
|
|
1176
1163
|
}), 128)),
|
|
1177
|
-
|
|
1178
|
-
|
|
1164
|
+
r("div", Ja, [
|
|
1165
|
+
u(H, {
|
|
1179
1166
|
"button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
|
|
1180
1167
|
size: "large",
|
|
1181
1168
|
"icon-start": "plus",
|
|
1182
1169
|
variant: "tertiary",
|
|
1183
|
-
onClick:
|
|
1170
|
+
onClick: ct
|
|
1184
1171
|
}, null, 8, ["button-text"])
|
|
1185
1172
|
]),
|
|
1186
|
-
$.value ? (
|
|
1173
|
+
$.value ? (m(), f("div", {
|
|
1187
1174
|
key: 2,
|
|
1188
|
-
class:
|
|
1175
|
+
class: Lt(
|
|
1189
1176
|
A.inRap == !0 ? "dpiV3_errormsgWrapper rap-bottom" : "dpiV3_errormsgWrapper"
|
|
1190
1177
|
)
|
|
1191
1178
|
}, [
|
|
1192
|
-
|
|
1179
|
+
u(V(O), {
|
|
1193
1180
|
size: 16,
|
|
1194
1181
|
weight: "fill"
|
|
1195
1182
|
}),
|
|
1196
|
-
t[12] || (t[12] =
|
|
1183
|
+
t[12] || (t[12] = r("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
1197
1184
|
], 2)) : p("", !0)
|
|
1198
1185
|
]),
|
|
1199
|
-
B.value ? (
|
|
1186
|
+
B.value ? (m(), te(Wt, {
|
|
1200
1187
|
key: 0,
|
|
1201
1188
|
"distibution-id": w.value,
|
|
1202
1189
|
"file-types": D.value,
|
|
@@ -1233,38 +1220,38 @@ const da = { class: "dpiV3InnerComponentWrap" }, ca = { key: 0 }, ra = {
|
|
|
1233
1220
|
"conforms-to-items": l.value.conformsToItems,
|
|
1234
1221
|
"policy-items": l.value.policyItems,
|
|
1235
1222
|
"download-URL": l.value.downloadURL,
|
|
1236
|
-
onClose:
|
|
1237
|
-
onActionHandling: t[3] || (t[3] = (e) =>
|
|
1238
|
-
onAddDocumentations:
|
|
1239
|
-
onAddAccessServices:
|
|
1223
|
+
onClose: gt,
|
|
1224
|
+
onActionHandling: t[3] || (t[3] = (e) => pt(e)),
|
|
1225
|
+
onAddDocumentations: rt,
|
|
1226
|
+
onAddAccessServices: ut,
|
|
1240
1227
|
onAddModifiedDate: me,
|
|
1241
1228
|
onAddIssuedDate: fe,
|
|
1242
1229
|
onAddDescription: pe,
|
|
1243
1230
|
onAddAccessRights: ve,
|
|
1244
1231
|
onAddAvailability: he,
|
|
1245
|
-
onAddLanguage:
|
|
1232
|
+
onAddLanguage: ke,
|
|
1246
1233
|
onAddByteSize: be,
|
|
1247
1234
|
onAddMediaType: C,
|
|
1248
1235
|
onAddCompressFormat: C,
|
|
1249
1236
|
onAddPackageFormat: C,
|
|
1250
1237
|
onAddStatus: ge,
|
|
1251
1238
|
onAddChecksum: ye,
|
|
1252
|
-
onAddChangeLicense:
|
|
1253
|
-
onAddConformsToItems:
|
|
1254
|
-
onAddPolicyItems:
|
|
1239
|
+
onAddChangeLicense: Je,
|
|
1240
|
+
onAddConformsToItems: mt,
|
|
1241
|
+
onAddPolicyItems: ft
|
|
1255
1242
|
}, 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"])) : p("", !0),
|
|
1256
|
-
|
|
1243
|
+
j.value ? (m(), te(Ot, {
|
|
1257
1244
|
key: 1,
|
|
1258
1245
|
buttons: F.value.button,
|
|
1259
1246
|
"header-text": F.value.header,
|
|
1260
1247
|
text: F.value.text,
|
|
1261
1248
|
action: F.value.action,
|
|
1262
|
-
onClose: t[4] || (t[4] = (e) =>
|
|
1263
|
-
onActionHandling: t[5] || (t[5] = (e) =>
|
|
1249
|
+
onClose: t[4] || (t[4] = (e) => j.value = !1),
|
|
1250
|
+
onActionHandling: t[5] || (t[5] = (e) => vt(e))
|
|
1264
1251
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
|
|
1265
1252
|
], 64));
|
|
1266
1253
|
}
|
|
1267
|
-
},
|
|
1254
|
+
}, Lo = /* @__PURE__ */ oa(Ka, [["__scopeId", "data-v-68eb0ba0"]]);
|
|
1268
1255
|
export {
|
|
1269
|
-
|
|
1256
|
+
Lo as default
|
|
1270
1257
|
};
|