@piveau/dpi 0.1.0-beta.42 → 0.1.0-beta.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +327 -244
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +47 -47
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +208 -199
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +44 -35
- package/dist/data-provider-interface/views/InputPage.vue.js +95 -96
- package/package.json +1 -1
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as f, ref as g, onMounted as Ve, resolveComponent as we, createElementBlock as i, openBlock as l, Fragment as S, createCommentVNode as c, createBlock as V, createElementVNode as a, unref as p, toDisplayString as s, createVNode as _, renderList as w, createTextVNode as P, withCtx as Te, isRef as ue } from "vue";
|
|
2
2
|
import "@formkit/core";
|
|
3
|
-
import { useFormKitNodeById as
|
|
3
|
+
import { useFormKitNodeById as Be } from "@formkit/vue";
|
|
4
4
|
import "@phosphor-icons/vue";
|
|
5
5
|
import { useI18n as Me } from "vue-i18n";
|
|
6
6
|
import "vue-router";
|
|
7
7
|
import { useStore as Re } from "vuex";
|
|
8
|
-
import { useFormValues as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import { useFormValues as He } from "../composables/useDpiFormValues.js";
|
|
9
|
+
import D from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
10
|
+
import Pe from "../HappyFlowComponents/ui/Chip.vue.js";
|
|
11
11
|
import pe from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
|
|
12
|
-
import
|
|
12
|
+
import ze from "../HappyFlowComponents/ui/RapModal.vue.js";
|
|
13
13
|
import ve from "../HappyFlowComponents/ui/StateTag.vue.js";
|
|
14
|
-
import
|
|
14
|
+
import Ee from "../HappyFlowComponents/ui/TableRowV3.vue.js";
|
|
15
15
|
import z from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
/* empty css */
|
|
18
18
|
/* empty css */
|
|
19
19
|
import Ne from "../../_virtual/_plugin-vue_export-helper.js";
|
|
20
|
-
import { useDpiContext as
|
|
21
|
-
const
|
|
20
|
+
import { useDpiContext as Fe } from "../composables/useDpiContext.js";
|
|
21
|
+
const Le = { key: 0 }, Oe = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "dpiV3InnerComponentWrap V3-typography"
|
|
24
|
-
},
|
|
24
|
+
}, We = { class: "w-100" }, Ue = { class: "dpiV3_Frame_831" }, Ye = { key: 0 }, je = {
|
|
25
25
|
key: 1,
|
|
26
26
|
class: "dpiV3_Frame_840"
|
|
27
|
-
},
|
|
27
|
+
}, Ke = { class: "dpiV3_title" }, Ge = { class: "dpiV3_intro copy-large-regular" }, Xe = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "dpiV3Card rapFindability"
|
|
30
|
-
}, Ze = { class: "firstSec" }, qe = { class: "secondSec" },
|
|
30
|
+
}, Ze = { class: "firstSec" }, qe = { class: "secondSec" }, Je = {
|
|
31
31
|
class: "copy-large-regular",
|
|
32
32
|
style: { "margin-bottom": "4px" }
|
|
33
|
-
},
|
|
33
|
+
}, Qe = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "thirdSec"
|
|
36
|
-
},
|
|
36
|
+
}, Ie = { class: "headline-5" }, Ae = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "dpiV3Card rapEssentials"
|
|
39
|
-
},
|
|
39
|
+
}, et = { class: "firstSec" }, tt = { class: "secondSec" }, at = { class: "heading-3" }, st = { class: "thirdSec" }, ot = { class: "fourthSec flexSec" }, lt = { class: "copy-large-regular" }, it = { class: "copy-large-semi-bold" }, nt = { class: "fifthSec flexSec" }, rt = { class: "copy-large-regular" }, dt = { class: "headline-5" }, ct = { class: "copy-large-regular" }, ut = ["href"], pt = { class: "sixthSec flexSec" }, vt = { class: "copy-large-regular" }, ft = { class: "headline-5" }, ht = { class: "copy-large-regular" }, _t = { class: "copy-large-regular" }, gt = { class: "dpiV3Card rapCoverage" }, yt = { class: "firstSec" }, mt = {
|
|
40
40
|
key: 0,
|
|
41
41
|
class: "secondSec flexSec"
|
|
42
|
-
},
|
|
42
|
+
}, bt = { class: "rapHeadWrap" }, St = { class: "copy-large-regular" }, kt = { class: "coveragePlaceWrap" }, Dt = { class: "headline-5" }, Ct = {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "thirdSec"
|
|
45
|
-
},
|
|
45
|
+
}, $t = { class: "rapHeadWrap" }, xt = { class: "copy-large-regular" }, Vt = { class: "dpiV3_RapInnerCardWrapper" }, wt = { class: "dpiV3_RapInnerCard" }, Tt = { class: "copy-small-regular" }, Bt = { key: 0 }, Mt = { class: "copy-small-regular" }, Rt = { key: 0 }, Ht = { class: "dpiV3Card rapDistribution" }, Pt = { class: "firstSec" }, zt = { class: "secondSec flexSec" }, Et = { class: "copy-large-regular" }, Nt = { class: "headline-5" }, Ft = { class: "thirdSec flexSec" }, Lt = { class: "copy-large-regular" }, Ot = { class: "headline-5" }, Wt = { class: "fourthSec flexSec" }, Ut = { class: "copy-large-regular" }, Yt = { class: "dpiV3_distCard" }, jt = { class: "copy-large-semi-bold" }, Kt = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "dpiV3Card rapDistribution"
|
|
48
|
-
}, Gt = { class: "firstSec" },
|
|
48
|
+
}, Gt = { class: "firstSec" }, Xt = { class: "secondSec flexSec" }, Zt = { class: "dpiV3_optionalSpanHeadWrap" }, qt = { class: "dpiV3_optionalSpan copy-large-regular" }, Jt = { key: 0 }, Qt = { key: 0 }, It = { key: 1 }, At = { key: 2 }, ea = { key: 3 }, ta = { key: 4 }, aa = { key: 5 }, sa = { key: 6 }, oa = { key: 7 }, la = { key: 8 }, ia = { key: 9 }, na = { class: "dpiV3_tempAddMore" }, ra = {
|
|
49
49
|
key: 1,
|
|
50
50
|
class: "dpiV3_tempAddMore"
|
|
51
|
-
},
|
|
51
|
+
}, da = {
|
|
52
52
|
__name: "ReviewAndPublishPage",
|
|
53
53
|
props: {
|
|
54
54
|
context: Object
|
|
55
55
|
},
|
|
56
56
|
setup(fe) {
|
|
57
|
-
const { t:
|
|
58
|
-
|
|
57
|
+
const { t: E } = Me(), C = Fe();
|
|
58
|
+
f(() => {
|
|
59
59
|
var e;
|
|
60
|
-
return !!((e =
|
|
60
|
+
return !!((e = C.value.edit) != null && e.enabled);
|
|
61
61
|
});
|
|
62
|
-
let
|
|
63
|
-
|
|
62
|
+
let he = g(
|
|
63
|
+
C.value.edit.enabled && !C.value.edit.fromDraft
|
|
64
64
|
);
|
|
65
|
-
const
|
|
66
|
-
|
|
65
|
+
const _e = () => {
|
|
66
|
+
u.value.Covering["dcat:temporalResolution"] = {};
|
|
67
67
|
};
|
|
68
68
|
g([{ isValid: !0 }]), g(!1), Re(), g(null);
|
|
69
69
|
let y = g(!1), m = g({});
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
const N = g(!1), { formValues: u } = He();
|
|
71
|
+
Be("dpiForm", (e) => {
|
|
72
|
+
N.value = !0;
|
|
73
73
|
});
|
|
74
74
|
function ge(e) {
|
|
75
|
-
let t, r,
|
|
76
|
-
return e.forEach((
|
|
77
|
-
|
|
75
|
+
let t, r, d, v, $, x;
|
|
76
|
+
return e.forEach((h) => {
|
|
77
|
+
h.Year && (t = Number.parseInt(h.Year)), h.Month && (r = Number.parseInt(h.Month) - 1), h.Day && (d = Number.parseInt(h.Day)), h.Hour && (v = Number.parseInt(h.Hour)), h.Minute && ($ = Number.parseInt(h.Minute)), h.Second && (x = Number.parseInt(h.Second));
|
|
78
78
|
}), new Date(
|
|
79
79
|
t || 2025,
|
|
80
80
|
r || 0,
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
d || 1,
|
|
82
|
+
v || 0,
|
|
83
83
|
$ || 0,
|
|
84
84
|
x || 0
|
|
85
85
|
).toLocaleString("de", {
|
|
@@ -87,125 +87,133 @@ const Fe = { key: 0 }, Oe = {
|
|
|
87
87
|
timeZoneName: "short"
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
const F = g(),
|
|
91
|
-
function
|
|
90
|
+
const F = g(), M = g(!1);
|
|
91
|
+
function L(e) {
|
|
92
92
|
return !(Object.keys(e).includes("isValid") && Object.keys(e).length === 1);
|
|
93
93
|
}
|
|
94
|
-
const ye =
|
|
94
|
+
const ye = f(() => {
|
|
95
95
|
var t, r;
|
|
96
|
-
const e = (r = (t =
|
|
97
|
-
return Array.isArray(e) ? (e == null ? void 0 : e.filter(
|
|
98
|
-
}),
|
|
96
|
+
const e = (r = (t = u.value) == null ? void 0 : t.Discoverability) == null ? void 0 : r.discoverabilityPage;
|
|
97
|
+
return Array.isArray(e) ? (e == null ? void 0 : e.filter(L)) || [] : [];
|
|
98
|
+
}), O = f(() => {
|
|
99
99
|
var e, t;
|
|
100
|
-
return ((t = (e =
|
|
101
|
-
}), me =
|
|
102
|
-
var r,
|
|
103
|
-
const e = (
|
|
100
|
+
return ((t = (e = u.value) == null ? void 0 : e.Discoverability) == null ? void 0 : t.hvdPage) || [];
|
|
101
|
+
}), me = f(() => {
|
|
102
|
+
var r, d;
|
|
103
|
+
const e = (d = (r = u.value) == null ? void 0 : r.BasicInfos) == null ? void 0 : d["dct:title"], t = e == null ? void 0 : e.find((v) => v["@language"] === "de");
|
|
104
104
|
return t ? t["@value"] : null;
|
|
105
|
-
}), be =
|
|
106
|
-
var e, t, r,
|
|
107
|
-
return ((
|
|
108
|
-
}), W =
|
|
109
|
-
var t, r,
|
|
110
|
-
const e = (
|
|
105
|
+
}), be = f(() => {
|
|
106
|
+
var e, t, r, d;
|
|
107
|
+
return ((d = (r = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:description"]) == null ? void 0 : r[0]) == null ? void 0 : d["@value"]) || "";
|
|
108
|
+
}), W = f(() => {
|
|
109
|
+
var t, r, d, v;
|
|
110
|
+
const e = (v = (d = (r = (t = u.value) == null ? void 0 : t.BasicInfos) == null ? void 0 : r["dct:modified"]) == null ? void 0 : d[0]) == null ? void 0 : v["@value"];
|
|
111
111
|
return e ? new Date(e).toLocaleDateString("de-DE", {
|
|
112
112
|
day: "2-digit",
|
|
113
113
|
month: "2-digit",
|
|
114
114
|
year: "numeric"
|
|
115
115
|
}) : "";
|
|
116
|
-
}), T =
|
|
116
|
+
}), T = f(() => {
|
|
117
117
|
var e, t, r;
|
|
118
|
-
return ((r = (t = (e =
|
|
119
|
-
}),
|
|
118
|
+
return ((r = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:publisher"]) == null ? void 0 : r[0]) || {};
|
|
119
|
+
}), R = f(() => {
|
|
120
120
|
var e, t, r;
|
|
121
|
-
return ((r = (t = (e =
|
|
122
|
-
}), H =
|
|
123
|
-
var e, t, r,
|
|
124
|
-
return ((
|
|
125
|
-
|
|
126
|
-
)) == null ? void 0 :
|
|
127
|
-
}),
|
|
121
|
+
return ((r = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dcat:contactPoint"]) == null ? void 0 : r[0]) || {};
|
|
122
|
+
}), H = f(() => {
|
|
123
|
+
var e, t, r, d;
|
|
124
|
+
return ((d = (r = (t = (e = u.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcatde:politicalGeocodingURI"]) == null ? void 0 : r.filter(
|
|
125
|
+
L
|
|
126
|
+
)) == null ? void 0 : d[0]) || {};
|
|
127
|
+
}), B = f(() => {
|
|
128
128
|
var e, t;
|
|
129
|
-
return ((t = (e =
|
|
130
|
-
}), Se =
|
|
129
|
+
return ((t = (e = u.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcat:temporalResolution"]) || {};
|
|
130
|
+
}), Se = f(() => Object.keys(H.value).length > 1), ke = f(() => {
|
|
131
131
|
var e;
|
|
132
|
-
return ((e =
|
|
132
|
+
return ((e = B.value["dct:temporal"]) == null ? void 0 : e.length) > 0 && B.value["dct:temporal"][0]["dcat:startDate"] != "" && B.value["dct:temporal"][0]["dcat:endDate"] != "";
|
|
133
133
|
});
|
|
134
|
-
let
|
|
135
|
-
|
|
136
|
-
var e, t, r,
|
|
137
|
-
return ((
|
|
134
|
+
let U = g();
|
|
135
|
+
U = f(() => {
|
|
136
|
+
var e, t, r, d, v;
|
|
137
|
+
return ((v = (d = (r = (t = (e = u.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) == null ? void 0 : r[0]) == null ? void 0 : d["dct:license"]) == null ? void 0 : v[0]) || {};
|
|
138
138
|
});
|
|
139
|
-
const
|
|
139
|
+
const De = f(() => {
|
|
140
140
|
var e, t;
|
|
141
|
-
return ((t = (e =
|
|
142
|
-
}), b =
|
|
141
|
+
return ((t = (e = u.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) || [];
|
|
142
|
+
}), b = f(() => {
|
|
143
143
|
var e;
|
|
144
|
-
return ((e =
|
|
145
|
-
}),
|
|
144
|
+
return ((e = u.value) == null ? void 0 : e.Additionals) || {};
|
|
145
|
+
}), Y = f(() => (Object.keys(b.value).forEach((e) => {
|
|
146
146
|
if (b.value.hasOwnProperty(e)) {
|
|
147
147
|
const t = b.value[e];
|
|
148
148
|
(t === void 0 || Array.isArray(t) && t.length === 0) && delete b.value[e];
|
|
149
149
|
}
|
|
150
|
-
}), Object.keys(b.value))),
|
|
150
|
+
}), Object.keys(b.value))), Ce = (e) => {
|
|
151
|
+
const t = e.split("-");
|
|
152
|
+
if (t.length !== 3)
|
|
153
|
+
throw new Error("Ungültiges Format, erwartet YYYY-MM-DD");
|
|
154
|
+
let [r, d, v] = t;
|
|
155
|
+
if (v = v.padStart(2, "0"), d = d.padStart(2, "0"), !/^\d{4}$/.test(r) || !/^\d{2}$/.test(d) || !/^\d{2}$/.test(v))
|
|
156
|
+
throw new Error("Ungültige Datenteile");
|
|
157
|
+
return `${v}.${d}.${r}`;
|
|
158
|
+
}, j = f(() => Y.value.length > 0);
|
|
151
159
|
function k(e) {
|
|
152
|
-
F.value = e,
|
|
160
|
+
F.value = e, M.value = !0, document.body.style.overflow = "hidden";
|
|
153
161
|
}
|
|
154
|
-
function
|
|
155
|
-
document.body.style.overflow = "",
|
|
162
|
+
function $e() {
|
|
163
|
+
document.body.style.overflow = "", M.value = !1;
|
|
156
164
|
}
|
|
157
|
-
function
|
|
158
|
-
delete
|
|
165
|
+
function K(e) {
|
|
166
|
+
delete u.value.Additionals[e];
|
|
159
167
|
}
|
|
160
|
-
function
|
|
168
|
+
function xe(e, t) {
|
|
161
169
|
y.value = !0, m.value = {
|
|
162
170
|
button: "Löschen",
|
|
163
|
-
header: `${
|
|
164
|
-
text: `Sind Sie sicher, dass Sie das optionale Feld ${
|
|
171
|
+
header: `${E(`message.dataupload.additionals.${e}`)} löschen`,
|
|
172
|
+
text: `Sind Sie sicher, dass Sie das optionale Feld ${E(
|
|
165
173
|
`message.dataupload.additionals.${e}`
|
|
166
174
|
)} löschen wollen?`,
|
|
167
175
|
action: e
|
|
168
176
|
};
|
|
169
177
|
}
|
|
170
|
-
const
|
|
171
|
-
return
|
|
172
|
-
|
|
178
|
+
const G = g(!1);
|
|
179
|
+
return Ve(() => {
|
|
180
|
+
G.value = !0;
|
|
173
181
|
}), (e, t) => {
|
|
174
|
-
var
|
|
175
|
-
const r =
|
|
176
|
-
return
|
|
177
|
-
|
|
178
|
-
|
|
182
|
+
var d, v, $, x, h, X, Z, q, J, Q, I, A, ee, te, ae, se, oe, le, ie, ne, re, de, ce;
|
|
183
|
+
const r = we("formatbubble");
|
|
184
|
+
return l(), i(S, null, [
|
|
185
|
+
G.value && N.value ? (l(), i("div", Le, [
|
|
186
|
+
M.value ? (l(), V(ze, {
|
|
179
187
|
key: 0,
|
|
180
188
|
context: fe.context,
|
|
181
189
|
"active-section": F.value,
|
|
182
|
-
onClose:
|
|
190
|
+
onClose: $e
|
|
183
191
|
}, null, 8, ["context", "active-section"])) : c("", !0),
|
|
184
|
-
(
|
|
185
|
-
a("div",
|
|
186
|
-
a("div",
|
|
187
|
-
|
|
188
|
-
(
|
|
189
|
-
id: (
|
|
190
|
-
key: (x = ($ = u
|
|
191
|
-
"data-cy": u
|
|
192
|
+
(l(), i("div", Oe, [
|
|
193
|
+
a("div", We, [
|
|
194
|
+
a("div", Ue, [
|
|
195
|
+
p(C).edit.fromDraft || p(C).edit.enabled ? (l(), i("div", Ye, [
|
|
196
|
+
(l(), V(Ee, {
|
|
197
|
+
id: (v = (d = p(u).value) == null ? void 0 : d.BasicInfos) == null ? void 0 : v.datasetID,
|
|
198
|
+
key: (x = ($ = p(u).value) == null ? void 0 : $.BasicInfos) == null ? void 0 : x.datasetID,
|
|
199
|
+
"data-cy": p(u).value,
|
|
192
200
|
catalogue: "test-catalog",
|
|
193
|
-
text: ((
|
|
201
|
+
text: ((X = (h = p(u).value) == null ? void 0 : h.BasicInfos) == null ? void 0 : X.title.de) || ((q = (Z = p(u).value) == null ? void 0 : Z.BasicInfos) == null ? void 0 : q.title.en),
|
|
194
202
|
date: W.value,
|
|
195
|
-
draft: !
|
|
203
|
+
draft: !p(he),
|
|
196
204
|
dataset: e.dataset,
|
|
197
205
|
"from-draft": "true"
|
|
198
206
|
}, null, 8, ["id", "data-cy", "text", "date", "draft", "dataset"]))
|
|
199
|
-
])) : (
|
|
200
|
-
a("h4",
|
|
207
|
+
])) : (l(), i("div", je, [
|
|
208
|
+
a("h4", Ke, s(e.$t("message.dataupload.datasets.rap.title")), 1),
|
|
201
209
|
a("div", Ge, s(e.$t("message.dataupload.datasets.rap.intro-text")), 1)
|
|
202
210
|
]))
|
|
203
211
|
])
|
|
204
212
|
]),
|
|
205
|
-
(
|
|
213
|
+
(l(), i("div", Xe, [
|
|
206
214
|
a("div", Ze, [
|
|
207
215
|
a("span", null, s(e.$t("message.dataupload.datasets.rap.findability.title")), 1),
|
|
208
|
-
|
|
216
|
+
_(D, {
|
|
209
217
|
size: "large",
|
|
210
218
|
"icon-start": "pen",
|
|
211
219
|
variant: "secondary",
|
|
@@ -213,9 +221,9 @@ const Fe = { key: 0 }, Oe = {
|
|
|
213
221
|
})
|
|
214
222
|
]),
|
|
215
223
|
a("div", qe, [
|
|
216
|
-
a("span",
|
|
217
|
-
(
|
|
218
|
-
key:
|
|
224
|
+
a("span", Je, s(e.$t("message.dataupload.datasets.rap.findability.categoryHeader")), 1),
|
|
225
|
+
(l(!0), i(S, null, w(ye.value, (n, o) => (l(), V(Pe, {
|
|
226
|
+
key: o,
|
|
219
227
|
text: n.label,
|
|
220
228
|
data: { "@value": n.value, URI: n.URI },
|
|
221
229
|
setup: {
|
|
@@ -225,87 +233,87 @@ const Fe = { key: 0 }, Oe = {
|
|
|
225
233
|
}
|
|
226
234
|
}, null, 8, ["text", "data"]))), 128))
|
|
227
235
|
]),
|
|
228
|
-
(Q = (J =
|
|
229
|
-
|
|
236
|
+
(Q = (J = O.value) == null ? void 0 : J[0]) != null && Q.label ? (l(), i("div", Qe, [
|
|
237
|
+
_(ve, {
|
|
230
238
|
label: "HVD",
|
|
231
239
|
state: "hvd",
|
|
232
240
|
size: "page"
|
|
233
241
|
}),
|
|
234
|
-
a("h5",
|
|
242
|
+
a("h5", Ie, s((A = (I = O.value) == null ? void 0 : I[0]) == null ? void 0 : A.label), 1)
|
|
235
243
|
])) : c("", !0)
|
|
236
244
|
])),
|
|
237
|
-
(
|
|
238
|
-
a("div",
|
|
245
|
+
(l(), i("div", Ae, [
|
|
246
|
+
a("div", et, [
|
|
239
247
|
a("span", null, s(e.$t("message.dataupload.datasets.rap.essentials.title")), 1),
|
|
240
|
-
|
|
248
|
+
_(D, {
|
|
241
249
|
size: "large",
|
|
242
250
|
"icon-start": "pen",
|
|
243
251
|
variant: "secondary",
|
|
244
252
|
onClick: t[1] || (t[1] = (n) => k("essentials"))
|
|
245
253
|
})
|
|
246
254
|
]),
|
|
247
|
-
a("div",
|
|
248
|
-
a("h3",
|
|
255
|
+
a("div", tt, [
|
|
256
|
+
a("h3", at, s(me.value), 1)
|
|
249
257
|
]),
|
|
250
|
-
a("div",
|
|
258
|
+
a("div", st, [
|
|
251
259
|
a("span", null, s(be.value), 1)
|
|
252
260
|
]),
|
|
253
|
-
a("div",
|
|
254
|
-
a("span",
|
|
261
|
+
a("div", ot, [
|
|
262
|
+
a("span", lt, s(e.$t("message.dataupload.datasets.rap.essentials.modifiedHeader")), 1),
|
|
255
263
|
a("span", it, s(W.value), 1)
|
|
256
264
|
]),
|
|
257
|
-
a("div",
|
|
258
|
-
a("span",
|
|
259
|
-
a("h5",
|
|
260
|
-
a("a",
|
|
265
|
+
a("div", nt, [
|
|
266
|
+
a("span", rt, s(e.$t("message.dataupload.datasets.rap.essentials.publisherHeader")), 1),
|
|
267
|
+
a("h5", dt, s(T.value["foaf:name"] || ""), 1),
|
|
268
|
+
a("a", ct, s(T.value["foaf:mbox"] || ""), 1),
|
|
261
269
|
a("a", {
|
|
262
270
|
class: "copy-large-regular",
|
|
263
271
|
href: T.value["foaf:homepage"] || ""
|
|
264
|
-
}, s(T.value["foaf:homepage"] || ""), 9,
|
|
272
|
+
}, s(T.value["foaf:homepage"] || ""), 9, ut)
|
|
265
273
|
]),
|
|
266
|
-
a("div",
|
|
267
|
-
a("span",
|
|
268
|
-
a("h5",
|
|
269
|
-
a("a",
|
|
270
|
-
a("span", _t, s(
|
|
274
|
+
a("div", pt, [
|
|
275
|
+
a("span", vt, s(e.$t("message.dataupload.datasets.rap.essentials.contactHeader")), 1),
|
|
276
|
+
a("h5", ft, s(R.value["vcard:fn"] || ""), 1),
|
|
277
|
+
a("a", ht, s(R.value["vcard:hasEmail"] || ""), 1),
|
|
278
|
+
a("span", _t, s(R.value["vcard:hasTelephone"] || ""), 1)
|
|
271
279
|
])
|
|
272
280
|
])),
|
|
273
|
-
(
|
|
274
|
-
a("div",
|
|
275
|
-
a("div",
|
|
281
|
+
(l(), i(S, { key: 2 }, [
|
|
282
|
+
a("div", gt, [
|
|
283
|
+
a("div", yt, [
|
|
276
284
|
a("span", null, s(e.$t("message.dataupload.datasets.rap.coverage.title")), 1),
|
|
277
|
-
|
|
285
|
+
_(D, {
|
|
278
286
|
size: "large",
|
|
279
287
|
"icon-start": "pen",
|
|
280
288
|
variant: "secondary",
|
|
281
289
|
onClick: t[2] || (t[2] = (n) => k("coverage"))
|
|
282
290
|
})
|
|
283
291
|
]),
|
|
284
|
-
Se.value ? (
|
|
285
|
-
a("div",
|
|
286
|
-
a("span",
|
|
287
|
-
|
|
292
|
+
Se.value ? (l(), i("div", mt, [
|
|
293
|
+
a("div", bt, [
|
|
294
|
+
a("span", St, s(e.$t("message.dataupload.datasets.rap.coverage.geopolTitle")), 1),
|
|
295
|
+
_(z, { "button-text": "löschen" })
|
|
288
296
|
]),
|
|
289
|
-
a("div",
|
|
290
|
-
a("h5",
|
|
291
|
-
|
|
297
|
+
a("div", kt, [
|
|
298
|
+
a("h5", Dt, s(H.value.label || ""), 1),
|
|
299
|
+
_(ve, {
|
|
292
300
|
label: ((ee = H.value.inVoc) == null ? void 0 : ee.toUpperCase()) || "",
|
|
293
301
|
state: "geopolitical",
|
|
294
302
|
size: "page"
|
|
295
303
|
}, null, 8, ["label"])
|
|
296
304
|
])
|
|
297
305
|
])) : c("", !0),
|
|
298
|
-
ke.value ? (
|
|
299
|
-
a("div",
|
|
300
|
-
a("span",
|
|
301
|
-
|
|
306
|
+
ke.value ? (l(), i("div", Ct, [
|
|
307
|
+
a("div", $t, [
|
|
308
|
+
a("span", xt, s(e.$t("message.dataupload.datasets.rap.coverage.tempCoverage")), 1),
|
|
309
|
+
_(z, {
|
|
302
310
|
"button-text": "löschen",
|
|
303
|
-
onClick:
|
|
311
|
+
onClick: _e
|
|
304
312
|
})
|
|
305
313
|
]),
|
|
306
|
-
a("div",
|
|
307
|
-
(
|
|
308
|
-
a("div",
|
|
314
|
+
a("div", Vt, [
|
|
315
|
+
(l(!0), i(S, null, w(B.value["dct:temporal"] || [], (n) => (l(), i("div", wt, [
|
|
316
|
+
a("div", Tt, [
|
|
309
317
|
t[10] || (t[10] = P(" von: ", -1)),
|
|
310
318
|
a("div", null, [
|
|
311
319
|
a("span", null, s(new Date(n["dcat:startDate"]).toLocaleDateString(
|
|
@@ -316,7 +324,7 @@ const Fe = { key: 0 }, Oe = {
|
|
|
316
324
|
year: "numeric"
|
|
317
325
|
}
|
|
318
326
|
)), 1),
|
|
319
|
-
n.startTime != null ? (
|
|
327
|
+
n.startTime != null ? (l(), i("span", Bt, s(n.startTime), 1)) : c("", !0)
|
|
320
328
|
])
|
|
321
329
|
]),
|
|
322
330
|
a("div", Mt, [
|
|
@@ -330,42 +338,42 @@ const Fe = { key: 0 }, Oe = {
|
|
|
330
338
|
year: "numeric"
|
|
331
339
|
}
|
|
332
340
|
)), 1),
|
|
333
|
-
n.endTime != null ? (
|
|
341
|
+
n.endTime != null ? (l(), i("span", Rt, s(n.endTime), 1)) : c("", !0)
|
|
334
342
|
])
|
|
335
343
|
])
|
|
336
344
|
]))), 256))
|
|
337
345
|
])
|
|
338
346
|
])) : c("", !0)
|
|
339
347
|
]),
|
|
340
|
-
a("div",
|
|
341
|
-
a("div",
|
|
348
|
+
a("div", Ht, [
|
|
349
|
+
a("div", Pt, [
|
|
342
350
|
a("span", null, s(e.$t("message.metadata.distributions")), 1),
|
|
343
|
-
|
|
351
|
+
_(D, {
|
|
344
352
|
size: "large",
|
|
345
353
|
"icon-start": "pen",
|
|
346
354
|
variant: "secondary",
|
|
347
355
|
onClick: t[3] || (t[3] = (n) => k("distributions"))
|
|
348
356
|
})
|
|
349
357
|
]),
|
|
350
|
-
a("div",
|
|
351
|
-
a("span",
|
|
352
|
-
a("h5", Nt, s(
|
|
358
|
+
a("div", zt, [
|
|
359
|
+
a("span", Et, s(e.$t("message.dataupload.steps.dct:license")), 1),
|
|
360
|
+
a("h5", Nt, s(p(U)["dcterms:license"] || ((se = (ae = (te = p(u).DistributionSimple) == null ? void 0 : te["dct:license"]) == null ? void 0 : ae[0]) == null ? void 0 : se["dcterms:license"]) || "Keine Lizenz angegeben"), 1)
|
|
353
361
|
]),
|
|
354
|
-
a("div",
|
|
355
|
-
a("span",
|
|
362
|
+
a("div", Ft, [
|
|
363
|
+
a("span", Lt, s(e.$t(
|
|
356
364
|
"message.dataupload.datasets.dcat:distribution.advanced.dcatde:licenseAttributionByText"
|
|
357
365
|
)), 1),
|
|
358
|
-
a("h5", Ot, s(((ne = (
|
|
366
|
+
a("h5", Ot, s(((ne = (ie = (le = (oe = p(u)) == null ? void 0 : oe.DistributionSimple) == null ? void 0 : le["dcat:distribution"]) == null ? void 0 : ie[0]) == null ? void 0 : ne["dcatde:licenseAttributionByText"]) || ((ce = (de = (re = p(u).DistributionSimple) == null ? void 0 : re["dct:license"]) == null ? void 0 : de[0]) == null ? void 0 : ce.attribution) || "Kein Titel angegeben"), 1)
|
|
359
367
|
]),
|
|
360
|
-
a("div",
|
|
361
|
-
a("span",
|
|
362
|
-
(
|
|
363
|
-
a("span",
|
|
364
|
-
|
|
365
|
-
default:
|
|
366
|
-
var
|
|
368
|
+
a("div", Wt, [
|
|
369
|
+
a("span", Ut, s(e.$t("message.dataupload.steps.dcat:distribution")), 1),
|
|
370
|
+
(l(!0), i(S, null, w(De.value, (n) => (l(), i("div", Yt, [
|
|
371
|
+
a("span", jt, s(n["dct:title"]), 1),
|
|
372
|
+
_(r, null, {
|
|
373
|
+
default: Te(() => {
|
|
374
|
+
var o;
|
|
367
375
|
return [
|
|
368
|
-
P(s(((
|
|
376
|
+
P(s(((o = n["dct:format"]) == null ? void 0 : o.label) || "Kein Format angegeben"), 1)
|
|
369
377
|
];
|
|
370
378
|
}),
|
|
371
379
|
_: 2
|
|
@@ -373,38 +381,39 @@ const Fe = { key: 0 }, Oe = {
|
|
|
373
381
|
]))), 256))
|
|
374
382
|
])
|
|
375
383
|
]),
|
|
376
|
-
|
|
384
|
+
j.value ? (l(), i("div", Kt, [
|
|
377
385
|
a("div", Gt, [
|
|
378
386
|
a("span", null, s(e.$t("message.metadata.additionals")), 1)
|
|
379
387
|
]),
|
|
380
|
-
(
|
|
388
|
+
(l(!0), i(S, null, w(Y.value, (n) => (l(), i("div", Xt, [
|
|
381
389
|
a("div", Zt, [
|
|
382
390
|
a("span", qt, s(e.$t(`message.dataupload.additionals.${n}`)) + " (optional)", 1),
|
|
383
|
-
|
|
391
|
+
_(z, {
|
|
384
392
|
"button-text": "löschen",
|
|
385
|
-
onClick: (
|
|
393
|
+
onClick: (o) => xe(n)
|
|
386
394
|
}, null, 8, ["onClick"])
|
|
387
395
|
]),
|
|
388
|
-
n === "dcat:temporalResolution" ? (
|
|
396
|
+
n === "dcat:temporalResolution" ? (l(), i("div", Jt, [
|
|
389
397
|
a("span", null, s(ge(b.value[n] || [])), 1)
|
|
390
398
|
])) : c("", !0),
|
|
391
|
-
n != "dcat:temporalResolution" ? (
|
|
399
|
+
n != "dcat:temporalResolution" ? (l(!0), i(S, { key: 1 }, w(b.value[n] || [], (o) => (l(), i("div", {
|
|
392
400
|
class: "additionalSubPropsWrapper",
|
|
393
|
-
key:
|
|
401
|
+
key: o ? o["@id"] || o["@value"] || o["rdfs:label"] : null
|
|
394
402
|
}, [
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
403
|
+
o && o["rdf:type"] ? (l(), i("span", Qt, s(o["rdf:type"]), 1)) : c("", !0),
|
|
404
|
+
o && o["@type"] === "http://www.w3.org/2001/XMLSchema#date" ? (l(), i("span", It, s(Ce(o["@value"])), 1)) : c("", !0),
|
|
405
|
+
o && o["@value"] && o["@type"] !== "http://www.w3.org/2001/XMLSchema#date" ? (l(), i("span", At, s(o["@value"]), 1)) : c("", !0),
|
|
406
|
+
o && o["dct:title"] ? (l(), i("span", ea, s(o["dct:title"]), 1)) : c("", !0),
|
|
407
|
+
o && o["dct:description"] ? (l(), i("span", ta, s(o["dct:description"]), 1)) : c("", !0),
|
|
408
|
+
o && o["@id"] ? (l(), i("span", aa, s(o["@id"]), 1)) : c("", !0),
|
|
409
|
+
o && o["rdfs:label"] ? (l(), i("span", sa, s(o["rdfs:label"]), 1)) : c("", !0),
|
|
410
|
+
o && o["foaf:name"] ? (l(), i("span", oa, s(o["foaf:name"]), 1)) : c("", !0),
|
|
411
|
+
o && o["foaf:homepage"] ? (l(), i("span", la, s(o["foaf:homepage"]), 1)) : c("", !0),
|
|
412
|
+
o && o["foaf:mbox"] ? (l(), i("span", ia, s(o["foaf:mbox"]), 1)) : c("", !0)
|
|
404
413
|
]))), 128)) : c("", !0)
|
|
405
414
|
]))), 256)),
|
|
406
|
-
a("div",
|
|
407
|
-
|
|
415
|
+
a("div", na, [
|
|
416
|
+
_(D, {
|
|
408
417
|
"button-text": "Optionale Informationen hinzufügen",
|
|
409
418
|
size: "large",
|
|
410
419
|
"icon-start": "plus",
|
|
@@ -413,8 +422,8 @@ const Fe = { key: 0 }, Oe = {
|
|
|
413
422
|
})
|
|
414
423
|
])
|
|
415
424
|
])) : c("", !0),
|
|
416
|
-
|
|
417
|
-
|
|
425
|
+
j.value ? c("", !0) : (l(), i("div", ra, [
|
|
426
|
+
_(D, {
|
|
418
427
|
"button-text": "Optionale Informationen hinzufügen",
|
|
419
428
|
size: "large",
|
|
420
429
|
"icon-start": "plus",
|
|
@@ -424,29 +433,29 @@ const Fe = { key: 0 }, Oe = {
|
|
|
424
433
|
]))
|
|
425
434
|
], 64))
|
|
426
435
|
])),
|
|
427
|
-
|
|
436
|
+
p(y) ? (l(), V(pe, {
|
|
428
437
|
key: 2,
|
|
429
|
-
buttons:
|
|
430
|
-
"header-text":
|
|
431
|
-
text:
|
|
432
|
-
action:
|
|
438
|
+
buttons: p(m).button,
|
|
439
|
+
"header-text": p(m).header,
|
|
440
|
+
text: p(m).text,
|
|
441
|
+
action: p(m).action,
|
|
433
442
|
onClose: t[6] || (t[6] = (n) => ue(y) ? y.value = !1 : y = !1),
|
|
434
|
-
onActionHandling: t[7] || (t[7] = (n) =>
|
|
443
|
+
onActionHandling: t[7] || (t[7] = (n) => K(n))
|
|
435
444
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : c("", !0)
|
|
436
445
|
])) : c("", !0),
|
|
437
|
-
|
|
446
|
+
p(y) ? (l(), V(pe, {
|
|
438
447
|
key: 1,
|
|
439
|
-
buttons:
|
|
440
|
-
"header-text":
|
|
441
|
-
text:
|
|
442
|
-
action:
|
|
448
|
+
buttons: p(m).button,
|
|
449
|
+
"header-text": p(m).header,
|
|
450
|
+
text: p(m).text,
|
|
451
|
+
action: p(m).action,
|
|
443
452
|
onClose: t[8] || (t[8] = (n) => ue(y) ? y.value = !1 : y = !1),
|
|
444
|
-
onActionHandling: t[9] || (t[9] = (n) =>
|
|
453
|
+
onActionHandling: t[9] || (t[9] = (n) => K(n))
|
|
445
454
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : c("", !0)
|
|
446
455
|
], 64);
|
|
447
456
|
};
|
|
448
457
|
}
|
|
449
|
-
}, Ba = /* @__PURE__ */ Ne(
|
|
458
|
+
}, Ba = /* @__PURE__ */ Ne(da, [["__scopeId", "data-v-2e8867eb"]]);
|
|
450
459
|
export {
|
|
451
460
|
Ba as default
|
|
452
461
|
};
|