@piveau/dpi 0.1.0-beta.45 → 0.1.0-beta.46

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,16 +1,16 @@
1
- import { ref as v, computed as _e, toRef as st, onUnmounted as it, onMounted as lt, getCurrentInstance as nt, watch as dt, createElementBlock as m, openBlock as r, Fragment as G, createElementVNode as f, createBlock as Q, createCommentVNode as p, toDisplayString as E, renderList as De, unref as L, createVNode as u, withDirectives as ct, vShow as rt } from "vue";
1
+ import { ref as v, computed as _e, toRef as st, onUnmounted as it, onMounted as lt, getCurrentInstance as nt, watch as dt, createElementBlock as m, openBlock as r, Fragment as Q, createElementVNode as f, createBlock as X, createCommentVNode as p, toDisplayString as M, renderList as De, unref as L, createVNode as u, withDirectives as ct, vShow as rt } from "vue";
2
2
  import "@formkit/core";
3
- import { PhWarning as X } from "@phosphor-icons/vue";
3
+ import { PhWarning as Y } from "@phosphor-icons/vue";
4
4
  import { useI18n as ut } from "vue-i18n";
5
5
  import { useStore as mt } from "vuex";
6
6
  import { useEditModeInfo as ft } from "../composables/useDpiEditMode.js";
7
7
  import { useFormValues as pt } from "../composables/useDpiFormValues.js";
8
- import M from "../config/dcatapdeHappyFlow/page-content-config.js";
8
+ import B from "../config/dcatapdeHappyFlow/page-content-config.js";
9
9
  import { getFileTypes as vt, getFormatTypes as ht, getChecksumAlgorithms as gt, getPlannedAvailability as yt, getLanguages as kt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
10
  import { eventBus as Ie } from "../HappyFlowComponents/services/eventBus.js";
11
- import B from "../HappyFlowComponents/ui/ButtonV3.vue.js";
11
+ import z from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
12
  import xt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import Y from "../HappyFlowComponents/ui/InputField.vue.js";
13
+ import Z from "../HappyFlowComponents/ui/InputField.vue.js";
14
14
  import bt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
15
  import wt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
16
  import _t from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
@@ -21,7 +21,7 @@ import Lt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js"
21
21
  import Vt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
22
  import Ut from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
23
  import Ct from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
- import Z from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
24
+ import ee from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
25
  import Rt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
26
  import At from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
27
  import St from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
@@ -101,7 +101,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
101
101
  },
