@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.
@@ -1,30 +1,30 @@
1
- import { ref as p, computed as R, watch as C, onMounted as G, getCurrentInstance as J, onUnmounted as K, createElementBlock as k, openBlock as y, createElementVNode as a, createVNode as h, createCommentVNode as T, toDisplayString as u, unref as o, isRef as D, createBlock as Q, createTextVNode as S } from "vue";
2
- import { PhWarning as A, PhLightbulb as X, PhArrowSquareOut as Y } from "@phosphor-icons/vue";
3
- import { useEditModeInfo as Z } from "../composables/useDpiEditMode.js";
4
- import { useFormValues as ee } from "../composables/useDpiFormValues.js";
5
- import { getLicenses as te } from "../HappyFlowComponents/services/dpiV3_apis.js";
6
- import x from "../HappyFlowComponents/ui/Dropdown.vue.js";
7
- import ie from "../HappyFlowComponents/ui/InputField.vue.js";
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 se from "../../../../../_virtual/_plugin-vue_export-helper.js";
10
- const le = { class: "dpiV3InnerComponentWrap" }, ae = { class: "copy-large-regular" }, ne = {
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
- }, oe = {
13
+ }, ne = {
14
14
  key: 1,
15
15
  class: "validation-error"
16
- }, de = { class: "copy-mini-regular" }, ue = { class: "input-container" }, re = {
16
+ }, oe = { class: "copy-mini-regular" }, de = { class: "input-container" }, re = {
17
17
  key: 1,
18
18
  class: "dpiV3_errormsgWrapper"
19
- }, ce = { class: "copy-mini-regular" }, pe = { class: "dpiV3_Content_InputPage" }, ve = { class: "dpiV3_Card_Tips" }, fe = { class: "dpiV3_Icon_Title" }, me = { class: "dpiV3_Info-Text dpiV3_activeStepName" }, ge = { class: "dpiV3_CT-Content" }, he = { class: "dpiV3_copy_large_regular dpiV3_hvd_frame3846" }, _e = { class: "dpiV3_hvd_frame3846" }, be = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Ve = { class: "dpiV3_normal" }, ye = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, ze = { class: "dpiV3_normal" }, we = { class: "dpiV3_dots dpiV3_copy_large_semi_bold" }, Le = { class: "dpiV3_normal" }, ke = {
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
- }, Te = { class: "end_container" }, Ne = {
24
+ }, ke = { class: "end_container" }, Te = {
25
25
  key: 0,
26
26
  class: "form-error-message"
27
- }, Be = {
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 z = F, { isEditMode: M } = Z(), { formValues: Se } = ee();
36
- let N = p(!1), w = p([]), _ = p(""), b = p(null), r = p("");
37
- const c = p(""), $ = {
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
- }, E = p([
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 = p({ 1: "unset", 2: "unset" });
84
- const s = p([
82
+ let d = f({ 1: "unset", 2: "unset" });
83
+ const s = f([
85
84
  { isValid: "unset", "dcterms:license": "", title: "", uri: "" }
86
- ]), v = p({
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 || z.context.node.input(s);
93
- const m = R(() => {
94
- if (!r.value)
91
+ M.value || y.context.node.input(s);
92
+ const b = H(() => {
93
+ if (!u.value)
95
94
  return [];
96
- const e = $[r.value] || [];
97
- console.log("Selected license type:", r.value), console.log("Allowed licenses for this type:", e), console.log("All available license options:", w.value.map((i) => i["@value"]));
98
- const t = w.value.filter(
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 O(e) {
104
- r.value = e, _.value = "", c.value = "", N.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: "" })), z.context.node.input(s.value);
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 P(e, t, i) {
107
- B(e, t, i);
105
+ function O(e, t, i) {
106
+ N(e, t, i);
108
107
  }
109
- function q(e) {
108
+ function P(e) {
110
109
  const t = typeof e == "object" && e.target ? e.target.value : e;
111
- b.value && clearTimeout(b.value), U(t, "dcterms:license", 1), b.value = setTimeout(() => {
112
- I(t, "dcterms:license", 1);
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 U(e, t, i) {
116
- c.value = "";
117
- const l = m.value.find((n) => n["@value"] === e);
118
- l ? B(e, t, i, l.uri) : e === "" ? (d.value[i] = !1, s.value[0].isValid = "unset", N.value = !1, v.value[2].show = !1, s.value = s.value.map((n) => t in n ? { ...n, [t]: "", uri: "", title: "" } : n), z.context.node.input(s.value)) : (d.value[i] = "unset", s.value[0].isValid = "unset");
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 I(e, t, i) {
119
+ function A(e, t, i) {
121
120
  if (e === "") {
122
- c.value = "";
121
+ p.value = "";
123
122
  return;
124
123
  }
125
- const l = m.value.find((n) => n["@value"] === e);
126
- l ? B(e, t, i, l.uri) : (c.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", d.value[i] = !1, s.value[0].isValid = "unset");
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 W(e) {
129
- b.value && clearTimeout(b.value);
127
+ function U(e) {
128
+ h.value && clearTimeout(h.value);
130
129
  const t = e.target.value;
131
- I(t, "dcterms:license", 1);
130
+ A(t, "dcterms:license", 1);
132
131
  }
133
- function j(e, t, i) {
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 g = e && e.trim() !== "";
140
- v.value[2].show = !g, d.value[2] = g, d.value[1] === !0 && g ? s.value[0].isValid = !0 : s.value[0].isValid = "unset";
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
- z.context.node.input(s.value);
143
+ y.context.node.input(s.value);
145
144
  }
146
- function B(e, t, i, l) {
147
- var g;
148
- const n = e === "" || m.value.some((f) => f["@value"] === e);
149
- let L = p();
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
- c.value = "";
156
- const f = e !== "" && (e.includes("cc-by") || e.includes("dl-by-de"));
157
- if (N.value = f, e !== "") {
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 V = ((g = s.value[0]) == null ? void 0 : g.title) || "", H = !f || f && V.trim() !== "";
160
- s.value[0].isValid = H ? !0 : "unset", f ? (v.value[2].show = V.trim() === "", d.value[2] = V.trim() !== "") : (v.value[2].show = !1, d.value[2] = "unset");
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((V) => t in V ? { ...V, [t]: e, uri: l, title: L } : V);
158
+ s.value = s.value.map((_) => t in _ ? { ..._, [t]: e, uri: l } : _);
164
159
  }
165
- z.context.node.input(s.value);
160
+ y.context.node.input(s.value);
166
161
  }
167
- return C(_, (e) => {
162
+ return I(g, (e) => {
168
163
  var i;
169
- let t = (i = m.value.find(
164
+ let t = (i = b.value.find(
170
165
  (l) => l["@value"] === e
171
166
  )) == null ? void 0 : i.uri;
172
- e !== void 0 && B(e, "dcterms:license", 1, t);
173
- }), C(
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 === "" ? c.value = "Bitte wählen Sie eine Lizenz aus." : w.value.find(
180
- (g) => g["@value"] === l
181
- ) || (c.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);
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
- ), G(async () => {
185
- const t = J().appContext.app.config.globalProperties.$env;
179
+ ), R(async () => {
180
+ const t = G().appContext.app.config.globalProperties.$env;
186
181
  try {
187
- const i = await te(t.api.baseUrl);
188
- w.value = i.map((l) => ({
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
- })), w.value.sort((l, n) => l["@value"].localeCompare(n["@value"]));
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
- }), K(() => {
197
- b.value && clearTimeout(b.value);
198
- }), (e, t) => (y(), k("div", le, [
199
- a("h4", null, u(e.$t("message.dataupload.datasets.dct:license.title")), 1),
200
- a("div", ae, u(e.$t("message.dataupload.datasets.dct:license.description")), 1),
201
- h(x, {
202
- modelValue: o(r),
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) => D(r) ? r.value = i : r = i),
205
- O
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(r),
214
+ modelValue: o(u),
220
215
  defaultInput: !0,
221
216
  showError: !1
222
217
  },
223
- data: E.value
218
+ data: x.value
224
219
  }, null, 8, ["modelValue", "input-field-props", "data"]),
225
- h(x, {
226
- modelValue: o(_),
220
+ m(D, {
221
+ modelValue: o(g),
227
222
  "onUpdate:modelValue": [
228
- t[1] || (t[1] = (i) => D(_) ? _.value = i : _ = i),
229
- t[2] || (t[2] = (i) => P(i, "dcterms:license", 1))
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(r) ? "Lizenz wählen..." : "Bitte wählen Sie zuerst eine Art der Lizenz...",
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: c.value !== "" || s.value[0].isValid === "unset" && o(d)[1] === !1,
246
- disabled: !o(r)
240
+ showError: p.value !== "" || s.value[0].isValid === "unset" && o(d)[1] === !1,
241
+ disabled: !o(u)
247
242
  },
248
- helperText: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
249
- data: m.value,
250
- onInput: q,
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(r) && m.value.length === 0 ? (y(), k("div", ne, [
255
- h(o(A), {
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
- ])) : T("", !0),
262
- c.value ? (y(), k("div", oe, [
263
- h(o(A), {
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", de, u(c.value), 1)
268
- ])) : T("", !0),
269
- a("div", ue, [
270
- o(N) ? (y(), Q(ie, {
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) => j(i, "title")),
280
+ "onUpdate:modelValue": t[3] || (t[3] = (i) => W(i, "title")),
287
281
  onDeleteButtonClicked: e.deleteModifiedField
288
- }, null, 8, ["model-value", "label", "onDeleteButtonClicked"])) : T("", !0),
289
- s.value[0].isValid === !1 && v.value[2].show ? (y(), k("div", re, [
290
- h(o(A), {
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", ce, u(v.value[2].message), 1)
295
- ])) : T("", !0)
288
+ a("span", ue, r(v.value[2].message), 1)
289
+ ])) : k("", !0)
296
290
  ]),
297
- a("div", pe, [
298
- a("div", ve, [
299
- a("div", fe, [
300
- h(o(X), {
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", me, u(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
298
+ a("div", fe, r(e.$t("message.dataupload.datasets.dct:license.advices.title")), 1)
305
299
  ]),
306
- a("div", ge, [
307
- a("div", he, u(e.$t("message.dataupload.datasets.dct:license.advices.description")), 1),
308
- a("div", _e, [
309
- a("div", be, [
310
- S(u(e.$t(
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", Ve, u(e.$t(
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", ye, [
318
- S(u(e.$t(
311
+ a("div", Ve, [
312
+ B(r(e.$t(
319
313
  "message.dataupload.datasets.dct:license.advices.licenseName2"
320
314
  )) + " ", 1),
321
- a("span", ze, u(e.$t(
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", we, [
326
- S(u(e.$t(
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, u(e.$t(
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", ke, [
334
- h(o(Y), { size: 24 }),
335
- S(" " + u(e.$t(
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", Te, [
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) ? (y(), k("div", Ne, [
346
- h(o(A), {
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
- ])) : T("", !0)
345
+ ])) : k("", !0)
352
346
  ])
353
347
  ]));
354
348
  }
355
- }, Oe = /* @__PURE__ */ se(Be, [["__scopeId", "data-v-787cd707"]]);
349
+ }, Ee = /* @__PURE__ */ ie(Ne, [["__scopeId", "data-v-6a694fad"]]);
356
350
  export {
357
- Oe as default
351
+ Ee as default
358
352
  };
@@ -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"))), Pe = (e) => {
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
- }, X = v(() => G.value.length > 0);
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-4ac4fd18"]]);
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, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.2.0-alpha.49",
4
+ "version": "0.2.0-alpha.50",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",