@piveau/dpi 0.2.0-alpha.19 → 0.2.0-alpha.20
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/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +62 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +4 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +58 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +65 -53
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +60 -56
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +67 -79
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +17 -17
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +411 -318
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +88 -60
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +143 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +32 -32
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +64 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +46 -41
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +227 -208
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +124 -106
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +113 -108
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +370 -360
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +464 -182
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +31 -26
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +31 -92
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +139 -122
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +618 -525
- package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +247 -238
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +16 -17
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +332 -305
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +89 -55
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +243 -199
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +24 -11
- package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +14 -12
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +317 -288
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OptionalDataStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6f7ed213"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -16,7 +16,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
|
|
|
16
16
|
class: "funny-section"
|
|
17
17
|
}, R = { class: "partner-cards-container" }, H = { class: "action-container" }, J = { class: "funny-section" }, Q = { class: "start-and-end" }, X = { class: "funny-section" }, Y = { class: "funny-section required-skills" }, ee = {
|
|
18
18
|
key: 0,
|
|
19
|
-
|
|
19
|
+
style: { display: "flex", "flex-wrap": "wrap" }
|
|
20
20
|
}, te = ["id", "value"], ne = ["for"], ie = { class: "action-container" }, le = {
|
|
21
21
|
id: "partners-section",
|
|
22
22
|
class: "funny-section"
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
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
|
+
import q from "../TextAreaV3.vue.js";
|
|
3
|
+
import S from "../ButtonV3.vue.js";
|
|
4
|
+
import W from "../ModalSimpleV3.vue.js";
|
|
5
|
+
import w from "../InputField.vue.js";
|
|
6
|
+
import { PhWarning as $ } from "@phosphor-icons/vue";
|
|
6
7
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
8
|
+
import H from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
9
10
|
key: 0,
|
|
11
|
+
class: "dpiV3_errorMessage"
|
|
12
|
+
}, j = { class: "copy-mini-regular" }, G = {
|
|
13
|
+
key: 1,
|
|
10
14
|
class: "copy-mini-regular dpiV3_text_error"
|
|
11
|
-
},
|
|
15
|
+
}, J = {
|
|
12
16
|
key: 0,
|
|
13
17
|
class: "dpiV3_tempAddMore"
|
|
14
|
-
},
|
|
18
|
+
}, K = {
|
|
15
19
|
__name: "AccessServiceV3",
|
|
16
20
|
props: {
|
|
17
21
|
accessServices: { type: Array, required: !0 },
|
|
@@ -20,12 +24,12 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
|
|
|
20
24
|
showDeleteButton: { type: Boolean, required: !1, default: !1 }
|
|
21
25
|
},
|
|
22
26
|
emits: ["update"],
|
|
23
|
-
setup(a, { emit:
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
console.log("Component Mounted: accessServices received for distributionId:",
|
|
27
|
+
setup(a, { expose: _, emit: A }) {
|
|
28
|
+
let s = h({});
|
|
29
|
+
const o = a, m = A, R = h(!1), V = h(null), l = T({});
|
|
30
|
+
let p = h(!1);
|
|
31
|
+
z(() => {
|
|
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", [
|
|
29
33
|
{
|
|
30
34
|
id: 1,
|
|
31
35
|
"dcat:downloadURL": "",
|
|
@@ -34,54 +38,75 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
|
|
|
34
38
|
}
|
|
35
39
|
]));
|
|
36
40
|
});
|
|
37
|
-
const
|
|
38
|
-
|
|
41
|
+
const f = (t) => {
|
|
42
|
+
if (!t || t.trim() === "") return !1;
|
|
43
|
+
const i = t.trim();
|
|
44
|
+
return /\.[a-zA-Z]{2,}$/.test(i);
|
|
45
|
+
}, v = (t) => {
|
|
46
|
+
const i = t["dct:title"] && t["dct:title"].trim() !== "", e = t["dct:description"] && t["dct:description"].trim() !== "";
|
|
47
|
+
return i || e;
|
|
48
|
+
}, I = (t) => {
|
|
49
|
+
const i = o.accessServices.find((e) => e.id === t);
|
|
50
|
+
if (i) {
|
|
51
|
+
const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
|
|
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
|
+
}
|
|
54
|
+
}, x = () => {
|
|
55
|
+
let t = !1;
|
|
56
|
+
return o.accessServices.forEach((i) => {
|
|
57
|
+
const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
|
|
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
|
+
}), t;
|
|
60
|
+
}, k = (t) => {
|
|
61
|
+
switch (t) {
|
|
39
62
|
case "delete":
|
|
40
|
-
|
|
63
|
+
F();
|
|
41
64
|
break;
|
|
42
65
|
}
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
|
|
66
|
+
}, y = () => {
|
|
67
|
+
if (x())
|
|
68
|
+
return;
|
|
69
|
+
const i = {
|
|
70
|
+
id: (o.accessServices.length ? Math.max(...o.accessServices.map((e) => e.id)) : 0) + 1,
|
|
46
71
|
"dcat:downloadURL": "",
|
|
47
72
|
"dct:title": "",
|
|
48
73
|
"dct:description": ""
|
|
49
74
|
};
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
const
|
|
53
|
-
(
|
|
75
|
+
m("update", [...o.accessServices, i]);
|
|
76
|
+
}, U = (t, i, e) => {
|
|
77
|
+
const n = o.accessServices.map(
|
|
78
|
+
(B) => B.id === e ? { ...B, [i]: t.target.value } : B
|
|
54
79
|
);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
80
|
+
m("update", n), setTimeout(() => {
|
|
81
|
+
I(e);
|
|
82
|
+
}, 0);
|
|
83
|
+
}, C = (t) => {
|
|
84
|
+
s.value = {
|
|
58
85
|
button: "Löschen",
|
|
59
86
|
header: "Datenservice löschen",
|
|
60
87
|
text: "Sind Sie sicher, dass Sie den Service löschen wollen?",
|
|
61
88
|
action: "delete",
|
|
62
|
-
optionalString_1:
|
|
63
|
-
optionalString_2:
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
const n = i.accessServices.filter(
|
|
71
|
-
(o) => o.id !== V.value.id
|
|
89
|
+
optionalString_1: t["dct:title"],
|
|
90
|
+
optionalString_2: t["dcat:downloadURL"]
|
|
91
|
+
}, p.value = !0, V.value = t;
|
|
92
|
+
}, F = () => {
|
|
93
|
+
const t = o.accessServices.filter(
|
|
94
|
+
(i) => i.id !== V.value.id
|
|
72
95
|
);
|
|
73
|
-
|
|
96
|
+
delete l[V.value.id], m("update", t);
|
|
74
97
|
};
|
|
75
|
-
return (
|
|
76
|
-
|
|
98
|
+
return _({
|
|
99
|
+
validateAllItems: x
|
|
100
|
+
}), (t, i) => (r(), c("div", {
|
|
101
|
+
class: b(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: a.asCard }])
|
|
77
102
|
}, [
|
|
78
|
-
(
|
|
103
|
+
(r(!0), c(M, null, E(a.accessServices, (e) => (r(), c("div", {
|
|
79
104
|
key: e.id,
|
|
80
|
-
class:
|
|
105
|
+
class: b(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: a.asCard }])
|
|
81
106
|
}, [
|
|
82
|
-
|
|
83
|
-
u(
|
|
84
|
-
onInput: (
|
|
107
|
+
L("div", O, [
|
|
108
|
+
u(w, {
|
|
109
|
+
onInput: (n) => U(n, "dcat:downloadURL", e.id),
|
|
85
110
|
addOnText: !1,
|
|
86
111
|
datePicker: !1,
|
|
87
112
|
infoIcon: !1,
|
|
@@ -92,10 +117,17 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
|
|
|
92
117
|
label: "URL",
|
|
93
118
|
showEndIcon: !1,
|
|
94
119
|
modelValue: e["dcat:downloadURL"],
|
|
95
|
-
"onUpdate:modelValue": (
|
|
120
|
+
"onUpdate:modelValue": (n) => e["dcat:downloadURL"] = n
|
|
96
121
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
|
|
97
|
-
|
|
98
|
-
|
|
122
|
+
l[e.id] ? (r(), c("div", Z, [
|
|
123
|
+
u(d($), {
|
|
124
|
+
size: 16,
|
|
125
|
+
weight: "fill"
|
|
126
|
+
}),
|
|
127
|
+
L("span", j, N(l[e.id]), 1)
|
|
128
|
+
])) : g("", !0),
|
|
129
|
+
u(w, {
|
|
130
|
+
onInput: (n) => U(n, "dct:title", e.id),
|
|
99
131
|
addOnText: !1,
|
|
100
132
|
datePicker: !1,
|
|
101
133
|
infoIcon: !1,
|
|
@@ -106,52 +138,52 @@ const z = { class: "dpiV3_LinkAndMetadata" }, E = {
|
|
|
106
138
|
label: "Titel (optional)",
|
|
107
139
|
showEndIcon: !1,
|
|
108
140
|
modelValue: e["dct:title"],
|
|
109
|
-
"onUpdate:modelValue": (
|
|
141
|
+
"onUpdate:modelValue": (n) => e["dct:title"] = n,
|
|
110
142
|
defaultInput: !a.showDeleteButton
|
|
111
143
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "defaultInput"]),
|
|
112
|
-
u(
|
|
113
|
-
onInput: (
|
|
144
|
+
u(q, {
|
|
145
|
+
onInput: (n) => U(n, "dct:description", e.id),
|
|
114
146
|
hint: !1,
|
|
115
147
|
label: "Beschreibung (optional)",
|
|
116
148
|
placeholder: "Bitte Beschreibung eingeben...",
|
|
117
149
|
modelValue: e["dct:description"],
|
|
118
|
-
"onUpdate:modelValue": (
|
|
150
|
+
"onUpdate:modelValue": (n) => e["dct:description"] = n,
|
|
119
151
|
showDeleteButton: a.showDeleteButton
|
|
120
152
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
|
|
121
|
-
|
|
153
|
+
R.value && a.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : g("", !0)
|
|
122
154
|
]),
|
|
123
|
-
u(
|
|
155
|
+
u(S, {
|
|
124
156
|
class: "dpiV3_tempAddMore",
|
|
125
157
|
buttonText: "Löschen",
|
|
126
158
|
size: "small",
|
|
127
159
|
iconStart: "trash",
|
|
128
160
|
variant: "tertiary",
|
|
129
|
-
onClick: (
|
|
161
|
+
onClick: (n) => C(e)
|
|
130
162
|
}, null, 8, ["onClick"])
|
|
131
163
|
], 2))), 128)),
|
|
132
|
-
a.asCard ?
|
|
133
|
-
u(
|
|
164
|
+
a.asCard ? g("", !0) : (r(), c("div", J, [
|
|
165
|
+
u(S, {
|
|
134
166
|
buttonText: "Weiteren Service hinzufügen",
|
|
135
167
|
size: "small",
|
|
136
168
|
iconStart: "plus",
|
|
137
169
|
variant: "tertiary",
|
|
138
|
-
onClick:
|
|
170
|
+
onClick: y
|
|
139
171
|
})
|
|
140
172
|
])),
|
|
141
|
-
d(
|
|
173
|
+
d(p) ? (r(), D(W, {
|
|
142
174
|
key: 1,
|
|
143
|
-
buttons: d(
|
|
144
|
-
headerText: d(
|
|
145
|
-
text: d(
|
|
146
|
-
onClose:
|
|
147
|
-
action: d(
|
|
148
|
-
onActionHandling:
|
|
149
|
-
optionalString_1: d(
|
|
150
|
-
optionalString_2: d(
|
|
151
|
-
}, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) :
|
|
175
|
+
buttons: d(s).button,
|
|
176
|
+
headerText: d(s).header,
|
|
177
|
+
text: d(s).text,
|
|
178
|
+
onClose: i[0] || (i[0] = (e) => P(p) ? p.value = !1 : p = !1),
|
|
179
|
+
action: d(s).action,
|
|
180
|
+
onActionHandling: i[1] || (i[1] = (e) => k(e)),
|
|
181
|
+
optionalString_1: d(s).optionalString_1,
|
|
182
|
+
optionalString_2: d(s).optionalString_2
|
|
183
|
+
}, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : g("", !0)
|
|
152
184
|
], 2));
|
|
153
185
|
}
|
|
154
|
-
},
|
|
186
|
+
}, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-9f224f36"]]);
|
|
155
187
|
export {
|
|
156
|
-
|
|
188
|
+
oe as default
|
|
157
189
|
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { ref as s, onMounted as
|
|
2
|
-
import { getLicenses as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
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";
|
|
5
6
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
7
|
+
import A from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const H = { key: 0 }, W = { class: "dpiV3_LinkAndMetadata" }, q = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "dpiV3_errorMessage"
|
|
11
|
+
}, j = { class: "copy-mini-regular" }, G = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "dpiV3_errorMessage"
|
|
14
|
+
}, J = { class: "copy-mini-regular" }, $ = {
|
|
8
15
|
__name: "ChangeLicenseV3",
|
|
9
16
|
props: {
|
|
10
17
|
distributionId: { type: Number, required: !1 },
|
|
@@ -14,100 +21,146 @@ const k = { key: 0 }, y = {
|
|
|
14
21
|
asCard: { type: Boolean, default: !1 }
|
|
15
22
|
},
|
|
16
23
|
emits: ["addChangeLicense", "deleteButtonClicked"],
|
|
17
|
-
setup(
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
setup(r, { expose: T, emit: V }) {
|
|
25
|
+
let h = s([]);
|
|
26
|
+
const c = s(null), p = s(null);
|
|
27
|
+
_(async () => {
|
|
28
|
+
const t = N().appContext.app.config.globalProperties.$env;
|
|
21
29
|
try {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
26
36
|
}));
|
|
27
37
|
} catch (e) {
|
|
28
38
|
console.error("Failed to load licenses", e);
|
|
29
39
|
}
|
|
30
40
|
});
|
|
31
|
-
const
|
|
41
|
+
const a = r;
|
|
42
|
+
let v = s(!1);
|
|
43
|
+
const l = s(a.changeLicenseText);
|
|
32
44
|
s([]);
|
|
33
|
-
const
|
|
34
|
-
|
|
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(
|
|
35
57
|
"addChangeLicense",
|
|
36
58
|
l.value,
|
|
37
|
-
|
|
38
|
-
|
|
59
|
+
i.value,
|
|
60
|
+
a.distributionId
|
|
61
|
+
), setTimeout(() => {
|
|
62
|
+
u(n, !1);
|
|
63
|
+
}, 0);
|
|
64
|
+
}, C = (n) => {
|
|
65
|
+
let t = h.value.find(
|
|
66
|
+
(e) => e["@value"] === n
|
|
39
67
|
);
|
|
40
|
-
|
|
41
|
-
a.value = t, r(
|
|
68
|
+
i.value = n, l.value = "", z(
|
|
42
69
|
"addChangeLicense",
|
|
43
70
|
l.value,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
71
|
+
i.value,
|
|
72
|
+
a.distributionId,
|
|
73
|
+
t.uri
|
|
74
|
+
), setTimeout(() => {
|
|
75
|
+
u(n, !0);
|
|
76
|
+
}, 0);
|
|
47
77
|
};
|
|
48
|
-
|
|
49
|
-
() =>
|
|
50
|
-
(
|
|
51
|
-
|
|
78
|
+
y(
|
|
79
|
+
() => a.changeLicenseDropdownText,
|
|
80
|
+
(n) => {
|
|
81
|
+
i.value = n;
|
|
52
82
|
}
|
|
53
|
-
),
|
|
54
|
-
() =>
|
|
55
|
-
(
|
|
56
|
-
l.value =
|
|
83
|
+
), y(
|
|
84
|
+
() => a.changeLicenseText,
|
|
85
|
+
(n) => {
|
|
86
|
+
l.value = n;
|
|
57
87
|
}
|
|
58
88
|
);
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
89
|
+
const k = () => {
|
|
90
|
+
i.value = "", setTimeout(() => {
|
|
91
|
+
u();
|
|
92
|
+
}, 0);
|
|
93
|
+
}, B = () => {
|
|
94
|
+
l.value = "", setTimeout(() => {
|
|
95
|
+
u();
|
|
96
|
+
}, 0);
|
|
63
97
|
};
|
|
64
|
-
return (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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),
|
|
75
140
|
addOnText: !1,
|
|
76
|
-
initialHintText: !1,
|
|
77
141
|
datePicker: !1,
|
|
78
142
|
infoIcon: !1,
|
|
143
|
+
placeholder: "Bitte Namensnennungstext eingeben...",
|
|
79
144
|
preIcon: !1,
|
|
80
|
-
label: "Lizenz nur für diesen Link",
|
|
81
|
-
dropdown_dpiV3: !0,
|
|
82
|
-
placeholder: "Geben Sie die Lizenz ein...",
|
|
83
145
|
inputFieldSize: "large",
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
preIcon: !1,
|
|
100
|
-
inputFieldSize: "large",
|
|
101
|
-
initialHintText: !0,
|
|
102
|
-
label: "Nennung des Datenbereitstellers",
|
|
103
|
-
showEndIcon: !1,
|
|
104
|
-
defaultInput: !o.showDeleteButton,
|
|
105
|
-
onDeleteButtonClicked: w,
|
|
106
|
-
supportingHintMessage: "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden."
|
|
107
|
-
}, null, 8, ["modelValue", "defaultInput"])
|
|
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
|
+
])
|
|
108
161
|
], 64));
|
|
109
162
|
}
|
|
110
|
-
},
|
|
163
|
+
}, ne = /* @__PURE__ */ A($, [["__scopeId", "data-v-65faf32f"]]);
|
|
111
164
|
export {
|
|
112
|
-
|
|
165
|
+
ne as default
|
|
113
166
|
};
|