@piveau/dpi 0.1.0-beta.6 → 0.1.0-beta.60
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/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +78 -66
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +7 -7
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +434 -360
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +103 -71
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +91 -61
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +109 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +571 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +52 -57
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +301 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +46 -27
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +71 -38
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +182 -105
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +879 -843
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +328 -265
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +395 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiContext.js +5 -7
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +472 -95
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +10 -3
- package/dist/data-provider-interface/store/modules/authStore.js +11 -11
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +381 -755
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/package.json +28 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +0 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import M from "
|
|
1
|
+
import { ref as i, onMounted as R, createElementBlock as c, openBlock as l, normalizeClass as y, createBlock as h, createCommentVNode as p, Fragment as A, renderList as C, createElementVNode as k, createVNode as w, toDisplayString as P, unref as n, isRef as B } from "vue";
|
|
2
|
+
import E from "../ModalSimpleV3.vue.js";
|
|
3
|
+
import D from "../InputField.vue.js";
|
|
4
|
+
import { useFormValues as M } from "../../../composables/useDpiFormValues.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import S from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const T = { class: "dpiV3_LinkAndMetadata" }, F = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "copy-mini-regular dpiV3_text_error"
|
|
10
|
-
}, E = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "dpiV3_tempAddMore"
|
|
13
10
|
}, N = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "copy-mini-regular dpiV3_text_error"
|
|
13
|
+
}, q = {
|
|
14
14
|
__name: "PolicyV3",
|
|
15
15
|
props: {
|
|
16
16
|
policyItems: { type: Array, required: !0 },
|
|
@@ -18,66 +18,63 @@ const B = { class: "dpiV3_LinkAndMetadata" }, z = {
|
|
|
18
18
|
asCard: { type: Boolean, required: !1, default: !1 }
|
|
19
19
|
},
|
|
20
20
|
emits: ["update"],
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
setup(d, { expose: I, emit: V }) {
|
|
22
|
+
const { formValues: _ } = M();
|
|
23
|
+
let r = i({});
|
|
24
|
+
const u = i({}), s = d, f = V, v = i(!1), g = i(null);
|
|
25
|
+
let m = i(!1);
|
|
26
|
+
R(() => {
|
|
26
27
|
console.log(
|
|
27
28
|
"Component Mounted: policyItems received for distributionId:",
|
|
28
|
-
|
|
29
|
-
),
|
|
29
|
+
s.distributionId
|
|
30
|
+
), s.policyItems.length === 0 && f("update", [
|
|
30
31
|
{
|
|
31
32
|
id: 1,
|
|
32
33
|
"dcat:downloadURL": ""
|
|
33
34
|
}
|
|
34
35
|
]);
|
|
35
36
|
});
|
|
36
|
-
const
|
|
37
|
-
switch (
|
|
37
|
+
const U = (o) => {
|
|
38
|
+
switch (o) {
|
|
38
39
|
case "delete":
|
|
39
|
-
|
|
40
|
+
b();
|
|
40
41
|
break;
|
|
41
42
|
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
43
|
+
};
|
|
44
|
+
I({ validateAllItems: () => {
|
|
45
|
+
const o = (e) => {
|
|
46
|
+
if (!e || e.trim() === "") return !1;
|
|
47
|
+
const t = e.trim();
|
|
48
|
+
return /\.[a-zA-Z]{2,}$/.test(t);
|
|
46
49
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
action: "delete",
|
|
59
|
-
optionalString_1: t["dcat:downloadURL"]
|
|
60
|
-
}, r.value = !0, v.value = t;
|
|
61
|
-
}, _ = () => {
|
|
62
|
-
if (a.policyItems.length === 1) {
|
|
63
|
-
I.value = !0;
|
|
50
|
+
s.policyItems.forEach((e) => {
|
|
51
|
+
const t = e["dcat:downloadURL"] ? e["dcat:downloadURL"].trim() : "";
|
|
52
|
+
t && !o(t) ? u.value[e.id] = "Bitte geben Sie eine gültige URL ein." : delete u.value[e.id];
|
|
53
|
+
});
|
|
54
|
+
} });
|
|
55
|
+
const L = (o, e, t) => {
|
|
56
|
+
let a = i(_.value.DistributionSimple["dcat:distribution"].find((x) => x.id === t));
|
|
57
|
+
a.value.policyItems[0] === void 0 && (a.value.policyItems = [{ "dcat:downloadURL": "" }]), a.value.policyItems[0]["dcat:downloadURL"] = o.target.value;
|
|
58
|
+
}, b = () => {
|
|
59
|
+
if (s.policyItems.length === 1) {
|
|
60
|
+
v.value = !0;
|
|
64
61
|
return;
|
|
65
62
|
}
|
|
66
|
-
const
|
|
67
|
-
(
|
|
63
|
+
const o = s.policyItems.filter(
|
|
64
|
+
(e) => e.id !== g.value.id
|
|
68
65
|
);
|
|
69
|
-
|
|
66
|
+
f("update", o);
|
|
70
67
|
};
|
|
71
|
-
return (
|
|
72
|
-
class:
|
|
68
|
+
return (o, e) => (l(), c("div", {
|
|
69
|
+
class: y(["dpiV3_documentationsWrap", { dpiV3_docAllAsCard: d.asCard }])
|
|
73
70
|
}, [
|
|
74
|
-
(
|
|
75
|
-
key:
|
|
76
|
-
class:
|
|
71
|
+
(l(!0), c(A, null, C(d.policyItems, (t) => (l(), c("div", {
|
|
72
|
+
key: t.id,
|
|
73
|
+
class: y(["dpiV3AutoCompleteWrap", { dpiV3_docAsCard: d.asCard }])
|
|
77
74
|
}, [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
onInput: (
|
|
75
|
+
k("div", T, [
|
|
76
|
+
w(D, {
|
|
77
|
+
onInput: (a) => L(a, "dcat:downloadURL", t.id),
|
|
81
78
|
addOnText: !1,
|
|
82
79
|
datePicker: !1,
|
|
83
80
|
infoIcon: !1,
|
|
@@ -87,44 +84,26 @@ const B = { class: "dpiV3_LinkAndMetadata" }, z = {
|
|
|
87
84
|
initialHintText: !1,
|
|
88
85
|
label: "URL",
|
|
89
86
|
showEndIcon: !1,
|
|
90
|
-
modelValue:
|
|
91
|
-
"onUpdate:modelValue": (
|
|
87
|
+
modelValue: t["dcat:downloadURL"],
|
|
88
|
+
"onUpdate:modelValue": (a) => t["dcat:downloadURL"] = a
|
|
92
89
|
}, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"]),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class: "dpiV3_tempAddMore",
|
|
97
|
-
buttonText: t.$t(
|
|
98
|
-
"message.dataupload.datasets.dcat:distribution.advanced.documentation.delete"
|
|
99
|
-
),
|
|
100
|
-
size: "small",
|
|
101
|
-
iconStart: "trash",
|
|
102
|
-
variant: "tertiary",
|
|
103
|
-
onClick: (l) => C(e)
|
|
104
|
-
}, null, 8, ["buttonText", "onClick"])
|
|
90
|
+
u.value[t.id] ? (l(), c("p", F, P(u.value[t.id]), 1)) : p("", !0),
|
|
91
|
+
v.value && d.policyItems.length === 1 ? (l(), c("p", N, " Mindestens eine URL muss vorhanden sein. ")) : p("", !0)
|
|
92
|
+
])
|
|
105
93
|
], 2))), 128)),
|
|
106
|
-
n
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
key: 1,
|
|
117
|
-
buttons: s(i).button,
|
|
118
|
-
headerText: s(i).header,
|
|
119
|
-
text: s(i).text,
|
|
120
|
-
onClose: o[0] || (o[0] = (e) => S(r) ? r.value = !1 : r = !1),
|
|
121
|
-
action: s(i).action,
|
|
122
|
-
onActionHandling: o[1] || (o[1] = (e) => x(e)),
|
|
123
|
-
optionalString_1: s(i).optionalString_1
|
|
124
|
-
}, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1"])) : f("", !0)
|
|
94
|
+
n(m) ? (l(), h(E, {
|
|
95
|
+
key: 0,
|
|
96
|
+
buttons: n(r).button,
|
|
97
|
+
headerText: n(r).header,
|
|
98
|
+
text: n(r).text,
|
|
99
|
+
onClose: e[0] || (e[0] = (t) => B(m) ? m.value = !1 : m = !1),
|
|
100
|
+
action: n(r).action,
|
|
101
|
+
onActionHandling: e[1] || (e[1] = (t) => U(t)),
|
|
102
|
+
optionalString_1: n(r).optionalString_1
|
|
103
|
+
}, null, 8, ["buttons", "headerText", "text", "action", "optionalString_1"])) : p("", !0)
|
|
125
104
|
], 2));
|
|
126
105
|
}
|
|
127
|
-
},
|
|
106
|
+
}, G = /* @__PURE__ */ S(q, [["__scopeId", "data-v-55082169"]]);
|
|
128
107
|
export {
|
|
129
|
-
|
|
108
|
+
G as default
|
|
130
109
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { getDatasetStatus as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { ref as d, onMounted as f, getCurrentInstance as v, watch as m, createBlock as S, openBlock as b } from "vue";
|
|
2
|
+
import { getDatasetStatus as g } from "../../services/dpiV3_apis.js";
|
|
3
|
+
import x from "../Dropdown.vue.js";
|
|
4
|
+
const T = {
|
|
5
5
|
__name: "StatusV3",
|
|
6
6
|
props: {
|
|
7
7
|
distributionId: { type: Number, required: !1 },
|
|
@@ -9,41 +9,42 @@ const V = {
|
|
|
9
9
|
statusText: { type: String, default: "" }
|
|
10
10
|
},
|
|
11
11
|
emits: ["addStatus", "deleteButtonClicked"],
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
12
|
+
setup(u, { emit: i }) {
|
|
13
|
+
const l = d([]);
|
|
14
14
|
f(async () => {
|
|
15
|
-
const
|
|
15
|
+
const t = v().appContext.app.config.globalProperties.$env;
|
|
16
16
|
try {
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
"@value":
|
|
20
|
-
|
|
17
|
+
const e = await g(t.api.baseUrl);
|
|
18
|
+
console.log(e), l.value = e.flatMap((o) => o.value === "OP_DATPRO" ? [] : o.value === "DEVELOP" ? [] : o.value === "DISCONT" ? [] : [{
|
|
19
|
+
"@value": o.label,
|
|
20
|
+
uri: o.resource,
|
|
21
21
|
selected: !1
|
|
22
|
-
})
|
|
23
|
-
} catch (
|
|
24
|
-
console.error("Failed to load dataset status data:",
|
|
22
|
+
}]);
|
|
23
|
+
} catch (e) {
|
|
24
|
+
console.error("Failed to load dataset status data:", e);
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const
|
|
28
|
-
|
|
27
|
+
const n = u, s = d(n.statusText), r = i, p = (a) => {
|
|
28
|
+
const t = l.value.find((e) => e["@value"] === a);
|
|
29
|
+
console.log(t, l), r("addStatus", t, n.distributionId);
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
-
() =>
|
|
31
|
+
m(
|
|
32
|
+
() => n.statusText,
|
|
32
33
|
(a) => {
|
|
33
|
-
|
|
34
|
+
s.value = a;
|
|
34
35
|
}
|
|
35
36
|
);
|
|
36
37
|
const c = () => {
|
|
37
|
-
|
|
38
|
+
r("deleteButtonClicked", n.distributionId);
|
|
38
39
|
};
|
|
39
|
-
return (a,
|
|
40
|
+
return (a, t) => (b(), S(x, {
|
|
40
41
|
"onUpdate:modelValue": [
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
t[0] || (t[0] = (e) => p(e)),
|
|
43
|
+
t[1] || (t[1] = (e) => s.value = e)
|
|
43
44
|
],
|
|
44
45
|
dropdownWidth: "large",
|
|
45
46
|
type: "inputField",
|
|
46
|
-
modelValue:
|
|
47
|
+
modelValue: s.value,
|
|
47
48
|
inputFieldProps: {
|
|
48
49
|
addOnText: !1,
|
|
49
50
|
initialHintText: !1,
|
|
@@ -54,14 +55,14 @@ const V = {
|
|
|
54
55
|
dropdown_dpiV3: !0,
|
|
55
56
|
placeholder: "Geben Sie den Status ein...",
|
|
56
57
|
inputFieldSize: "large",
|
|
57
|
-
modelValue:
|
|
58
|
-
defaultInput: !
|
|
58
|
+
modelValue: s.value,
|
|
59
|
+
defaultInput: !u.showDeleteButton
|
|
59
60
|
},
|
|
60
|
-
data:
|
|
61
|
+
data: l.value,
|
|
61
62
|
onDeleteDropdownField: c
|
|
62
63
|
}, null, 8, ["modelValue", "inputFieldProps", "data"]));
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
T as default
|
|
67
68
|
};
|
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { ref as f, computed as k, resolveComponent as S, createElementBlock as m, openBlock as o, createElementVNode as p, createBlock as V, createCommentVNode as u, toDisplayString as R, createVNode as l, withCtx as x, unref as C, Fragment as Q, renderList as X } from "vue";
|
|
2
|
+
import { useI18n as Y } from "vue-i18n";
|
|
3
|
+
import { PhWarning as ee } from "@phosphor-icons/vue";
|
|
4
|
+
import te from "./CrossOutButton.vue.js";
|
|
5
|
+
import $ from "./ButtonV3.vue.js";
|
|
6
|
+
import ae from "./SectionItems/FindabilityChips.vue.js";
|
|
7
|
+
import ie from "./SectionItems/HVDSwitch.vue.js";
|
|
8
|
+
import oe from "./SectionItems/EssentialsModal.vue.js";
|
|
9
|
+
import ne from "./SectionItems/DistributionModal.vue.js";
|
|
10
|
+
import se from "./SectionItems/CoverageModal.vue.js";
|
|
11
|
+
import le from "./SectionItems/AdditionalsModal.vue.js";
|
|
10
12
|
import "@formkit/core";
|
|
11
|
-
import { useFormValues as
|
|
13
|
+
import { useFormValues as ce } from "../../composables/useDpiFormValues.js";
|
|
12
14
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
const
|
|
15
|
+
import re from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
16
|
+
const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOuter" }, ve = { class: "dpiV3_RapModalInner" }, fe = { class: "dpiV3_modalHead" }, me = {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "headline"
|
|
19
|
+
}, pe = { class: "dpiV3_closeButtonContainer" }, _e = { class: "dpiV3_modalBody" }, ge = { key: 0 }, he = {
|
|
15
20
|
key: 2,
|
|
16
21
|
id: "essentials"
|
|
17
|
-
},
|
|
22
|
+
}, be = {
|
|
23
|
+
key: 6,
|
|
24
|
+
class: "dpiV3_errormsgWrapper"
|
|
25
|
+
}, ye = { class: "validation-messages" }, Se = { class: "dpiV3_actionButtonWrap" }, Ve = {
|
|
18
26
|
__name: "RapModal",
|
|
19
27
|
props: {
|
|
20
28
|
isVisible: {
|
|
@@ -25,133 +33,181 @@ const q = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalOute
|
|
|
25
33
|
activeSection: String
|
|
26
34
|
},
|
|
27
35
|
emits: ["close"],
|
|
28
|
-
setup(
|
|
29
|
-
const
|
|
30
|
-
let
|
|
31
|
-
const { formValues:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var a;
|
|
38
|
-
return ((a = t == null ? void 0 : t[0]) == null ? void 0 : a[e]) || "";
|
|
39
|
-
}, w = (t) => {
|
|
40
|
-
var e;
|
|
41
|
-
return ((e = t == null ? void 0 : t[0]) == null ? void 0 : e["@value"]) || "";
|
|
42
|
-
}, o = M({
|
|
43
|
-
title: k(n.value["dct:title"], "de"),
|
|
44
|
-
description: k(n.value["dct:description"], "de"),
|
|
45
|
-
modified: w(n.value["dct:modified"]),
|
|
46
|
-
publisherName: d(n.value["dct:publisher"], "foaf:name"),
|
|
47
|
-
publisherMail: d(n.value["dct:publisher"], "foaf:mbox"),
|
|
48
|
-
publisherWebsite: d(n.value["dct:publisher"], "foaf:homepage"),
|
|
49
|
-
contactPointName: d(n.value["dcat:contactPoint"], "vcard:fn"),
|
|
50
|
-
contactPointMail: d(n.value["dcat:contactPoint"], "vcard:hasEmail"),
|
|
51
|
-
contactPointPhone: d(n.value["dcat:contactPoint"], "vcard:hasTelephone")
|
|
52
|
-
}), B = (t, e, a, u) => {
|
|
53
|
-
t[e] || (t[e] = []);
|
|
54
|
-
const f = t[e].find((b) => b["@language"] === u);
|
|
55
|
-
f ? f["@value"] = a : t[e].push({ "@value": a, "@language": u });
|
|
56
|
-
}, R = () => {
|
|
57
|
-
const t = JSON.parse(JSON.stringify(V.value.BasicInfos));
|
|
58
|
-
B(t, "dct:title", o.value.title, "de"), B(t, "dct:description", o.value.description, "de"), t["dct:publisher"] = [{
|
|
59
|
-
"foaf:name": o.value.publisherName,
|
|
60
|
-
"foaf:mbox": o.value.publisherMail,
|
|
61
|
-
"foaf:homepage": o.value.publisherWebsite
|
|
62
|
-
}], t["dcat:contactPoint"] = [{
|
|
63
|
-
"vcard:fn": o.value.contactPointName,
|
|
64
|
-
"vcard:hasEmail": o.value.contactPointMail,
|
|
65
|
-
"vcard:hasTelephone": o.value.contactPointPhone
|
|
66
|
-
}], t["dct:modified"] = [{ "@value": o.value.modified }], V.value.BasicInfos = t, S("close");
|
|
36
|
+
setup(d, { emit: A }) {
|
|
37
|
+
const { t: L } = Y(), a = d;
|
|
38
|
+
let B = f();
|
|
39
|
+
const { formValues: h } = ce(), w = A, D = f(null), _ = f(null), b = f(null), n = f(!1), y = f(null), J = {
|
|
40
|
+
findabilityHvd: "message.dataupload.datasets.rap.findability.title",
|
|
41
|
+
essentials: "message.dataupload.datasets.rap.essentials.title",
|
|
42
|
+
coverage: "message.dataupload.datasets.rap.coverage.title",
|
|
43
|
+
distributions: "message.metadata.distributions",
|
|
44
|
+
additionals: "message.metadata.additionals"
|
|
67
45
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
46
|
+
console.log(h.value);
|
|
47
|
+
const E = k(() => {
|
|
48
|
+
const e = J[a.activeSection];
|
|
49
|
+
return e ? L(e) : "";
|
|
50
|
+
}), I = k(() => {
|
|
51
|
+
var i, r;
|
|
52
|
+
const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
|
|
53
|
+
return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
|
|
54
|
+
}), K = () => a.activeSection === "findabilityHvd" && !I.value ? (n.value = !0, !1) : (n.value = !1, !0), F = () => a.activeSection === "distributions" && (console.log(y.value && !y.value.isValid), y.value && !y.value.isValid) ? (n.value = !0, !1) : (n.value = !1, !0), j = () => a.activeSection === "essentials" && _.value && !_.value.isValid ? (n.value = !0, !1) : (n.value = !1, !0), q = () => a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (n.value = !0, !1) : (n.value = !1, !0), H = () => a.activeSection === "findabilityHvd" ? K() : a.activeSection === "essentials" ? j() : a.activeSection === "coverage" ? q() : a.activeSection === "distributions" ? (console.log("hey" + F()), F()) : (n.value = !1, !0), T = k(() => a.activeSection === "findabilityHvd" && !I.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : a.activeSection === "essentials" && _.value && !_.value.isValid ? _.value.getValidationErrorMessages() : a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), N = () => {
|
|
55
|
+
H() && W();
|
|
56
|
+
}, W = () => {
|
|
57
|
+
n.value = !1, w("close");
|
|
58
|
+
}, c = k(() => h.value.BasicInfos), z = (e, t) => {
|
|
59
|
+
var i;
|
|
60
|
+
return ((i = e == null ? void 0 : e.find((r) => r["@language"] === t)) == null ? void 0 : i["@value"]) || "";
|
|
61
|
+
}, g = (e, t) => {
|
|
62
|
+
var i;
|
|
63
|
+
return ((i = e == null ? void 0 : e[0]) == null ? void 0 : i[t]) || "";
|
|
64
|
+
}, U = (e) => {
|
|
65
|
+
var t;
|
|
66
|
+
return ((t = e == null ? void 0 : e[0]) == null ? void 0 : t["@value"]) || "";
|
|
67
|
+
}, s = f({
|
|
68
|
+
title: z(c.value["dct:title"], "de"),
|
|
69
|
+
description: z(c.value["dct:description"], "de"),
|
|
70
|
+
modified: U(c.value["dct:modified"]),
|
|
71
|
+
publisherName: g(c.value["dct:publisher"], "foaf:name"),
|
|
72
|
+
publisherMail: g(c.value["dct:publisher"], "foaf:mbox"),
|
|
73
|
+
publisherWebsite: g(c.value["dct:publisher"], "foaf:homepage"),
|
|
74
|
+
contactPointName: g(c.value["dcat:contactPoint"], "vcard:fn"),
|
|
75
|
+
contactPointMail: g(c.value["dcat:contactPoint"], "vcard:hasEmail"),
|
|
76
|
+
contactPointPhone: g(c.value["dcat:contactPoint"], "vcard:hasTelephone")
|
|
77
|
+
}), O = (e, t, i, r) => {
|
|
78
|
+
e[t] || (e[t] = []);
|
|
79
|
+
const v = e[t].find((P) => P["@language"] === r);
|
|
80
|
+
v ? v["@value"] = i : e[t].push({ "@value": i, "@language": r });
|
|
81
|
+
}, Z = () => {
|
|
82
|
+
if (H()) {
|
|
83
|
+
if (a.activeSection === "essentials") {
|
|
84
|
+
const e = h.value.BasicInfos || {}, t = JSON.parse(JSON.stringify(e));
|
|
85
|
+
O(t, "dct:title", s.value.title, "de"), O(t, "dct:description", s.value.description, "de"), t["dct:publisher"] = [{
|
|
86
|
+
"foaf:name": s.value.publisherName,
|
|
87
|
+
"foaf:mbox": s.value.publisherMail,
|
|
88
|
+
"foaf:homepage": s.value.publisherWebsite
|
|
89
|
+
}], t["dcat:contactPoint"] = [{
|
|
90
|
+
"vcard:fn": s.value.contactPointName,
|
|
91
|
+
"vcard:hasEmail": s.value.contactPointMail,
|
|
92
|
+
"vcard:hasTelephone": s.value.contactPointPhone
|
|
93
|
+
}], t["dct:modified"] = [{ "@value": s.value.modified }], h.value.BasicInfos = t;
|
|
94
|
+
}
|
|
95
|
+
w("close");
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
return (e, t) => {
|
|
99
|
+
const i = S("findability"), r = S("coverage"), v = S("distributionRap"), P = S("additionals"), G = S("interaction");
|
|
100
|
+
return o(), m("div", ue, [
|
|
101
|
+
p("div", de, [
|
|
102
|
+
p("div", ve, [
|
|
103
|
+
p("div", fe, [
|
|
104
|
+
E.value ? (o(), m("div", me, R(E.value), 1)) : u("", !0),
|
|
105
|
+
p("div", pe, [
|
|
106
|
+
l(te, {
|
|
107
|
+
onClick: N,
|
|
77
108
|
class: "dpiV3_closeButton",
|
|
78
109
|
type: "default"
|
|
79
110
|
})
|
|
80
111
|
])
|
|
81
112
|
]),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
113
|
+
p("div", _e, [
|
|
114
|
+
a.activeSection === "findabilityHvd" ? (o(), m("span", ge, R(e.$t("message.metadata.categories")), 1)) : u("", !0),
|
|
115
|
+
a.activeSection === "findabilityHvd" ? (o(), V(i, {
|
|
116
|
+
key: 1,
|
|
117
|
+
class: "findability-container"
|
|
118
|
+
}, {
|
|
119
|
+
default: x(() => [
|
|
120
|
+
l(ae, {
|
|
121
|
+
context: d.context,
|
|
122
|
+
ref_key: "findabilityChipsRef",
|
|
123
|
+
ref: D
|
|
124
|
+
}, null, 8, ["context"]),
|
|
125
|
+
l(ie, { context: d.context }, null, 8, ["context"])
|
|
88
126
|
]),
|
|
89
127
|
_: 1
|
|
90
|
-
})) :
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
context:
|
|
94
|
-
newValues:
|
|
95
|
-
modelValue:
|
|
96
|
-
"onUpdate:modelValue":
|
|
128
|
+
})) : u("", !0),
|
|
129
|
+
a.activeSection === "essentials" ? (o(), m("div", he, [
|
|
130
|
+
l(oe, {
|
|
131
|
+
context: d.context,
|
|
132
|
+
newValues: C(B),
|
|
133
|
+
modelValue: s.value,
|
|
134
|
+
"onUpdate:modelValue": t[0] || (t[0] = (M) => s.value = M),
|
|
135
|
+
ref_key: "essentialsModalRef",
|
|
136
|
+
ref: _
|
|
97
137
|
}, null, 8, ["context", "newValues", "modelValue"])
|
|
98
|
-
])) :
|
|
99
|
-
|
|
100
|
-
default:
|
|
101
|
-
|
|
102
|
-
context:
|
|
103
|
-
newValues:
|
|
138
|
+
])) : u("", !0),
|
|
139
|
+
a.activeSection === "coverage" ? (o(), V(r, { key: 3 }, {
|
|
140
|
+
default: x(() => [
|
|
141
|
+
l(se, {
|
|
142
|
+
context: d.context,
|
|
143
|
+
newValues: C(B),
|
|
144
|
+
ref_key: "coverageModalRef",
|
|
145
|
+
ref: b
|
|
104
146
|
}, null, 8, ["context", "newValues"])
|
|
105
147
|
]),
|
|
106
148
|
_: 1
|
|
107
|
-
})) :
|
|
108
|
-
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
context:
|
|
112
|
-
newValues:
|
|
149
|
+
})) : u("", !0),
|
|
150
|
+
a.activeSection === "distributions" ? (o(), V(v, { key: 4 }, {
|
|
151
|
+
default: x(() => [
|
|
152
|
+
l(ne, {
|
|
153
|
+
context: d.context,
|
|
154
|
+
newValues: C(B),
|
|
155
|
+
ref_key: "distributionModalRef",
|
|
156
|
+
ref: y
|
|
113
157
|
}, null, 8, ["context", "newValues"])
|
|
114
158
|
]),
|
|
115
159
|
_: 1
|
|
116
|
-
})) :
|
|
117
|
-
|
|
118
|
-
default:
|
|
119
|
-
|
|
120
|
-
context:
|
|
121
|
-
onCloseModal:
|
|
160
|
+
})) : u("", !0),
|
|
161
|
+
a.activeSection === "additionals" ? (o(), V(P, { key: 5 }, {
|
|
162
|
+
default: x(() => [
|
|
163
|
+
l(le, {
|
|
164
|
+
context: d.context,
|
|
165
|
+
onCloseModal: W
|
|
122
166
|
}, null, 8, ["context"])
|
|
123
167
|
]),
|
|
124
168
|
_: 1
|
|
125
|
-
})) :
|
|
169
|
+
})) : u("", !0),
|
|
170
|
+
n.value && T.value.length > 0 ? (o(), m("div", be, [
|
|
171
|
+
l(C(ee), {
|
|
172
|
+
size: 16,
|
|
173
|
+
weight: "fill"
|
|
174
|
+
}),
|
|
175
|
+
p("div", ye, [
|
|
176
|
+
(o(!0), m(Q, null, X(T.value, (M) => (o(), m("span", {
|
|
177
|
+
key: M,
|
|
178
|
+
class: "copy-mini-regular"
|
|
179
|
+
}, R(M), 1))), 128))
|
|
180
|
+
])
|
|
181
|
+
])) : u("", !0)
|
|
126
182
|
])
|
|
127
183
|
]),
|
|
128
|
-
|
|
184
|
+
a.activeSection != "additionals" ? (o(), V(G, {
|
|
129
185
|
key: 0,
|
|
130
186
|
class: "dpiV3_interactionWrap"
|
|
131
187
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
onClick:
|
|
188
|
+
default: x(() => [
|
|
189
|
+
p("div", Se, [
|
|
190
|
+
l($, {
|
|
191
|
+
onClick: N,
|
|
136
192
|
buttonText: "Zurück",
|
|
137
193
|
size: "large",
|
|
138
194
|
iconStart: "CaretLeft",
|
|
139
195
|
variant: "tertiary"
|
|
140
196
|
}),
|
|
141
|
-
|
|
142
|
-
onClick:
|
|
197
|
+
l($, {
|
|
198
|
+
onClick: Z,
|
|
143
199
|
buttonText: "Speichern",
|
|
144
200
|
size: "large"
|
|
145
201
|
})
|
|
146
202
|
])
|
|
147
203
|
]),
|
|
148
204
|
_: 1
|
|
149
|
-
})) :
|
|
205
|
+
})) : u("", !0)
|
|
150
206
|
])
|
|
151
207
|
]);
|
|
152
208
|
};
|
|
153
209
|
}
|
|
154
|
-
},
|
|
210
|
+
}, ze = /* @__PURE__ */ re(Ve, [["__scopeId", "data-v-7bf8e6a8"]]);
|
|
155
211
|
export {
|
|
156
|
-
|
|
212
|
+
ze as default
|
|
157
213
|
};
|