@piveau/dpi 0.1.0-beta.69 → 0.1.0-beta.70

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,90 +1,94 @@
1
- import { ref as i, watch as Je, onMounted as Ke, getCurrentInstance as Qe, createElementBlock as c, openBlock as o, Fragment as D, createCommentVNode as d, createElementVNode as u, normalizeClass as S, createVNode as y, toDisplayString as h, renderList as Ve, createBlock as g } from "vue";
2
- import Xe from "./TextButtonSmall.vue.js";
1
+ import { ref as i, watch as Ke, onMounted as Qe, getCurrentInstance as Xe, createElementBlock as c, openBlock as o, Fragment as D, createCommentVNode as l, createElementVNode as u, normalizeClass as S, createVNode as y, toDisplayString as h, renderList as _e, createBlock as k } from "vue";
2
+ import Ye from "./TextButtonSmall.vue.js";
3
3
  import L from "./ButtonV3.vue.js";
4
- import re from "./CrossOutButton.vue.js";
5
- import Ye from "./CloseOpenButtonV3.vue.js";
6
- import { getPlannedAvailability as et, getLanguages as tt } from "../services/dpiV3_apis.js";
7
- import at from "./OptionalInformation/DocumentationsV3.vue.js";
8
- import it from "./OptionalInformation/ModifiedDateV3.vue.js";
9
- import st from "./OptionalInformation/DescriptionV3.vue.js";
10
- import ot from "./OptionalInformation/AvailabilityV3.vue.js";
11
- import lt from "./OptionalInformation/ByteSizeV3.vue.js";
12
- import dt from "./OptionalInformation/IssuedDateV3.vue.js";
13
- import rt from "./OptionalInformation/LanguageV3.vue.js";
14
- import ne from "./OptionalInformation/FileFormatV3.vue.js";
15
- import nt from "./OptionalInformation/StatusV3.vue.js";
16
- import ct from "./OptionalInformation/ChecksumV3.vue.js";
17
- import ut from "./OptionalInformation/ConformsToV3.vue.js";
18
- import mt from "./OptionalInformation/PolicyV3.vue.js";
19
- import pt from "./OptionalInformation/AccessServiceV3.vue.js";
20
- import ft from "./OptionalInformation/ChangeLicenseV3.vue.js";
4
+ import ne from "./CrossOutButton.vue.js";
5
+ import et from "./CloseOpenButtonV3.vue.js";
6
+ import { getPlannedAvailability as tt, getLanguages as at } from "../services/dpiV3_apis.js";
7
+ import it from "./OptionalInformation/DocumentationsV3.vue.js";
8
+ import st from "./OptionalInformation/ModifiedDateV3.vue.js";
9
+ import ot from "./OptionalInformation/DescriptionV3.vue.js";
10
+ import lt from "./OptionalInformation/AvailabilityV3.vue.js";
11
+ import dt from "./OptionalInformation/ByteSizeV3.vue.js";
12
+ import rt from "./OptionalInformation/IssuedDateV3.vue.js";
13
+ import nt from "./OptionalInformation/LanguageV3.vue.js";
14
+ import ct from "./OptionalInformation/AccessRightsV3.vue.js";
15
+ import ce from "./OptionalInformation/FileFormatV3.vue.js";
16
+ import ut from "./OptionalInformation/StatusV3.vue.js";
17
+ import mt from "./OptionalInformation/ChecksumV3.vue.js";
18
+ import pt from "./OptionalInformation/ConformsToV3.vue.js";
19
+ import ft from "./OptionalInformation/PolicyV3.vue.js";
20
+ import vt from "./OptionalInformation/AccessServiceV3.vue.js";
21
+ import yt from "./OptionalInformation/ChangeLicenseV3.vue.js";
21
22
  /* empty css */
22
23
  /* empty css */
