@piveau/dpi 0.1.0-beta.65 → 0.1.0-beta.67
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/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +50 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +39 -39
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +50 -50
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +209 -197
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +151 -123
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +189 -189
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as g, reactive as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { PhWarning as
|
|
1
|
+
import { ref as g, reactive as F, onMounted as T, createElementBlock as c, openBlock as r, normalizeClass as L, createCommentVNode as h, createBlock as z, Fragment as M, renderList as E, createElementVNode as w, createVNode as u, unref as a, toDisplayString as P, isRef as $ } from "vue";
|
|
2
|
+
import N from "../TextAreaV3.vue.js";
|
|
3
|
+
import x from "../ButtonV3.vue.js";
|
|
4
|
+
import q from "../ModalSimpleV3.vue.js";
|
|
5
|
+
import S from "../InputField.vue.js";
|
|
6
|
+
import { PhWarning as W } from "@phosphor-icons/vue";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import H from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
9
|
const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
@@ -24,11 +24,11 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
|
24
24
|
showDeleteButton: { type: Boolean, required: !1, default: !1 }
|
|
25
25
|
},
|
|
26
26
|
emits: ["update"],
|
|
27
|
-
setup(
|
|
27
|
+
setup(d, { expose: _, emit: A }) {
|
|
28
28
|
let s = g({});
|
|
29
|
-
const o =
|
|
29
|
+
const o = d, m = A, R = g(!1), V = g(null), l = F({});
|
|
30
30
|
let p = g(!1);
|
|
31
|
-
|
|
31
|
+
T(() => {
|
|
32
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,
|
|
@@ -45,26 +45,26 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
|
45
45
|
}, b = (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
|
+
}, k = (t) => {
|
|
49
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
|
b(i) ? e && f(e) ? l[t] = null : l[t] = "Bitte geben Sie eine gültige URL ein." : e && !f(e) ? l[t] = "Bitte geben Sie eine gültige URL ein." : l[t] = null;
|
|
53
53
|
}
|
|
54
|
-
},
|
|
54
|
+
}, B = () => {
|
|
55
55
|
let t = !1;
|
|
56
56
|
return o.accessServices.forEach((i) => {
|
|
57
57
|
const e = i["dcat:downloadURL"] ? i["dcat:downloadURL"].trim() : "";
|
|
58
58
|
b(i) ? e ? f(e) || (l[i.id] = "Bitte geben Sie eine gültige URL ein.", t = !0) : (l[i.id] = "Please enter a valid URL.", t = !0) : e && !f(e) && (l[i.id] = "Bitte geben Sie eine gültige URL ein.", t = !0);
|
|
59
59
|
}), t;
|
|
60
|
-
},
|
|
60
|
+
}, C = (t) => {
|
|
61
61
|
switch (t) {
|
|
62
62
|
case "delete":
|
|
63
|
-
|
|
63
|
+
y();
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
|
-
},
|
|
67
|
-
if (
|
|
66
|
+
}, D = () => {
|
|
67
|
+
if (B())
|
|
68
68
|
return;
|
|
69
69
|
const i = {
|
|
70
70
|
id: (o.accessServices.length ? Math.max(...o.accessServices.map((e) => e.id)) : 0) + 1,
|
|
@@ -78,9 +78,9 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
|
78
78
|
(v) => v.id === e ? { ...v, [i]: t.target.value } : v
|
|
79
79
|
);
|
|
80
80
|
m("update", n), setTimeout(() => {
|
|
81
|
-
|
|
81
|
+
k(e);
|
|
82
82
|
}, 0);
|
|
83
|
-
},
|
|
83
|
+
}, I = (t) => {
|
|
84
84
|
s.value = {
|
|
85
85
|
button: "Löschen",
|
|
86
86
|
header: "Datenservice löschen",
|
|
@@ -89,23 +89,23 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
|
89
89
|
optionalString_1: t["dct:title"],
|
|
90
90
|
optionalString_2: t["dcat:downloadURL"]
|
|
91
91
|
}, p.value = !0, V.value = t;
|
|
92
|
-
},
|
|
92
|
+
}, y = () => {
|
|
93
93
|
const t = o.accessServices.filter(
|
|
94
94
|
(i) => i.id !== V.value.id
|
|
95
95
|
);
|
|
96
96
|
delete l[V.value.id], m("update", t);
|
|
97
97
|
};
|
|
98
98
|
return _({
|
|
99
|
-
validateAllItems:
|
|
99
|
+
validateAllItems: B
|
|
100
100
|
}), (t, i) => (r(), c("div", {
|
|
101
|
-
class:
|
|
101
|
+
class: L(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: d.asCard }])
|
|
102
102
|
}, [
|
|
103
|
-
(r(!0), c(M, null, E(
|
|
103
|
+
(r(!0), c(M, null, E(d.accessServices, (e) => (r(), c("div", {
|
|
104
104
|
key: e.id,
|
|
105
|
-
class:
|
|
105
|
+
class: L(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: d.asCard }])
|
|
106
106
|
}, [
|
|
107
|
-
|
|
108
|
-
u(
|
|
107
|
+
w("div", O, [
|
|
108
|
+
u(S, {
|
|
109
109
|
onInput: (n) => U(n, "dcat:downloadURL", e.id),
|
|
110
110
|
addOnText: !1,
|
|
111
111
|
datePicker: !1,
|
|
@@ -120,17 +120,18 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
|
120
120
|
"onUpdate:modelValue": (n) => e["dcat:downloadURL"] = n
|
|
121
121
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
|
|
122
122
|
l[e.id] ? (r(), c("div", Z, [
|
|
123
|
-
u(
|
|
123
|
+
u(a(W), {
|
|
124
124
|
size: 16,
|
|
125
125
|
weight: "fill"
|
|
126
126
|
}),
|
|
127
|
-
|
|
127
|
+
w("span", j, P(l[e.id]), 1)
|
|
128
128
|
])) : h("", !0),
|
|
129
|
-
u(
|
|
129
|
+
u(S, {
|
|
130
130
|
onInput: (n) => U(n, "dct:title", e.id),
|
|
131
131
|
addOnText: !1,
|
|
132
132
|
datePicker: !1,
|
|
133
133
|
infoIcon: !1,
|
|
134
|
+
onDeleteButtonClicked: (n) => e["dct:title"] = "",
|
|
134
135
|
placeholder: "Bitte Titel eingeben...",
|
|
135
136
|
preIcon: !1,
|
|
136
137
|
inputFieldSize: "large",
|
|
@@ -139,51 +140,52 @@ const O = { class: "dpiV3_LinkAndMetadata" }, Z = {
|
|
|
139
140
|
showEndIcon: !1,
|
|
140
141
|
modelValue: e["dct:title"],
|
|
141
142
|
"onUpdate:modelValue": (n) => e["dct:title"] = n,
|
|
142
|
-
defaultInput: !
|
|
143
|
-
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "defaultInput"]),
|
|
144
|
-
u(
|
|
143
|
+
defaultInput: !d.showDeleteButton
|
|
144
|
+
}, null, 8, ["onInput", "onDeleteButtonClicked", "modelValue", "onUpdate:modelValue", "defaultInput"]),
|
|
145
|
+
u(N, {
|
|
145
146
|
onInput: (n) => U(n, "dct:description", e.id),
|
|
146
147
|
hint: !1,
|
|
148
|
+
onDeleteClicked: (n) => e["dct:description"] = "",
|
|
147
149
|
label: "Beschreibung (optional)",
|
|
148
150
|
placeholder: "Bitte Beschreibung eingeben...",
|
|
149
151
|
modelValue: e["dct:description"],
|
|
150
152
|
"onUpdate:modelValue": (n) => e["dct:description"] = n,
|
|
151
|
-
showDeleteButton:
|
|
152
|
-
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
|
|
153
|
-
R.value &&
|
|
153
|
+
showDeleteButton: d.showDeleteButton
|
|
154
|
+
}, null, 8, ["onInput", "onDeleteClicked", "modelValue", "onUpdate:modelValue", "showDeleteButton"]),
|
|
155
|
+
R.value && d.accessServices.length === 1 ? (r(), c("p", G, " Mindestens eine URL muss vorhanden sein. ")) : h("", !0)
|
|
154
156
|
]),
|
|
155
|
-
u(
|
|
157
|
+
u(x, {
|
|
156
158
|
class: "dpiV3_tempAddMore",
|
|
157
159
|
buttonText: "Löschen",
|
|
158
160
|
size: "small",
|
|
159
161
|
iconStart: "trash",
|
|
160
162
|
variant: "tertiary",
|
|
161
|
-
onClick: (n) =>
|
|
163
|
+
onClick: (n) => I(e)
|
|
162
164
|
}, null, 8, ["onClick"])
|
|
163
165
|
], 2))), 128)),
|
|
164
|
-
|
|
165
|
-
u(
|
|
166
|
+
d.asCard ? h("", !0) : (r(), c("div", J, [
|
|
167
|
+
u(x, {
|
|
166
168
|
buttonText: "Weiteren Service hinzufügen",
|
|
167
169
|
size: "small",
|
|
168
170
|
iconStart: "plus",
|
|
169
171
|
variant: "tertiary",
|
|
170
|
-
onClick:
|
|
172
|
+
onClick: D
|
|
171
173
|
})
|
|
172
174
|
])),
|
|
173
|
-
|
|
175
|
+
a(p) ? (r(), z(q, {
|
|
174
176
|
key: 1,
|
|
175
|
-
buttons:
|
|
176
|
-
headerText:
|
|
177
|
-
text:
|
|
178
|
-
onClose: i[0] || (i[0] = (e) =>
|
|
179
|
-
action:
|
|
180
|
-
onActionHandling: i[1] || (i[1] = (e) =>
|
|
181
|
-
optionalString_1:
|
|
182
|
-
optionalString_2:
|
|
177
|
+
buttons: a(s).button,
|
|
178
|
+
headerText: a(s).header,
|
|
179
|
+
text: a(s).text,
|
|
180
|
+
onClose: i[0] || (i[0] = (e) => $(p) ? p.value = !1 : p = !1),
|
|
181
|
+
action: a(s).action,
|
|
182
|
+
onActionHandling: i[1] || (i[1] = (e) => C(e)),
|
|
183
|
+
optionalString_1: a(s).optionalString_1,
|
|
184
|
+
optionalString_2: a(s).optionalString_2
|
|
183
185
|
}, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1", "optionalString_2"])) : h("", !0)
|
|
184
186
|
], 2));
|
|
185
187
|
}
|
|
186
|
-
}, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-
|
|
188
|
+
}, oe = /* @__PURE__ */ H(K, [["__scopeId", "data-v-c7145fc8"]]);
|
|
187
189
|
export {
|
|
188
190
|
oe as default
|
|
189
191
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as n, onMounted as P, getCurrentInstance as A, watch as
|
|
1
|
+
import { ref as n, onMounted as P, getCurrentInstance as A, watch as x, createElementBlock as v, openBlock as h, createVNode as r, createCommentVNode as V, normalizeClass as E, createElementVNode as b, unref as I, toDisplayString as w } from "vue";
|
|
2
2
|
import { useFormValues as z } from "../../../composables/useDpiFormValues.js";
|
|
3
3
|
import { getChecksumAlgorithms as M } from "../../services/dpiV3_apis.js";
|
|
4
4
|
import N from "../Dropdown.vue.js";
|
|
@@ -23,7 +23,7 @@ const q = { class: "dpiV3_LinkAndMetadata" }, H = {
|
|
|
23
23
|
distIndex: { type: Number, required: !1 }
|
|
24
24
|
},
|
|
25
25
|
emits: ["addChecksum", "deleteButtonClicked"],
|
|
26
|
-
setup(
|
|
26
|
+
setup(d, { expose: T, emit: y }) {
|
|
27
27
|
const c = n([]), { formValues: m } = z(), o = n(null), u = n(null);
|
|
28
28
|
P(async () => {
|
|
29
29
|
const t = A().appContext.app.config.globalProperties.$env;
|
|
@@ -39,52 +39,52 @@ const q = { class: "dpiV3_LinkAndMetadata" }, H = {
|
|
|
39
39
|
console.error("Failed to load checksum algorithms:", e);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
const
|
|
42
|
+
const a = d, i = n(a.checksumText);
|
|
43
43
|
n([]);
|
|
44
|
-
const
|
|
44
|
+
const s = n(a.checksumDropdownText), k = y;
|
|
45
45
|
let g = "";
|
|
46
46
|
const p = () => {
|
|
47
|
-
const l = i.value && i.value.trim() !== "", t =
|
|
47
|
+
const l = i.value && i.value.trim() !== "", t = s.value && s.value.trim() !== "";
|
|
48
48
|
let e = !1;
|
|
49
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
|
-
}, C = () => !p(),
|
|
50
|
+
}, C = () => !p(), _ = (l) => {
|
|
51
51
|
i.value = l.target.value, k(
|
|
52
52
|
"addChecksum",
|
|
53
53
|
i.value,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
s.value,
|
|
55
|
+
a.distributionId
|
|
56
56
|
), p();
|
|
57
|
-
},
|
|
57
|
+
}, F = (l) => {
|
|
58
58
|
var t;
|
|
59
|
-
|
|
59
|
+
s.value = l, g = ((t = c.value.find((e) => e["@value"] === l)) == null ? void 0 : t.uri) || "", k(
|
|
60
60
|
"addChecksum",
|
|
61
61
|
i.value,
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
s.value,
|
|
63
|
+
a.distributionId,
|
|
64
64
|
g
|
|
65
65
|
), p();
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
() =>
|
|
67
|
+
x(
|
|
68
|
+
() => a.checksumDropdownText,
|
|
69
69
|
(l) => {
|
|
70
|
-
|
|
70
|
+
s.value = l;
|
|
71
71
|
}
|
|
72
|
-
),
|
|
73
|
-
() =>
|
|
72
|
+
), x(
|
|
73
|
+
() => a.checksumText,
|
|
74
74
|
(l) => {
|
|
75
75
|
i.value = l;
|
|
76
76
|
}
|
|
77
77
|
);
|
|
78
|
-
const
|
|
79
|
-
m.value.DistributionSimple["dcat:distribution"][
|
|
78
|
+
const S = () => {
|
|
79
|
+
m.value.DistributionSimple["dcat:distribution"][a.distIndex].checksum.uri = "", m.value.DistributionSimple["dcat:distribution"][a.distIndex].checksum["spdx:checksum"] = "", s.value = "", o.value = null;
|
|
80
80
|
}, B = () => {
|
|
81
|
-
m.value.DistributionSimple["dcat:distribution"][
|
|
81
|
+
m.value.DistributionSimple["dcat:distribution"][a.distIndex].checksum.title = "", i.value = "", u.value = null;
|
|
82
82
|
};
|
|
83
83
|
return T({
|
|
84
84
|
validateAllItems: C
|
|
85
85
|
}), (l, t) => (h(), v("div", q, [
|
|
86
|
-
|
|
87
|
-
onInput: t[0] || (t[0] = (e) =>
|
|
86
|
+
r(O, {
|
|
87
|
+
onInput: t[0] || (t[0] = (e) => _(e)),
|
|
88
88
|
modelValue: i.value,
|
|
89
89
|
"onUpdate:modelValue": t[1] || (t[1] = (e) => i.value = e),
|
|
90
90
|
addOnText: !1,
|
|
@@ -96,25 +96,25 @@ const q = { class: "dpiV3_LinkAndMetadata" }, H = {
|
|
|
96
96
|
initialHintText: !1,
|
|
97
97
|
label: "Prüfsumme",
|
|
98
98
|
showEndIcon: !1,
|
|
99
|
-
defaultInput: !
|
|
99
|
+
defaultInput: !0,
|
|
100
100
|
onDeleteButtonClicked: B,
|
|
101
|
-
class: E({ dpiV3_Space3:
|
|
102
|
-
}, null, 8, ["modelValue", "
|
|
101
|
+
class: E({ dpiV3_Space3: d.showDeleteButton })
|
|
102
|
+
}, null, 8, ["modelValue", "class"]),
|
|
103
103
|
u.value ? (h(), v("div", H, [
|
|
104
|
-
|
|
104
|
+
r(I(D), {
|
|
105
105
|
size: 16,
|
|
106
106
|
weight: "fill"
|
|
107
107
|
}),
|
|
108
|
-
|
|
109
|
-
])) :
|
|
110
|
-
|
|
108
|
+
b("span", W, w(u.value), 1)
|
|
109
|
+
])) : V("", !0),
|
|
110
|
+
r(N, {
|
|
111
111
|
"onUpdate:modelValue": [
|
|
112
|
-
t[2] || (t[2] = (e) =>
|
|
113
|
-
t[3] || (t[3] = (e) =>
|
|
112
|
+
t[2] || (t[2] = (e) => F(e)),
|
|
113
|
+
t[3] || (t[3] = (e) => s.value = e)
|
|
114
114
|
],
|
|
115
115
|
dropdownWidth: "large",
|
|
116
116
|
type: "inputField",
|
|
117
|
-
modelValue:
|
|
117
|
+
modelValue: s.value,
|
|
118
118
|
inputFieldProps: {
|
|
119
119
|
addOnText: !1,
|
|
120
120
|
initialHintText: !1,
|
|
@@ -125,22 +125,22 @@ const q = { class: "dpiV3_LinkAndMetadata" }, H = {
|
|
|
125
125
|
dropdown_dpiV3: !0,
|
|
126
126
|
placeholder: "Geben Sie den Algorithmus ein...",
|
|
127
127
|
inputFieldSize: "large",
|
|
128
|
-
modelValue:
|
|
129
|
-
defaultInput: !
|
|
128
|
+
modelValue: s.value,
|
|
129
|
+
defaultInput: !d.showDeleteButton
|
|
130
130
|
},
|
|
131
131
|
data: c.value,
|
|
132
|
-
onDeleteDropdownField:
|
|
132
|
+
onDeleteDropdownField: S
|
|
133
133
|
}, null, 8, ["modelValue", "inputFieldProps", "data"]),
|
|
134
134
|
o.value ? (h(), v("div", G, [
|
|
135
|
-
|
|
135
|
+
r(I(D), {
|
|
136
136
|
size: 16,
|
|
137
137
|
weight: "fill"
|
|
138
138
|
}),
|
|
139
|
-
|
|
140
|
-
])) :
|
|
139
|
+
b("span", L, w(o.value), 1)
|
|
140
|
+
])) : V("", !0)
|
|
141
141
|
]));
|
|
142
142
|
}
|
|
143
|
-
}, ee = /* @__PURE__ */ U($, [["__scopeId", "data-v-
|
|
143
|
+
}, ee = /* @__PURE__ */ U($, [["__scopeId", "data-v-0e2b93f7"]]);
|
|
144
144
|
export {
|
|
145
145
|
ee as default
|
|
146
146
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as u, watch as T, createElementBlock as v, openBlock as s, Fragment as D, createBlock as
|
|
1
|
+
import { ref as u, watch as T, createElementBlock as v, openBlock as s, Fragment as D, createBlock as y, createCommentVNode as c } from "vue";
|
|
2
2
|
import k from "../Dropdown.vue.js";
|
|
3
3
|
const B = {
|
|
4
4
|
__name: "FileFormatV3",
|
|
@@ -56,7 +56,7 @@ const B = {
|
|
|
56
56
|
n.value = a;
|
|
57
57
|
}
|
|
58
58
|
), (a, e) => (s(), v(D, null, [
|
|
59
|
-
o.fileFormatType === "dcat:mediaType" ? (s(),
|
|
59
|
+
o.fileFormatType === "dcat:mediaType" ? (s(), y(k, {
|
|
60
60
|
key: 0,
|
|
61
61
|
onInput: e[0] || (e[0] = (t) => m(t)),
|
|
62
62
|
"onUpdate:modelValue": [
|
|
@@ -81,10 +81,9 @@ const B = {
|
|
|
81
81
|
defaultInput: !o.showDeleteButton
|
|
82
82
|
},
|
|
83
83
|
data: d.value,
|
|
84
|
-
autocomplete: !0,
|
|
85
84
|
onDeleteDropdownField: e[3] || (e[3] = (t) => F("dcat:mediaType"))
|
|
86
|
-
}, null, 8, ["modelValue", "inputFieldProps", "data"])) :
|
|
87
|
-
o.fileFormatType === "dcat:compressFormat" ? (s(),
|
|
85
|
+
}, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
|
|
86
|
+
o.fileFormatType === "dcat:compressFormat" ? (s(), y(k, {
|
|
88
87
|
key: 1,
|
|
89
88
|
onInput: e[4] || (e[4] = (t) => m(t)),
|
|
90
89
|
"onUpdate:modelValue": [
|
|
@@ -109,10 +108,9 @@ const B = {
|
|
|
109
108
|
defaultInput: !o.showDeleteButton
|
|
110
109
|
},
|
|
111
110
|
data: d.value,
|
|
112
|
-
autocomplete: !0,
|
|
113
111
|
onDeleteDropdownField: e[7] || (e[7] = (t) => F("dcat:compressFormat"))
|
|
114
|
-
}, null, 8, ["modelValue", "inputFieldProps", "data"])) :
|
|
115
|
-
o.fileFormatType === "dcat:packageFormat" ? (s(),
|
|
112
|
+
}, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0),
|
|
113
|
+
o.fileFormatType === "dcat:packageFormat" ? (s(), y(k, {
|
|
116
114
|
key: 2,
|
|
117
115
|
onInput: e[8] || (e[8] = (t) => m(t)),
|
|
118
116
|
"onUpdate:modelValue": [
|
|
@@ -137,9 +135,8 @@ const B = {
|
|
|
137
135
|
defaultInput: !o.showDeleteButton
|
|
138
136
|
},
|
|
139
137
|
data: d.value,
|
|
140
|
-
autocomplete: !0,
|
|
141
138
|
onDeleteDropdownField: e[11] || (e[11] = (t) => F("dcat:packageFormat"))
|
|
142
|
-
}, null, 8, ["modelValue", "inputFieldProps", "data"])) :
|
|
139
|
+
}, null, 8, ["modelValue", "inputFieldProps", "data"])) : c("", !0)
|
|
143
140
|
], 64));
|
|
144
141
|
}
|
|
145
142
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as d, getCurrentInstance as
|
|
1
|
+
import { ref as d, getCurrentInstance as S, onMounted as _, computed as P, watch as z, createElementBlock as g, openBlock as c, Fragment as h, createCommentVNode as w, renderList as W, unref as r, normalizeClass as $, createVNode as V, createBlock as A } from "vue";
|
|
2
2
|
import { getLanguages as N } from "../../services/dpiV3_apis.js";
|
|
3
3
|
import U from "../Dropdown.vue.js";
|
|
4
4
|
import q from "../ButtonV3.vue.js";
|
|
@@ -23,15 +23,15 @@ const Q = {
|
|
|
23
23
|
let l = d([{ label: "", "@value": "", uri: "" }]), u = {};
|
|
24
24
|
const { formValues: k } = H(), { t: f } = E(), y = () => {
|
|
25
25
|
l.value.push({});
|
|
26
|
-
}, b =
|
|
26
|
+
}, b = S(), B = b.appContext.app.config.globalProperties.$env, L = b.appContext.app.config.globalProperties.$i18n.locale;
|
|
27
27
|
let p = d([]);
|
|
28
28
|
u = k.value.DistributionSimple["dcat:distribution"].find(
|
|
29
29
|
(e) => e.id === n.distributionId
|
|
30
|
-
) || {},
|
|
30
|
+
) || {}, _(async () => {
|
|
31
31
|
var e;
|
|
32
32
|
u["dct:language"].length > 0 && (l.value = u["dct:language"]), p.value = (e = u["dct:language"]) == null ? void 0 : e.map((a) => a.label);
|
|
33
33
|
try {
|
|
34
|
-
const a = await N(B.api.baseUrl,
|
|
34
|
+
const a = await N(B.api.baseUrl, L);
|
|
35
35
|
s.value = a.map((t) => ({
|
|
36
36
|
"@value": t.label,
|
|
37
37
|
label: t.label,
|
|
@@ -42,8 +42,8 @@ const Q = {
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
const s = d([]);
|
|
45
|
-
let
|
|
46
|
-
console.log("Titelliste",
|
|
45
|
+
let I = d(p);
|
|
46
|
+
console.log("Titelliste", I);
|
|
47
47
|
const O = C, F = (e, a) => {
|
|
48
48
|
l.value.length > 1 ? (l.value[a] = {
|
|
49
49
|
label: e,
|
|
@@ -54,7 +54,7 @@ const Q = {
|
|
|
54
54
|
}, u["dct:language"][0] = l.value[0], s.value.find((t) => t["@value"] === e).uri);
|
|
55
55
|
}, m = d(""), x = (e) => {
|
|
56
56
|
m.value = e, console.log(m);
|
|
57
|
-
}, T =
|
|
57
|
+
}, T = P(() => s.value.filter(
|
|
58
58
|
(e) => {
|
|
59
59
|
var a, t, o, i;
|
|
60
60
|
return (i = (a = e["@value"]) == null ? void 0 : a.toLowerCase()) == null ? void 0 : i.trim().startsWith((o = (t = m.value) == null ? void 0 : t.toLowerCase()) == null ? void 0 : o.trim());
|
|
@@ -104,8 +104,9 @@ const Q = {
|
|
|
104
104
|
}, null, 8, ["onUpdate:modelValue", "modelValue", "inputFieldProps", "data"]),
|
|
105
105
|
n.inOverview ? w("", !0) : (c(), A(M, {
|
|
106
106
|
key: 0,
|
|
107
|
-
"button-text": "
|
|
107
|
+
"button-text": "Löschen",
|
|
108
108
|
class: "rightAlign",
|
|
109
|
+
iconStart: "trash",
|
|
109
110
|
onClick: (i) => r(l).splice(o, 1)
|
|
110
111
|
}, null, 8, ["onClick"]))
|
|
111
112
|
], 2))), 256)),
|