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