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