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

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.
Files changed (18) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +4 -6
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +316 -302
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +32 -36
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +120 -105
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +40 -40
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +44 -48
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +57 -61
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +61 -45
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +394 -378
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
  12. package/dist/data-provider-interface/components/DistLicense.vue.js +107 -96
  13. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +293 -274
  14. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +2 -2
  15. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +174 -177
  16. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +196 -192
  17. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +5 -5
  18. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { ref as h, reactive as T, onMounted as z, createElementBlock as c, openBlock as r, normalizeClass as L, createCommentVNode as g, createBlock as D, Fragment as M, renderList as E, createElementVNode as S, createVNode as u, unref as d, toDisplayString as N, isRef as P } from "vue";
1
+ import { ref as h, reactive as T, onMounted as z, createElementBlock as c, openBlock as r, normalizeClass as b, createCommentVNode as g, createBlock as D, Fragment as M, renderList as E, createElementVNode as L, createVNode as u, unref as d, toDisplayString as N, isRef as P } from "vue";
2
2
  import q from "../TextAreaV3.vue.js";
3
- import w from "../ButtonV3.vue.js";
3
+ import S from "../ButtonV3.vue.js";
4
4
  import W from "../ModalSimpleV3.vue.js";
5
- import _ from "../InputField.vue.js";
5
+ import w from "../InputField.vue.js";
6
6
  import { PhWarning as $ } from "@phosphor-icons/vue";
7
7
  /* empty css */
8
8
  import H from "../../../../_virtual/_plugin-vue_export-helper.js";
@@ -24,12 +24,12 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
24
24
  showDeleteButton: { type: Boolean, required: !1, default: !1 }
25
25
  },
26
26
  emits: ["update"],
