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