@piveau/dpi 0.1.0-beta.45 → 0.1.0-beta.47
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +43 -43
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +316 -302
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +32 -36
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +120 -105
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +40 -40
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +44 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +57 -61
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +61 -45
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +394 -378
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +42 -42
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +3 -3
- package/dist/data-provider-interface/components/DistLicense.vue.js +107 -96
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +329 -310
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +39 -39
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +2 -2
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +176 -179
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +203 -195
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +5 -5
- package/dist/data-provider-interface/store/modules/authStore.js +14 -12
- package/dist/data-provider-interface/views/InputPage.vue.js +95 -96
- 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
|
|
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
|
|
3
|
+
import S from "../ButtonV3.vue.js";
|
|
4
4
|
import W from "../ModalSimpleV3.vue.js";
|
|
5
|
-
import
|
|
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:
|
|
27
|
+
setup(a, { expose: _, emit: A }) {
|
|
28
28
|
let s = h({});
|
|
29
|
-
const
|
|
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:",
|
|
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
|
-
},
|
|
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 =
|
|
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
|
-
|
|
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
|
-
},
|
|
54
|
+
}, x = () => {
|
|
55
55
|
let t = !1;
|
|
56
|
-
return
|
|
56
|
+
return o.accessServices.forEach((i) => {
|
|
57
57
|
const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
|
|
58
|
-
|
|
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 (
|
|
67
|
+
if (x())
|
|
68
68
|
return;
|
|
69
69
|
const i = {
|
|
70
|
-
id: (
|
|
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", [...
|
|
75
|
+
m("update", [...o.accessServices, i]);
|
|
76
76
|
}, U = (t, i, e) => {
|
|
77
|
-
const n =
|
|
78
|
-
(
|
|
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
|
-
|
|
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
|
|
96
|
+
delete l[V.value.id], m("update", t);
|
|
101
97
|
};
|
|
102
|
-
return
|
|
103
|
-
validateAllItems:
|
|
98
|
+
return _({
|
|
99
|
+
validateAllItems: x
|
|
104
100
|
}), (t, i) => (r(), c("div", {
|
|
105
|
-
class:
|
|
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:
|
|
105
|
+
class: b(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
|
|
110
106
|
}, [
|
|
111
|
-
|
|
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
|
-
|
|
122
|
+
l[e.id] ? (r(), c("div", Z, [
|
|
127
123
|
u(d($), {
|
|
128
124
|
size: 16,
|
|
129
125
|
weight: "fill"
|
|
130
126
|
}),
|
|
131
|
-
|
|
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
|
-
|
|
153
|
+
R.value && a.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : g("", !0)
|
|
158
154
|
]),
|
|
159
|
-
u(
|
|
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(
|
|
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-
|
|
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
|
|
2
|
-
import { getLicenses as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { PhWarning as
|
|
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
|
|
8
|
-
const
|
|
9
|
-
key:
|
|
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
|
-
},
|
|
11
|
+
}, j = { class: "copy-mini-regular" }, G = {
|
|
12
12
|
key: 2,
|
|
13
13
|
class: "dpiV3_errorMessage"
|
|
14
|
-
},
|
|
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(
|
|
24
|
+
setup(r, { expose: T, emit: V }) {
|
|
25
25
|
let h = s([]);
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const t =
|
|
26
|
+
const c = s(null), p = s(null);
|
|
27
|
+
_(async () => {
|
|
28
|
+
const t = N().appContext.app.config.globalProperties.$env;
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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 (
|
|
36
|
-
console.error("Failed to load licenses",
|
|
37
|
+
} catch (e) {
|
|
38
|
+
console.error("Failed to load licenses", e);
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
|
-
const a =
|
|
41
|
+
const a = r;
|
|
42
|
+
let v = s(!1);
|
|
43
|
+
const l = s(a.changeLicenseText);
|
|
40
44
|
s([]);
|
|
41
|
-
const
|
|
42
|
-
const e = typeof
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
62
|
+
u(n, !1);
|
|
55
63
|
}, 0);
|
|
56
|
-
},
|
|
57
|
-
|
|
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
|
-
|
|
71
|
+
i.value,
|
|
72
|
+
a.distributionId,
|
|
73
|
+
t.uri
|
|
62
74
|
), setTimeout(() => {
|
|
63
|
-
|
|
75
|
+
u(n, !0);
|
|
64
76
|
}, 0);
|
|
65
77
|
};
|
|
66
|
-
|
|
78
|
+
y(
|
|
67
79
|
() => a.changeLicenseDropdownText,
|
|
68
|
-
(
|
|
69
|
-
|
|
80
|
+
(n) => {
|
|
81
|
+
i.value = n;
|
|
70
82
|
}
|
|
71
|
-
),
|
|
83
|
+
), y(
|
|
72
84
|
() => a.changeLicenseText,
|
|
73
|
-
(
|
|
74
|
-
|
|
85
|
+
(n) => {
|
|
86
|
+
l.value = n;
|
|
75
87
|
}
|
|
76
88
|
);
|
|
77
|
-
const
|
|
78
|
-
l.value = "", setTimeout(() => {
|
|
79
|
-
r();
|
|
80
|
-
}, 0);
|
|
81
|
-
}, I = () => {
|
|
89
|
+
const k = () => {
|
|
82
90
|
i.value = "", setTimeout(() => {
|
|
83
|
-
|
|
91
|
+
u();
|
|
92
|
+
}, 0);
|
|
93
|
+
}, B = () => {
|
|
94
|
+
l.value = "", setTimeout(() => {
|
|
95
|
+
u();
|
|
84
96
|
}, 0);
|
|
85
97
|
};
|
|
86
|
-
return
|
|
87
|
-
validate:
|
|
88
|
-
}), (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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
|
-
},
|
|
163
|
+
}, ne = /* @__PURE__ */ A($, [["__scopeId", "data-v-65faf32f"]]);
|
|
149
164
|
export {
|
|
150
|
-
|
|
165
|
+
ne as default
|
|
151
166
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as n, onMounted as
|
|
2
|
-
import { useFormValues as
|
|
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
|
|
5
|
-
import
|
|
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
|
|
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
|
-
},
|
|
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 } =
|
|
28
|
-
|
|
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
|
|
42
|
+
const s = r, i = n(s.checksumText);
|
|
43
43
|
n([]);
|
|
44
|
-
const a = n(
|
|
44
|
+
const a = n(s.checksumDropdownText), h = T;
|
|
45
45
|
let k = "";
|
|
46
46
|
const y = () => {
|
|
47
|
-
const l =
|
|
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 ?
|
|
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
|
-
|
|
51
|
+
i.value = l.target.value, h(
|
|
52
52
|
"addChecksum",
|
|
53
|
-
|
|
53
|
+
i.value,
|
|
54
54
|
a.value,
|
|
55
|
-
|
|
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
|
-
|
|
61
|
+
i.value,
|
|
62
62
|
a.value,
|
|
63
|
-
|
|
63
|
+
s.distributionId,
|
|
64
64
|
k
|
|
65
65
|
);
|
|
66
66
|
};
|
|
67
67
|
g(
|
|
68
|
-
() =>
|
|
68
|
+
() => s.checksumDropdownText,
|
|
69
69
|
(l) => {
|
|
70
70
|
a.value = l;
|
|
71
71
|
}
|
|
72
72
|
), g(
|
|
73
|
-
() =>
|
|
73
|
+
() => s.checksumText,
|
|
74
74
|
(l) => {
|
|
75
|
-
|
|
75
|
+
i.value = l;
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
const
|
|
79
|
-
m.value.DistributionSimple["dcat:distribution"][
|
|
80
|
-
},
|
|
81
|
-
m.value.DistributionSimple["dcat:distribution"][
|
|
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(
|
|
86
|
-
d(
|
|
85
|
+
}), (l, t) => (v(), f("div", q, [
|
|
86
|
+
d(O, {
|
|
87
87
|
onInput: t[0] || (t[0] = (e) => F(e)),
|
|
88
|
-
modelValue:
|
|
89
|
-
"onUpdate:modelValue": t[1] || (t[1] = (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:
|
|
101
|
-
class:
|
|
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(
|
|
104
|
+
d(b(w), {
|
|
105
105
|
size: 16,
|
|
106
106
|
weight: "fill"
|
|
107
107
|
}),
|
|
108
|
-
|
|
108
|
+
V("span", W, I(u.value), 1)
|
|
109
109
|
])) : x("", !0),
|
|
110
|
-
d(
|
|
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:
|
|
132
|
+
onDeleteDropdownField: _
|
|
133
133
|
}, null, 8, ["modelValue", "inputFieldProps", "data"]),
|
|
134
|
-
|
|
135
|
-
d(
|
|
134
|
+
o.value ? (v(), f("div", G, [
|
|
135
|
+
d(b(w), {
|
|
136
136
|
size: 16,
|
|
137
137
|
weight: "fill"
|
|
138
138
|
}),
|
|
139
|
-
|
|
139
|
+
V("span", L, I(o.value), 1)
|
|
140
140
|
])) : x("", !0)
|
|
141
|
-
]
|
|
141
|
+
]));
|
|
142
142
|
}
|
|
143
|
-
}, ee = /* @__PURE__ */
|
|
143
|
+
}, ee = /* @__PURE__ */ U($, [["__scopeId", "data-v-a8f1bd35"]]);
|
|
144
144
|
export {
|
|
145
145
|
ee as default
|
|
146
146
|
};
|