@piveau/dpi 0.1.0-beta.44 → 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,107 +1,107 @@
1
- import { ref as v, computed as we, toRef as ot, onUnmounted as st, onMounted as it, getCurrentInstance as lt, watch as nt, createElementBlock as m, openBlock as r, Fragment as q, createElementVNode as f, createBlock as G, createCommentVNode as p, toDisplayString as F, renderList as De, unref as L, createVNode as u, withDirectives as dt, vShow as ct } 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 Q } from "@phosphor-icons/vue";
4
- import { useI18n as rt } from "vue-i18n";
5
- import { useStore as ut } from "vuex";
6
- import { useEditModeInfo as mt } from "../composables/useDpiEditMode.js";
7
- import { useFormValues as ft } from "../composables/useDpiFormValues.js";
8
- import E from "../config/dcatapdeHappyFlow/page-content-config.js";
9
- import { getFileTypes as pt, getChecksumAlgorithms as vt, getPlannedAvailability as ht, getLanguages as gt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
- import { eventBus as _e } from "../HappyFlowComponents/services/eventBus.js";
11
- import M from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
- import yt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
- import X from "../HappyFlowComponents/ui/InputField.vue.js";
14
- import kt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
- import xt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
- import bt from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
- import wt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
- import Dt from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
- import _t from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
- import It from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
- import Lt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
- import Tt from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
- import Vt from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
- import Y from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
- import Ut from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
- import Ct from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
- import Rt from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
- import At from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
- import St from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
- import R from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
3
+ import { PhWarning as Y } from "@phosphor-icons/vue";
4
+ import { useI18n as ut } from "vue-i18n";
5
+ import { useStore as mt } from "vuex";
6
+ import { useEditModeInfo as ft } from "../composables/useDpiEditMode.js";
7
+ import { useFormValues as pt } from "../composables/useDpiFormValues.js";
8
+ import B from "../config/dcatapdeHappyFlow/page-content-config.js";
9
+ import { getFileTypes as vt, getFormatTypes as ht, getChecksumAlgorithms as gt, getPlannedAvailability as yt, getLanguages as kt } from "../HappyFlowComponents/services/dpiV3_apis.js";
10
+ import { eventBus as Ie } from "../HappyFlowComponents/services/eventBus.js";
11
+ import z from "../HappyFlowComponents/ui/ButtonV3.vue.js";
12
+ import xt from "../HappyFlowComponents/ui/Dropdown.vue.js";
13
+ import Z from "../HappyFlowComponents/ui/InputField.vue.js";
14
+ import bt from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
15
+ import wt from "../HappyFlowComponents/ui/ModalV3.vue.js";
16
+ import _t from "../HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js";
17
+ import Dt from "../HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js";
18
+ import It from "../HappyFlowComponents/ui/OptionalInformation/ByteSizeV3.vue.js";
19
+ import Tt from "../HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js";
20
+ import Lt from "../HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js";
21
+ import Vt from "../HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js";
22
+ import Ut from "../HappyFlowComponents/ui/OptionalInformation/DescriptionV3.vue.js";
23
+ import Ct from "../HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js";
24
+ import ee from "../HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js";
25
+ import Rt from "../HappyFlowComponents/ui/OptionalInformation/IssuedDateV3.vue.js";
26
+ import At from "../HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js";
27
+ import St from "../HappyFlowComponents/ui/OptionalInformation/ModifiedDateV3.vue.js";
28
+ import Ft from "../HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js";
29
+ import $t from "../HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js";
30
+ import A from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
31
31
  /* empty css */
32
- import $t from "../../_virtual/_plugin-vue_export-helper.js";
33
- const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
32
+ import Et from "../../_virtual/_plugin-vue_export-helper.js";
33
+ const Mt = { class: "dpiV3InnerComponentWrap" }, Bt = { key: 0 }, zt = {
34
34
  key: 1,
35
35
  class: "copy-large-regular"
36
- }, Bt = { class: "dpiV3_LinkAndMetadata input-container" }, zt = {
36
+ }, Pt = { class: "dpiV3_LinkAndMetadata input-container" }, Nt = {
37
37
  key: 0,
38
38
  class: "accUrlError"
39
- }, Pt = { class: "copy-mini-regular" }, Nt = {
39
+ }, Ot = { class: "copy-mini-regular" }, Wt = {
40
40
  key: 1,
41
41
  class: "validation-error"
42
- }, Ot = { class: "copy-mini-regular" }, Wt = {
42
+ }, Ht = { class: "copy-mini-regular" }, jt = {
43
43
  key: 2,
44
44
  class: "dpiV3_DocumentationsInDistr"
45
- }, Ht = { class: "dpiV3_TitleDelete" }, jt = { class: "dpiV3_documentationContents" }, Jt = { class: "dpiV3_Documentation" }, Kt = {
45
+ }, Jt = { class: "dpiV3_TitleDelete" }, Kt = { class: "dpiV3_documentationContents" }, qt = { class: "dpiV3_Documentation" }, Gt = {
46
46
  key: 3,
47
47
  class: "dpiV3_DocumentationsInDistr"
48
- }, qt = { class: "dpiV3_TitleDelete" }, Gt = { class: "dpiV3_documentationContents" }, Qt = { class: "dpiV3_Documentation" }, Xt = { class: "dpiV3_DocumentationsInDistr" }, Yt = { class: "dpiV3_TitleDelete" }, Zt = { key: 0 }, ea = {
48
+ }, Qt = { class: "dpiV3_TitleDelete" }, Xt = { class: "dpiV3_documentationContents" }, Yt = { class: "dpiV3_Documentation" }, Zt = { class: "dpiV3_DocumentationsInDistr" }, ea = { class: "dpiV3_TitleDelete" }, ta = { key: 0 }, aa = {
49
49
  key: 0,
50
50
  class: "dpiV3_tempAddMore"
51
- }, ta = {
51
+ }, oa = {
52
52
  key: 5,
53
53
  class: "dpiV3_modified dpiV3_label"
54
- }, aa = {
54
+ }, sa = {
55
55
  key: 6,
56
56
  class: "dpiV3_modified dpiV3_label"
57
- }, oa = { class: "dpiV3_modified dpiV3_label" }, sa = {
57
+ }, ia = { class: "dpiV3_modified dpiV3_label" }, la = {
58
58
  key: 7,
59
59
  class: "dpiV3_modified dpiV3_label"
60
- }, ia = {
60
+ }, na = {
61
61
  key: 8,
62
62
  class: "dpiV3_modified dpiV3_label"
63
- }, la = {
63
+ }, da = {
64
64
  key: 9,
65
65
  class: "dpiV3_modified dpiV3_label"
66
- }, na = {
66
+ }, ca = {
67
67
  key: 10,
68
68
  class: "dpiV3_modified dpiV3_label"
69
- }, da = {
69
+ }, ra = {
70
70
  key: 11,
71
71
  class: "dpiV3_DocumentationsInDistr"
72
- }, ca = { class: "dpiV3_TitleDelete" }, ra = {
72
+ }, ua = { class: "dpiV3_TitleDelete" }, ma = {
73
73
  key: 12,
74
74
  class: "dpiV3_DocumentationsInDistr"
75
- }, ua = { class: "dpiV3_TitleDelete" }, ma = {
75
+ }, fa = { class: "dpiV3_TitleDelete" }, pa = {
76
76
  key: 13,
77
77
  class: "dpiV3_modified dpiV3_label"
78
- }, fa = {
78
+ }, va = {
79
79
  key: 14,
80
80
  class: "dpiV3_modified dpiV3_label"
81
- }, pa = {
81
+ }, ha = {
82
82
  key: 15,
83
83
  class: "dpiV3_modified dpiV3_label"
84
- }, va = {
84
+ }, ga = {
85
85
  key: 16,
86
86
  class: "dpiV3_modified dpiV3_label"
87
- }, ha = {
87
+ }, ya = {
88
88
  key: 17,
89
89
  class: "dpiV3_modified dpiV3_label"
90
- }, ga = {
90
+ }, ka = {
91
91
  key: 18,
92
92
  class: "copy-mini-regular dpiV3_text_error"
93
- }, ya = { class: "dpiV3_CTA-Distribution" }, ka = { class: "dpiV3_tempAddMore" }, xa = {
93
+ }, xa = { class: "dpiV3_CTA-Distribution" }, ba = { class: "dpiV3_tempAddMore" }, wa = {
94
94
  key: 2,
95
95
  class: "dpiV3_errormsgWrapper"
96
- }, ba = {
96
+ }, _a = {
97
97
  __name: "DistributionSimplePage",
98
98
  props: {
99
99
  context: Object,
100
100
  inRap: Boolean
101
101
  },
102
- setup(A) {
103
- var ge, ye, ke;
104
- const B = A, { isEditMode: Z } = mt(), { t: D } = rt(), T = v(null), Ie = {
102
+ setup(S) {
103
+ var ye, ke, xe;
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": "",
@@ -133,49 +133,51 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
133
133
  title: "",
134
134
  "dcterms:license": ""
135
135
  }
136
- }, { formValues: w } = ft(), l = we(
137
- () => Z.value || B.inRap
138
- ).value ? ot((ge = w.value.DistributionSimple) == null ? void 0 : ge["dcat:distribution"]) : v([Ie]);
136
+ }, { formValues: w } = pt(), l = _e(
137
+ () => te.value || P.inRap
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({}), V = v({}), ee = v([]), S = v(!1), z = v(!1), x = v(0), y = v([]), te = v([]), ae = v([]), oe = v([]), P = v([...y.value]), Le = ut(), N = 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);
141
143
  v(null);
142
- const O = v(!1), se = v(!1), ie = v(!1), W = v(!1), le = v(!0);
144
+ const H = v(!1), ie = v(!1), le = v(!1), j = v(!1), ne = v(!0);
143
145
  for (let a = 0; a < l.value.length; a++)
144
- if (((ye = w.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ye.checksum.uri) !== "" || ((ke = w.value.DistributionSimple["dcat:distribution"][a]) == null ? void 0 : ke.checksum.title) !== "") {
145
- se.value = !1;
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
+ ie.value = !1;
146
148
  break;
147
149
  }
148
- function Te() {
149
- ee.value = [
150
+ function Ve() {
151
+ ae.value = [
150
152
  {
151
153
  title: D(
152
154
  "message.dataupload.datasets.dcat:distribution.recommended.title"
153
155
  ),
154
- items: E.distributions.Recommended.map(
156
+ items: B.distributions.Recommended.map(
155
157
  (a) => D(
156
158
  `message.dataupload.datasets.dcat:distribution.recommended.${a}`
157
159
  ) || a
158
160
  ),
159
- keys: E.distributions.Recommended
161
+ keys: B.distributions.Recommended
160
162
  },
161
163
  {
162
164
  title: D("message.dataupload.datasets.dcat:distribution.advanced.title"),
163
- items: E.distributions.Advanced.map(
165
+ items: B.distributions.Advanced.map(
164
166
  (a) => D(`message.dataupload.datasets.dcat:distribution.advanced.${a}`) || a
165
167
  ),
166
- keys: E.distributions.Advanced
168
+ keys: B.distributions.Advanced
167
169
  }
168
170
  ];
169
171
  }
170
- function ne(a) {
172
+ function de(a) {
171
173
  var t, e, o;
172
- (o = (e = (t = B.context) == null ? void 0 : t.node) == null ? void 0 : e.name) != null && o.includes("distribution") && (a.includes("dcat:distribution") || a.includes("dct:license")) && (le.value || H(), le.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);
173
175
  }
174
- function H(a) {
176
+ function J(a) {
175
177
  let t = !0;
176
178
  l.value = l.value.map((e) => {
177
179
  var c;
178
- 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() !== "" && y.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(
179
181
  (g) => g["@value"].toUpperCase() === e["dct:format"].label.toUpperCase()
180
182
  ), i = o && s;
181
183
  return i || (t = !1), a === e.id ? {
@@ -189,53 +191,53 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
189
191
  showErrorDownloadURL: !o,
190
192
  showErrorFormat: !s
191
193
  };
192
- }), !t && l.value.length > 0 && (l.value[0].isValid = !1), a == null && (W.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;
193
195
  }
194
- function $(a, t) {
196
+ function E(a, t) {
195
197
  var o, s, i;
196
198
  let e = !0;
197
199
  if (t === "dcat:accessURL")
198
- 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");
199
201
  else if (t === "dct:format") {
200
202
  const c = (i = a[t].label) == null ? void 0 : i.trim();
201
- e = c !== "" && y.value.some(
203
+ e = c !== "" && _.value.some(
202
204
  (g) => g["@value"].toLowerCase() === c.toLowerCase()
203
205
  ), e ? (a.showErrorFormat = !1, a.formatErrorMessage = "") : (a.showErrorFormat = !0, c === "" ? a.formatErrorMessage = "Format ist erforderlich" : a.formatErrorMessage = "Bitte wählen Sie ein gültiges Format aus der Liste");
204
206
  }
205
- Ve();
207
+ Ue();
206
208
  }
207
- function Ve() {
209
+ function Ue() {
208
210
  let a = !0;
209
211
  l.value = l.value.map((t) => {
210
212
  var i, c;
211
- 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()) !== "" && y.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(
212
214
  (g) => {
213
215
  var h;
214
216
  return g["@value"].toUpperCase() === ((h = t["dct:format"].label) == null ? void 0 : h.toUpperCase());
215
217
  }
216
218
  ), s = e && o;
217
- return s || (a = !1), {
219
+ return console.log(s), s || (a = !1), {
218
220
  ...t,
219
221
  isValid: s
220
222
  };
221
- }), !a && l.value.length > 0 ? l.value[0].isValid = !1 : l.value.length > 0 && (l.value[0].isValid = !0), W.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;
222
224
  }
223
- function j(a) {
225
+ function K(a) {
224
226
  return /^(https?|http):\/\/[^\s/$.?#].[^\s]*$/i.test(a);
225
227
  }
226
- st(() => {
227
- _e.off("nextClicked", ne), T.value && clearTimeout(T.value);
228
- }), it(async () => {
229
- _e.on("nextClicked", ne);
230
- const a = lt(), t = a.appContext.app.config.globalProperties.$env;
228
+ it(() => {
229
+ Ie.off("nextClicked", de), V.value && clearTimeout(V.value);
230
+ }), lt(async () => {
231
+ Ie.on("nextClicked", de);
232
+ const a = nt(), t = a.appContext.app.config.globalProperties.$env;
231
233
  if (a) {
232
234
  const e = a.appContext.app.config.globalProperties.$env;
233
- N.value = e.content.dataProviderInterface.specification;
235
+ W.value = e.content.dataProviderInterface.specification;
234
236
  } else
235
237
  console.log("Instance is null!");
236
238
  try {
237
- const e = await pt(t.api.baseUrl);
238
- y.value = e.results.map((o) => ({
239
+ const e = await vt(t.api.baseUrl);
240
+ x.value = e.results.map((o) => ({
239
241
  "@value": o.pref_label.en,
240
242
  uri: o.resource,
241
243
  selected: !1
@@ -244,64 +246,74 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
244
246
  error.value = e;
245
247
  }
246
248
  try {
247
- const e = await vt(t.api.baseUrl);
248
- te.value = e;
249
- const o = await ht(t.api.baseUrl);
250
- ae.value = o;
251
- const s = await gt(t.api.baseUrl);
252
- oe.value = s;
249
+ const e = await ht(t.api.baseUrl);
250
+ _.value = e.results.map((o) => ({
251
+ "@value": o.pref_label.en,
252
+ uri: o.resource,
253
+ selected: !1
254
+ }));
255
+ } catch (e) {
256
+ error.value = e;
257
+ }
258
+ try {
259
+ const e = await gt(t.api.baseUrl);
260
+ oe.value = e;
261
+ const o = await yt(t.api.baseUrl);
262
+ O.value = o;
263
+ const s = await kt(t.api.baseUrl);
264
+ se.value = s;
253
265
  } catch (e) {
254
266
  console.log(e);
255
267
  }
256
- Te();
268
+ Ve();
257
269
  });
258
- function Ue(a, t) {
270
+ function Ce(a, t) {
259
271
  const e = l.value.find((s) => s.id === t);
260
272
  if (!e) return;
261
- let o = y.value.find((s) => s["@value"] === a).uri || "";
262
- e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", $(e, "dct:format"), w.value.DistributionSimple["dcat:distribution"] = l.value;
273
+ let o = _.value.find((s) => s["@value"] === a).uri || "";
274
+ e["dct:format"] = { label: a, uri: o }, e.showErrorFormat = !1, e.formatErrorMessage = "", E(e, "dct:format"), w.value.DistributionSimple["dcat:distribution"] = l.value;
263
275
  }
264
- function de(a, t) {
276
+ function ce(a, t) {
265
277
  const e = l.value.find((o) => o.id === t);
266
278
  e ? (e["dct:modified"] = a, n.value.dctModified = a) : console.warn(`No matching distribution found for ID ${t}.`);
267
279
  }
268
- function ce(a, t) {
280
+ function re(a, t) {
269
281
  const e = l.value.find((o) => o.id === t);
270
282
  e ? (e["dct:issued"] = a, n.value.dctIssued = a) : console.warn(`No matching distribution found for ID ${t}.`);
271
283
  }
272
- function re(a, t) {
284
+ function ue(a, t) {
273
285
  const e = l.value.find((o) => o.id === t);
274
286
  e ? (e["dct:description"] = a, n.value.dctDescription = a) : console.warn(`No matching distribution found for ID ${t}.`);
275
287
  }
276
- function ue(a, t, e) {
288
+ function me(a, t, e) {
277
289
  const o = l.value.find((s) => s.id === t);
278
- e || (e = ae.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}.`);
279
291
  }
280
- function me(a, t) {
292
+ function fe(a, t) {
281
293
  const e = l.value.find((o) => o.id === t);
282
294
  e ? (e["adms:status"] = a, n.value.statusText = a) : console.warn(`No matching distribution found for ID ${t}.`);
283
295
  }
284
- function fe(a, t, e, o) {
285
- se.value = !0;
296
+ function pe(a, t, e, o) {
297
+ ie.value = !0;
286
298
  const s = l.value.find((i) => i.id === e);
287
- o || (o = te.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}.`);
288
300
  }
289
- function pe(a, t, e) {
290
- ie.value = !0;
301
+ function ve(a, t, e) {
302
+ le.value = !0;
291
303
  const o = l.value.find((s) => s.id === e);
292
304
  o ? (o.changeLicense.title = a, o.changeLicense["dcterms:license"] = t, n.value.changeLicenseText = a, n.value.changeLicenseDropdownText = t) : console.warn(`No matching distribution found for ID ${e}.`);
293
305
  }
294
- function ve(a, t, e) {
306
+ function he(a, t, e) {
295
307
  const o = l.value.find((s) => s.id === t);
296
- e || (e = oe.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], n.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
308
+ e || (e = se.value.find((s) => s.label === a).uri || ""), o ? (o["dct:language"] = [{ label: a, uri: e }], n.value.languageText = a) : console.warn(`No matching distribution found for ID ${t}.`);
297
309
  }
298
- function he(a, t) {
310
+ function ge(a, t) {
299
311
  const e = l.value.find((o) => o.id === t);
300
312
  e ? (e["dcat:byteSize"] = a, n.value.byteSizeText = a) : console.warn(`No matching distribution found for ID ${t}.`);
301
313
  }
302
- function _(a, t, e) {
314
+ function I(a, t, e) {
303
315
  const o = l.value.find((i) => i.id === e);
304
- let s = y.value.find((i) => i["@value"] === a).uri || "";
316
+ let s = x.value.find((i) => i["@value"] === a).uri || "";
305
317
  if (o)
306
318
  switch (o[t] = { label: a, uri: s }, t) {
307
319
  case "dcat:mediaType":
@@ -317,8 +329,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
317
329
  else
318
330
  console.warn(`No matching distribution found for ID ${e}.`);
319
331
  }
320
- function Ce(a) {
321
- k(
332
+ function Re(a) {
333
+ y(
322
334
  a,
323
335
  "Konform zu Standard",
324
336
  "conformsToItems",
@@ -326,8 +338,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
326
338
  !0
327
339
  );
328
340
  }
329
- function Re(a) {
330
- k(
341
+ function Ae(a) {
342
+ y(
331
343
  a,
332
344
  "Verfügbarkeit",
333
345
  "dcatap:availability",
@@ -335,8 +347,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
335
347
  !1
336
348
  );
337
349
  }
338
- function Ae(a) {
339
- k(
350
+ function Se(a) {
351
+ y(
340
352
  a,
341
353
  "Status",
342
354
  "adms:status",
@@ -344,8 +356,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
344
356
  !1
345
357
  );
346
358
  }
347
- function Se(a) {
348
- k(
359
+ function Fe(a) {
360
+ y(
349
361
  a,
350
362
  "Größe in Bytes",
351
363
  "dcat:byteSize",
@@ -354,7 +366,7 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
354
366
  );
355
367
  }
356
368
  function $e(a) {
357
- k(
369
+ y(
358
370
  a,
359
371
  "Sprache",
360
372
  "dct:language",
@@ -362,11 +374,11 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
362
374
  !1
363
375
  );
364
376
  }
365
- function J(a, t) {
366
- k(t, a, a, !0, !1);
377
+ function q(a, t) {
378
+ y(t, a, a, !0, !1);
367
379
  }
368
- function Fe(a) {
369
- k(
380
+ function Ee(a) {
381
+ y(
370
382
  a,
371
383
  "Regelwerk",
372
384
  "policyItems",
@@ -374,8 +386,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
374
386
  !0
375
387
  );
376
388
  }
377
- function Ee(a) {
378
- k(
389
+ function Me(a) {
390
+ y(
379
391
  a,
380
392
  "Dokumentation",
381
393
  "documentations",
@@ -383,8 +395,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
383
395
  !0
384
396
  );
385
397
  }
386
- function Me(a) {
387
- k(
398
+ function Be(a) {
399
+ y(
388
400
  a,
389
401
  "Ausliefernder Datenservice",
390
402
  "accessServices",
@@ -392,38 +404,38 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
392
404
  !0
393
405
  );
394
406
  }
395
- function Be(a, t, e) {
407
+ function ze(a, t, e) {
396
408
  const o = w.value.DistributionSimple["dcat:distribution"].find((s) => s.id === t);
397
409
  o["dcat:downloadURL"][0] != "init" ? o["dcat:downloadURL"][e] = { "@id": a } : o["dcat:downloadURL"][0] = { "@id": a };
398
410
  }
399
- function ze(a) {
400
- k(
411
+ function Pe(a) {
412
+ y(
401
413
  a,
402
414
  "Aktualisierungsdatum",
403
415
  "dct:modified",
404
416
  !1
405
417
  );
406
418
  }
407
- function Pe(a) {
408
- k(
419
+ function Ne(a) {
420
+ y(
409
421
  a,
410
422
  "Veröffentlichungsdatum",
411
423
  "dct:issued",
412
424
  !1
413
425
  );
414
426
  }
415
- function Ne(a) {
416
- k(
427
+ function Oe(a) {
428
+ y(
417
429
  a,
418
430
  "Beschreibung",
419
431
  "dct:description",
420
432
  !0
421
433
  );
422
434
  }
423
- const Oe = we(() => N.value ? Le.getters["dpiStore/getNavSteps"](N.value) : {});
424
- nt(Oe, (a) => {
425
- }), Z.value || B.context.node.input([{ isValid: "unset" }]);
426
- function We() {
435
+ const We = _e(() => W.value ? Le.getters["dpiStore/getNavSteps"](W.value) : {});
436
+ dt(We, (a) => {
437
+ }), te.value || P.context.node.input([{ isValid: "unset" }]);
438
+ function He() {
427
439
  const a = Date.now();
428
440
  l.value.push({
429
441
  isValid: "unset",
@@ -457,9 +469,9 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
457
469
  title: "",
458
470
  "dcterms:license": ""
459
471
  }
460
- }), H(a);
472
+ }), J(a);
461
473
  }
462
- function He(a, t) {
474
+ function je(a, t) {
463
475
  const e = l.value.find((o) => o.id === a);
464
476
  if (!e) {
465
477
  console.error(`Distribution with ID ${a} not found`);
@@ -493,7 +505,7 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
493
505
  }
494
506
  });
495
507
  }
496
- function je(a, t) {
508
+ function Je(a, t) {
497
509
  const e = l.value.find((o) => o.id === a);
498
510
  if (!e) {
499
511
  console.error(`Distribution with ID ${a} not found`);
@@ -530,7 +542,7 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
530
542
  }
531
543
  });
532
544
  }
533
- function Je(a, t) {
545
+ function Ke(a, t) {
534
546
  var o;
535
547
  const e = l.value.find((s) => s.id === a);
536
548
  if (!e) {
@@ -562,7 +574,7 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
562
574
  }
563
575
  });
564
576
  }
565
- function Ke(a, t) {
577
+ function qe(a, t) {
566
578
  var o;
567
579
  const e = l.value.find((s) => s.id === a);
568
580
  if (!e) {
@@ -594,18 +606,18 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
594
606
  }
595
607
  });
596
608
  }
597
- function qe(a) {
598
- if (a === "deleteDataset" && x.value !== null) {
609
+ function Ge(a) {
610
+ if (a === "deleteDataset" && k.value !== null) {
599
611
  if (l.value.length === 1) {
600
- O.value = !0;
612
+ H.value = !0;
601
613
  return;
602
614
  }
603
615
  l.value = l.value.filter(
604
- (t) => t.id !== x.value
605
- ), O.value = !1, x.value = null, H();
616
+ (t) => t.id !== k.value
617
+ ), H.value = !1, k.value = null, J();
606
618
  }
607
619
  }
608
- function Ge(a) {
620
+ function Qe(a) {
609
621
  const t = JSON.parse(a), e = l.value.find(
610
622
  (o) => o.id === t.distributionId
611
623
  );
@@ -615,9 +627,9 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
615
627
  }
616
628
  t.useUndefined ? e[t.optType] = void 0 : e[t.optType] = "";
617
629
  }
618
- function Qe(a) {
630
+ function Xe(a) {
619
631
  var e, o, s, i, c;
620
- x.value = a;
632
+ k.value = a;
621
633
  const t = l.value.find((g) => g.id === a);
622
634
  t && (n.value = {
623
635
  button: "",
@@ -649,13 +661,13 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
649
661
  conformsToItems: (t == null ? void 0 : t.conformsToItems) || [],
650
662
  policyItems: (t == null ? void 0 : t.policyItems) || [],
651
663
  downloadURL: (t == null ? void 0 : t.downloadURL) || []
652
- }, S.value = !0, document.body.style.overflow = "hidden");
664
+ }, F.value = !0, document.body.style.overflow = "hidden");
653
665
  }
654
- function Xe() {
655
- S.value = !1, document.body.style.overflow = "auto";
666
+ function Ye() {
667
+ F.value = !1, document.body.style.overflow = "auto";
656
668
  }
657
- function Ye(a) {
658
- x.value = a;
669
+ function Ze(a) {
670
+ k.value = a;
659
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"] : "";
660
672
  n.value = {
661
673
  button: "Löschen",
@@ -669,83 +681,83 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
669
681
  title: e,
670
682
  format: o,
671
683
  distributionLink: s
672
- }, S.value = !0;
684
+ }, F.value = !0;
673
685
  }
674
- function k(a, t, e, o, s) {
686
+ function y(a, t, e, o, s) {
675
687
  const c = JSON.stringify({
676
688
  distributionId: a,
677
689
  optType: e,
678
690
  useUndefined: o,
679
691
  isArray: s
680
692
  });
681
- V.value = {
693
+ U.value = {
682
694
  button: "Löschen",
683
695
  header: `${t} löschen`,
684
696
  text: `Sind Sie sicher, dass Sie das optionale Feld ${t} löschen wollen?`,
685
697
  action: c
686
- }, z.value = !0;
698
+ }, N.value = !0;
687
699
  }
688
- function K(a, t, e) {
700
+ function G(a, t, e) {
689
701
  var s, i, c, g;
690
702
  const o = l.value.find((h) => h.id === e);
691
703
  if (o)
692
704
  if (t === "dcat:accessURL") {
693
705
  const h = (s = a == null ? void 0 : a.target) == null ? void 0 : s.value;
694
- o[t] = h, T.value && clearTimeout(T.value), T.value = setTimeout(() => {
695
- $(o, t);
706
+ o[t] = h, V.value && clearTimeout(V.value), V.value = setTimeout(() => {
707
+ E(o, t);
696
708
  }, 800);
697
709
  } else if (t === "dct:format") {
698
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();
699
711
  if (o.showErrorFormat = !1, o.formatErrorMessage = "", h === "")
700
- P.value = [...y.value];
712
+ $.value = [..._.value];
701
713
  else {
702
- const b = y.value.find(
703
- (I) => I["@value"].toLowerCase() === h.toLowerCase()
714
+ const b = _.value.find(
715
+ (T) => T["@value"].toLowerCase() === h.toLowerCase()
704
716
  );
705
- 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."), P.value = y.value.filter(
706
- (I) => I["@value"].toLowerCase().includes(h.toLowerCase())
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
+ (T) => T["@value"].toLowerCase().includes(h.toLowerCase())
707
719
  );
708
720
  }
709
- $(o, t);
721
+ E(o, t);
710
722
  } else
711
- 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);
712
724
  }
713
- function Ze(a, t) {
725
+ function et(a, t) {
714
726
  const e = l.value.find((o) => o.id === a);
715
727
  e.documentations = e.documentations.filter(
716
728
  (o) => t.some((s) => s.id === o.id)
717
729
  );
718
730
  }
719
- function et(a, t) {
731
+ function tt(a, t) {
720
732
  const e = l.value.find((o) => o.id === a);
721
733
  e.accessServices = e.accessServices.filter(
722
734
  (o) => t.some((s) => s.id === o.id)
723
735
  );
724
736
  }
725
- function tt(a, t) {
737
+ function at(a, t) {
726
738
  const e = l.value.find((o) => o.id === a);
727
739
  e.conformsToItems = e.conformsToItems.filter(
728
740
  (o) => t.some((s) => s.id === o.id)
729
741
  );
730
742
  }
731
- function at(a, t) {
743
+ function ot(a, t) {
732
744
  const e = l.value.find((o) => o.id === a);
733
745
  e.policyItems = e.policyItems.filter(
734
746
  (o) => t.some((s) => s.id === o.id)
735
747
  );
736
748
  }
737
- return (a, t) => (r(), m(q, null, [
738
- f("div", Ft, [
739
- A.inRap ? p("", !0) : (r(), m("h4", Et, F(a.$t("message.dataupload.datasets.dcat:distribution.title")), 1)),
740
- A.inRap ? p("", !0) : (r(), m("div", Mt, F(a.$t("message.dataupload.datasets.dcat:distribution.description")), 1)),
741
- (r(!0), m(q, null, De(L(l), (e, o) => {
742
- var s, i, c, g, h, b, I, xe, be;
749
+ return (a, t) => (r(), m(Q, null, [
750
+ f("div", Mt, [
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
+ var s, i, c, g, h, b, T, be, we;
743
755
  return r(), m("div", {
744
756
  key: e.id,
745
757
  class: "dpiV3AutoCompleteWrap"
746
758
  }, [
747
- f("div", Bt, [
748
- u(X, {
759
+ f("div", Pt, [
760
+ u(Z, {
749
761
  "add-on-text": !1,
750
762
  datePicker: !1,
751
763
  infoIcon: !0,
@@ -763,16 +775,16 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
763
775
  showEndIcon: !1,
764
776
  showError: e.showErrorDownloadURL,
765
777
  "model-value": e["dcat:accessURL"],
766
- onInput: (d) => K(d, "dcat:accessURL", e.id)
778
+ onInput: (d) => G(d, "dcat:accessURL", e.id)
767
779
  }, null, 8, ["placeholder", "label", "showError", "model-value", "onInput"]),
768
- e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", zt, [
769
- u(L(Q), {
780
+ e.showErrorDownloadURL && e.urlErrorMessage ? (r(), m("div", Nt, [
781
+ u(L(Y), {
770
782
  size: 16,
771
783
  weight: "fill"
772
784
  }),
773
- f("span", Pt, F(e.urlErrorMessage), 1)
785
+ f("span", Ot, M(e.urlErrorMessage), 1)
774
786
  ])) : p("", !0),
775
- u(yt, {
787
+ u(xt, {
776
788
  "dropdown-width": "large",
777
789
  type: "inputField",
778
790
  "input-field-props": {
@@ -793,20 +805,20 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
793
805
  autocomplete: "true",
794
806
  showError: e.showErrorFormat
795
807
  },
796
- data: P.value,
808
+ data: $.value,
797
809
  autocomplete: !0,
798
- onInput: (d) => K(d, "dct:format", e.id),
799
- "onUpdate:modelValue": (d) => Ue(d, e.id),
810
+ onInput: (d) => G(d, "dct:format", e.id),
811
+ "onUpdate:modelValue": (d) => Ce(d, e.id),
800
812
  "model-value": (s = e == null ? void 0 : e["dct:format"]) == null ? void 0 : s.label
801
813
  }, null, 8, ["input-field-props", "data", "onInput", "onUpdate:modelValue", "model-value"]),
802
- e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", Nt, [
803
- u(L(Q), {
814
+ e.showErrorFormat && e.formatErrorMessage ? (r(), m("div", Wt, [
815
+ u(L(Y), {
804
816
  size: 16,
805
817
  weight: "fill"
806
818
  }),
807
- f("span", Ot, F(e.formatErrorMessage), 1)
819
+ f("span", Ht, M(e.formatErrorMessage), 1)
808
820
  ])) : p("", !0),
809
- u(X, {
821
+ u(Z, {
810
822
  modelValue: e["dct:title"],
811
823
  "onUpdate:modelValue": (d) => e["dct:title"] = d,
812
824
  "add-on-text": !1,
@@ -822,49 +834,49 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
822
834
  "message.dataupload.datasets.dcat:distribution.distribution-title.label"
823
835
  ),
824
836
  "show-end-icon": !1,
825
- onInput: (d) => K(d, "dct:title", e.id)
837
+ onInput: (d) => G(d, "dct:title", e.id)
826
838
  }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "label", "onInput"]),
827
- (e.documentations || []).length > 0 ? (r(), m("div", Wt, [
828
- f("div", Ht, [
839
+ (e.documentations || []).length > 0 ? (r(), m("div", jt, [
840
+ f("div", Jt, [
829
841
  t[6] || (t[6] = f("div", null, "Webpage (optional)", -1)),
830
842
  f("div", null, [
831
- u(R, {
843
+ u(A, {
832
844
  "button-text": "löschen",
833
- onClick: (d) => Ee(e.id)
845
+ onClick: (d) => Me(e.id)
834
846
  }, null, 8, ["onClick"])
835
847
  ])
836
848
  ]),
837
- f("div", jt, [
838
- f("div", Jt, [
839
- u(Vt, {
849
+ f("div", Kt, [
850
+ f("div", qt, [
851
+ u(Ct, {
840
852
  documentations: e.documentations,
841
- "file-types": y.value,
853
+ "file-types": x.value,
842
854
  "distribution-id": e.id,
843
855
  "as-card": !0,
844
856
  "show-delete-button": !0,
845
- onUpdate: (d) => Ze(e.id, d)
857
+ onUpdate: (d) => et(e.id, d)
846
858
  }, null, 8, ["documentations", "file-types", "distribution-id", "onUpdate"])
847
859
  ])
848
860
  ])
849
861
  ])) : p("", !0),
850
- (e.accessServices || []).length > 0 ? (r(), m("div", Kt, [
851
- f("div", qt, [
862
+ (e.accessServices || []).length > 0 ? (r(), m("div", Gt, [
863
+ f("div", Qt, [
852
864
  t[7] || (t[7] = f("div", null, "Ausliefernder Datenservice (optional)", -1)),
853
865
  f("div", null, [
854
- u(R, {
866
+ u(A, {
855
867
  "button-text": "löschen",
856
- onClick: (d) => Me(e.id)
868
+ onClick: (d) => Be(e.id)
857
869
  }, null, 8, ["onClick"])
858
870
  ])
859
871
  ]),
860
- f("div", Gt, [
861
- f("div", Qt, [
862
- u(bt, {
872
+ f("div", Xt, [
873
+ f("div", Yt, [
874
+ u(_t, {
863
875
  "access-services": e.accessServices,
864
876
  "distribution-id": e.id,
865
877
  "as-card": !0,
866
878
  "show-delete-button": !0,
867
- onUpdate: (d) => et(
879
+ onUpdate: (d) => tt(
868
880
  e.id,
869
881
  d
870
882
  )
@@ -872,24 +884,24 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
872
884
  ])
873
885
  ])
874
886
  ])) : p("", !0),
875
- (r(!0), m(q, { key: 4 }, De(e["dcat:downloadURL"], (d, U) => (r(), m("div", Xt, [
876
- f("div", Yt, [
887
+ (r(!0), m(Q, { key: 4 }, De(e["dcat:downloadURL"], (d, C) => (r(), m("div", Zt, [
888
+ f("div", ea, [
877
889
  t[8] || (t[8] = f("div", {
878
890
  class: "dpiV3_label",
879
891
  style: { margin: "0" }
880
892
  }, "DownloadURL (optional)", -1)),
881
- e["dcat:downloadURL"].length !== 1 ? (r(), m("div", Zt, [
882
- u(R, {
893
+ e["dcat:downloadURL"].length !== 1 ? (r(), m("div", ta, [
894
+ u(A, {
883
895
  "button-text": "löschen",
884
- onClick: (C) => e["dcat:downloadURL"].splice(U, 1)
896
+ onClick: (R) => e["dcat:downloadURL"].splice(C, 1)
885
897
  }, null, 8, ["onClick"])
886
898
  ])) : p("", !0)
887
899
  ]),
888
- u(X, {
889
- onInput: (C) => Be(
890
- C.target.value,
900
+ u(Z, {
901
+ onInput: (R) => ze(
902
+ R.target.value,
891
903
  e.id,
892
- U
904
+ C
893
905
  ),
894
906
  addOnText: !1,
895
907
  datePicker: !1,
@@ -899,219 +911,219 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
899
911
  inputFieldSize: "large",
900
912
  initialHintText: !1,
901
913
  label: "",
902
- modelValue: e["dcat:downloadURL"][U]["@id"],
903
- "onUpdate:modelValue": (C) => e["dcat:downloadURL"][U]["@id"] = C,
914
+ modelValue: e["dcat:downloadURL"][C]["@id"],
915
+ "onUpdate:modelValue": (R) => e["dcat:downloadURL"][C]["@id"] = R,
904
916
  showEndIcon: !1
905
917
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
906
- U === e["dcat:downloadURL"].length - 1 ? (r(), m("div", ea, [
907
- u(M, {
918
+ C === e["dcat:downloadURL"].length - 1 ? (r(), m("div", aa, [
919
+ u(z, {
908
920
  buttonText: "Weitere DownloadURL hinzufügen",
909
921
  size: "small",
910
922
  iconStart: "plus",
911
923
  variant: "tertiary",
912
- onClick: (C) => e["dcat:downloadURL"].push({ "@id": "" })
924
+ onClick: (R) => e["dcat:downloadURL"].push({ "@id": "" })
913
925
  }, null, 8, ["onClick"])
914
926
  ])) : p("", !0)
915
927
  ]))), 256)),
916
- e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), m("div", ta, [
917
- u(Rt, {
928
+ e["dct:modified"] && e["dct:modified"].trim() !== "" ? (r(), m("div", oa, [
929
+ u(St, {
918
930
  "show-delete-button": !0,
919
931
  "distribution-id": e.id,
920
932
  "model-value": e["dct:modified"],
921
- onAddModifiedDate: de,
922
- onDeleteButtonClicked: (d) => ze(e.id)
933
+ onAddModifiedDate: ce,
934
+ onDeleteButtonClicked: (d) => Pe(e.id)
923
935
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
924
936
  ])) : p("", !0),
925
- e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), m("div", aa, [
926
- u(Ut, {
937
+ e["dct:issued"] && e["dct:issued"].trim() !== "" ? (r(), m("div", sa, [
938
+ u(Rt, {
927
939
  "show-delete-button": !0,
928
940
  "distribution-id": e.id,
929
941
  "model-value": e["dct:issued"],
930
- onAddIssuedDate: ce,
931
- onDeleteButtonClicked: (d) => Pe(e.id)
942
+ onAddIssuedDate: re,
943
+ onDeleteButtonClicked: (d) => Ne(e.id)
932
944
  }, null, 8, ["distribution-id", "model-value", "onDeleteButtonClicked"])
933
945
  ])) : p("", !0),
934
- dt(f("div", oa, [
935
- u(Tt, {
946
+ ct(f("div", ia, [
947
+ u(Ut, {
936
948
  "distribution-id": e.id,
937
949
  "description-text": e["dct:description"],
938
950
  "show-delete-button": !0,
939
- onAddDescription: re,
940
- onDeleteDescription: (d) => Ne(e.id)
951
+ onAddDescription: ue,
952
+ onDeleteDescription: (d) => Oe(e.id)
941
953
  }, null, 8, ["distribution-id", "description-text", "onDeleteDescription"])
942
954
  ], 512), [
943
955
  [
944
- ct,
956
+ rt,
945
957
  e["dct:description"] !== void 0 && e["dct:description"] !== ""
946
958
  ]
947
959
  ]),
948
- e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), m("div", sa, [
949
- u(wt, {
960
+ e["dcatap:availability"].label != null && e["dcatap:availability"].label.de && e["dcatap:availability"].label.de.trim() !== "" ? (r(), m("div", la, [
961
+ u(Dt, {
950
962
  "availability-text": e["dcatap:availability"].label.de,
951
963
  "distribution-id": e.id,
952
964
  "show-delete-button": !0,
953
- onAddAvailability: ue,
954
- onDeleteButtonClicked: (d) => Re(e.id)
965
+ onAddAvailability: me,
966
+ onDeleteButtonClicked: (d) => Ae(e.id)
955
967
  }, null, 8, ["availability-text", "distribution-id", "onDeleteButtonClicked"])
956
968
  ])) : p("", !0),
957
- e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), m("div", ia, [
958
- u(St, {
969
+ e["adms:status"]["@value"] && e["adms:status"]["@value"].trim() !== "" ? (r(), m("div", na, [
970
+ u($t, {
959
971
  "status-text": e["adms:status"]["@value"],
960
972
  "distribution-id": e.id,
961
973
  "show-delete-button": !0,
962
- onAddStatus: me,
963
- onDeleteButtonClicked: (d) => Ae(e.id)
974
+ onAddStatus: fe,
975
+ onDeleteButtonClicked: (d) => Se(e.id)
964
976
  }, null, 8, ["status-text", "distribution-id", "onDeleteButtonClicked"])
965
977
  ])) : p("", !0),
966
- e.checksum["spdx:checksum"] != "" ? (r(), m("div", la, [
967
- u(It, {
978
+ e.checksum["spdx:checksum"] != "" ? (r(), m("div", da, [
979
+ u(Lt, {
968
980
  "checksum-text": e.checksum.title,
969
981
  "checksum-dropdown-text": e.checksum["spdx:checksum"],
970
982
  "distribution-id": e.id,
971
983
  distIndex: o,
972
984
  "checksum-u-r-i": e.checksum.uri,
973
985
  "show-delete-button": !0,
974
- onAddChecksum: fe
986
+ onAddChecksum: pe
975
987
  }, null, 8, ["checksum-text", "checksum-dropdown-text", "distribution-id", "distIndex", "checksum-u-r-i"])
976
988
  ])) : p("", !0),
977
- ie.value ? (r(), m("div", na, [
978
- u(_t, {
989
+ le.value ? (r(), m("div", ca, [
990
+ u(Tt, {
979
991
  "change-license-text": e.changeLicense.title,
980
992
  "change-license-dropdown-text": e.changeLicense["dcterms:license"],
981
993
  "distribution-id": e.id,
982
994
  "as-card": !0,
983
995
  "show-delete-button": !0,
984
- onAddChangeLicense: pe
996
+ onAddChangeLicense: ve
985
997
  }, null, 8, ["change-license-text", "change-license-dropdown-text", "distribution-id"])
986
998
  ])) : p("", !0),
987
- e.conformsToItems && e.conformsToItems.length > 0 ? (r(), m("div", da, [
988
- f("div", ca, [
999
+ e.conformsToItems && e.conformsToItems.length > 0 ? (r(), m("div", ra, [
1000
+ f("div", ua, [
989
1001
  t[9] || (t[9] = f("div", null, "Konform zu Standard (optional)", -1)),
990
1002
  f("div", null, [
991
- u(R, {
1003
+ u(A, {
992
1004
  "button-text": "löschen",
993
- onClick: (d) => Ce(e.id)
1005
+ onClick: (d) => Re(e.id)
994
1006
  }, null, 8, ["onClick"])
995
1007
  ])
996
1008
  ]),
997
- u(Lt, {
1009
+ u(Vt, {
998
1010
  "conforms-to-items": e.conformsToItems,
999
1011
  "distribution-id": e.id,
1000
1012
  "as-card": !0,
1001
1013
  "show-delete-button": !0,
1002
- onUpdate: (d) => tt(e.id, d)
1014
+ onUpdate: (d) => at(e.id, d)
1003
1015
  }, null, 8, ["conforms-to-items", "distribution-id", "onUpdate"])
1004
1016
  ])) : p("", !0),
1005
- ((c = (i = e == null ? void 0 : e.policyItems) == null ? void 0 : i[0]) == null ? void 0 : c["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ra, [
1006
- f("div", ua, [
1017
+ ((c = (i = e == null ? void 0 : e.policyItems) == null ? void 0 : i[0]) == null ? void 0 : c["dcat:downloadURL"]) != "" && e.policyItems.length > 0 ? (r(), m("div", ma, [
1018
+ f("div", fa, [
1007
1019
  t[10] || (t[10] = f("div", null, "Regelwerk (optional)", -1)),
1008
1020
  f("div", null, [
1009
- u(R, {
1021
+ u(A, {
1010
1022
  "button-text": "löschen",
1011
- onClick: (d) => Fe(e.id)
1023
+ onClick: (d) => Ee(e.id)
1012
1024
  }, null, 8, ["onClick"])
1013
1025
  ])
1014
1026
  ]),
1015
- u(At, {
1027
+ u(Ft, {
1016
1028
  "policy-items": e.policyItems,
1017
1029
  "distribution-id": e.id,
1018
1030
  "as-card": !0,
1019
- onUpdate: (d) => at(e.id, d)
1031
+ onUpdate: (d) => ot(e.id, d)
1020
1032
  }, null, 8, ["policy-items", "distribution-id", "onUpdate"])
1021
1033
  ])) : p("", !0),
1022
- (h = (g = e["dct:language"]) == null ? void 0 : g[0]) != null && h.label || (I = (b = e["dct:language"]) == null ? void 0 : b[0]) != null && I["@value"] && ((be = (xe = e["dct:language"]) == null ? void 0 : xe[0]) == null ? void 0 : be["@value"].trim()) !== "" ? (r(), m("div", ma, [
1023
- u(Ct, {
1034
+ (h = (g = e["dct:language"]) == null ? void 0 : g[0]) != null && h.label || (T = (b = e["dct:language"]) == null ? void 0 : b[0]) != null && T["@value"] && ((we = (be = e["dct:language"]) == null ? void 0 : be[0]) == null ? void 0 : we["@value"].trim()) !== "" ? (r(), m("div", pa, [
1035
+ u(At, {
1024
1036
  "distribution-id": e.id,
1025
1037
  "show-delete-button": !1,
1026
- onAddLanguage: ve,
1038
+ onAddLanguage: he,
1027
1039
  onDeleteButtonClicked: (d) => $e(e.id),
1028
1040
  inOverview: !0
1029
1041
  }, null, 8, ["distribution-id", "onDeleteButtonClicked"])
1030
1042
  ])) : p("", !0),
1031
- e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), m("div", fa, [
1032
- u(Dt, {
1043
+ e["dcat:byteSize"] !== void 0 && e["dcat:byteSize"] !== "" ? (r(), m("div", va, [
1044
+ u(It, {
1033
1045
  "byte-size-prop": e["dcat:byteSize"],
1034
1046
  "distribution-id": e.id,
1035
1047
  "show-delete-button": !0,
1036
- onAddByteSize: he,
1037
- onDeleteButtonClicked: (d) => Se(e.id)
1048
+ onAddByteSize: ge,
1049
+ onDeleteButtonClicked: (d) => Fe(e.id)
1038
1050
  }, null, 8, ["byte-size-prop", "distribution-id", "onDeleteButtonClicked"])
1039
1051
  ])) : p("", !0),
1040
- e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", pa, [
1041
- u(Y, {
1052
+ e["dcat:mediaType"].label && e["dcat:mediaType"].label.trim() !== "" ? (r(), m("div", ha, [
1053
+ u(ee, {
1042
1054
  "distribution-id": e.id,
1043
- "file-types": y.value,
1055
+ "file-types": x.value,
1044
1056
  "file-format-type": "dcat:mediaType",
1045
1057
  "file-format-text": e["dcat:mediaType"].label,
1046
1058
  "show-delete-button": !0,
1047
- onAddMediaType: _,
1048
- onDeleteButtonClicked: t[0] || (t[0] = (d) => J("dcat:mediaType", x.value))
1059
+ onAddMediaType: I,
1060
+ onDeleteButtonClicked: t[0] || (t[0] = (d) => q("dcat:mediaType", k.value))
1049
1061
  }, null, 8, ["distribution-id", "file-types", "file-format-text"])
1050
1062
  ])) : p("", !0),
1051
- e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", va, [
1052
- u(Y, {
1063
+ e["dcat:compressFormat"] && e["dcat:compressFormat"].label && e["dcat:compressFormat"].label.trim() !== "" ? (r(), m("div", ga, [
1064
+ u(ee, {
1053
1065
  "distribution-id": e.id,
1054
- "file-types": y.value,
1066
+ "file-types": x.value,
1055
1067
  "file-format-type": "dcat:compressFormat",
1056
1068
  "compress-format-text": e["dcat:compressFormat"].label,
1057
1069
  "show-delete-button": !0,
1058
- onAddCompressFormat: _,
1059
- onDeleteButtonClicked: t[1] || (t[1] = (d) => J("dcat:compressFormat", x.value))
1070
+ onAddCompressFormat: I,
1071
+ onDeleteButtonClicked: t[1] || (t[1] = (d) => q("dcat:compressFormat", k.value))
1060
1072
  }, null, 8, ["distribution-id", "file-types", "compress-format-text"])
1061
1073
  ])) : p("", !0),
1062
- e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", ha, [
1063
- u(Y, {
1074
+ e["dcat:packageFormat"].label && e["dcat:packageFormat"].label.trim() !== "" ? (r(), m("div", ya, [
1075
+ u(ee, {
1064
1076
  "distribution-id": e.id,
1065
- "file-types": y.value,
1077
+ "file-types": x.value,
1066
1078
  "file-format-type": "dcat:packageFormat",
1067
1079
  "package-format-text": e["dcat:packageFormat"].label,
1068
1080
  "show-delete-button": !0,
1069
- onAddPackageFormat: _,
1070
- onDeleteButtonClicked: t[2] || (t[2] = (d) => J("dcat:packageFormat", x.value))
1081
+ onAddPackageFormat: I,
1082
+ onDeleteButtonClicked: t[2] || (t[2] = (d) => q("dcat:packageFormat", k.value))
1071
1083
  }, null, 8, ["distribution-id", "file-types", "package-format-text"])
1072
1084
  ])) : p("", !0),
1073
- O.value && L(l).length === 1 ? (r(), m("p", ga, " 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)
1074
1086
  ]),
1075
- f("div", ya, [
1076
- u(M, {
1087
+ f("div", xa, [
1088
+ u(z, {
1077
1089
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-info"),
1078
1090
  size: "small",
1079
1091
  "icon-start": "PlusSquare",
1080
1092
  variant: "tertiary",
1081
- onClick: (d) => Qe(e.id)
1093
+ onClick: (d) => Xe(e.id)
1082
1094
  }, null, 8, ["button-text", "onClick"]),
1083
- L(l).length > 1 ? (r(), G(M, {
1095
+ L(l).length > 1 ? (r(), X(z, {
1084
1096
  key: 0,
1085
1097
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.delete"),
1086
1098
  size: "small",
1087
1099
  "icon-start": "trash",
1088
1100
  variant: "tertiary",
1089
- onClick: (d) => Ye(e.id)
1101
+ onClick: (d) => Ze(e.id)
1090
1102
  }, null, 8, ["button-text", "onClick"])) : p("", !0)
1091
1103
  ])
1092
1104
  ]);
1093
1105
  }), 128)),
1094
- f("div", ka, [
1095
- u(M, {
1106
+ f("div", ba, [
1107
+ u(z, {
1096
1108
  "button-text": a.$t("message.dataupload.datasets.dcat:distribution.add-more-links"),
1097
1109
  size: "large",
1098
1110
  "icon-start": "plus",
1099
1111
  variant: "tertiary",
1100
- onClick: We
1112
+ onClick: He
1101
1113
  }, null, 8, ["button-text"])
1102
1114
  ]),
1103
- W.value ? (r(), m("div", xa, [
1104
- u(L(Q), {
1115
+ j.value ? (r(), m("div", wa, [
1116
+ u(L(Y), {
1105
1117
  size: 16,
1106
1118
  weight: "fill"
1107
1119
  }),
1108
1120
  t[11] || (t[11] = f("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
1109
1121
  ])) : p("", !0)
1110
1122
  ]),
1111
- S.value ? (r(), G(xt, {
1123
+ F.value ? (r(), X(wt, {
1112
1124
  key: 0,
1113
- "distibution-id": x.value,
1114
- "file-types": y.value,
1125
+ "distibution-id": k.value,
1126
+ "file-types": x.value,
1115
1127
  buttons: n.value.button,
1116
1128
  "header-text": n.value.header,
1117
1129
  text: n.value.text,
@@ -1123,8 +1135,8 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
1123
1135
  title: n.value.title,
1124
1136
  format: n.value.format,
1125
1137
  "distribution-link": n.value.distributionLink,
1126
- sections: ee.value,
1127
- context: A.context,
1138
+ sections: ae.value,
1139
+ context: S.context,
1128
1140
  "distribution-id": n.value.distributionId,
1129
1141
  "modified-date": n.value.dctModified || "",
1130
1142
  "issued-date": n.value.dctIssued || "",
@@ -1145,38 +1157,38 @@ const Ft = { class: "dpiV3InnerComponentWrap" }, Et = { key: 0 }, Mt = {
1145
1157
  "conforms-to-items": n.value.conformsToItems,
1146
1158
  "policy-items": n.value.policyItems,
1147
1159
  "download-URL": n.value.downloadURL,
1148
- onClose: Xe,
1149
- onActionHandling: t[3] || (t[3] = (e) => qe(e)),
1150
- onAddDocumentations: He,
1151
- onAddAccessServices: je,
1152
- onAddModifiedDate: de,
1153
- onAddIssuedDate: ce,
1154
- onAddDescription: re,
1160
+ onClose: Ye,
1161
+ onActionHandling: t[3] || (t[3] = (e) => Ge(e)),
1162
+ onAddDocumentations: je,
1163
+ onAddAccessServices: Je,
1164
+ onAddModifiedDate: ce,
1165
+ onAddIssuedDate: re,
1166
+ onAddDescription: ue,
1155
1167
  onAddAccessRights: a.handleAccessRights,
1156
- onAddAvailability: ue,
1157
- onAddLanguage: ve,
1158
- onAddByteSize: he,
1159
- onAddMediaType: _,
1160
- onAddCompressFormat: _,
1161
- onAddPackageFormat: _,
1162
- onAddStatus: me,
1163
- onAddChecksum: fe,
1164
- onAddChangeLicense: pe,
1165
- onAddConformsToItems: Je,
1166
- onAddPolicyItems: Ke
1168
+ onAddAvailability: me,
1169
+ onAddLanguage: he,
1170
+ onAddByteSize: ge,
1171
+ onAddMediaType: I,
1172
+ onAddCompressFormat: I,
1173
+ onAddPackageFormat: I,
1174
+ onAddStatus: fe,
1175
+ onAddChecksum: pe,
1176
+ onAddChangeLicense: ve,
1177
+ onAddConformsToItems: Ke,
1178
+ onAddPolicyItems: qe
1167
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),
1168
- z.value ? (r(), G(kt, {
1180
+ N.value ? (r(), X(bt, {
1169
1181
  key: 1,
1170
- buttons: V.value.button,
1171
- "header-text": V.value.header,
1172
- text: V.value.text,
1173
- action: V.value.action,
1174
- onClose: t[4] || (t[4] = (e) => z.value = !1),
1175
- onActionHandling: t[5] || (t[5] = (e) => Ge(e))
1182
+ buttons: U.value.button,
1183
+ "header-text": U.value.header,
1184
+ text: U.value.text,
1185
+ action: U.value.action,
1186
+ onClose: t[4] || (t[4] = (e) => N.value = !1),
1187
+ onActionHandling: t[5] || (t[5] = (e) => Qe(e))
1176
1188
  }, null, 8, ["buttons", "header-text", "text", "action"])) : p("", !0)
1177
1189
  ], 64));
1178
1190
  }
1179
- }, to = /* @__PURE__ */ $t(ba, [["__scopeId", "data-v-8eb1395b"]]);
1191
+ }, oo = /* @__PURE__ */ Et(_a, [["__scopeId", "data-v-5d32bc84"]]);
1180
1192
  export {
1181
- to as default
1193
+ oo as default
1182
1194
  };