27
- setup(a, { expose: A, emit: R }) {
27
+ setup(a, { expose: _, emit: A }) {
28
28
  let s = h({});
29
- const l = a, m = R, x = h(!1), V = h(null), o = T({});
29
+ const o = a, m = A, R = h(!1), V = h(null), l = T({});
30
30
  let p = h(!1);
31
31
  z(() => {
32
- console.log("Component Mounted: accessServices received for distributionId:", l.distributionId), console.log("accessServices:", l.accessServices), l.accessServices.length === 0 && (console.log("No accessServices found, initializing first service."), m("update", [
32
+ console.log("Component Mounted: accessServices received for distributionId:", o.distributionId), console.log("accessServices:", o.accessServices), o.accessServices.length === 0 && (console.log("No accessServices found, initializing first service."), m("update", [
33
33
  {
34
34
  id: 1,
35
35
  "dcat:downloadURL": "",
@@ -42,20 +42,20 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
42
42
  if (!t || t.trim() === "") return !1;
43
43
  const i = t.trim();
44
44
  return /\.[a-zA-Z]{2,}$/.test(i);
45
- }, B = (t) => {
45
+ }, v = (t) => {
46
46
  const i = t["dct:title"] && t["dct:title"].trim() !== "", e = t["dct:description"] && t["dct:description"].trim() !== "";
47
47
  return i || e;
48
48
  }, I = (t) => {
49
- const i = l.accessServices.find((e) => e.id === t);
49
+ const i = o.accessServices.find((e) => e.id === t);
50
50
  if (i) {
51
51
  const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
52
- B(i) ? e ? f(e) ? o[t] = null : o[t] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : o[t] = "URL ist erforderlich" : e && !f(e) ? o[t] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : o[t] = null;
52
+ v(i) ? e ? f(e) ? l[t] = null : l[t] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : l[t] = "Bitte geben Sie eine gültige URL ein." : e && !f(e) ? l[t] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)" : l[t] = null;
53
53
  }
54
- }, b = () => {
54
+ }, x = () => {
55
55
  let t = !1;
56
- return l.accessServices.forEach((i) => {
56
+ return o.accessServices.forEach((i) => {
57
57
  const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
58
- B(i) ? e ? f(e) || (o[i.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", t = !0) : (o[i.id] = "URL ist erforderlich", t = !0) : e && !f(e) && (o[i.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", t = !0);
58
+ v(i) ? e ? f(e) || (l[i.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", t = !0) : (l[i.id] = "URL ist erforderlich", t = !0) : e && !f(e) && (l[i.id] = "Bitte geben Sie eine gültige URL ein (z.B. example.com)", t = !0);
59
59
  }), t;
60
60
  }, k = (t) => {
61
61
  switch (t) {
@@ -64,18 +64,18 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
64
64
  break;
65
65
  }
66
66
  }, y = () => {
67
- if (b())
67
+ if (x())
68
68
  return;
69
69
  const i = {
70
- id: (l.accessServices.length ? Math.max(...l.accessServices.map((e) => e.id)) : 0) + 1,
70
+ id: (o.accessServices.length ? Math.max(...o.accessServices.map((e) => e.id)) : 0) + 1,
71
71
  "dcat:downloadURL": "",
72
72
  "dct:title": "",
73
73
  "dct:description": ""
74
74
  };
75
- m("update", [...l.accessServices, i]);
75
+ m("update", [...o.accessServices, i]);
76
76
  }, U = (t, i, e) => {
77
- const n = l.accessServices.map(
78
- (v) => v.id === e ? { ...v, [i]: t.target.value } : v
77
+ const n = o.accessServices.map(
78
+ (B) => B.id === e ? { ...B, [i]: t.target.value } : B
79
79
  );
80
80
  m("update", n), setTimeout(() => {
81
81
  I(e);
@@ -90,26 +90,22 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
90
90
  optionalString_2: t["dcat:downloadURL"]
91
91
  }, p.value = !0, V.value = t;
92
92
  }, F = () => {
93
- if (l.accessServices.length === 1) {
94
- x.value = !0;
95
- return;
96
- }
97
- const t = l.accessServices.filter(
93
+ const t = o.accessServices.filter(
98
94
  (i) => i.id !== V.value.id
99
95
  );
100
- delete o[V.value.id], m("update", t);
96
+ delete l[V.value.id], m("update", t);
101
97
  };
102
- return A({
103
- validateAllItems: b
98
+ return _({
99
+ validateAllItems: x
104
100
  }), (t, i) => (r(), c("div", {
105
- class: L(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: a.asCard }])
101
+ class: b(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: a.asCard }])
106
102
  }, [
107
103
  (r(!0), c(M, null, E(a.accessServices, (e) => (r(), c("div", {
108
104
  key: e.id,
109
- class: L(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
105
+ class: b(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
110
106
  }, [
111
- S("div", O, [
112
- u(_, {
107
+ L("div", O, [
108
+ u(w, {
113
109
  onInput: (n) => U(n, "dcat:downloadURL", e.id),
114
110
  addOnText: !1,
115
111
  datePicker: !1,
@@ -123,14 +119,14 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
123
119
  modelValue: e["dcat:downloadURL"],
124
120
  "onUpdate:modelValue": (n) => e["dcat:downloadURL"] = n
125
121
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
126
- o[e.id] ? (r(), c("div", Z, [
122
+ l[e.id] ? (r(), c("div", Z, [
127
123
  u(d($), {
128
124
  size: 16,
129
125
  weight: "fill"
130
126
  }),
131
- S("span", j, N(o[e.id]), 1)
127
+ L("span", j, N(l[e.id]), 1)
132
128
  ])) : g("", !0),
133
- u(_, {
129
+ u(w, {
134
130
  onInput: (n) => U(n, "dct:title", e.id),
135
131
  addOnText: !1,
136
132
  datePicker: !1,
@@ -154,9 +150,9 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
154
150
  "onUpdate:modelValue": (n) => e["dct:description"] = n,
155
151
  showDeleteButton: a.showDeleteButton
156
152
  }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
157
- x.value && a.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : g("", !0)
153
+ R.value && a.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : g("", !0)
158
154
  ]),
159
- u(w, {
155
+ u(S, {
160
156
  class: "dpiV3_tempAddMore",
161
157
  buttonText: "Löschen",
162
158
  size: "small",
@@ -166,7 +162,7 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
166
162
  }, null, 8, ["onClick"])
167
163
  ], 2))), 128)),
168
164
  a.asCard ? g("", !0) : (r(), c("div", J, [
169
- u(w, {
165
+ u(S, {
170
166
  buttonText: "Weiteren Service hinzufügen",
171
167
  size: "small",
172
168
  iconStart: "plus",
@@ -187,7 +183,7 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
187
183
  }, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : g("", !0)
188
184
  ], 2));
189
185
  }
190
- }, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-a722a31b"]]);
186
+ }, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-9f224f36"]]);
191
187
  export {
192
188
  oe as default
193
189
  };
@@ -1,17 +1,17 @@
1
- import { ref as s, onMounted as k, getCurrentInstance as B, watch as w, createElementBlock as c, openBlock as p, Fragment as F, createCommentVNode as g, createVNode as f, normalizeClass as N, unref as m, createElementVNode as b, toDisplayString as z } from "vue";
2
- import { getLicenses as _ } from "../../services/dpiV3_apis.js";
3
- import S from "../Dropdown.vue.js";
4
- import E from "../InputField.vue.js";
5
- import { PhWarning as y } from "@phosphor-icons/vue";
1
+ import { ref as s, onMounted as _, getCurrentInstance as N, watch as y, createElementBlock as f, openBlock as d, Fragment as S, createCommentVNode as g, createElementVNode as b, createVNode as w, createBlock as E, normalizeClass as M, unref as m, toDisplayString as x } from "vue";
2
+ import { getLicenses as P } from "../../services/dpiV3_apis.js";
3
+ import O from "../Dropdown.vue.js";
4
+ import U from "../InputField.vue.js";
5
+ import { PhWarning as D } from "@phosphor-icons/vue";
6
6
  /* empty css */
7
- import P from "../../../../_virtual/_plugin-vue_export-helper.js";
8
- const M = { key: 0 }, U = {
9
- key: 1,
7
+ import A from "../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const H = { key: 0 }, W = { class: "dpiV3_LinkAndMetadata" }, q = {
9
+ key: 0,
10
10
  class: "dpiV3_errorMessage"
11
- }, H = { class: "copy-mini-regular" }, O = {
11
+ }, j = { class: "copy-mini-regular" }, G = {
12
12
  key: 2,
13
13
  class: "dpiV3_errorMessage"
14
- }, W = { class: "copy-mini-regular" }, q = {
14
+ }, J = { class: "copy-mini-regular" }, $ = {
15
15
  __name: "ChangeLicenseV3",
16
16
  props: {
17
17
  distributionId: { type: Number, required: !1 },
@@ -21,131 +21,146 @@ const M = { key: 0 }, U = {
21
21
  asCard: { type: Boolean, default: !1 }
22
22
  },
23
23
  emits: ["addChangeLicense", "deleteButtonClicked"],
24
- setup(o, { expose: D, emit: x }) {
24
+ setup(r, { expose: T, emit: V }) {
25
25
  let h = s([]);
26
- const d = s(null), u = s(null);
27
- k(async () => {
28
- const t = B().appContext.app.config.globalProperties.$env;
26
+ const c = s(null), p = s(null);
27
+ _(async () => {
28
+ const t = N().appContext.app.config.globalProperties.$env;
29
29
  try {
30
- const n = await _(t.api.baseUrl);
31
- h.value = n.map((L) => ({
32
- "@value": L.value,
33
- label: L.label
30
+ a.changeLicenseText !== "" && (v.value = !0);
31
+ const e = await P(t.api.baseUrl);
32
+ h.value = e.map((o) => ({
33
+ uri: o.uri,
34
+ "@value": o.value,
35
+ label: o.label
34
36
  }));
35
- } catch (n) {
36
- console.error("Failed to load licenses", n);
37
+ } catch (e) {
38
+ console.error("Failed to load licenses", e);
37
39
  }
38
40
  });
39
- const a = o, i = s(a.changeLicenseText);
41
+ const a = r;
42
+ let v = s(!1);
43
+ const l = s(a.changeLicenseText);
40
44
  s([]);
41
- const l = s(a.changeLicenseDropdownText), v = x, r = () => {
42
- const e = typeof l.value == "string" ? l.value.trim() : "", t = typeof i.value == "string" ? i.value.trim() : "";
43
- let n = !1;
44
- return d.value = null, u.value = null, e && (e.toLowerCase().includes("cc-by") || e.toLowerCase().includes("cc by")) && (t || (u.value = "Nennung des Datenbereitstellers ist erforderlich für diese Lizenz", n = !0)), t && !e && (d.value = "Lizenz ist erforderlich wenn Nennung des Datenbereitstellers ausgefüllt ist", n = !0), n;
45
- }, T = (e) => {
46
- var n;
47
- const t = typeof e == "string" ? e : ((n = e == null ? void 0 : e.target) == null ? void 0 : n.value) ?? "";
48
- i.value = t, v(
45
+ const i = s(a.changeLicenseDropdownText), z = V, u = (n, t) => {
46
+ const e = typeof i.value == "string" ? i.value.trim() : "", o = typeof l.value == "string" ? l.value.trim() : "";
47
+ let L = !1;
48
+ if (t) {
49
+ const F = n !== "" && (n.includes("cc-by") || n.includes("dl-by-de"));
50
+ v.value = F;
51
+ }
52
+ return c.value = null, p.value = null, e && (e.toLowerCase().includes("cc-by") || e.toLowerCase().includes("cc by")) && (o || (p.value = "Nennung des Datenbereitstellers ist erforderlich für diese Lizenz", L = !0)), o && !e && (c.value = "Lizenz ist erforderlich wenn Nennung des Datenbereitstellers ausgefüllt ist", L = !0), L;
53
+ }, I = (n) => {
54
+ var e;
55
+ const t = typeof n == "string" ? n : ((e = n == null ? void 0 : n.target) == null ? void 0 : e.value) ?? "";
56
+ l.value = t, z(
49
57
  "addChangeLicense",
50
- i.value,
51
58
  l.value,
59
+ i.value,
52
60
  a.distributionId
53
61
  ), setTimeout(() => {
54
- r();
62
+ u(n, !1);
55
63
  }, 0);
56
- }, V = (e) => {
57
- l.value = e, v(
64
+ }, C = (n) => {
65
+ let t = h.value.find(
66
+ (e) => e["@value"] === n
67
+ );
68
+ i.value = n, l.value = "", z(
58
69
  "addChangeLicense",
59
- i.value,
60
70
  l.value,
61
- a.distributionId
71
+ i.value,
72
+ a.distributionId,
73
+ t.uri
62
74
  ), setTimeout(() => {
63
- r();
75
+ u(n, !0);
64
76
  }, 0);
65
77
  };
66
- w(
78
+ y(
67
79
  () => a.changeLicenseDropdownText,
68
- (e) => {
69
- l.value = e;
80
+ (n) => {
81
+ i.value = n;
70
82
  }
71
- ), w(
83
+ ), y(
72
84
  () => a.changeLicenseText,
73
- (e) => {
74
- i.value = e;
85
+ (n) => {
86
+ l.value = n;
75
87
  }
76
88
  );
77
- const C = () => {
78
- l.value = "", setTimeout(() => {
79
- r();
80
- }, 0);
81
- }, I = () => {
89
+ const k = () => {
82
90
  i.value = "", setTimeout(() => {
83
- r();
91
+ u();
92
+ }, 0);
93
+ }, B = () => {
94
+ l.value = "", setTimeout(() => {
95
+ u();
84
96
  }, 0);
85
97
  };
86
- return D({
87
- validate: r
88
- }), (e, t) => (p(), c(F, null, [
89
- o.asCard ? g("", !0) : (p(), c("p", M, " Die von Ihnen gewählte Lizenz bestimmt, wie andere Ihre Daten verwenden und teilen können. Je einfacher die Lizenz, desto besser. Um eine Wiederverwendung zu erleichtern, ist die Auswahl eines bereits verbreiteten Lizenzstandards zu empfehlen. ")),
90
- f(S, {
91
- "onUpdate:modelValue": [
92
- t[0] || (t[0] = (n) => V(n)),
93
- t[1] || (t[1] = (n) => l.value = n)
94
- ],
95
- dropdownWidth: "large",
96
- type: "inputField",
97
- modelValue: l.value,
98
- inputFieldProps: {
98
+ return T({
99
+ validate: u
100
+ }), (n, t) => (d(), f(S, null, [
101
+ r.asCard ? g("", !0) : (d(), f("p", H, " Die von Ihnen gewählte Lizenz bestimmt, wie andere Ihre Daten verwenden und teilen können. Je einfacher die Lizenz, desto besser. Um eine Wiederverwendung zu erleichtern, ist die Auswahl eines bereits verbreiteten Lizenzstandards zu empfehlen. ")),
102
+ b("div", W, [
103
+ w(O, {
104
+ "onUpdate:modelValue": [
105
+ t[0] || (t[0] = (e) => C(e)),
106
+ t[1] || (t[1] = (e) => i.value = e)
107
+ ],
108
+ dropdownWidth: "large",
109
+ type: "inputField",
110
+ modelValue: i.value,
111
+ inputFieldProps: {
112
+ addOnText: !1,
113
+ initialHintText: !1,
114
+ datePicker: !1,
115
+ infoIcon: !1,
116
+ preIcon: !1,
117
+ label: "Lizenz nur für diesen Link",
118
+ dropdown_dpiV3: !0,
119
+ placeholder: "Geben Sie die Lizenz ein...",
120
+ inputFieldSize: "large",
121
+ modelValue: i.value,
122
+ defaultInput: !r.showDeleteButton
123
+ },
124
+ data: m(h),
125
+ onDeleteDropdownField: k,
126
+ class: M({ dpiV3_Space3: r.showDeleteButton })
127
+ }, null, 8, ["modelValue", "inputFieldProps", "data", "class"]),
128
+ c.value ? (d(), f("div", q, [
129
+ w(m(D), {
130
+ size: 16,
131
+ weight: "fill"
132
+ }),
133
+ b("span", j, x(c.value), 1)
134
+ ])) : g("", !0),
135
+ m(v) ? (d(), E(U, {
136
+ key: 1,
137
+ onInput: t[2] || (t[2] = (e) => I(e)),
138
+ modelValue: l.value,
139
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => l.value = e),
99
140
  addOnText: !1,
100
- initialHintText: !1,
101
141
  datePicker: !1,
102
142
  infoIcon: !1,
143
+ placeholder: "Bitte Namensnennungstext eingeben...",
103
144
  preIcon: !1,
104
- label: "Lizenz nur für diesen Link",
105
- dropdown_dpiV3: !0,
106
- placeholder: "Geben Sie die Lizenz ein...",
107
145
  inputFieldSize: "large",
108
- modelValue: l.value,
109
- defaultInput: !o.showDeleteButton
110
- },
111
- data: m(h),
112
- onDeleteDropdownField: C,
113
- class: N({ dpiV3_Space3: o.showDeleteButton })
114
- }, null, 8, ["modelValue", "inputFieldProps", "data", "class"]),
115
- d.value ? (p(), c("div", U, [
116
- f(m(y), {
117
- size: 16,
118
- weight: "fill"
119
- }),
120
- b("span", H, z(d.value), 1)
121
- ])) : g("", !0),
122
- f(E, {
123
- onInput: t[2] || (t[2] = (n) => T(n)),
124
- modelValue: i.value,
125
- "onUpdate:modelValue": t[3] || (t[3] = (n) => i.value = n),
126
- addOnText: !1,
127
- datePicker: !1,
128
- infoIcon: !1,
129
- placeholder: "Bitte Namensnennungstext eingeben...",
130
- preIcon: !1,
131
- inputFieldSize: "large",
132
- initialHintText: !0,
133
- label: "Nennung des Datenbereitstellers",
134
- showEndIcon: !1,
135
- defaultInput: !o.showDeleteButton,
136
- onDeleteButtonClicked: I,
137
- supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden."
138
- }, null, 8, ["modelValue", "defaultInput"]),
139
- u.value ? (p(), c("div", O, [
140
- f(m(y), {
141
- size: 16,
142
- weight: "fill"
143
- }),
144
- b("span", W, z(u.value), 1)
145
- ])) : g("", !0)
146
+ initialHintText: !0,
147
+ label: "Nennung des Datenbereitstellers",
148
+ showEndIcon: !1,
149
+ defaultInput: !r.showDeleteButton,
150
+ onDeleteButtonClicked: B,
151
+ supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden."
152
+ }, null, 8, ["modelValue", "defaultInput"])) : g("", !0),
153
+ p.value ? (d(), f("div", G, [
154
+ w(m(D), {
155
+ size: 16,
156
+ weight: "fill"
157
+ }),
158
+ b("span", J, x(p.value), 1)
159
+ ])) : g("", !0)
160
+ ])
146
161
  ], 64));
147
162
  }
148
- }, R = /* @__PURE__ */ P(q, [["__scopeId", "data-v-5c32864f"]]);
163
+ }, ne = /* @__PURE__ */ A($, [["__scopeId", "data-v-65faf32f"]]);
149
164
  export {
150
- R as default
165
+ ne as default
151
166
  };
@@ -1,18 +1,18 @@
1
- import { ref as n, onMounted as _, getCurrentInstance as A, watch as g, createElementBlock as f, openBlock as v, Fragment as E, createVNode as d, createCommentVNode as x, normalizeClass as z, createElementVNode as I, unref as V, toDisplayString as b } from "vue";
2
- import { useFormValues as N } from "../../../composables/useDpiFormValues.js";
1
+ import { ref as n, onMounted as P, getCurrentInstance as A, watch as g, createElementBlock as f, openBlock as v, createVNode as d, createCommentVNode as x, normalizeClass as E, createElementVNode as V, unref as b, toDisplayString as I } from "vue";
2
+ import { useFormValues as z } from "../../../composables/useDpiFormValues.js";
3
3
  import { getChecksumAlgorithms as M } from "../../services/dpiV3_apis.js";
4
- import O from "../Dropdown.vue.js";
5
- import U from "../InputField.vue.js";
4
+ import N from "../Dropdown.vue.js";
5
+ import O from "../InputField.vue.js";
6
6
  import { PhWarning as w } from "@phosphor-icons/vue";
7
7
  /* empty css */
8
- import q from "../../../../_virtual/_plugin-vue_export-helper.js";
9
- const H = {
8
+ import U from "../../../../_virtual/_plugin-vue_export-helper.js";
9
+ const q = { class: "dpiV3_LinkAndMetadata" }, H = {
10
10
  key: 0,
11
11
  class: "dpiV3_errorMessage"
12
12
  }, W = { class: "copy-mini-regular" }, G = {
13
13
  key: 1,
14
14
  class: "dpiV3_errorMessage"
15
- }, $ = { class: "copy-mini-regular" }, j = {
15
+ }, L = { class: "copy-mini-regular" }, $ = {
16
16
  __name: "ChecksumV3",
17
17
  props: {
18
18
  distributionId: { type: Number, required: !1 },
@@ -24,8 +24,8 @@ const H = {
24
24
  },
25
25
  emits: ["addChecksum", "deleteButtonClicked"],
26
26
  setup(r, { expose: D, emit: T }) {
27
- const c = n([]), { formValues: m } = N(), i = n(null), u = n(null);
28
- _(async () => {
27
+ const c = n([]), { formValues: m } = z(), o = n(null), u = n(null);
28
+ P(async () => {
29
29
  const t = A().appContext.app.config.globalProperties.$env;
30
30
  try {
31
31
  const e = await M(t.api.baseUrl);
@@ -39,54 +39,54 @@ const H = {
39
39
  console.error("Failed to load checksum algorithms:", e);
40
40
  }
41
41
  });
42
- const o = r, s = n(o.checksumText);
42
+ const s = r, i = n(s.checksumText);
43
43
  n([]);
44
- const a = n(o.checksumDropdownText), h = T;
44
+ const a = n(s.checksumDropdownText), h = T;
45
45
  let k = "";
46
46
  const y = () => {
47
- const l = s.value && s.value.trim() !== "", t = a.value && a.value.trim() !== "";
47
+ const l = i.value && i.value.trim() !== "", t = a.value && a.value.trim() !== "";
48
48
  let e = !1;
49
- return l || t ? (l ? u.value = null : (u.value = "Prüfsumme ist erforderlich", e = !0), t ? i.value = null : (i.value = "Algorithmus ist erforderlich", e = !0)) : (u.value = null, i.value = null), !e;
49
+ return l || t ? (l ? u.value = null : (u.value = "Prüfsumme ist erforderlich", e = !0), t ? o.value = null : (o.value = "Algorithmus ist erforderlich", e = !0)) : (u.value = null, o.value = null), !e;
50
50
  }, C = () => !y(), F = (l) => {
51
- s.value = l.target.value, h(
51
+ i.value = l.target.value, h(
52
52
  "addChecksum",
53
- s.value,
53
+ i.value,
54
54
  a.value,
55
- o.distributionId
55
+ s.distributionId
56
56
  );
57
57
  }, S = (l) => {
58
58
  var t;
59
59
  a.value = l, k = ((t = c.value.find((e) => e["@value"] === l)) == null ? void 0 : t.uri) || "", h(
60
60
  "addChecksum",
61
- s.value,
61
+ i.value,
62
62
  a.value,
63
- o.distributionId,
63
+ s.distributionId,
64
64
  k
65
65
  );
66
66
  };
67
67
  g(
68
- () => o.checksumDropdownText,
68
+ () => s.checksumDropdownText,
69
69
  (l) => {
70
70
  a.value = l;
71
71
  }
72
72
  ), g(
73
- () => o.checksumText,
73
+ () => s.checksumText,
74
74
  (l) => {
75
- s.value = l;
75
+ i.value = l;
76
76
  }
77
77
  );
78
- const B = () => {
79
- m.value.DistributionSimple["dcat:distribution"][o.distIndex].checksum.uri = "", m.value.DistributionSimple["dcat:distribution"][o.distIndex].checksum["spdx:checksum"] = "", a.value = "", i.value = null;
80
- }, P = () => {
81
- m.value.DistributionSimple["dcat:distribution"][o.distIndex].checksum.title = "", s.value = "", u.value = null;
78
+ const _ = () => {
79
+ m.value.DistributionSimple["dcat:distribution"][s.distIndex].checksum.uri = "", m.value.DistributionSimple["dcat:distribution"][s.distIndex].checksum["spdx:checksum"] = "", a.value = "", o.value = null;
80
+ }, B = () => {
81
+ m.value.DistributionSimple["dcat:distribution"][s.distIndex].checksum.title = "", i.value = "", u.value = null;
82
82
  };
83
83
  return D({
84
84
  validateAllItems: C
85
- }), (l, t) => (v(), f(E, null, [
86
- d(U, {
85
+ }), (l, t) => (v(), f("div", q, [
86
+ d(O, {
87
87
  onInput: t[0] || (t[0] = (e) => F(e)),
88
- modelValue: s.value,
89
- "onUpdate:modelValue": t[1] || (t[1] = (e) => s.value = e),
88
+ modelValue: i.value,
89
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => i.value = e),
90
90
  addOnText: !1,
91
91
  datePicker: !1,
92
92
  infoIcon: !1,
@@ -97,17 +97,17 @@ const H = {
97
97
  label: "Prüfsumme",
98
98
  showEndIcon: !1,
99
99
  defaultInput: !r.showDeleteButton,
100
- onDeleteButtonClicked: P,
101
- class: z({ dpiV3_Space3: r.showDeleteButton })
100
+ onDeleteButtonClicked: B,
101
+ class: E({ dpiV3_Space3: r.showDeleteButton })
102
102
  }, null, 8, ["modelValue", "defaultInput", "class"]),
103
103
  u.value ? (v(), f("div", H, [
104
- d(V(w), {
104
+ d(b(w), {
105
105
  size: 16,
106
106
  weight: "fill"
107
107
  }),
108
- I("span", W, b(u.value), 1)
108
+ V("span", W, I(u.value), 1)
109
109
  ])) : x("", !0),
110
- d(O, {
110
+ d(N, {
111
111
  "onUpdate:modelValue": [
112
112
  t[2] || (t[2] = (e) => S(e)),
113
113
  t[3] || (t[3] = (e) => a.value = e)
@@ -129,18 +129,18 @@ const H = {
129
129
  defaultInput: !r.showDeleteButton
130
130
  },
131
131
  data: c.value,
132
- onDeleteDropdownField: B
132
+ onDeleteDropdownField: _
133
133
  }, null, 8, ["modelValue", "inputFieldProps", "data"]),
134
- i.value ? (v(), f("div", G, [
135
- d(V(w), {
134
+ o.value ? (v(), f("div", G, [
135
+ d(b(w), {
136
136
  size: 16,
137
137
  weight: "fill"
138
138
  }),
139
- I("span", $, b(i.value), 1)
139
+ V("span", L, I(o.value), 1)
140
140
  ])) : x("", !0)
141
- ], 64));
141
+ ]));
142
142
  }
143
- }, ee = /* @__PURE__ */ q(j, [["__scopeId", "data-v-d9583dd7"]]);
143
+ }, ee = /* @__PURE__ */ U($, [["__scopeId", "data-v-a8f1bd35"]]);
144
144
  export {
145
145
  ee as default
146
146
  };