102
102
  setup(S) {
103
103
  var ye, ke, xe;
104
- const z = S, { isEditMode: ee } = ft(), { t: D } = ut(), V = v(null), Te = {
104
+ const P = S, { isEditMode: te } = ft(), { t: D } = ut(), V = v(null), Te = {
105
105
  isValid: "unset",
106
106
  id: 1,
107
107
  "dcat:accessURL": "",
@@ -134,50 +134,50 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
134
134
  "dcterms:license": ""
135
135
  }
136
136
  }, { formValues: w } = pt(), l = _e(
137
- () => ee.value || z.inRap
137
+ () => te.value || P.inRap
138
138
  ).value ? st((ye = w.value.DistributionSimple) == null ? void 0 : ye["dcat:distribution"]) : v([Te]);
139
139
  l.value[0]["dcat:downloadURL"] || (console.log(l["dcat:downloadURL"], l), l.value[0]["dcat:downloadURL"] = [{ "@id": "" }]);
140
- const n = v({}), U = v({}), te = v([]), F = v(!1), P = v(!1), x = v(0), k = v([]), _ = v([]), ae = v([]), oe = v([]), se = v([]);
141
- v([...k.value]);
142
- const N = v([..._.value]), Le = mt(), O = v(null);
140
+ const n = v({}), U = v({}), ae = v([]), F = v(!1), N = v(!1), k = v(0), x = v([]), _ = v([]), oe = v([]), O = v([]), se = v([]);
141
+ v([...x.value]);
142
+ const $ = v([..._.value]), Le = mt(), W = v(null);
143
143
  v(null);
144
- const W = v(!1), ie = v(!1), le = v(!1), H = v(!1), ne = v(!0);
144
+ const H = v(!1), ie = v(!1), le = v(!1), j = v(!1), ne = v(!0);
145
145
  for (let a = 0; a < l.value.length; a++)
146
146
  if (((ke = w.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.uri) !== "" || ((xe = w.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : xe.checksum.title) !== "") {
147
147
  ie.value = !1;
148
148
  break;
149
149
  }
150
150
  function Ve() {
151
- te.value = [
151
+ ae.value = [
152
152
  {
153
153
  title: D(
154
154
  "message.dataupload.datasets.dcat:distribution.recommended.title"
155
155
  ),
156
- items: M.distributions.Recommended.map(
156
+ items: B.distributions.Recommended.map(
157
157
  (a) => D(
158
158
  `message.dataupload.datasets.dcat:distribution.recommended.${a}`
159
159
  ) || a
160
160
  ),
161
- keys: M.distributions.Recommended
161
+ keys: B.distributions.Recommended
162
162
  },
163
163
  {
164
164
  title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
165
- items: M.distributions.Advanced.map(
165
+ items: B.distributions.Advanced.map(
166
166
  (a) => D(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
167
167
  ),
168
- keys: M.distributions.Advanced
168
+ keys: B.distributions.Advanced
169
169
  }
170
170
  ];
171
171
  }
172
172
  function de(a) {
173
173
  var t, e, o;
174
- (o = (e = (t = z.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (ne.value || j(), ne.value = !1);
174
+ (o = (e = (t = P.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (ne.value || J(), ne.value = !1);
175
175
  }
176
- function j(a) {
176
+ function J(a) {
177
177
  let t = !0;
178
178
  l.value = l.value.map((e) => {
179
179
  var c;
180
- const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && J(e["dcat:accessURL"]), s = ((c = e["dct:format"]) == null ? void 0 : c.label) != null && e["dct:format"].label.trim() !== "" && k.value.some(
180
+ const o = e["dcat:accessURL"] != null && e["dcat:accessURL"].trim() !== "" && K(e["dcat:accessURL"]), s = ((c = e["dct:format"]) == null ? void 0 : c.label) != null && e["dct:format"].label.trim() !== "" && x.value.some(
181
181
  (g) => g["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
182
182
  ), i = o && s;
183
183
  return i || (t = !1), a === e.id ? {
@@ -191,13 +191,13 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
191
191
  showErrorDownloadURL: !o,
192
192
  showErrorFormat: !s
193
193
  };
194
- }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (H.value = !t), w.value.DistributionSimple["dcat:distribution"] = l.value;
194
+ }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (j.value = !t), w.value.DistributionSimple["dcat:distribution"] = l.value;
195
195
  }
196
- function $(a, t) {
196
+ function E(a, t) {
197
197
  var o, s, i;
198
198
  let e = !0;
199
199
  if (t === "dcat:accessURL")
200
- e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? J(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((s = a[t]) == null ? void 0 : s.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein");
200
+ e = ((o = a[t]) == null ? void 0 : o.trim()) !== "" && (a[t] ? K(a[t]) : !1), e ? (a.showErrorDownloadURL = !1, a.urlErrorMessage = "") : (a.showErrorDownloadURL = !0, ((s = a[t]) == null ? void 0 : s.trim()) === "" ? a.urlErrorMessage = "URL ist erforderlich" : a.urlErrorMessage = "Bitte geben Sie eine gültige URL ein");
201
201
  else if (t === "dct:format") {
202
202
  const c = (i = a[t].label) == null ? void 0 : i.trim();
203
203
  e = c !== "" && _.value.some(
@@ -210,19 +210,19 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
210
210
  let a = !0;
211
211
  l.value = l.value.map((t) => {
212
212
  var i, c;
213
- const e = ((i = t["dcat:accessURL"]) == null ? void 0 : i.trim()) !== "" && J(t["dcat:accessURL"]), o = ((c = t["dct:format"].label) == null ? void 0 : c.trim()) !== "" && k.value.some(
213
+ const e = ((i = t["dcat:accessURL"]) == null ? void 0 : i.trim()) !== "" && K(t["dcat:accessURL"]), o = ((c = t["dct:format"].label) == null ? void 0 : c.trim()) !== "" && $.value.some(
214
214
  (g) => {
215
215
  var h;
216
216
  return g["@value"].toUpperCase() === ((h = t["dct:format"].label) == null ? void 0 : h.toUpperCase());
217
217
  }
218
218
  ), s = e && o;
219
- return s || (a = !1), {
219
+ return console.log(s), s || (a = !1), {
220
220
  ...t,
221
221
  isValid: s
222
222
  };
223
- }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), H.value = !a, w.value.DistributionSimple["dcat:distribution"] = l.value;
223
+ }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), j.value = !a, w.value.DistributionSimple["dcat:distribution"] = l.value;
224
224
  }
225
- function J(a) {
225
+ function K(a) {
226
226
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
227
227
  }
228
228
  it(() => {
@@ -232,12 +232,12 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
232
232
  const a = nt(), t = a.appContext.app.config.globalProperties.$env;
233
233
  if (a) {
234
234
  const e = a.appContext.app.config.globalProperties.$env;
235
- O.value = e.content.dataProviderInterface.specification;
235
+ W.value = e.content.dataProviderInterface.specification;
236
236
  } else
237
237
  console.log("Instance is null!");
238
238
  try {
239
239
  const e = await vt(t.api.baseUrl);
240
- k.value = e.results.map((o) => ({
240
+ x.value = e.results.map((o) => ({
241
241
  "@value": o.pref_label.en,
242
242
  uri: o.resource,
243
243
  selected: !1
@@ -257,9 +257,9 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
257
257
  }
258
258
  try {
259
259
  const e = await gt(t.api.baseUrl);
260
- ae.value = e;
260
+ oe.value = e;
261
261
  const o = await yt(t.api.baseUrl);
262
- oe.value = o;
262
+ O.value = o;
263
263
  const s = await kt(t.api.baseUrl);
264
264
  se.value = s;
265
265
  } catch (e) {
@@ -271,7 +271,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
271
271
  const e = l.value.find((s) => s.id === t);
272
272
  if (!e) return;
273
273
  let o = _.value.find((s) => s["@value"] === a).uri || "";
274
- e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", $(e, "dct:format"), w.value.DistributionSimple["dcat:distribution"] = l.value;
274
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), w.value.DistributionSimple["dcat:distribution"] = l.value;
275
275
  }
276
276
  function ce(a, t) {
277
277
  const e = l.value.find((o) => o.id === t);
@@ -287,7 +287,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
287
287
  }
288
288
  function me(a, t, e) {
289
289
  const o = l.value.find((s) => s.id === t);
290
- e || (e = oe.value.find((s) => s.value === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, n.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
290
+ e || (console.log(O.value), e = O.value.find((s) => s.label === a).uri || ""), o ? (o["dcatap:availability"] = { label: { de: a }, uri: e }, n.value.availabilityText = a) : console.warn(`No matching distribution found for ID ${t}.`);
291
291
  }
292
292
  function fe(a, t) {
293
293
  const e = l.value.find((o) => o.id === t);
@@ -296,7 +296,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
296
296
  function pe(a, t, e, o) {
297
297
  ie.value = !0;
298
298
  const s = l.value.find((i) => i.id === e);
299
- o || (o = ae.value.find((i) => i.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", n.value.checksumText = a, n.value.checksumDropdownText = t, n.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
299
+ o || (o = oe.value.find((i) => i.value === t).resource || ""), s ? (s.checksum.title = a, s.checksum["spdx:checksum"] = t, s.checksum.uri = o || "no URI", n.value.checksumText = a, n.value.checksumDropdownText = t, n.value.checksumURI = o) : console.warn(`No matching distribution found for ID ${e}.`);
300
300
  }
301
301
  function ve(a, t, e) {
302
302
  le.value = !0;
@@ -313,7 +313,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
313
313
  }
314
314
  function I(a, t, e) {
315
315
  const o = l.value.find((i) => i.id === e);
316
- let s = k.value.find((i) => i["@value"] === a).uri || "";
316
+ let s = x.value.find((i) => i["@value"] === a).uri || "";
317
317
  if (o)
318
318
  switch (o[t] = { label: a, uri: s }, t) {
319
319
  case "dcat:mediaType":
@@ -374,7 +374,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
374
374
  !1
375
375
  );
376
376
  }
377
- function K(a, t) {
377
+ function q(a, t) {
378
378
  y(t, a, a, !0, !1);
379
379
  }
380
380
  function Ee(a) {
@@ -432,9 +432,9 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
432
432
  !0
433
433
  );
434
434
  }
435
- const We = _e(() => O.value ? Le.getters["dpiStore/getNavSteps"](O.value) : {});
435
+ const We = _e(() => W.value ? Le.getters["dpiStore/getNavSteps"](W.value) : {});
436
436
  dt(We, (a) => {
437
- }), ee.value || z.context.node.input([{ isValid: "unset" }]);
437
+ }), te.value || P.context.node.input([{ isValid: "unset" }]);
438
438
  function He() {
439
439
  const a = Date.now();
440
440
  l.value.push({
@@ -469,7 +469,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
469
469
  title: "",
470
470
  "dcterms:license": ""
471
471
  }
472
- }), j(a);
472
+ }), J(a);
473
473
  }
474
474
  function je(a, t) {
475
475
  const e = l.value.find((o) => o.id === a);
@@ -607,14 +607,14 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
607
607
  });
608
608
  }
609
609
  function Ge(a) {
610
- if (a === "deleteDataset" && x.value !== null) {
610
+ if (a === "deleteDataset" && k.value !== null) {
611
611
  if (l.value.length === 1) {
612
- W.value = !0;
612
+ H.value = !0;
613
613
  return;
614
614
  }
615
615
  l.value = l.value.filter(
616
- (t) => t.id !== x.value
617
- ), W.value = !1, x.value = null, j();
616
+ (t) => t.id !== k.value
617
+ ), H.value = !1, k.value = null, J();
618
618
  }
619
619
  }
620
620
  function Qe(a) {
@@ -629,7 +629,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
629
629
  }
630
630
  function Xe(a) {
631
631
  var e, o, s, i, c;
632
- x.value = a;
632
+ k.value = a;
633
633
  const t = l.value.find((g) => g.id === a);
634
634
  t && (n.value = {
635
635
  button: "",
@@ -667,7 +667,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
667
667
  F.value = !1, document.body.style.overflow = "auto";
668
668
  }
669
669
  function Ze(a) {
670
- x.value = a;
670
+ k.value = a;
671
671
  const t = l.value.find((i) => i.id === a), e = t ? t["dct:title"] : "", o = t ? t["dct:format"].label : "", s = t ? t["dcat:accessURL"] : "";
672
672
  n.value = {
673
673
  button: "Löschen",
@@ -695,32 +695,32 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
695
695
  header: `${t} löschen`,
696
696
  text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
697
697
  action: c
698
- }, P.value = !0;
698
+ }, N.value = !0;
699
699
  }
700
- function q(a, t, e) {
700
+ function G(a, t, e) {
701
701
  var s, i, c, g;
702
702
  const o = l.value.find((h) => h.id === e);
703
703
  if (o)
704
704
  if (t === "dcat:accessURL") {
705
705
  const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
706
706
  o[t] = h, V.value && clearTimeout(V.value), V.value = setTimeout(() => {
707
- $(o, t);
707
+ E(o, t);
708
708
  }, 800);
709
709
  } else if (t === "dct:format") {
710
710
  const h = typeof a == "string" ? a.trim() : (c = (i = a == null ? void 0 : a.target) == null ? void 0 : i.value) == null ? void 0 : c.trim();
711
711
  if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
712
- N.value = [..._.value];
712
+ $.value = [..._.value];
713
713
  else {
714
714
  const b = _.value.find(
715
715
  (T) => T["@value"].toLowerCase() === h.toLowerCase()
716
716
  );
717
- b ? (o[t] = { label: b["@value"], uri: b.uri }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), N.value = _.value.filter(
717
+ b ? (o[t] = { label: b["@value"], uri: b.uri }, o.showErrorFormat = !1, o.formatErrorMessage = "") : h === "" ? (o[t] = { label: "", uri: "" }, o.showErrorFormat = !1) : (o[t] = { label: h, uri: "" }, o.showErrorFormat = !0, o.formatErrorMessage = "Ungültiges Format. Bitte wählen Sie aus der Liste."), $.value = _.value.filter(
718
718
  (T) => T["@value"].toLowerCase().includes(h.toLowerCase())
719
719
  );
720
720
  }
721
- $(o, t);
721
+ E(o, t);
722
722
  } else
723
- o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, $(o, t);
723
+ o[t] = (g = a == null ? void 0 : a.target) == null ? void 0 : g.value, E(o, t);
724
724
  }
725
725
  function et(a, t) {
726
726
  const e = l.value.find((o) => o.id === a);
@@ -746,18 +746,18 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
746
746
  (o) => t.some((s) => s.id === o.id)
747
747
  );
748
748
  }
749
- return (a, t) => (r(), m(G, null, [
749
+ return (a, t) => (r(), m(Q, null, [
750
750
  f("div", Mt, [
751
- S.inRap ? p("", !0) : (r(), m("h4", Bt, E(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
752
- S.inRap ? p("", !0) : (r(), m("div", zt, E(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
753
- (r(!0), m(G, null, De(L(l), (e, o) => {
751
+ S.inRap ? p("", !0) : (r(), m("h4", Bt, M(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
752
+ S.inRap ? p("", !0) : (r(), m("div", zt, M(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
753
+ (r(!0), m(Q, null, De(L(l), (e, o) => {
754
754
  var s, i, c, g, h, b, T, be, we;
755
755
  return r(), m("div", {
756
756
  key: e.id,
757
757
  class: "dpiV3AutoCompleteWrap"
758
758
  }, [
759
759
  f("div", Pt, [
760
- u(Y, {
760
+ u(Z, {
761
761
  "add-on-text": !1,
762
762
  datePicker: !1,
763
763
  infoIcon: !0,
@@ -775,14 +775,14 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
775
775
  showEndIcon: !1,
776
776
  showError: e.showErrorDownloadURL,
777
777
  "model-value": e["dcat:accessURL"],
778
- onInput: (d) => q(d, "dcat:accessURL", e.id)
778
+ onInput: (d) => G(d, "dcat:accessURL", e.id)
779
779
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
780
780
  e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", Nt, [
781
- u(L(X), {
781
+ u(L(Y), {
782
782
  size: 16,
783
783
  weight: "fill"
784
784
  }),
785
- f("span", Ot, E(e.urlErrorMessage), 1)
785
+ f("span", Ot, M(e.urlErrorMessage), 1)
786
786
  ])) : p("", !0),
787
787
  u(xt, {
788
788
  "dropdown-width": "large",
@@ -805,20 +805,20 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
805
805
  autocomplete: "true",
806
806
  showError: e.showErrorFormat
807
807
  },
808
- data: N.value,
808
+ data: $.value,
809
809
  autocomplete: !0,
810
- onInput: (d) => q(d, "dct:format", e.id),
810
+ onInput: (d) => G(d, "dct:format", e.id),
811
811
  "onUpdate:modelValue": (d) => Ce(d, e.id),
812
812
  "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
813
813
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
814
814
  e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", Wt, [
815
- u(L(X), {
815
+ u(L(Y), {
816
816
  size: 16,
817
817
  weight: "fill"
818
818
  }),
819
- f("span", Ht, E(e.formatErrorMessage), 1)
819
+ f("span", Ht, M(e.formatErrorMessage), 1)
820
820
  ])) : p("", !0),
821
- u(Y, {
821
+ u(Z, {
822
822
  modelValue: e["dct:title"],
823
823
  "onUpdate:modelValue": (d) => e["dct:title"] = d,
824
824
  "add-on-text": !1,
@@ -834,7 +834,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
834
834
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
835
835
  ),
836
836
  "show-end-icon": !1,
837
- onInput: (d) => q(d, "dct:title", e.id)
837
+ onInput: (d) => G(d, "dct:title", e.id)
838
838
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
839
839
  (e.documentations || []).length > 0 ? (r(), m("div", jt, [
840
840
  f("div", Jt, [
@@ -850,7 +850,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
850
850
  f("div", qt, [
851
851
  u(Ct, {
852
852
  documentations: e.documentations,
853
- "file-types": k.value,
853
+ "file-types": x.value,
854
854
  "distribution-id": e.id,
855
855
  "as-card": !0,
856
856
  "show-delete-button": !0,
@@ -884,7 +884,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
884
884
  ])
885
885
  ])
886
886
  ])) : p("", !0),
887
- (r(!0), m(G, { key: 4 }, De(e["dcat:downloadURL"], (d, C) => (r(), m("div", Zt, [
887
+ (r(!0), m(Q, { key: 4 }, De(e["dcat:downloadURL"], (d, C) => (r(), m("div", Zt, [
888
888
  f("div", ea, [
889
889
  t[8] || (t[8] = f("div", {
890
890
  class: "dpiV3_label",
@@ -897,7 +897,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
897
897
  }, null, 8, ["onClick"])
898
898
  ])) : p("", !0)
899
899
  ]),
900
- u(Y, {
900
+ u(Z, {
901
901
  onInput: (R) => ze(
902
902
  R.target.value,
903
903
  e.id,
@@ -916,7 +916,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
916
916
  showEndIcon: !1
917
917
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
918
918
  C === e["dcat:downloadURL"].length - 1 ? (r(), m("div", aa, [
919
- u(B, {
919
+ u(z, {
920
920
  buttonText: "Weitere DownloadURL hinzufügen",
921
921
  size: "small",
922
922
  iconStart: "plus",
@@ -1050,49 +1050,49 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
1050
1050
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1051
1051
  ])) : p("", !0),
1052
1052
  e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", ha, [
1053
- u(Z, {
1053
+ u(ee, {
1054
1054
  "distribution-id": e.id,
1055
- "file-types": k.value,
1055
+ "file-types": x.value,
1056
1056
  "file-format-type": "dcat:mediaType",
1057
1057
  "file-format-text": e["dcat:mediaType"].label,
1058
1058
  "show-delete-button": !0,
1059
1059
  onAddMediaType: I,
1060
- onDeleteButtonClicked: t[0] || (t[0] = (d) => K("dcat:mediaType", x.value))
1060
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => q("dcat:mediaType", k.value))
1061
1061
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1062
1062
  ])) : p("", !0),
1063
1063
  e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", ga, [
1064
- u(Z, {
1064
+ u(ee, {
1065
1065
  "distribution-id": e.id,
1066
- "file-types": k.value,
1066
+ "file-types": x.value,
1067
1067
  "file-format-type": "dcat:compressFormat",
1068
1068
  "compress-format-text": e["dcat:compressFormat"].label,
1069
1069
  "show-delete-button": !0,
1070
1070
  onAddCompressFormat: I,
1071
- onDeleteButtonClicked: t[1] || (t[1] = (d) => K("dcat:compressFormat", x.value))
1071
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => q("dcat:compressFormat", k.value))
1072
1072
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1073
1073
  ])) : p("", !0),
1074
1074
  e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", ya, [
1075
- u(Z, {
1075
+ u(ee, {
1076
1076
  "distribution-id": e.id,
1077
- "file-types": k.value,
1077
+ "file-types": x.value,
1078
1078
  "file-format-type": "dcat:packageFormat",
1079
1079
  "package-format-text": e["dcat:packageFormat"].label,
1080
1080
  "show-delete-button": !0,
1081
1081
  onAddPackageFormat: I,
1082
- onDeleteButtonClicked: t[2] || (t[2] = (d) => K("dcat:packageFormat", x.value))
1082
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => q("dcat:packageFormat", k.value))
1083
1083
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1084
1084
  ])) : p("", !0),
1085
- W.value && L(l).length === 1 ? (r(), m("p", ka, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1085
+ H.value && L(l).length === 1 ? (r(), m("p", ka, " Mindestens ein Link muss vorhanden sein. ")) : p("", !0)
1086
1086
  ]),
1087
1087
  f("div", xa, [
1088
- u(B, {
1088
+ u(z, {
1089
1089
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1090
1090
  size: "small",
1091
1091
  "icon-start": "PlusSquare",
1092
1092
  variant: "tertiary",
1093
1093
  onClick: (d) => Xe(e.id)
1094
1094
  }, null, 8, ["button-text", "onClick"]),
1095
- L(l).length > 1 ? (r(), Q(B, {
1095
+ L(l).length > 1 ? (r(), X(z, {
1096
1096
  key: 0,
1097
1097
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1098
1098
  size: "small",
@@ -1104,7 +1104,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
1104
1104
  ]);
1105
1105
  }), 128)),
1106
1106
  f("div", ba, [
1107
- u(B, {
1107
+ u(z, {
1108
1108
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1109
1109
  size: "large",
1110
1110
  "icon-start": "plus",
@@ -1112,18 +1112,18 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
1112
1112
  onClick: He
1113
1113
  }, null, 8, ["button-text"])
1114
1114
  ]),
1115
- H.value ? (r(), m("div", wa, [
1116
- u(L(X), {
1115
+ j.value ? (r(), m("div", wa, [
1116
+ u(L(Y), {
1117
1117
  size: 16,
1118
1118
  weight: "fill"
1119
1119
  }),
1120
1120
  t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1121
1121
  ])) : p("", !0)
1122
1122
  ]),
1123
- F.value ? (r(), Q(wt, {
1123
+ F.value ? (r(), X(wt, {
1124
1124
  key: 0,
1125
- "distibution-id": x.value,
1126
- "file-types": k.value,
1125
+ "distibution-id": k.value,
1126
+ "file-types": x.value,
1127
1127
  buttons: n.value.button,
1128
1128
  "header-text": n.value.header,
1129
1129
  text: n.value.text,
@@ -1135,7 +1135,7 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
1135
1135
  title: n.value.title,
1136
1136
  format: n.value.format,
1137
1137
  "distribution-link": n.value.distributionLink,
1138
- sections: te.value,
1138
+ sections: ae.value,
1139
1139
  context: S.context,
1140
1140
  "distribution-id": n.value.distributionId,
1141
1141
  "modified-date": n.value.dctModified || "",
@@ -1177,18 +1177,18 @@ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
1177
1177
  onAddConformsToItems: Ke,
1178
1178
  onAddPolicyItems: qe
1179
1179
  }, null, 8, ["distibution-id", "file-types", "buttons", "header-text", "text", "show-buttons", "optional-info-view", "documentations", "access-services", "action", "title", "format", "distribution-link", "sections", "context", "distribution-id", "modified-date", "issued-date", "description-text", "access-rights-text", "availability-text", "language-text", "byte-size-text", "media-type-text", "compress-format-text", "package-format-text", "status-text", "checksum-text", "checksum-u-r-i", "checksum-dropdown-text", "change-license-text", "change-license-dropdown-text", "conforms-to-items", "policy-items", "download-URL", "onAddAccessRights"])) : p("", !0),
1180
- P.value ? (r(), Q(bt, {
1180
+ N.value ? (r(), X(bt, {
1181
1181
  key: 1,
1182
1182
  buttons: U.value.button,
1183
1183
  "header-text": U.value.header,
1184
1184
  text: U.value.text,
1185
1185
  action: U.value.action,
1186
- onClose: t[4] || (t[4] = (e) => P.value = !1),
1186
+ onClose: t[4] || (t[4] = (e) => N.value = !1),
1187
1187
  onActionHandling: t[5] || (t[5] = (e) => Qe(e))
1188
1188
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1189
1189
  ], 64));
1190
1190
  }
1191
- }, oo = /* @__PURE__ */ Et(_a, [["__scopeId", "data-v-9f62735b"]]);
1191
+ }, oo = /* @__PURE__ */ Et(_a, [["__scopeId", "data-v-5d32bc84"]]);
1192
1192
  export {
1193
1193
  oo as default
1194
1194
  };