23
- import vt from "../../../_virtual/_plugin-vue_export-helper.js";
24
- const yt = {
24
+ import ht from "../../../_virtual/_plugin-vue_export-helper.js";
25
+ const gt = {
25
26
  key: 0,
26
27
  class: "dpiV3_modalBackground"
27
- }, ht = { class: "dpiV3_modalHeaderWrap" }, kt = { class: "dpiV3_modalText" }, gt = {
28
+ }, kt = { class: "dpiV3_modalHeaderWrap" }, bt = { class: "dpiV3_modalText" }, Tt = {
28
29
  key: 0,
29
30
  class: "dpiV3AutoCompleteWrapDeleteModal copy-large-semi-bold"
30
- }, bt = { class: "dpiV3_LinkInfos" }, Tt = ["href"], Vt = { class: "dpiV3_title" }, _t = ["href"], It = { class: "dpiV3_title" }, xt = {
31
+ }, Vt = { class: "dpiV3_LinkInfos" }, _t = ["href"], It = { class: "dpiV3_title" }, xt = ["href"], Dt = { class: "dpiV3_title" }, Lt = {
31
32
  key: 2,
32
33
  class: "dpiV3_File-Format copy-small-regular"
33
- }, Dt = {
34
+ }, Ct = {
34
35
  key: 0,
35
36
  class: "dpiV3_modalButtonWrap"
36
- }, Lt = {
37
+ }, wt = {
37
38
  key: 1,
38
39
  class: "dpiV3_optionalInfoContent"
39
- }, Ct = { class: "dpiV3_ListMetaData" }, wt = { class: "dpiV3_title-description" }, Ut = { class: "dpiV3_group-title" }, Ft = { class: "dpiV3_caret" }, At = ["onClick"], St = {
40
+ }, At = { class: "dpiV3_ListMetaData" }, Ut = { class: "dpiV3_title-description" }, Ft = { class: "dpiV3_group-title" }, St = { class: "dpiV3_caret" }, Rt = ["onClick"], qt = {
40
41
  key: 1,
41
42
  class: "dpiV3_sectionDivider"
42
- }, Rt = {
43
+ }, Bt = {
43
44
  key: 1,
44
45
  class: "dpiV3_modalBackground"
45
- }, qt = { class: "dpiV3_modalHeaderWrap" }, Bt = {
46
+ }, zt = { class: "dpiV3_modalHeaderWrap" }, Mt = {
46
47
  key: 0,
47
48
  class: "dpiV3_modalContent"
48
- }, zt = {
49
+ }, Pt = {
49
50
  key: 1,
50
51
  class: "dpiV3_modalContent"
51
- }, Mt = {
52
+ }, $t = {
52
53
  key: 2,
53
54
  class: "dpiV3_modalContent"
54
- }, Pt = {
55
+ }, Wt = {
55
56
  key: 3,
56
57
  class: "dpiV3_modified"
57
- }, $t = {
58
+ }, Et = {
58
59
  key: 4,
59
60
  class: "dpiV3_modified"
60
- }, Wt = {
61
+ }, Ot = {
61
62
  key: 5,
62
63
  class: "dpiV3_modified"
63
- }, Et = {
64
+ }, Ht = {
64
65
  key: 6,
65
- class: "dpiV3_DocumentationV3_Wrap"
66
- }, Ot = {
66
+ class: "dpiV3_modified"
67
+ }, Nt = {
67
68
  key: 7,
68
69
  class: "dpiV3_DocumentationV3_Wrap"
69
- }, Ht = {
70
- key: 11,
70
+ }, jt = {
71
+ key: 8,
71
72
  class: "dpiV3_DocumentationV3_Wrap"
72
- }, Nt = {
73
+ }, Zt = {
73
74
  key: 12,
74
75
  class: "dpiV3_DocumentationV3_Wrap"
75
- }, jt = { class: "dpiV3_modalButtonWrap" }, Zt = {
76
+ }, Gt = {
77
+ key: 13,
78
+ class: "dpiV3_DocumentationV3_Wrap"
79
+ }, Jt = { class: "dpiV3_modalButtonWrap" }, Kt = {
76
80
  key: 2,
77
81
  class: "dpiV3_modalBackground"
78
- }, Gt = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, Jt = { class: "dpiV3_modalHeaderWrap" }, Kt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, Qt = { class: "dpiV3_LinkInfos" }, Xt = {
82
+ }, Qt = { class: "dpiV3_modalWrap dpiV3_confirmationDialog" }, Xt = { class: "dpiV3_modalHeaderWrap" }, Yt = { class: "dpiV3AutoCompleteWrap copy-large-semi-bold" }, ea = { class: "dpiV3_LinkInfos" }, ta = {
79
83
  key: 0,
80
84
  class: "dpiV3_title"
81
- }, Yt = {
85
+ }, aa = {
82
86
  key: 1,
83
87
  class: "dpiV3_title"
84
- }, ea = {
88
+ }, ia = {
85
89
  key: 2,
86
90
  class: "dpiV3_title"
87
- }, ta = { class: "dpiV3_modalButtonWrap" }, aa = {
91
+ }, sa = { class: "dpiV3_modalButtonWrap" }, oa = {
88
92
  __name: "ModalV3",
89
93
  props: {
90
94
  headerText: { type: String, required: !0 },
@@ -144,39 +148,39 @@ const yt = {
144
148
  "addChecksum",
145
149
  "addChangeLicense"
146
150
  ],
147
- setup(f, { emit: _e }) {
148
- const e = f, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), P = i(null), v = _e, $ = i(!1), W = i(!1), E = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1);
151
+ setup(f, { emit: Ie }) {
152
+ const e = f, R = i(null), q = i(null), B = i(null), z = i(null), M = i(null), P = i(null), v = Ie, $ = i(!1), W = i(!1), E = i(!1), O = i(!1), H = i(!1), N = i(!1), j = i(!1);
149
153
  i(!1);
150
- const ce = i(!1), Z = i(!1), G = i(!1), J = i(!1), K = i(!1), Q = i(!1), X = i(!1), Y = i(!1), ee = i(!1), te = i(!1), I = i([]), n = i({ key: "", text: "" }), Ie = i(null), ae = i(!1), C = i(null), ie = i(null);
154
+ const Z = i(!1), G = i(!1), J = i(!1), K = i(!1), Q = i(!1), X = i(!1), Y = i(!1), ee = i(!1), te = i(!1), ae = i(!1), I = i([]), r = i({ key: "", text: "" }), xe = i(null), ie = i(!1), C = i(null), se = i(null);
151
155
  i([...e.fileTypes]);
152
- const xe = i([]), De = i([]);
156
+ const De = i([]), Le = i([]);
153
157
  i(null);
154
- const Le = i(!1), ue = i(""), me = i(""), pe = i(""), Ce = i(""), b = i({}), T = i({}), V = i({}), _ = i({}), fe = i(""), ve = i(""), ye = i(""), he = i(0), ke = i(""), ge = i(""), be = i(""), w = i(""), U = i(""), we = i(""), F = i(""), A = i(""), se = i(!0);
158
+ const Ce = i(!1), ue = i(""), me = i(""), pe = i(""), fe = i(""), b = i({}), T = i({}), V = i({}), _ = i({}), ve = i(""), ye = i(""), he = i(""), ge = i(0), ke = i(""), be = i(""), Te = i(""), w = i(""), A = i(""), we = i(""), U = i(""), F = i(""), oe = i(!0);
155
159
  i(!0);
156
- const Ue = (a, t) => {
157
- se.value = !1, n.value = {
160
+ const Ae = (a, t) => {
161
+ oe.value = !1, r.value = {
158
162
  key: e.sections[a].keys[t],
159
163
  text: e.sections[a].items[t]
160
164
  }, b.value[e.distributionId] || (b.value[e.distributionId] = []), T.value[e.distributionId] || (T.value[e.distributionId] = []), V.value[e.distributionId] || (V.value[e.distributionId] = []), _.value[e.distributionId] || (_.value[e.distributionId] = []);
161
- }, oe = () => {
162
- se.value = !0, n.value = { key: "", text: "" };
163
- }, Fe = () => {
165
+ }, le = () => {
166
+ oe.value = !0, r.value = { key: "", text: "" };
167
+ }, Ue = () => {
164
168
  const a = (t) => {
165
169
  if (!t || t.trim() === "") return !1;
166
- const r = t.trim();
167
- return /\.[a-zA-Z]{2,}$/.test(r);
170
+ const n = t.trim();
171
+ return /\.[a-zA-Z]{2,}$/.test(n);
168
172
  };
169
173
  if (E.value) {
170
174
  const t = V.value[e.distributionId] || [];
171
- if (t.some((l) => {
172
- const s = l["dct:title"] && l["dct:title"].trim() !== "", p = l["dcat:downloadURL"] ? l["dcat:downloadURL"].trim() : "";
175
+ if (t.some((d) => {
176
+ const s = d["dct:title"] && d["dct:title"].trim() !== "", p = d["dcat:downloadURL"] ? d["dcat:downloadURL"].trim() : "";
173
177
  return !!(s && (!p || !a(p)) || p && !a(p));
174
178
  })) {
175
179
  R.value && R.value.validateAllItems();
176
180
  return;
177
181
  }
178
- const m = t.filter((l) => {
179
- const s = l["dct:title"] && l["dct:title"].trim() !== "", p = l["dcat:downloadURL"] && l["dcat:downloadURL"].trim() !== "" && a(l["dcat:downloadURL"].trim());
182
+ const m = t.filter((d) => {
183
+ const s = d["dct:title"] && d["dct:title"].trim() !== "", p = d["dcat:downloadURL"] && d["dcat:downloadURL"].trim() !== "" && a(d["dcat:downloadURL"].trim());
180
184
  return s || p;
181
185
  });
182
186
  m.length > 0 && v(
@@ -187,137 +191,137 @@ const yt = {
187
191
  }
188
192
  if (O.value) {
189
193
  const t = _.value[e.distributionId] || [];
190
- if (t.some((l) => {
191
- const s = l["dcat:downloadURL"] ? l["dcat:downloadURL"].trim() : "";
194
+ if (t.some((d) => {
195
+ const s = d["dcat:downloadURL"] ? d["dcat:downloadURL"].trim() : "";
192
196
  return !!(s && !a(s));
193
197
  })) {
194
198
  P.value && P.value.validateAllItems();
195
199
  return;
196
200
  }
197
- const m = t.filter((l) => l["dcat:downloadURL"] && l["dcat:downloadURL"].trim() !== "" && a(l["dcat:downloadURL"].trim()));
201
+ const m = t.filter((d) => d["dcat:downloadURL"] && d["dcat:downloadURL"].trim() !== "" && a(d["dcat:downloadURL"].trim()));
198
202
  m.length > 0 && v("addPolicyItems", e.distributionId, m), O.value = !1;
199
203
  }
200
204
  if ($.value) {
201
- const t = b.value[e.distributionId] || [], r = (s) => {
202
- const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0);
203
- return p || k || x;
205
+ const t = b.value[e.distributionId] || [], n = (s) => {
206
+ const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0);
207
+ return p || g || x;
204
208
  };
205
209
  if (t.some((s) => {
206
210
  const p = s["dcat:accessURL"] ? s["dcat:accessURL"].trim() : "";
207
- return !!(r(s) && (!p || !a(p)) || p && !a(p));
211
+ return !!(n(s) && (!p || !a(p)) || p && !a(p));
208
212
  })) {
209
213
  q.value && q.value.validateAllItems();
210
214
  return;
211
215
  }
212
- const l = t.filter((s) => {
213
- const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0), Ge = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" && a(s["dcat:accessURL"].trim());
214
- return p || k || x || Ge;
216
+ const d = t.filter((s) => {
217
+ const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dct:format"] && s["dct:format"].trim !== "" && (typeof s["dct:format"] == "string" ? s["dct:format"].trim() !== "" : !0), Je = s["dcat:accessURL"] && s["dcat:accessURL"].trim() !== "" && a(s["dcat:accessURL"].trim());
218
+ return p || g || x || Je;
215
219
  });
216
- l.length > 0 && v(
220
+ d.length > 0 && v(
217
221
  "addDocumentations",
218
222
  e.distributionId,
219
- l
223
+ d
220
224
  ), $.value = !1;
221
225
  }
222
226
  if (W.value) {
223
- const t = T.value[e.distributionId] || [], r = (s) => {
224
- const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "";
225
- return p || k;
227
+ const t = T.value[e.distributionId] || [], n = (s) => {
228
+ const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "";
229
+ return p || g;
226
230
  };
227
231
  if (t.some((s) => {
228
232
  const p = s["dcat:downloadURL"] ? s["dcat:downloadURL"].trim() : "";
229
- return !!(r(s) && (!p || !a(p)) || p && !a(p));
233
+ return !!(n(s) && (!p || !a(p)) || p && !a(p));
230
234
  })) {
231
235
  B.value && B.value.validateAllItems();
232
236
  return;
233
237
  }
234
- const l = t.filter((s) => {
235
- const p = s["dct:title"] && s["dct:title"].trim() !== "", k = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dcat:downloadURL"] && s["dcat:downloadURL"].trim() !== "" && a(s["dcat:downloadURL"].trim());
236
- return p || k || x;
238
+ const d = t.filter((s) => {
239
+ const p = s["dct:title"] && s["dct:title"].trim() !== "", g = s["dct:description"] && s["dct:description"].trim() !== "", x = s["dcat:downloadURL"] && s["dcat:downloadURL"].trim() !== "" && a(s["dcat:downloadURL"].trim());
240
+ return p || g || x;
237
241
  });
238
- l.length > 0 && v(
242
+ d.length > 0 && v(
239
243
  "addAccessServices",
240
244
  e.distributionId,
241
- l
245
+ d
242
246
  ), W.value = !1;
243
247
  }
244
- if (H.value && (v("addModifiedDate", ue.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", me.value, e.distributionId), N.value = !1), j.value && (v("addDescription", pe.value, e.distributionId), j.value = !1), ce.value && (v("addAccessRights", Ce.value, e.distributionId), ce.value = !1), Z.value && (v("addAvailability", fe.value, e.distributionId, e.uri), Z.value = !1), Y.value && (v("addStatus", ve.value, e.distributionId), Y.value = !1), ee.value) {
245
- const t = w.value && w.value.trim() !== "", r = U.value && U.value.trim() !== "";
246
- if ((t || r) && (!t || !r)) {
248
+ if (H.value && (v("addModifiedDate", ue.value, e.distributionId), H.value = !1), N.value && (v("addIssuedDate", me.value, e.distributionId), N.value = !1), j.value && (v("addDescription", pe.value, e.distributionId), j.value = !1), Z.value && (v("addAccessRights", fe.value, e.distributionId, e.uri), Z.value = !1), G.value && (v("addAvailability", ve.value, e.distributionId, e.uri), G.value = !1), ee.value && (v("addStatus", ye.value, e.distributionId), ee.value = !1), te.value) {
249
+ const t = w.value && w.value.trim() !== "", n = A.value && A.value.trim() !== "";
250
+ if ((t || n) && (!t || !n)) {
247
251
  z.value && z.value.validateAllItems();
248
252
  return;
249
253
  }
250
- t && r && v(
254
+ t && n && v(
251
255
  "addChecksum",
252
256
  w.value,
253
- U.value,
257
+ A.value,
254
258
  e.distributionId,
255
259
  we.value
256
- ), ee.value = !1;
260
+ ), te.value = !1;
257
261
  }
258
- if (te.value) {
259
- const t = typeof A.value == "string" ? A.value.trim() : "", r = typeof F.value == "string" ? F.value.trim() : "";
260
- if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !r || // by- license without attribution
261
- r && !t) {
262
+ if (ae.value) {
263
+ const t = typeof F.value == "string" ? F.value.trim() : "", n = typeof U.value == "string" ? U.value.trim() : "";
264
+ if (t && (t.toLowerCase().includes("cc-by") || t.toLowerCase().includes("cc by")) && !n || // by- license without attribution
265
+ n && !t) {
262
266
  M.value && M.value.validate();
263
267
  return;
264
268
  }
265
- (t || r) && v(
269
+ (t || n) && v(
266
270
  "addChangeLicense",
271
+ U.value,
267
272
  F.value,
268
- A.value,
269
273
  e.distributionId
270
- ), te.value = !1;
274
+ ), ae.value = !1;
271
275
  }
272
- G.value && (v("addLanguage", ye.value, e.distributionId, e.uri), G.value = !1), J.value && (v("addByteSize", he.value, e.distributionId), J.value = !1), K.value && (v(
276
+ J.value && (v("addLanguage", he.value, e.distributionId, e.uri), J.value = !1), K.value && (v("addByteSize", ge.value, e.distributionId), K.value = !1), Q.value && (v(
273
277
  "addMediaType",
274
278
  ke.value,
275
279
  "dcat:mediaType",
276
280
  e.distributionId
277
- ), K.value = !1), Q.value && (v(
281
+ ), Q.value = !1), X.value && (v(
278
282
  "addCompressFormat",
279
- ge.value,
283
+ be.value,
280
284
  "dcat:compressFormat",
281
285
  e.distributionId
282
- ), Q.value = !1), X.value && (v(
286
+ ), X.value = !1), Y.value && (v(
283
287
  "addPackageFormat",
284
- be.value,
288
+ Te.value,
285
289
  "dcat:packageFormat",
286
290
  e.distributionId
287
- ), X.value = !1), oe();
291
+ ), Y.value = !1), le();
288
292
  };
289
- Je(
293
+ Ke(
290
294
  () => e.sections,
291
295
  (a) => {
292
- Array.isArray(a) && a.length > 0 && (I.value = a.map((t, r) => r === 0));
296
+ Array.isArray(a) && a.length > 0 && (I.value = a.map((t, n) => n === 0));
293
297
  },
294
298
  { immediate: !0 }
295
299
  );
296
- const Ae = (a) => {
300
+ const Fe = (a) => {
297
301
  I.value[a] = !I.value[a];
298
- }, le = () => {
302
+ }, de = () => {
299
303
  v("close");
300
304
  }, Se = () => {
301
- v("actionHandling", e.action), le();
305
+ v("actionHandling", e.action), de();
302
306
  };
303
- Ke(async () => {
307
+ Qe(async () => {
304
308
  b.value[e.distributionId] = e.documentations, T.value[e.distributionId] = e.accessServices, V.value[e.distributionId] = e.conformsToItems, _.value[e.distributionId] = e.policyItems;
305
- const a = Qe(), t = a.appContext.app.config.globalProperties.$env;
309
+ const a = Xe(), t = a.appContext.app.config.globalProperties.$env;
306
310
  try {
307
- const m = await et(t.api.baseUrl);
308
- xe.value = m.map((l) => ({
309
- "@value": l.value,
310
- label: l.label
311
+ const m = await tt(t.api.baseUrl);
312
+ De.value = m.map((d) => ({
313
+ "@value": d.value,
314
+ label: d.label
311
315
  }));
312
316
  } catch (m) {
313
317
  console.error("Failed to load planned availability data", m);
314
318
  }
315
- const r = a.appContext.app.config.globalProperties.$i18n.locale;
319
+ const n = a.appContext.app.config.globalProperties.$i18n.locale;
316
320
  try {
317
- const m = await tt(t.api.baseUrl, r);
318
- De.value = m.map((l) => ({
319
- "@value": l.label,
320
- label: l.label
321
+ const m = await at(t.api.baseUrl, n);
322
+ Le.value = m.map((d) => ({
323
+ "@value": d.label,
324
+ label: d.label
321
325
  }));
322
326
  } catch (m) {
323
327
  console.error("Failed to load language data", m);
@@ -337,80 +341,82 @@ const yt = {
337
341
  me.value = a, N.value = !0;
338
342
  }, $e = (a) => {
339
343
  pe.value = a, j.value = !0;
340
- }, We = (a) => {
341
- fe.value = a, Z.value = !0;
344
+ }, We = (a, t) => {
345
+ console.log(a, t), fe.value = a, Z.value = !0;
342
346
  }, Ee = (a) => {
343
- ve.value = a, Y.value = !0;
344
- }, Oe = (a, t) => {
345
- console.log(e.checksumURI), ee.value = !0, U.value = t, w.value = a;
346
- }, He = (a, t, r, m) => {
347
- console.log(a, t, r, m), te.value = !0, A.value = t, F.value = a;
348
- }, Ne = (a) => {
349
- ye.value = a, G.value = !0;
350
- }, de = (a, t) => {
347
+ ve.value = a, G.value = !0;
348
+ }, Oe = (a) => {
349
+ ye.value = a, ee.value = !0;
350
+ }, He = (a, t) => {
351
+ console.log(e.checksumURI), te.value = !0, A.value = t, w.value = a;
352
+ }, Ne = (a, t, n, m) => {
353
+ console.log(a, t, n, m), ae.value = !0, F.value = t, U.value = a;
354
+ }, je = (a) => {
355
+ he.value = a, J.value = !0;
356
+ }, re = (a, t) => {
351
357
  switch (t) {
352
358
  case "dcat:mediaType":
353
- K.value = !0, ke.value = a;
359
+ Q.value = !0, ke.value = a;
354
360
  break;
355
361
  case "dcat:compressFormat":
356
- Q.value = !0, ge.value = a;
362
+ X.value = !0, be.value = a;
357
363
  break;
358
364
  case "dcat:packageFormat":
359
- X.value = !0, be.value = a;
365
+ Y.value = !0, Te.value = a;
360
366
  break;
361
367
  }
362
- }, je = (a) => {
363
- he.value = a, J.value = !0;
364
- }, Te = () => {
365
- ae.value = !1, Ie.value = null;
366
- }, Ze = () => {
367
- ae.value = !1, Le.value = !1;
368
+ }, Ze = (a) => {
369
+ ge.value = a, K.value = !0;
370
+ }, Ve = () => {
371
+ ie.value = !1, xe.value = null;
372
+ }, Ge = () => {
373
+ ie.value = !1, Ce.value = !1;
368
374
  };
369
375
  return (a, t) => (o(), c(D, null, [
370
- se.value ? (o(), c("div", yt, [
376
+ oe.value ? (o(), c("div", gt, [
371
377
  u("div", {
372
378
  class: S(["dpiV3_modalWrap", {
373
- dpiV3_optionalInfo: e.optionalInfoView || n.value.key === "foaf:page"
379
+ dpiV3_optionalInfo: e.optionalInfoView || r.value.key === "foaf:page"
374
380
  }])
375
381
  }, [
376
382
  u("div", {
377
383
  class: S(["dpiV3_modalMainWrap", { dpiV3_modalLine: e.optionalInfoView }])
378
384
  }, [
379
- u("div", ht, [
385
+ u("div", kt, [
380
386
  u("h2", {
381
387
  class: S({ dpiV3_optionalInfoHeader: e.optionalInfoView })
382
388
  }, h(e.headerText), 3),
383
- y(re, {
389
+ y(ne, {
384
390
  class: "dpiv3_modalCrossout",
385
- onClick: le
391
+ onClick: de
386
392
  })
387
393
  ]),
388
- u("span", kt, h(e.text), 1),
389
- !e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(), c("div", gt, [
390
- u("div", bt, [
394
+ u("span", bt, h(e.text), 1),
395
+ !e.optionalInfoView && (e.title || e.distributionLink || e.format) ? (o(), c("div", Tt, [
396
+ u("div", Vt, [
391
397
  e.title ? (o(), c("a", {
392
398
  key: 0,
393
399
  href: e.distributionLink,
394
400
  target: "_blank"
395
401
  }, [
396
- u("div", Vt, h(e.title), 1)
397
- ], 8, Tt)) : d("", !0),
402
+ u("div", It, h(e.title), 1)
403
+ ], 8, _t)) : l("", !0),
398
404
  e.distributionLink && !e.title ? (o(), c("a", {
399
405
  key: 1,
400
406
  href: e.distributionLink,
401
407
  target: "_blank"
402
408
  }, [
403
- u("div", It, h(e.distributionLink), 1)
404
- ], 8, _t)) : d("", !0),
405
- e.format ? (o(), c("div", xt, h(e.format), 1)) : d("", !0)
409
+ u("div", Dt, h(e.distributionLink), 1)
410
+ ], 8, xt)) : l("", !0),
411
+ e.format ? (o(), c("div", Lt, h(e.format), 1)) : l("", !0)
406
412
  ])
407
- ])) : d("", !0)
413
+ ])) : l("", !0)
408
414
  ], 2),
409
- e.showButtons ? (o(), c("div", Dt, [
410
- y(Xe, {
415
+ e.showButtons ? (o(), c("div", Ct, [
416
+ y(Ye, {
411
417
  buttonText: a.$t("message.dataupload.datasets.dcat:distribution.modal.cancel"),
412
418
  class: "dpiv3_modalCancelButton",
413
- onClick: le,
419
+ onClick: de,
414
420
  ref: "accActive"
415
421
  }, null, 8, ["buttonText"]),
416
422
  y(L, {
@@ -418,225 +424,232 @@ const yt = {
418
424
  buttonText: e.buttons,
419
425
  size: "large"
420
426
  }, null, 8, ["buttonText"])
421
- ])) : d("", !0),
422
- e.optionalInfoView ? (o(), c("div", Lt, [
423
- u("div", Ct, [
424
- (o(!0), c(D, null, Ve(f.sections, (r, m) => (o(), c(D, { key: m }, [
425
- u("div", wt, [
426
- u("div", Ut, [
427
- u("div", null, h(r.title), 1),
428
- u("div", Ft, [
429
- y(Ye, {
430
- onClick: (l) => Ae(m),
427
+ ])) : l("", !0),
428
+ e.optionalInfoView ? (o(), c("div", wt, [
429
+ u("div", At, [
430
+ (o(!0), c(D, null, _e(f.sections, (n, m) => (o(), c(D, { key: m }, [
431
+ u("div", Ut, [
432
+ u("div", Ft, [
433
+ u("div", null, h(n.title), 1),
434
+ u("div", St, [
435
+ y(et, {
436
+ onClick: (d) => Fe(m),
431
437
  expanded: !I.value[m]
432
438
  }, null, 8, ["onClick", "expanded"])
433
439
  ])
434
440
  ])
435
441
  ]),
436
- I.value[m] ? (o(!0), c(D, { key: 0 }, Ve(r.items, (l, s) => (o(), c(D, { key: s }, [
442
+ I.value[m] ? (o(!0), c(D, { key: 0 }, _e(n.items, (d, s) => (o(), c(D, { key: s }, [
437
443
  t[4] || (t[4] = u("div", { class: "dpiV3_itemDivider" }, null, -1)),
438
444
  u("div", {
439
445
  class: "dpiV3_itemOptional",
440
- onClick: (p) => Ue(m, s)
441
- }, h(l), 9, At)
442
- ], 64))), 128)) : d("", !0),
443
- m < f.sections.length - 1 ? (o(), c("div", St)) : d("", !0)
446
+ onClick: (p) => Ae(m, s)
447
+ }, h(d), 9, Rt)
448
+ ], 64))), 128)) : l("", !0),
449
+ m < f.sections.length - 1 ? (o(), c("div", qt)) : l("", !0)
444
450
  ], 64))), 128))
445
451
  ])
446
- ])) : d("", !0)
452
+ ])) : l("", !0)
447
453
  ], 2)
448
- ])) : d("", !0),
449
- n.value.key ? (o(), c("div", Rt, [
454
+ ])) : l("", !0),
455
+ r.value.key ? (o(), c("div", Bt, [
450
456
  u("div", {
451
457
  class: S(["dpiV3_modalWrap", {
452
- dpiV3_removeOverflow: n.value.key === "dcatap:availability" || n.value.key === "dcat:mediaType" || n.value.key === "dcat:compressFormat" || n.value.key === "dcat:packageFormat" || n.value.key === "spdx:checksum" || n.value.key === "adms:status"
458
+ dpiV3_removeOverflow: r.value.key === "dcatap:availability" || r.value.key === "dcat:mediaType" || r.value.key === "dcat:compressFormat" || r.value.key === "dcat:packageFormat" || r.value.key === "spdx:checksum" || r.value.key === "adms:status"
453
459
  }])
454
460
  }, [
455
- u("div", qt, [
456
- u("h2", null, h(n.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
457
- y(re, {
461
+ u("div", zt, [
462
+ u("h2", null, h(r.value.text) + " " + h(a.$t("message.dataupload.datasets.dcat:distribution.modal.add_small")), 1),
463
+ y(ne, {
458
464
  class: "dpiv3_modalCrossout",
459
- onClick: oe
465
+ onClick: le
460
466
  })
461
467
  ]),
462
- n.value.key === "dcatap:availability" ? (o(), c("p", Bt, h(a.$t(
468
+ r.value.key === "dcatap:availability" ? (o(), c("p", Mt, h(a.$t(
463
469
  "message.dataupload.datasets.dcat:distribution.modal.availability_paragraph"
464
- )), 1)) : d("", !0),
465
- n.value.key === "dcat:byteSize" ? (o(), c("p", zt, h(a.$t(
470
+ )), 1)) : l("", !0),
471
+ r.value.key === "dcat:byteSize" ? (o(), c("p", Pt, h(a.$t(
466
472
  "message.dataupload.datasets.dcat:distribution.modal.byte-size-paragraph"
467
- )), 1)) : d("", !0),
468
- n.value.key === "foaf:page" ? (o(), c("p", Mt, h(a.$t(
473
+ )), 1)) : l("", !0),
474
+ r.value.key === "foaf:page" ? (o(), c("p", $t, h(a.$t(
469
475
  "message.dataupload.datasets.dcat:distribution.modal.documentation-paragraph"
470
- )), 1)) : d("", !0),
471
- n.value.key === "dct:modified" ? (o(), c("div", Pt, [
472
- y(it, {
476
+ )), 1)) : l("", !0),
477
+ r.value.key === "dct:modified" ? (o(), c("div", Wt, [
478
+ y(st, {
473
479
  modelValue: f.modifiedDate,
474
480
  onAddModifiedDate: Me
475
481
  }, null, 8, ["modelValue"])
476
- ])) : d("", !0),
477
- n.value.key === "dct:issued" ? (o(), c("div", $t, [
478
- y(dt, {
482
+ ])) : l("", !0),
483
+ r.value.key === "dct:issued" ? (o(), c("div", Et, [
484
+ y(rt, {
479
485
  modelValue: f.issuedDate,
480
- labelText: n.value.text + " (optional)",
486
+ labelText: r.value.text + " (optional)",
481
487
  onAddIssuedDate: Pe
482
488
  }, null, 8, ["modelValue", "labelText"])
483
- ])) : d("", !0),
484
- n.value.key === "dct:description" ? (o(), c("div", Wt, [
485
- y(st, {
489
+ ])) : l("", !0),
490
+ r.value.key === "dct:description" ? (o(), c("div", Ot, [
491
+ y(ot, {
486
492
  onAddDescription: $e,
487
493
  descriptionText: f.descriptionText
488
494
  }, null, 8, ["descriptionText"])
489
- ])) : d("", !0),
490
- n.value.key === "foaf:page" ? (o(), c("div", Et, [
491
- y(at, {
495
+ ])) : l("", !0),
496
+ r.value.key === "dct:accessRights" ? (o(), c("div", Ht, [
497
+ y(ct, {
498
+ onAddAccessRights: We,
499
+ accessRightsProp: f.accessRightsText
500
+ }, null, 8, ["accessRightsProp"])
501
+ ])) : l("", !0),
502
+ r.value.key === "foaf:page" ? (o(), c("div", Nt, [
503
+ y(it, {
492
504
  ref_key: "documentationsV3Ref",
493
505
  ref: q,
494
506
  documentations: b.value[e.distributionId] || [],
495
507
  fileTypes: f.fileTypes,
496
- onUpdate: t[0] || (t[0] = (r) => Re(e.distributionId, r)),
508
+ onUpdate: t[0] || (t[0] = (n) => Re(e.distributionId, n)),
497
509
  distributionId: e.distributionId
498
510
  }, null, 8, ["documentations", "fileTypes", "distributionId"])
499
- ])) : d("", !0),
500
- n.value.key === "dcat:accessService" ? (o(), c("div", Ot, [
501
- y(pt, {
511
+ ])) : l("", !0),
512
+ r.value.key === "dcat:accessService" ? (o(), c("div", jt, [
513
+ y(vt, {
502
514
  ref_key: "accessServiceV3Ref",
503
515
  ref: B,
504
516
  accessServices: T.value[e.distributionId] || [],
505
- onUpdate: t[1] || (t[1] = (r) => qe(e.distributionId, r)),
517
+ onUpdate: t[1] || (t[1] = (n) => qe(e.distributionId, n)),
506
518
  distributionId: e.distributionId
507
519
  }, null, 8, ["accessServices", "distributionId"])
508
- ])) : d("", !0),
509
- n.value.key === "dcat:byteSize" ? (o(), g(lt, {
510
- key: 8,
511
- byteSizeProp: f.byteSizeText,
512
- onAddByteSize: je
513
- }, null, 8, ["byteSizeProp"])) : d("", !0),
514
- n.value.key === "dcatap:availability" ? (o(), g(ot, {
520
+ ])) : l("", !0),
521
+ r.value.key === "dcat:byteSize" ? (o(), k(dt, {
515
522
  key: 9,
516
- availabilityText: f.availabilityText,
517
- onAddAvailability: We
518
- }, null, 8, ["availabilityText"])) : d("", !0),
519
- n.value.key === "dct:language" ? (o(), g(rt, {
523
+ byteSizeProp: f.byteSizeText,
524
+ onAddByteSize: Ze
525
+ }, null, 8, ["byteSizeProp"])) : l("", !0),
526
+ r.value.key === "dcatap:availability" ? (o(), k(lt, {
520
527
  key: 10,
528
+ availabilityText: f.availabilityText,
529
+ onAddAvailability: Ee
530
+ }, null, 8, ["availabilityText"])) : l("", !0),
531
+ r.value.key === "dct:language" ? (o(), k(nt, {
532
+ key: 11,
521
533
  languageText: f.languageText,
522
534
  distributionId: f.distributionId,
523
- onAddLanguage: Ne
524
- }, null, 8, ["languageText", "distributionId"])) : d("", !0),
525
- n.value.key === "dct:conformsTo" ? (o(), c("div", Ht, [
526
- y(ut, {
535
+ onAddLanguage: je
536
+ }, null, 8, ["languageText", "distributionId"])) : l("", !0),
537
+ r.value.key === "dct:conformsTo" ? (o(), c("div", Zt, [
538
+ y(pt, {
527
539
  ref_key: "conformsToV3Ref",
528
540
  ref: R,
529
541
  conformsToItems: V.value[e.distributionId] || [],
530
- onUpdate: t[2] || (t[2] = (r) => Be(e.distributionId, r)),
542
+ onUpdate: t[2] || (t[2] = (n) => Be(e.distributionId, n)),
531
543
  asCard: !1,
532
544
  distributionId: e.distributionId
533
545
  }, null, 8, ["conformsToItems", "distributionId"])
534
- ])) : d("", !0),
535
- n.value.key === "odrl:hasPolicy" ? (o(), c("div", Nt, [
536
- y(mt, {
546
+ ])) : l("", !0),
547
+ r.value.key === "odrl:hasPolicy" ? (o(), c("div", Gt, [
548
+ y(ft, {
537
549
  ref_key: "policyV3Ref",
538
550
  ref: P,
539
551
  policyItems: _.value[e.distributionId] || [],
540
- onUpdate: t[3] || (t[3] = (r) => ze(e.distributionId, r)),
552
+ onUpdate: t[3] || (t[3] = (n) => ze(e.distributionId, n)),
541
553
  asCard: !1,
542
554
  distributionId: e.distributionId
543
555
  }, null, 8, ["policyItems", "distributionId"])
544
- ])) : d("", !0),
545
- n.value.key === "dcat:mediaType" ? (o(), g(ne, {
546
- key: 13,
547
- onAddMediaType: de,
556
+ ])) : l("", !0),
557
+ r.value.key === "dcat:mediaType" ? (o(), k(ce, {
558
+ key: 14,
559
+ onAddMediaType: re,
548
560
  fileTypes: f.fileTypes,
549
561
  fileFormatType: "dcat:mediaType",
550
562
  fileFormatText: f.mediaTypeText
551
- }, null, 8, ["fileTypes", "fileFormatText"])) : d("", !0),
552
- n.value.key === "dcat:compressFormat" ? (o(), g(ne, {
553
- key: 14,
554
- onAddCompressFormat: de,
563
+ }, null, 8, ["fileTypes", "fileFormatText"])) : l("", !0),
564
+ r.value.key === "dcat:compressFormat" ? (o(), k(ce, {
565
+ key: 15,
566
+ onAddCompressFormat: re,
555
567
  fileTypes: f.fileTypes,
556
568
  fileFormatType: "dcat:compressFormat",
557
569
  compressFormatText: f.compressFormatText
558
- }, null, 8, ["fileTypes", "compressFormatText"])) : d("", !0),
559
- n.value.key === "dcat:packageFormat" ? (o(), g(ne, {
560
- key: 15,
561
- onAddPackageFormat: de,
570
+ }, null, 8, ["fileTypes", "compressFormatText"])) : l("", !0),
571
+ r.value.key === "dcat:packageFormat" ? (o(), k(ce, {
572
+ key: 16,
573
+ onAddPackageFormat: re,
562
574
  fileTypes: f.fileTypes,
563
575
  fileFormatType: "dcat:packageFormat",
564
576
  packageFormatText: f.packageFormatText
565
- }, null, 8, ["fileTypes", "packageFormatText"])) : d("", !0),
566
- n.value.key === "adms:status" ? (o(), g(nt, {
567
- key: 16,
568
- statusText: f.statusText,
569
- onAddStatus: Ee
570
- }, null, 8, ["statusText"])) : d("", !0),
571
- n.value.key === "spdx:checksum" ? (o(), g(ct, {
577
+ }, null, 8, ["fileTypes", "packageFormatText"])) : l("", !0),
578
+ r.value.key === "adms:status" ? (o(), k(ut, {
572
579
  key: 17,
580
+ statusText: f.statusText,
581
+ onAddStatus: Oe
582
+ }, null, 8, ["statusText"])) : l("", !0),
583
+ r.value.key === "spdx:checksum" ? (o(), k(mt, {
584
+ key: 18,
573
585
  ref_key: "checksumV3Ref",
574
586
  ref: z,
575
- onAddChecksum: Oe,
587
+ onAddChecksum: He,
576
588
  checksumText: f.checksumText,
577
- checksumDropdownText: f.checksumDropdownText
578
- }, null, 8, ["checksumText", "checksumDropdownText"])) : d("", !0),
579
- n.value.key === "dcterms:license" ? (o(), g(ft, {
580
- key: 18,
589
+ checksumDropdownText: f.checksumDropdownText,
590
+ asCard: !1
591
+ }, null, 8, ["checksumText", "checksumDropdownText"])) : l("", !0),
592
+ r.value.key === "dcterms:license" ? (o(), k(yt, {
593
+ key: 19,
581
594
  ref_key: "changeLicenseV3Ref",
582
595
  ref: M,
583
- onAddChangeLicense: He,
596
+ onAddChangeLicense: Ne,
584
597
  changeLicenseText: f.changeLicenseText,
585
598
  changeLicenseDropdownText: f.changeLicenseDropdownText
586
- }, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : d("", !0),
587
- u("div", jt, [
599
+ }, null, 8, ["changeLicenseText", "changeLicenseDropdownText"])) : l("", !0),
600
+ u("div", Jt, [
588
601
  y(L, {
589
- onClick: oe,
602
+ onClick: le,
590
603
  buttonText: "Zurück",
591
604
  size: "large",
592
605
  iconStart: "CaretLeft",
593
606
  variant: "tertiary"
594
607
  }),
595
608
  y(L, {
596
- onClick: Fe,
609
+ onClick: Ue,
597
610
  buttonText: "Hinzufügen",
598
611
  size: "large"
599
612
  })
600
613
  ])
601
614
  ], 2)
602
- ])) : d("", !0),
603
- ae.value ? (o(), c("div", Zt, [
604
- u("div", Gt, [
605
- u("div", Jt, [
615
+ ])) : l("", !0),
616
+ ie.value ? (o(), c("div", Kt, [
617
+ u("div", Qt, [
618
+ u("div", Xt, [
606
619
  t[5] || (t[5] = u("h2", null, "Dokumentation löschen", -1)),
607
- y(re, {
620
+ y(ne, {
608
621
  class: "dpiv3_modalCrossout",
609
- onClick: Te
622
+ onClick: Ve
610
623
  })
611
624
  ]),
612
625
  t[6] || (t[6] = u("div", { class: "dpiV3_modalContent" }, [
613
626
  u("p", null, "Möchten Sie diese Dokumentation wirklich löschen?")
614
627
  ], -1)),
615
- u("div", Kt, [
616
- u("div", Qt, [
617
- C.value ? (o(), c("div", Xt, h(C.value), 1)) : d("", !0),
618
- ie.value && C.value === "" ? (o(), c("div", Yt, h(ie.value), 1)) : d("", !0),
619
- ie.value === "" && C.value === "" ? (o(), c("div", ea, " Es wurde keine URL angegeben! ")) : d("", !0)
628
+ u("div", Yt, [
629
+ u("div", ea, [
630
+ C.value ? (o(), c("div", ta, h(C.value), 1)) : l("", !0),
631
+ se.value && C.value === "" ? (o(), c("div", aa, h(se.value), 1)) : l("", !0),
632
+ se.value === "" && C.value === "" ? (o(), c("div", ia, " Es wurde keine URL angegeben! ")) : l("", !0)
620
633
  ])
621
634
  ]),
622
- u("div", ta, [
635
+ u("div", sa, [
623
636
  y(L, {
624
- onClick: Te,
637
+ onClick: Ve,
625
638
  buttonText: "Abbrechen",
626
639
  size: "large",
627
640
  variant: "tertiary"
628
641
  }),
629
642
  y(L, {
630
- onClick: Ze,
643
+ onClick: Ge,
631
644
  buttonText: "Löschen",
632
645
  size: "large"
633
646
  })
634
647
  ])
635
648
  ])
636
- ])) : d("", !0)
649
+ ])) : l("", !0)
637
650
  ], 64));
638
651
  }
639
- }, Da = /* @__PURE__ */ vt(aa, [["__scopeId", "data-v-188f269d"]]);
652
+ }, Aa = /* @__PURE__ */ ht(oa, [["__scopeId", "data-v-5241303d"]]);
640
653
  export {
641
- Da as default
654
+ Aa as default
642
655
  };