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