@piveau/dpi 0.1.0-beta.5 → 0.1.0-beta.51
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/DataProviderInterface.vue2.js +45 -40
- 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 +100 -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 +153 -102
- 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 +34 -56
- 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 +70 -39
- 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 +153 -105
- 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 +856 -790
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +105 -82
- 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 +302 -251
- 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/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/useDpiEditMode.js +15 -13
- 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/index.js +32 -0
- package/dist/data-provider-interface/store/modules/authStore.js +301 -0
- package/dist/data-provider-interface/store/modules/catalogueDetailsStore.js +34 -0
- package/dist/data-provider-interface/store/modules/cataloguesStore.js +256 -0
- package/dist/data-provider-interface/store/modules/datasetDetailsStore.js +644 -0
- package/dist/data-provider-interface/store/modules/datasetsStore.js +361 -0
- package/dist/data-provider-interface/store/{dpiStore.js → modules/dpiStore.js} +11 -12
- package/dist/data-provider-interface/store/modules/snackbarStore.js +45 -0
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +378 -752
- package/dist/index.js +4 -4
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/dist/utils/draftApi.js +33 -0
- package/dist/utils/helpers.js +36 -22
- package/dist/utils/identifiersApi.js +16 -0
- package/dist/utils/jwt.js +7 -0
- package/package.json +12 -7
- 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/store/modules/formSchemaStore.js +0 -94
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as l, createElementBlock as v, openBlock as g, normalizeClass as p, createElementVNode as s, toDisplayString as S, createVNode as c, unref as f } from "vue";
|
|
2
2
|
import x from "../img/x-circleFill.svg.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import T from "../img/InfoFill.svg.js";
|
|
4
|
+
import b from "../img/CheckCircleFill.svg.js";
|
|
5
5
|
import B from "../img/WarningFill.svg.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import w from "./TextButtonSmall.vue.js";
|
|
7
|
+
import E from "./CrossOutButton.vue.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
const
|
|
9
|
+
const _ = { class: "imgTextWrap" }, k = ["src"], K = { class: "btnWrapToast" }, h = {
|
|
10
10
|
__name: "Toast",
|
|
11
11
|
props: {
|
|
12
12
|
text: {
|
|
@@ -20,50 +20,51 @@ const E = { class: "imgTextWrap" }, K = ["src"], h = { class: "btnWrapToast" },
|
|
|
20
20
|
button: String,
|
|
21
21
|
action: String
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const
|
|
25
|
-
let n =
|
|
26
|
-
const e =
|
|
27
|
-
e.type === "info" && (
|
|
28
|
-
const
|
|
29
|
-
t === "in" ?
|
|
30
|
-
}, d = (t) => {
|
|
31
|
-
(t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
|
|
23
|
+
setup(d) {
|
|
24
|
+
const r = l();
|
|
25
|
+
let n = l(!1), i = l(!1);
|
|
26
|
+
const e = d;
|
|
27
|
+
e.type === "info" && (r.value = T), e.type === "success" && (r.value = b), e.type === "warning" && (r.value = B), e.type === "error" && (r.value = x);
|
|
28
|
+
const u = (t) => {
|
|
29
|
+
t === "in" ? i.value = !0 : i.value = !1;
|
|
32
30
|
}, m = (t) => {
|
|
31
|
+
(t.code === "Space" || t.code === "Enter") && (n.value = !0, t.preventDefault());
|
|
32
|
+
}, y = (t) => {
|
|
33
33
|
(t.code === "Space" || t.code === "Enter") && (n.value = !1);
|
|
34
34
|
};
|
|
35
|
-
return (t,
|
|
36
|
-
class:
|
|
35
|
+
return (t, o) => (g(), v("div", {
|
|
36
|
+
class: p(["toastBody", {
|
|
37
37
|
error: e.type === "error",
|
|
38
38
|
warning: e.type === "warning",
|
|
39
39
|
info: e.type === "info",
|
|
40
40
|
success: e.type === "success"
|
|
41
41
|
}])
|
|
42
42
|
}, [
|
|
43
|
-
s("div",
|
|
43
|
+
s("div", _, [
|
|
44
44
|
s("img", {
|
|
45
|
-
src:
|
|
45
|
+
src: r.value,
|
|
46
46
|
alt: ""
|
|
47
|
-
}, null, 8,
|
|
47
|
+
}, null, 8, k),
|
|
48
48
|
s("span", null, S(e.text), 1)
|
|
49
49
|
]),
|
|
50
|
-
s("div",
|
|
51
|
-
c(
|
|
50
|
+
s("div", K, [
|
|
51
|
+
c(w, {
|
|
52
|
+
onClick: o[0] || (o[0] = (a) => t.$emit("button-clicked")),
|
|
52
53
|
buttonText: e.button,
|
|
53
54
|
style: { margin: "auto" }
|
|
54
55
|
}, null, 8, ["buttonText"]),
|
|
55
|
-
c(
|
|
56
|
-
onKeydown:
|
|
57
|
-
onKeyup:
|
|
58
|
-
onFocus:
|
|
59
|
-
onBlur:
|
|
56
|
+
c(E, {
|
|
57
|
+
onKeydown: m,
|
|
58
|
+
onKeyup: y,
|
|
59
|
+
onFocus: o[1] || (o[1] = (a) => u("in")),
|
|
60
|
+
onBlur: o[2] || (o[2] = (a) => u()),
|
|
60
61
|
type: "inToast",
|
|
61
|
-
class:
|
|
62
|
+
class: p(["crossout", { pressed: f(n), focused: f(i) }])
|
|
62
63
|
}, null, 8, ["class"])
|
|
63
64
|
])
|
|
64
65
|
], 2));
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
h as default
|
|
69
70
|
};
|
|
@@ -1,46 +1,57 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { PhWarning as
|
|
3
|
-
import { useEditModeInfo as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { ref as f, computed as B, getCurrentInstance as F, unref as m, onMounted as M, watch as I, createElementBlock as c, openBlock as d, createElementVNode as s, createCommentVNode as h, toDisplayString as r, createVNode as u, Fragment as E, renderList as D } from "vue";
|
|
2
|
+
import { PhWarning as g } from "@phosphor-icons/vue";
|
|
3
|
+
import { useEditModeInfo as O } from "../composables/useDpiEditMode.js";
|
|
4
|
+
import P from "../HappyFlowComponents/ui/InputField.vue.js";
|
|
5
|
+
import z from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
|
|
6
|
+
import { useFormValues as U } from "../composables/useDpiFormValues.js";
|
|
6
7
|
/* empty css */
|
|
7
|
-
import
|
|
8
|
-
const
|
|
8
|
+
import j from "../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const L = { class: "dpiV3InnerComponentWrap" }, Z = { class: "copy-large-regular" }, q = { class: "dpiV3AutoCompleteWrap" }, G = { class: "CardTips_internal" }, H = { class: "CardTips_Part" }, J = { class: "firstRow" }, K = { class: "icon_title copy-small-semi-bold" }, Q = { class: "TextButton_small" }, X = { class: "secondRow" }, Y = { class: "copy-small-regular" }, ee = { class: "CardTips_Part" }, ae = { class: "firstRow" }, te = { class: "icon_title copy-small-semi-bold" }, se = { class: "TextButton_small" }, le = { class: "secondRow" }, oe = { class: "copy-small-regular" }, ie = { class: "input-container" }, ne = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "dpiV3_errormsgWrapper"
|
|
11
|
-
},
|
|
12
|
+
}, re = { class: "copy-mini-regular" }, ce = { class: "input-container" }, de = {
|
|
12
13
|
key: 0,
|
|
13
14
|
class: "dpiV3_errormsgWrapper"
|
|
14
|
-
},
|
|
15
|
+
}, ue = { class: "copy-mini-regular" }, pe = { class: "input-container" }, fe = {
|
|
15
16
|
key: 0,
|
|
16
17
|
class: "dpiV3_errormsgWrapper"
|
|
17
|
-
},
|
|
18
|
+
}, me = { class: "copy-mini-regular" }, ve = { class: "copy-large-regular" }, he = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "form-error-message"
|
|
20
|
-
},
|
|
21
|
+
}, T = "", ge = {
|
|
21
22
|
__name: "ContactPage",
|
|
22
23
|
props: {
|
|
23
24
|
context: Object
|
|
24
25
|
},
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
setup(N) {
|
|
27
|
+
const { formValues: S } = U(), v = N, { isEditMode: R } = O(), _ = f(null), b = f(null), w = B(() => {
|
|
28
|
+
var e, t;
|
|
29
|
+
try {
|
|
30
|
+
const a = (t = (e = S.value.BasicInfos) == null ? void 0 : e["dct:publisher"]) == null ? void 0 : t[0];
|
|
31
|
+
if (a && a["foaf:name"] && a["foaf:mbox"])
|
|
32
|
+
return [
|
|
33
|
+
a["foaf:name"],
|
|
34
|
+
a["foaf:mbox"]
|
|
35
|
+
];
|
|
36
|
+
} catch (a) {
|
|
37
|
+
console.warn("Could not load publisher data:", a);
|
|
38
|
+
}
|
|
39
|
+
return [
|
|
40
|
+
"",
|
|
41
|
+
"",
|
|
42
|
+
""
|
|
43
|
+
];
|
|
44
|
+
}), k = B(() => {
|
|
45
|
+
var t, a;
|
|
46
|
+
const e = (a = (t = F().appContext.config.globalProperties.$keycloak) == null ? void 0 : t.idTokenParsed) == null ? void 0 : a.contact;
|
|
36
47
|
if (e) {
|
|
37
|
-
const
|
|
48
|
+
const i = {
|
|
38
49
|
organization: e.organization
|
|
39
50
|
};
|
|
40
|
-
return e.email && (
|
|
51
|
+
return e.email && (i.email = e.email), (e.phone || e.phoneNumber) && (i.phone = e.phone || e.phoneNumber), i;
|
|
41
52
|
}
|
|
42
53
|
return {};
|
|
43
|
-
}),
|
|
54
|
+
}), l = f({
|
|
44
55
|
1: {
|
|
45
56
|
show: !1,
|
|
46
57
|
message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
|
|
@@ -54,8 +65,8 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
|
|
|
54
65
|
message: "Bitte geben Sie eine gültige Telefonnummer ein."
|
|
55
66
|
}
|
|
56
67
|
});
|
|
57
|
-
let
|
|
58
|
-
const
|
|
68
|
+
let n = f({ 1: !1, 2: !1, 3: !1 });
|
|
69
|
+
const o = f([
|
|
59
70
|
{
|
|
60
71
|
isValid: "unset",
|
|
61
72
|
"vcard:fn": "",
|
|
@@ -63,101 +74,138 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
|
|
|
63
74
|
"vcard:hasTelephone": ""
|
|
64
75
|
}
|
|
65
76
|
]);
|
|
66
|
-
|
|
77
|
+
R.value || v.context.node.input(o), v.context.node.value.length === 0 && v.context.node.input(m(o)), M(() => {
|
|
67
78
|
try {
|
|
68
|
-
|
|
79
|
+
T && T["foaf:name"] && T["foaf:mbox"];
|
|
69
80
|
} catch (e) {
|
|
70
81
|
console.warn("Could not load publisher data from context:", e);
|
|
71
82
|
}
|
|
72
83
|
});
|
|
73
|
-
function
|
|
84
|
+
function V(e) {
|
|
74
85
|
return e.trim().length >= 2;
|
|
75
86
|
}
|
|
76
|
-
function
|
|
87
|
+
function C(e) {
|
|
77
88
|
return /^[^\s@]+@[^\s@][^\s.@]*\.[^\s@]+$/.test(e);
|
|
78
89
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
90
|
+
function $(e) {
|
|
91
|
+
if (!e || e.trim() === "")
|
|
92
|
+
return !0;
|
|
93
|
+
const t = e.replace(/[\s\-().]/g, "");
|
|
94
|
+
if (!/^[+]?\d+$/.test(t))
|
|
95
|
+
return !1;
|
|
96
|
+
const a = t.replace(/\D/g, "");
|
|
97
|
+
return a.length >= 6 && a.length <= 15;
|
|
81
98
|
}
|
|
82
|
-
function
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
o.value[t].show = !1, p.value[t] = !0;
|
|
99
|
+
function y(e, t, a) {
|
|
100
|
+
let i = !1;
|
|
101
|
+
if (a === 3 && e.trim() === "")
|
|
102
|
+
l.value[a].show = !1, n.value[a] = !0;
|
|
87
103
|
else if (e.trim() === "")
|
|
88
|
-
|
|
104
|
+
l.value[a].show = !0, n.value[a] = !1;
|
|
89
105
|
else {
|
|
90
|
-
switch (
|
|
106
|
+
switch (t) {
|
|
91
107
|
case "vcard:fn":
|
|
92
|
-
|
|
108
|
+
i = V(e);
|
|
93
109
|
break;
|
|
94
110
|
case "vcard:hasEmail":
|
|
95
|
-
|
|
111
|
+
i = C(e);
|
|
96
112
|
break;
|
|
97
113
|
case "vcard:hasTelephone":
|
|
98
|
-
|
|
114
|
+
i = $(e);
|
|
99
115
|
break;
|
|
100
116
|
default:
|
|
101
|
-
|
|
117
|
+
i = e.trim() !== "";
|
|
102
118
|
}
|
|
103
|
-
|
|
119
|
+
l.value[a].show = !i, n.value[a] = i;
|
|
104
120
|
}
|
|
105
|
-
|
|
121
|
+
n.value[1] && n.value[2] ? o.value[0].isValid = !0 : o.value[0].isValid = "unset";
|
|
106
122
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
123
|
+
function p(e, t, a) {
|
|
124
|
+
o.value = o.value.map((i) => t in i ? { ...i, [t]: e } : i), v.context.node.input(o.value), a === 2 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
|
|
125
|
+
y(e, t, a);
|
|
126
|
+
}, 800)) : a === 3 ? (b.value && clearTimeout(b.value), b.value = setTimeout(() => {
|
|
127
|
+
y(e, t, a);
|
|
128
|
+
}, 800)) : y(e, t, a);
|
|
109
129
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
130
|
+
function W() {
|
|
131
|
+
const e = k.value;
|
|
132
|
+
e.organization && p(e.organization, "vcard:fn", 1), e.email && p(e.email, "vcard:hasEmail", 2);
|
|
112
133
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
134
|
+
function x() {
|
|
135
|
+
p(w.value[0], "vcard:fn", 1), p(w.value[1], "vcard:hasEmail", 2);
|
|
136
|
+
}
|
|
137
|
+
const A = () => {
|
|
138
|
+
const e = o.value[0];
|
|
139
|
+
if (e["vcard:fn"].trim() === "")
|
|
140
|
+
l.value[1].show = !0, n.value[1] = !1;
|
|
141
|
+
else {
|
|
142
|
+
const t = V(e["vcard:fn"]);
|
|
143
|
+
l.value[1].show = !t, n.value[1] = t;
|
|
144
|
+
}
|
|
145
|
+
if (e["vcard:hasEmail"].trim() === "")
|
|
146
|
+
l.value[2].show = !0, n.value[2] = !1;
|
|
147
|
+
else {
|
|
148
|
+
const t = C(e["vcard:hasEmail"]);
|
|
149
|
+
l.value[2].show = !t, n.value[2] = t;
|
|
150
|
+
}
|
|
151
|
+
if (e["vcard:hasTelephone"].trim() === "")
|
|
152
|
+
l.value[3].show = !1, n.value[3] = !0;
|
|
153
|
+
else {
|
|
154
|
+
const t = $(e["vcard:hasTelephone"]);
|
|
155
|
+
l.value[3].show = !t, n.value[3] = t;
|
|
156
|
+
}
|
|
157
|
+
n.value[1] && n.value[2] ? o.value[0].isValid = !0 : o.value[0].isValid = !1;
|
|
158
|
+
};
|
|
159
|
+
return I(() => o.value[0].isValid, (e) => {
|
|
160
|
+
e === !1 && A();
|
|
161
|
+
}), (e, t) => (d(), c("div", L, [
|
|
162
|
+
s("h4", null, r(e.$t("message.dataupload.datasets.dcat:contactPoint.title")), 1),
|
|
163
|
+
s("div", Z, r(e.$t("message.dataupload.datasets.dcat:contactPoint.description")), 1),
|
|
164
|
+
s("div", q, [
|
|
165
|
+
s("div", G, [
|
|
166
|
+
s("div", H, [
|
|
167
|
+
s("div", J, [
|
|
168
|
+
s("div", K, r(e.$t("message.dataupload.datasets.dcat:contactPoint.account")), 1),
|
|
169
|
+
s("div", Q, [
|
|
170
|
+
u(z, {
|
|
123
171
|
"button-text": e.$t(
|
|
124
172
|
"message.dataupload.datasets.dcat:contactPoint.useAccountButton"
|
|
125
173
|
),
|
|
126
174
|
"icon-start": "DeleteBlue",
|
|
127
175
|
"icon-name": "copy",
|
|
128
176
|
class: "dpiV3_usedetailsButton",
|
|
129
|
-
onClick:
|
|
177
|
+
onClick: W
|
|
130
178
|
}, null, 8, ["button-text"])
|
|
131
179
|
])
|
|
132
180
|
]),
|
|
133
|
-
|
|
134
|
-
(d(!0),
|
|
181
|
+
s("div", X, [
|
|
182
|
+
(d(!0), c(E, null, D(Object.values(k.value), (a) => (d(), c("span", Y, r(a), 1))), 256))
|
|
135
183
|
])
|
|
136
184
|
]),
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
185
|
+
s("div", ee, [
|
|
186
|
+
s("div", ae, [
|
|
187
|
+
s("div", te, r(e.$t("message.metadata.publisher")), 1),
|
|
188
|
+
s("div", se, [
|
|
189
|
+
u(z, {
|
|
142
190
|
"button-text": e.$t(
|
|
143
191
|
"message.dataupload.datasets.dcat:contactPoint.usePublisherButton"
|
|
144
192
|
),
|
|
145
193
|
"icon-start": "true",
|
|
146
194
|
"icon-name": "copy",
|
|
147
195
|
class: "",
|
|
148
|
-
onClick:
|
|
196
|
+
onClick: x
|
|
149
197
|
}, null, 8, ["button-text"])
|
|
150
198
|
])
|
|
151
199
|
]),
|
|
152
|
-
|
|
153
|
-
(d(!0),
|
|
200
|
+
s("div", le, [
|
|
201
|
+
(d(!0), c(E, null, D(w.value, (a) => (d(), c("span", oe, r(a), 1))), 256))
|
|
154
202
|
])
|
|
155
203
|
])
|
|
156
204
|
])
|
|
157
205
|
]),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
"model-value":
|
|
206
|
+
s("div", ie, [
|
|
207
|
+
u(P, {
|
|
208
|
+
"model-value": o.value[0]["vcard:fn"],
|
|
161
209
|
"add-on-text": !1,
|
|
162
210
|
"date-picker": !1,
|
|
163
211
|
"info-icon": !1,
|
|
@@ -169,20 +217,20 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
|
|
|
169
217
|
"initial-hint-text": !1,
|
|
170
218
|
label: e.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
|
|
171
219
|
"show-end-icon": !1,
|
|
172
|
-
"show-error":
|
|
173
|
-
"onUpdate:modelValue":
|
|
220
|
+
"show-error": l.value[1].show,
|
|
221
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => p(a, "vcard:fn", 1))
|
|
174
222
|
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
175
|
-
|
|
176
|
-
|
|
223
|
+
l.value[1].show ? (d(), c("div", ne, [
|
|
224
|
+
u(m(g), {
|
|
177
225
|
size: 16,
|
|
178
226
|
weight: "fill"
|
|
179
227
|
}),
|
|
180
|
-
|
|
181
|
-
])) :
|
|
228
|
+
s("span", re, r(l.value[1].message), 1)
|
|
229
|
+
])) : h("", !0)
|
|
182
230
|
]),
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
"model-value":
|
|
231
|
+
s("div", ce, [
|
|
232
|
+
u(P, {
|
|
233
|
+
"model-value": o.value[0]["vcard:hasEmail"],
|
|
186
234
|
"add-on-text": !1,
|
|
187
235
|
"date-picker": !1,
|
|
188
236
|
"info-icon": !1,
|
|
@@ -194,20 +242,20 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
|
|
|
194
242
|
"initial-hint-text": !1,
|
|
195
243
|
label: e.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
|
|
196
244
|
"show-end-icon": !1,
|
|
197
|
-
"show-error":
|
|
198
|
-
"onUpdate:modelValue":
|
|
245
|
+
"show-error": l.value[2].show,
|
|
246
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => p(a, "vcard:hasEmail", 2))
|
|
199
247
|
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
200
|
-
|
|
201
|
-
|
|
248
|
+
l.value[2].show ? (d(), c("div", de, [
|
|
249
|
+
u(m(g), {
|
|
202
250
|
size: 16,
|
|
203
251
|
weight: "fill"
|
|
204
252
|
}),
|
|
205
|
-
|
|
206
|
-
])) :
|
|
253
|
+
s("span", ue, r(l.value[2].message), 1)
|
|
254
|
+
])) : h("", !0)
|
|
207
255
|
]),
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
"model-value":
|
|
256
|
+
s("div", pe, [
|
|
257
|
+
u(P, {
|
|
258
|
+
"model-value": o.value[0]["vcard:hasTelephone"],
|
|
211
259
|
"add-on-text": !1,
|
|
212
260
|
"date-picker": !1,
|
|
213
261
|
"info-icon": !1,
|
|
@@ -219,28 +267,28 @@ const N = { class: "dpiV3InnerComponentWrap" }, A = { class: "copy-large-regular
|
|
|
219
267
|
"initial-hint-text": !1,
|
|
220
268
|
label: e.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
|
|
221
269
|
"show-end-icon": !1,
|
|
222
|
-
"show-error":
|
|
223
|
-
"onUpdate:modelValue":
|
|
270
|
+
"show-error": l.value[3].show,
|
|
271
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => p(a, "vcard:hasTelephone", 3))
|
|
224
272
|
}, null, 8, ["model-value", "placeholder", "label", "show-error"]),
|
|
225
|
-
|
|
226
|
-
|
|
273
|
+
l.value[3].show ? (d(), c("div", fe, [
|
|
274
|
+
u(m(g), {
|
|
227
275
|
size: 16,
|
|
228
276
|
weight: "fill"
|
|
229
277
|
}),
|
|
230
|
-
|
|
231
|
-
])) :
|
|
278
|
+
s("span", me, r(l.value[3].message), 1)
|
|
279
|
+
])) : h("", !0)
|
|
232
280
|
]),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
281
|
+
s("div", ve, r(e.$t("message.dataupload.datasets.dcat:contactPoint.descriptionBottom")), 1),
|
|
282
|
+
o.value.find((a) => a.isValid === !1) ? (d(), c("div", he, [
|
|
283
|
+
u(m(g), {
|
|
236
284
|
size: 16,
|
|
237
285
|
weight: "fill"
|
|
238
286
|
}),
|
|
239
|
-
|
|
240
|
-
])) :
|
|
287
|
+
t[3] || (t[3] = s("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
|
|
288
|
+
])) : h("", !0)
|
|
241
289
|
]));
|
|
242
290
|
}
|
|
243
|
-
},
|
|
291
|
+
}, Ce = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-d3761ff9"]]);
|
|
244
292
|
export {
|
|
245
|
-
|
|
293
|
+
Ce as default
|
|
246
294
|
};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { computed as g, ref as
|
|
2
|
-
import
|
|
1
|
+
import { computed as g, ref as s, getCurrentInstance as h, onMounted as x, createElementBlock as o, openBlock as r, createElementVNode as l, createCommentVNode as y, Fragment as V, renderList as C, unref as d, createBlock as D, createVNode as I } from "vue";
|
|
2
|
+
import k from "../HappyFlowComponents/ui/Chip.vue.js";
|
|
3
3
|
import { getDatasetCategories as E } from "../HappyFlowComponents/services/dpiV3_apis.js";
|
|
4
|
-
import { PhWarning as
|
|
4
|
+
import { PhWarning as P } from "@phosphor-icons/vue";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
import { useDpiContext as
|
|
8
|
-
const
|
|
6
|
+
import z from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
import { useDpiContext as U } from "../composables/useDpiContext.js";
|
|
8
|
+
const w = { class: "dpiV3_findabilityWrap" }, B = { class: "dpiV3_findabilityThemesWrap" }, R = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "dpiV3_errormsgWrapper"
|
|
11
|
-
},
|
|
11
|
+
}, S = {
|
|
12
12
|
__name: "DiscoverabilityPage",
|
|
13
13
|
props: {
|
|
14
14
|
context: Object
|
|
15
15
|
},
|
|
16
16
|
setup(u) {
|
|
17
|
-
const c =
|
|
18
|
-
var
|
|
19
|
-
return !!((
|
|
17
|
+
const c = U(), f = g(() => {
|
|
18
|
+
var e;
|
|
19
|
+
return !!((e = c.value.edit) != null && e.enabled);
|
|
20
20
|
});
|
|
21
|
-
let
|
|
22
|
-
|
|
21
|
+
let n = s([]), v = h().appContext.app.config.globalProperties.$env, i = s([{ isValid: "unset" }]);
|
|
22
|
+
s(["this is a secret"]);
|
|
23
23
|
const p = u;
|
|
24
24
|
f.value || p.context.node.input(i);
|
|
25
|
-
const
|
|
25
|
+
const m = async () => {
|
|
26
26
|
try {
|
|
27
|
-
|
|
28
|
-
} catch (
|
|
29
|
-
console.log(
|
|
27
|
+
n.value = await E(v.api.baseUrl), n.value = n.value.filter((e) => e.id !== "OP_DATPRO"), n.value.sort((e, a) => e.pref_label.de.localeCompare(a.pref_label.de));
|
|
28
|
+
} catch (e) {
|
|
29
|
+
console.log(e);
|
|
30
30
|
}
|
|
31
|
-
}, _ = (
|
|
32
|
-
i.value.find((
|
|
31
|
+
}, _ = (e) => {
|
|
32
|
+
i.value.find((t) => t.id === e.id) ? i.value = i.value.filter((t) => t.id !== e.id) : i.value.push({ id: e.id, uri: e.resource, label: e.pref_label.de }), i.value.length > 1 ? i.value.find((t) => t.isValid = !0) : i.value.find((t) => t.isValid = !1), p.context.node.input(i);
|
|
33
33
|
};
|
|
34
34
|
return x(() => {
|
|
35
|
-
|
|
36
|
-
}), (
|
|
37
|
-
a[1] || (a[1] =
|
|
38
|
-
a[2] || (a[2] =
|
|
39
|
-
|
|
40
|
-
(
|
|
35
|
+
m();
|
|
36
|
+
}), (e, a) => (r(), o("div", w, [
|
|
37
|
+
a[1] || (a[1] = l("h4", { class: "dpiV3_title" }, "Machen Sie Ihren Datensatz leicht auffindbar", -1)),
|
|
38
|
+
a[2] || (a[2] = l("span", null, "Um sicherzustellen, dass Ihr Datensatz für andere leicht zu finden ist, wählen Sie die relevanten Kategorien aus.", -1)),
|
|
39
|
+
l("div", B, [
|
|
40
|
+
(r(!0), o(V, null, C(d(n), (t, b) => (r(), D(k, {
|
|
41
41
|
key: b,
|
|
42
|
-
text:
|
|
43
|
-
data: { "@value":
|
|
42
|
+
text: t.pref_label.de,
|
|
43
|
+
data: { "@value": t.value, URI: t.URI },
|
|
44
44
|
setup: { "@type": "select", "@inTable": !1, "@findability": !0 },
|
|
45
|
-
onClick: (
|
|
45
|
+
onClick: (T) => _(t)
|
|
46
46
|
}, null, 8, ["text", "data", "onClick"]))), 128))
|
|
47
47
|
]),
|
|
48
|
-
d(i).find((
|
|
49
|
-
|
|
48
|
+
d(i).find((t) => t.isValid === !1) ? (r(), o("div", R, [
|
|
49
|
+
I(d(P), {
|
|
50
50
|
size: 16,
|
|
51
51
|
weight: "fill"
|
|
52
52
|
}),
|
|
53
|
-
a[0] || (a[0] =
|
|
53
|
+
a[0] || (a[0] = l("span", { class: "copy-mini-regular" }, "Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren.", -1))
|
|
54
54
|
])) : y("", !0)
|
|
55
55
|
]));
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, $ = /* @__PURE__ */ z(S, [["__scopeId", "data-v-3535550a"]]);
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
$ as default
|
|
60
60
|
};
|