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