@piveau/dpi 0.2.0-alpha.49 → 0.2.0-alpha.50
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/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +24 -24
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +24 -20
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +135 -141
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +6 -4
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { PhWarning as
|
|
3
|
-
import { useEditModeInfo as
|
|
4
|
-
import { useFormValues as
|
|
5
|
-
import { getLicenses as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { ref as f, computed as H, watch as I, onMounted as R, getCurrentInstance as G, onUnmounted as J, createElementBlock as w, openBlock as V, createElementVNode as a, createVNode as m, createCommentVNode as k, toDisplayString as r, unref as o, isRef as C, createBlock as K, createTextVNode as B } from "vue";
|
|
2
|
+
import { PhWarning as S, PhLightbulb as Q, PhArrowSquareOut as X } from "@phosphor-icons/vue";
|
|
3
|
+
import { useEditModeInfo as Y } from "../composables/useDpiEditMode.js";
|
|
4
|
+
import { useFormValues as Z } from "../composables/useDpiFormValues.js";
|
|
5
|
+
import { getLicenses as ee } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
6
|
+
import D from "../HappyFlowComponents/ui/Dropdown.vue.js";
|
|
7
|
+
import te from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import ie from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const se = { class: "dpiV3InnerComponentWrap" }, le = { class: "copy-large-regular" }, ae = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "info-message"
|
|
13
|
-
},
|
|
13
|
+
}, ne = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "validation-error"
|
|
16
|
-
},
|
|
16
|
+
}, oe = { class: "copy-mini-regular" }, de = { class: "input-container" }, re = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "dpiV3_errormsgWrapper"
|
|
19
|
-
},
|
|
19
|
+
}, ue = { class: "copy-mini-regular" }, ce = { class: "dpiV3_Content_InputPage" }, pe = { class: "dpiV3_Card_Tips" }, ve = { class: "dpiV3_Icon_Title" }, fe = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, me = { class: "dpiV3_CT-Content" }, ge = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, he = { class: "dpiV3_hvd_frame3846" }, _e = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, be = { class: "dpiV3_normal" }, Ve = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ye = { class: "dpiV3_normal" }, ze = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Le = { class: "dpiV3_normal" }, we = {
|
|
20
20
|
href: "https://oc.bydata.de/sharing/articles/licenses",
|
|
21
21
|
target: "_blank",
|
|
22
22
|
rel: "noopener noreferrer",
|
|
23
23
|
class: "dpiV3_link"
|
|
24
|
-
},
|
|
24
|
+
}, ke = { class: "end_container" }, Te = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "form-error-message"
|
|
27
|
-
},
|
|
27
|
+
}, Ne = {
|
|
28
28
|
__name: "DistLicense",
|
|
29
29
|
props: {
|
|
30
30
|
context: Object,
|
|
@@ -32,9 +32,9 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
32
32
|
changeLicenseDropdownText: { type: String, default: "" }
|
|
33
33
|
},
|
|
34
34
|
setup(F) {
|
|
35
|
-
const
|
|
36
|
-
let
|
|
37
|
-
const
|
|
35
|
+
const y = F, { isEditMode: M } = Y(), { formValues: Be } = Z();
|
|
36
|
+
let T = f(!1), z = f([]), g = f(""), h = f(null), u = f("");
|
|
37
|
+
const p = f(""), $ = {
|
|
38
38
|
"freie Nutzung": [
|
|
39
39
|
"dl-zero-de/2.0",
|
|
40
40
|
"dl-by-de/2.0",
|
|
@@ -46,7 +46,6 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
46
46
|
"cc-by-sa",
|
|
47
47
|
"cc-by-sa-de/3.0",
|
|
48
48
|
"cc-by-sa/4.0",
|
|
49
|
-
"cc-by-nc-de/3.0",
|
|
50
49
|
"ccpdm/1.0",
|
|
51
50
|
"cc-zero",
|
|
52
51
|
"dl-by-de/1.0",
|
|
@@ -76,133 +75,129 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
76
75
|
"other-commercial",
|
|
77
76
|
"other-freeware"
|
|
78
77
|
]
|
|
79
|
-
},
|
|
78
|
+
}, x = f([
|
|
80
79
|
{ "@value": "freie Nutzung", label: "freie Nutzung" },
|
|
81
80
|
{ "@value": "eingeschränkte Nutzung", label: "eingeschränkte Nutzung" }
|
|
82
81
|
]);
|
|
83
|
-
let d =
|
|
84
|
-
const s =
|
|
82
|
+
let d = f({ 1: "unset", 2: "unset" });
|
|
83
|
+
const s = f([
|
|
85
84
|
{ isValid: "unset", "dcterms:license": "", title: "", uri: "" }
|
|
86
|
-
]), v =
|
|
85
|
+
]), v = f({
|
|
87
86
|
2: {
|
|
88
87
|
show: !1,
|
|
89
88
|
message: "Bitte geben Sie einen Namensnennungstext für diese Lizenz ein."
|
|
90
89
|
}
|
|
91
90
|
});
|
|
92
|
-
M.value ||
|
|
93
|
-
const
|
|
94
|
-
if (!
|
|
91
|
+
M.value || y.context.node.input(s);
|
|
92
|
+
const b = H(() => {
|
|
93
|
+
if (!u.value)
|
|
95
94
|
return [];
|
|
96
|
-
const e = $[
|
|
97
|
-
console.log("Selected license type:",
|
|
98
|
-
const t =
|
|
95
|
+
const e = $[u.value] || [];
|
|
96
|
+
console.log("Selected license type:", u.value), console.log("Allowed licenses for this type:", e), console.log("All available license options:", z.value.map((i) => i["@value"]));
|
|
97
|
+
const t = z.value.filter(
|
|
99
98
|
(i) => e.includes(i["@value"])
|
|
100
99
|
);
|
|
101
100
|
return console.log("Filtered licenses:", t.map((i) => i["@value"])), t;
|
|
102
101
|
});
|
|
103
|
-
function
|
|
104
|
-
|
|
102
|
+
function E(e) {
|
|
103
|
+
u.value = e, g.value = "", p.value = "", T.value = !1, d.value[1] = "unset", d.value[2] = "unset", s.value[0].isValid = "unset", v.value[2].show = !1, s.value = s.value.map((t) => ({ ...t, "dcterms:license": "", uri: "", title: "", attribution: "" })), y.context.node.input(s.value);
|
|
105
104
|
}
|
|
106
|
-
function
|
|
107
|
-
|
|
105
|
+
function O(e, t, i) {
|
|
106
|
+
N(e, t, i);
|
|
108
107
|
}
|
|
109
|
-
function
|
|
108
|
+
function P(e) {
|
|
110
109
|
const t = typeof e == "object" && e.target ? e.target.value : e;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
h.value && clearTimeout(h.value), q(t, "dcterms:license", 1), h.value = setTimeout(() => {
|
|
111
|
+
A(t, "dcterms:license", 1);
|
|
113
112
|
}, 800);
|
|
114
113
|
}
|
|
115
|
-
function
|
|
116
|
-
|
|
117
|
-
const l =
|
|
118
|
-
l ?
|
|
114
|
+
function q(e, t, i) {
|
|
115
|
+
p.value = "";
|
|
116
|
+
const l = b.value.find((n) => n["@value"] === e);
|
|
117
|
+
l ? N(e, t, i, l.uri) : e === "" ? (d.value[i] = !1, s.value[0].isValid = "unset", T.value = !1, v.value[2].show = !1, s.value = s.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), y.context.node.input(s.value)) : (d.value[i] = "unset", s.value[0].isValid = "unset");
|
|
119
118
|
}
|
|
120
|
-
function
|
|
119
|
+
function A(e, t, i) {
|
|
121
120
|
if (e === "") {
|
|
122
|
-
|
|
121
|
+
p.value = "";
|
|
123
122
|
return;
|
|
124
123
|
}
|
|
125
|
-
const l =
|
|
126
|
-
l ?
|
|
124
|
+
const l = b.value.find((n) => n["@value"] === e);
|
|
125
|
+
l ? N(e, t, i, l.uri) : (p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[i] = !1, s.value[0].isValid = "unset");
|
|
127
126
|
}
|
|
128
|
-
function
|
|
129
|
-
|
|
127
|
+
function U(e) {
|
|
128
|
+
h.value && clearTimeout(h.value);
|
|
130
129
|
const t = e.target.value;
|
|
131
|
-
|
|
130
|
+
A(t, "dcterms:license", 1);
|
|
132
131
|
}
|
|
133
|
-
function
|
|
132
|
+
function W(e, t, i) {
|
|
134
133
|
var l;
|
|
135
134
|
s.value = s.value.map((n) => t in n ? { ...n, [t]: e } : n);
|
|
136
135
|
{
|
|
137
136
|
const n = ((l = s.value[0]) == null ? void 0 : l["dcterms:license"]) || "";
|
|
138
137
|
if (n !== "" && (n.includes("cc-by") || n.includes("dl-by-de"))) {
|
|
139
|
-
const
|
|
140
|
-
v.value[2].show = !
|
|
138
|
+
const c = e && e.trim() !== "";
|
|
139
|
+
v.value[2].show = !c, d.value[2] = c, d.value[1] === !0 && c ? s.value[0].isValid = !0 : s.value[0].isValid = "unset";
|
|
141
140
|
} else
|
|
142
141
|
v.value[2].show = !1, d.value[2] = "unset";
|
|
143
142
|
}
|
|
144
|
-
|
|
143
|
+
y.context.node.input(s.value);
|
|
145
144
|
}
|
|
146
|
-
function
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
if (m.value.some((f) => f["@value"] === e) && (L.value = m.value.find(
|
|
151
|
-
(f) => f["@value"] === e
|
|
152
|
-
).label), !n && e !== "")
|
|
153
|
-
c.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[i] = !1, s.value[0].isValid = "unset";
|
|
145
|
+
function N(e, t, i, l) {
|
|
146
|
+
var L;
|
|
147
|
+
if (!(e === "" || b.value.some((c) => c["@value"] === e)) && e !== "")
|
|
148
|
+
p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[i] = !1, s.value[0].isValid = "unset";
|
|
154
149
|
else {
|
|
155
|
-
|
|
156
|
-
const
|
|
157
|
-
if (
|
|
150
|
+
p.value = "";
|
|
151
|
+
const c = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
|
|
152
|
+
if (T.value = c, e !== "") {
|
|
158
153
|
d.value[i] = !0;
|
|
159
|
-
const
|
|
160
|
-
s.value[0].isValid =
|
|
154
|
+
const _ = ((L = s.value[0]) == null ? void 0 : L.title) || "", j = !c || c && _.trim() !== "";
|
|
155
|
+
s.value[0].isValid = j ? !0 : "unset", c ? (v.value[2].show = _.trim() === "", d.value[2] = _.trim() !== "") : (v.value[2].show = !1, d.value[2] = "unset");
|
|
161
156
|
} else
|
|
162
157
|
d.value[i] = !1, s.value[0].isValid = "unset", v.value[2].show = !1;
|
|
163
|
-
s.value = s.value.map((
|
|
158
|
+
s.value = s.value.map((_) => t in _ ? { ..._, [t]: e, uri: l } : _);
|
|
164
159
|
}
|
|
165
|
-
|
|
160
|
+
y.context.node.input(s.value);
|
|
166
161
|
}
|
|
167
|
-
return
|
|
162
|
+
return I(g, (e) => {
|
|
168
163
|
var i;
|
|
169
|
-
let t = (i =
|
|
164
|
+
let t = (i = b.value.find(
|
|
170
165
|
(l) => l["@value"] === e
|
|
171
166
|
)) == null ? void 0 : i.uri;
|
|
172
|
-
e !== void 0 &&
|
|
173
|
-
}),
|
|
167
|
+
e !== void 0 && N(e, "dcterms:license", 1, t);
|
|
168
|
+
}), I(
|
|
174
169
|
() => s.value[0].isValid,
|
|
175
170
|
(e) => {
|
|
176
171
|
var t, i;
|
|
177
172
|
if (e === !1) {
|
|
178
173
|
const l = ((t = s.value[0]) == null ? void 0 : t["dcterms:license"]) || "";
|
|
179
|
-
l === "" ?
|
|
180
|
-
(
|
|
181
|
-
) || (
|
|
174
|
+
l === "" ? p.value = "Bitte wählen Sie eine Lizenz aus." : z.value.find(
|
|
175
|
+
(c) => c["@value"] === l
|
|
176
|
+
) || (p.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste"), l !== "" && (l.includes("cc-by") || l.includes("dl-by-de")) && (((i = s.value[0]) == null ? void 0 : i.title) || "").trim() === "" && (v.value[2].show = !0);
|
|
182
177
|
}
|
|
183
178
|
}
|
|
184
|
-
),
|
|
185
|
-
const t =
|
|
179
|
+
), R(async () => {
|
|
180
|
+
const t = G().appContext.app.config.globalProperties.$env;
|
|
186
181
|
try {
|
|
187
|
-
const i = await
|
|
188
|
-
|
|
182
|
+
const i = await ee(t.api.baseUrl);
|
|
183
|
+
z.value = i.map((l) => ({
|
|
189
184
|
"@value": l.value,
|
|
190
185
|
label: l.label,
|
|
191
186
|
uri: l.uri
|
|
192
|
-
})),
|
|
187
|
+
})), z.value.sort((l, n) => l["@value"].localeCompare(n["@value"]));
|
|
193
188
|
} catch (i) {
|
|
194
189
|
console.error("Failed to load licenses", i);
|
|
195
190
|
}
|
|
196
|
-
}),
|
|
197
|
-
|
|
198
|
-
}), (e, t) => (
|
|
199
|
-
a("h4", null,
|
|
200
|
-
a("div",
|
|
201
|
-
|
|
202
|
-
modelValue: o(
|
|
191
|
+
}), J(() => {
|
|
192
|
+
h.value && clearTimeout(h.value);
|
|
193
|
+
}), (e, t) => (V(), w("div", se, [
|
|
194
|
+
a("h4", null, r(e.$t("message.dataupload.datasets.dct:license.title")), 1),
|
|
195
|
+
a("div", le, r(e.$t("message.dataupload.datasets.dct:license.description")), 1),
|
|
196
|
+
m(D, {
|
|
197
|
+
modelValue: o(u),
|
|
203
198
|
"onUpdate:modelValue": [
|
|
204
|
-
t[0] || (t[0] = (i) =>
|
|
205
|
-
|
|
199
|
+
t[0] || (t[0] = (i) => C(u) ? u.value = i : u = i),
|
|
200
|
+
E
|
|
206
201
|
],
|
|
207
202
|
"dropdown-width": "large",
|
|
208
203
|
type: "inputField",
|
|
@@ -216,17 +211,17 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
216
211
|
dropdown_dpiV3: !0,
|
|
217
212
|
placeholder: "Art der Lizenz wählen...",
|
|
218
213
|
inputFieldSize: "large",
|
|
219
|
-
modelValue: o(
|
|
214
|
+
modelValue: o(u),
|
|
220
215
|
defaultInput: !0,
|
|
221
216
|
showError: !1
|
|
222
217
|
},
|
|
223
|
-
data:
|
|
218
|
+
data: x.value
|
|
224
219
|
}, null, 8, ["modelValue", "input-field-props", "data"]),
|
|
225
|
-
|
|
226
|
-
modelValue: o(
|
|
220
|
+
m(D, {
|
|
221
|
+
modelValue: o(g),
|
|
227
222
|
"onUpdate:modelValue": [
|
|
228
|
-
t[1] || (t[1] = (i) =>
|
|
229
|
-
t[2] || (t[2] = (i) =>
|
|
223
|
+
t[1] || (t[1] = (i) => C(g) ? g.value = i : g = i),
|
|
224
|
+
t[2] || (t[2] = (i) => O(i, "dcterms:license", 1))
|
|
230
225
|
],
|
|
231
226
|
"dropdown-width": "large",
|
|
232
227
|
type: "inputField",
|
|
@@ -238,36 +233,35 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
238
233
|
preIcon: !1,
|
|
239
234
|
label: "Lizenz",
|
|
240
235
|
dropdown_dpiV3: !0,
|
|
241
|
-
placeholder: o(
|
|
236
|
+
placeholder: o(u) ? "Lizenz wählen..." : "Bitte wählen Sie zuerst eine Art der Lizenz...",
|
|
242
237
|
inputFieldSize: "large",
|
|
243
|
-
modelValue: o(
|
|
238
|
+
modelValue: o(g),
|
|
244
239
|
defaultInput: !0,
|
|
245
|
-
showError:
|
|
246
|
-
disabled: !o(
|
|
240
|
+
showError: p.value !== "" || s.value[0].isValid === "unset" && o(d)[1] === !1,
|
|
241
|
+
disabled: !o(u)
|
|
247
242
|
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
onBlur: W,
|
|
243
|
+
data: b.value,
|
|
244
|
+
onInput: P,
|
|
245
|
+
onBlur: U,
|
|
252
246
|
onDeleteButtonClicked: e.deleteModifiedField
|
|
253
247
|
}, null, 8, ["modelValue", "input-field-props", "data", "onDeleteButtonClicked"]),
|
|
254
|
-
o(
|
|
255
|
-
|
|
248
|
+
o(u) && b.value.length === 0 ? (V(), w("div", ae, [
|
|
249
|
+
m(o(S), {
|
|
256
250
|
size: 16,
|
|
257
251
|
weight: "fill",
|
|
258
252
|
color: "#e67700"
|
|
259
253
|
}),
|
|
260
254
|
t[4] || (t[4] = a("span", { class: "copy-mini-regular" }, "Für diese Lizenzkategorie sind derzeit keine Lizenzen verfügbar.", -1))
|
|
261
|
-
])) :
|
|
262
|
-
|
|
263
|
-
|
|
255
|
+
])) : k("", !0),
|
|
256
|
+
p.value ? (V(), w("div", ne, [
|
|
257
|
+
m(o(S), {
|
|
264
258
|
size: 16,
|
|
265
259
|
weight: "fill"
|
|
266
260
|
}),
|
|
267
|
-
a("span",
|
|
268
|
-
])) :
|
|
269
|
-
a("div",
|
|
270
|
-
o(
|
|
261
|
+
a("span", oe, r(p.value), 1)
|
|
262
|
+
])) : k("", !0),
|
|
263
|
+
a("div", de, [
|
|
264
|
+
o(T) ? (V(), K(te, {
|
|
271
265
|
key: 0,
|
|
272
266
|
"model-value": s.value[0].title,
|
|
273
267
|
"add-on-text": !1,
|
|
@@ -283,56 +277,56 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
283
277
|
"show-end-icon": !1,
|
|
284
278
|
"default-input": !0,
|
|
285
279
|
"supporting-hint-message": "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
|
|
286
|
-
"onUpdate:modelValue": t[3] || (t[3] = (i) =>
|
|
280
|
+
"onUpdate:modelValue": t[3] || (t[3] = (i) => W(i, "title")),
|
|
287
281
|
onDeleteButtonClicked: e.deleteModifiedField
|
|
288
|
-
}, null, 8, ["model-value", "label", "onDeleteButtonClicked"])) :
|
|
289
|
-
s.value[0].isValid === !1 && v.value[2].show ? (
|
|
290
|
-
|
|
282
|
+
}, null, 8, ["model-value", "label", "onDeleteButtonClicked"])) : k("", !0),
|
|
283
|
+
s.value[0].isValid === !1 && v.value[2].show ? (V(), w("div", re, [
|
|
284
|
+
m(o(S), {
|
|
291
285
|
size: 16,
|
|
292
286
|
weight: "fill"
|
|
293
287
|
}),
|
|
294
|
-
a("span",
|
|
295
|
-
])) :
|
|
288
|
+
a("span", ue, r(v.value[2].message), 1)
|
|
289
|
+
])) : k("", !0)
|
|
296
290
|
]),
|
|
297
|
-
a("div",
|
|
298
|
-
a("div",
|
|
299
|
-
a("div",
|
|
300
|
-
|
|
291
|
+
a("div", ce, [
|
|
292
|
+
a("div", pe, [
|
|
293
|
+
a("div", ve, [
|
|
294
|
+
m(o(Q), {
|
|
301
295
|
size: 32,
|
|
302
296
|
color: "#009fe3"
|
|
303
297
|
}),
|
|
304
|
-
a("div",
|
|
298
|
+
a("div", fe, r(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
|
|
305
299
|
]),
|
|
306
|
-
a("div",
|
|
307
|
-
a("div",
|
|
308
|
-
a("div",
|
|
309
|
-
a("div",
|
|
310
|
-
|
|
300
|
+
a("div", me, [
|
|
301
|
+
a("div", ge, r(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
|
|
302
|
+
a("div", he, [
|
|
303
|
+
a("div", _e, [
|
|
304
|
+
B(r(e.$t(
|
|
311
305
|
"message.dataupload.datasets.dct:license.advices.licenseName1"
|
|
312
306
|
)) + " ", 1),
|
|
313
|
-
a("span",
|
|
307
|
+
a("span", be, r(e.$t(
|
|
314
308
|
"message.dataupload.datasets.dct:license.advices.licenseName1_desc"
|
|
315
309
|
)), 1)
|
|
316
310
|
]),
|
|
317
|
-
a("div",
|
|
318
|
-
|
|
311
|
+
a("div", Ve, [
|
|
312
|
+
B(r(e.$t(
|
|
319
313
|
"message.dataupload.datasets.dct:license.advices.licenseName2"
|
|
320
314
|
)) + " ", 1),
|
|
321
|
-
a("span",
|
|
315
|
+
a("span", ye, r(e.$t(
|
|
322
316
|
"message.dataupload.datasets.dct:license.advices.licenseName2_desc"
|
|
323
317
|
)), 1)
|
|
324
318
|
]),
|
|
325
|
-
a("div",
|
|
326
|
-
|
|
319
|
+
a("div", ze, [
|
|
320
|
+
B(r(e.$t(
|
|
327
321
|
"message.dataupload.datasets.dct:license.advices.licenseName3"
|
|
328
322
|
)) + " ", 1),
|
|
329
|
-
a("span", Le,
|
|
323
|
+
a("span", Le, r(e.$t(
|
|
330
324
|
"message.dataupload.datasets.dct:license.advices.licenseName3_desc"
|
|
331
325
|
)), 1)
|
|
332
326
|
]),
|
|
333
|
-
a("a",
|
|
334
|
-
|
|
335
|
-
|
|
327
|
+
a("a", we, [
|
|
328
|
+
m(o(X), { size: 24 }),
|
|
329
|
+
B(" " + r(e.$t(
|
|
336
330
|
"message.dataupload.datasets.dct:license.advices.linkToLicenses"
|
|
337
331
|
)), 1)
|
|
338
332
|
])
|
|
@@ -340,19 +334,19 @@ const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regul
|
|
|
340
334
|
])
|
|
341
335
|
])
|
|
342
336
|
]),
|
|
343
|
-
a("div",
|
|
337
|
+
a("div", ke, [
|
|
344
338
|
t[6] || (t[6] = a("span", { class: "copy-large-regular" }, " Die Wahl der Lizenz spielt eine wichtige Rolle für den korrekten Umgang mit Ihrem Datensatz. ", -1)),
|
|
345
|
-
s.value.find((i) => i.isValid === !1) ? (
|
|
346
|
-
|
|
339
|
+
s.value.find((i) => i.isValid === !1) ? (V(), w("div", Te, [
|
|
340
|
+
m(o(S), {
|
|
347
341
|
size: 16,
|
|
348
342
|
weight: "fill"
|
|
349
343
|
}),
|
|
350
344
|
t[5] || (t[5] = a("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
351
|
-
])) :
|
|
345
|
+
])) : k("", !0)
|
|
352
346
|
])
|
|
353
347
|
]));
|
|
354
348
|
}
|
|
355
|
-
},
|
|
349
|
+
}, Ee = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-6a694fad"]]);
|
|
356
350
|
export {
|
|
357
|
-
|
|
351
|
+
Ee as default
|
|
358
352
|
};
|
package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js
CHANGED
|
@@ -178,7 +178,8 @@ const Ae = { key: 0 }, et = {
|
|
|
178
178
|
const t = S.value[e];
|
|
179
179
|
(t === void 0 || Array.isArray(t) && t.length === 0) && delete S.value[e];
|
|
180
180
|
}
|
|
181
|
-
}), Object.keys(S.value).filter((e) => e !== "dct:spatial")))
|
|
181
|
+
}), Object.keys(S.value).filter((e) => e !== "dct:spatial")));
|
|
182
|
+
function Pe(e) {
|
|
182
183
|
const t = e.split("-");
|
|
183
184
|
if (t.length !== 3)
|
|
184
185
|
throw new Error("Ungültiges Format, erwartet YYYY-MM-DD");
|
|
@@ -186,7 +187,8 @@ const Ae = { key: 0 }, et = {
|
|
|
186
187
|
if (f = f.padStart(2, "0"), d = d.padStart(2, "0"), !/^\d{4}$/.test(r) || !/^\d{2}$/.test(d) || !/^\d{2}$/.test(f))
|
|
187
188
|
throw new Error("Ungültige Datenteile");
|
|
188
189
|
return `${f}.${d}.${r}`;
|
|
189
|
-
}
|
|
190
|
+
}
|
|
191
|
+
const X = v(() => G.value.length > 0);
|
|
190
192
|
function D(e) {
|
|
191
193
|
U.value = e, z.value = !0, document.body.style.overflow = "hidden";
|
|
192
194
|
}
|
|
@@ -366,7 +368,7 @@ const Ae = { key: 0 }, et = {
|
|
|
366
368
|
]),
|
|
367
369
|
a("div", null, [
|
|
368
370
|
P.value && ((se = P.value) == null ? void 0 : se.length) > 0 ? (o(), n("div", Nt, [
|
|
369
|
-
t[16] || (t[16] = a("div", { class: "copy-large-regular" }, " Räumliche Abdeckung ", -1)),
|
|
371
|
+
t[16] || (t[16] = a("div", { class: "copy-large-regular" }, " Räumliche Abdeckung (optional) ", -1)),
|
|
370
372
|
a("div", null, [
|
|
371
373
|
h(qe, {
|
|
372
374
|
modelValue: P.value,
|
|
@@ -551,7 +553,7 @@ const Ae = { key: 0 }, et = {
|
|
|
551
553
|
], 64);
|
|
552
554
|
};
|
|
553
555
|
}
|
|
554
|
-
}, Za = /* @__PURE__ */ Qe(Va, [["__scopeId", "data-v-
|
|
556
|
+
}, Za = /* @__PURE__ */ Qe(Va, [["__scopeId", "data-v-14e1cb15"]]);
|
|
555
557
|
export {
|
|
556
558
|
Za as default
|
|
557
559
|
};
|
|
@@ -1206,7 +1206,7 @@ function bi(e, t, o, l, r, f) {
|
|
|
1206
1206
|
}),
|
|
1207
1207
|
i("div", vi, n(e.$t("message.dataupload.datasets.visibilityPage.info-title")), 1)
|
|
1208
1208
|
]),
|
|
1209
|
-
t[13] || (t[13] = i("div", { class: "dpiV3_CT-Content" }, [
|
|
1209
|
+
t[13] || (t[13] = i("div", { class: "dpiV3_CT-Content dpiV3_CT-Content--tips" }, [
|
|
1210
1210
|
i("p", { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, " Je nachdem, wie sich der räumliche Bezug Ihres Datensatzes gestaltet, stehen Ihnen zwei Möglichkeiten zur Auswahl: "),
|
|
1211
1211
|
i("ul", { class: "dpiV3_copy_large_regular cleanPaddingMargins" }, [
|
|
1212
1212
|
i("li", null, [
|