@piveau/dpi 0.1.0-beta.39 → 0.1.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +393 -314
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +105 -69
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +95 -57
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +83 -55
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +116 -75
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +145 -124
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +41 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +123 -108
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +440 -258
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +37 -32
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +6 -6
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/data-provider-interface/components/DistLicense.vue.js +224 -133
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +401 -396
- package/dist/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/data-provider-interface/components/VisibilityPage.vue.js +86 -0
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +128 -118
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +40 -28
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +4 -0
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +1 -1
- package/dist/data-provider-interface/views/InputPage.vue.js +421 -767
- package/dist/form/inputDefinitions.js +15 -10
- package/package.json +2 -2
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { filterGeocodingURIs as
|
|
3
|
-
import
|
|
1
|
+
import { ref as o, getCurrentInstance as _, resolveComponent as x, createElementBlock as C, openBlock as h, createVNode as i, withCtx as m, unref as f } from "vue";
|
|
2
|
+
import { filterGeocodingURIs as y } from "../../services/dpiV3_apis.js";
|
|
3
|
+
import A from "../Dropdown.vue.js";
|
|
4
4
|
import T from "../../../components/TempResPageInModal.vue.js";
|
|
5
5
|
import "@formkit/core";
|
|
6
6
|
import { useFormValues as w } from "../../../composables/useDpiFormValues.js";
|
|
7
|
-
const
|
|
7
|
+
const O = { class: "dpiV3_innerRapModalWrapper" }, S = {
|
|
8
8
|
__name: "CoverageModal",
|
|
9
9
|
props: {
|
|
10
10
|
context: Object,
|
|
11
11
|
newValues: Object
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
var
|
|
15
|
-
|
|
13
|
+
setup(v, { expose: g }) {
|
|
14
|
+
var r, s;
|
|
15
|
+
const l = o(null);
|
|
16
|
+
let n = o([]), V = _().appContext.app.config.globalProperties.$env, d;
|
|
16
17
|
const { formValues: e } = w();
|
|
17
|
-
((
|
|
18
|
+
((s = (r = e.value.Covering) == null ? void 0 : r["dcat:temporalResolution"]) == null ? void 0 : s["dct:temporal"]) === void 0 && (e.value.Covering["dcat:temporalResolution"] = {
|
|
18
19
|
isValid: !0,
|
|
19
20
|
type: "dct:PeriodOfTime",
|
|
20
21
|
"dct:temporal": [
|
|
@@ -24,7 +25,7 @@ const y = { class: "dpiV3_innerRapModalWrapper" }, M = {
|
|
|
24
25
|
"dcat:endDate": ""
|
|
25
26
|
}
|
|
26
27
|
]
|
|
27
|
-
}),
|
|
28
|
+
}), o(), o({
|
|
28
29
|
"dcatde:politicalGeocodingURI": [
|
|
29
30
|
{
|
|
30
31
|
isValid: !0,
|
|
@@ -48,37 +49,39 @@ const y = { class: "dpiV3_innerRapModalWrapper" }, M = {
|
|
|
48
49
|
}
|
|
49
50
|
]
|
|
50
51
|
}), console.log(e), console.log({});
|
|
51
|
-
const
|
|
52
|
+
const b = (t, a) => {
|
|
52
53
|
e.value.Covering[Object.keys(e.value.Covering)[0]] = [
|
|
53
54
|
{
|
|
54
55
|
isValid: !0,
|
|
55
56
|
uri: t.resource,
|
|
56
57
|
id: t.id,
|
|
57
58
|
label: t.alt_label.de,
|
|
58
|
-
inVoc:
|
|
59
|
+
inVoc: a
|
|
59
60
|
}
|
|
60
61
|
], e.value.Additionals["dct:spatial"] === void 0 ? (e.value.Additionals["dct:spatial"] = [], e.value.Additionals["dct:spatial"].push({ "@id": t.resource })) : e.value.Additionals["dct:spatial"].push({ "@id": t.resource });
|
|
61
|
-
},
|
|
62
|
-
clearTimeout(
|
|
62
|
+
}, I = async (t) => {
|
|
63
|
+
clearTimeout(d), d = setTimeout(async () => {
|
|
63
64
|
if (t !== "")
|
|
64
65
|
try {
|
|
65
|
-
console.log(t),
|
|
66
|
-
} catch (
|
|
67
|
-
console.log(
|
|
66
|
+
console.log(t), n.value = await y(t, V.api.baseUrl);
|
|
67
|
+
} catch (a) {
|
|
68
|
+
console.log(a);
|
|
68
69
|
}
|
|
69
70
|
}, 500);
|
|
70
71
|
};
|
|
71
|
-
return (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
return g({
|
|
73
|
+
validateAllItems: () => l.value && l.value.validateAllItems ? l.value.validateAllItems() : !1
|
|
74
|
+
}), (t, a) => {
|
|
75
|
+
const c = x("innerRapModalItem");
|
|
76
|
+
return h(), C("div", O, [
|
|
77
|
+
i(c, null, {
|
|
78
|
+
default: m(() => {
|
|
79
|
+
var u, p;
|
|
77
80
|
return [
|
|
78
|
-
|
|
81
|
+
i(A, {
|
|
79
82
|
dropdownWidth: "large",
|
|
80
83
|
type: "inputField",
|
|
81
|
-
onInput:
|
|
84
|
+
onInput: a[0] || (a[0] = (R) => I(R)),
|
|
82
85
|
inputFieldProps: {
|
|
83
86
|
addOnText: !1,
|
|
84
87
|
initialHintText: !1,
|
|
@@ -92,20 +95,22 @@ const y = { class: "dpiV3_innerRapModalWrapper" }, M = {
|
|
|
92
95
|
inputFieldSize: "large",
|
|
93
96
|
autocomplete: "true"
|
|
94
97
|
},
|
|
95
|
-
onValueSent:
|
|
96
|
-
data:
|
|
98
|
+
onValueSent: b,
|
|
99
|
+
data: f(n),
|
|
97
100
|
multi: "true",
|
|
98
101
|
autocomplete: !0,
|
|
99
|
-
modelValue: (p = (
|
|
102
|
+
modelValue: (p = (u = f(e).Covering) == null ? void 0 : u["dcatde:politicalGeocodingURI"]) == null ? void 0 : p[0].label
|
|
100
103
|
}, null, 8, ["data", "modelValue"])
|
|
101
104
|
];
|
|
102
105
|
}),
|
|
103
106
|
_: 1
|
|
104
107
|
}),
|
|
105
|
-
|
|
106
|
-
default:
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
i(c, null, {
|
|
109
|
+
default: m(() => [
|
|
110
|
+
i(T, {
|
|
111
|
+
ref_key: "tempResPageRef",
|
|
112
|
+
ref: l,
|
|
113
|
+
context: v.context,
|
|
109
114
|
inRap: !0,
|
|
110
115
|
class: "dpiV3_tempresCard"
|
|
111
116
|
}, null, 8, ["context"])
|
|
@@ -117,5 +122,5 @@ const y = { class: "dpiV3_innerRapModalWrapper" }, M = {
|
|
|
117
122
|
}
|
|
118
123
|
};
|
|
119
124
|
export {
|
|
120
|
-
|
|
125
|
+
S as default
|
|
121
126
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as a, getCurrentInstance as
|
|
1
|
+
import { ref as a, getCurrentInstance as B, onMounted as k, resolveComponent as R, createElementBlock as T, openBlock as E, createVNode as m, withCtx as F, unref as c, isRef as N } from "vue";
|
|
2
2
|
import { getLicenses as O } from "../../services/dpiV3_apis.js";
|
|
3
3
|
import j from "../Dropdown.vue.js";
|
|
4
4
|
import A from "../../../components/DistributionSimplePage.vue.js";
|
|
@@ -14,7 +14,7 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
|
14
14
|
setup(M) {
|
|
15
15
|
a();
|
|
16
16
|
let f = a("");
|
|
17
|
-
a([]),
|
|
17
|
+
a([]), B().appContext.app.config.globalProperties.$env;
|
|
18
18
|
let s = a([]);
|
|
19
19
|
const { formValues: r } = H(), v = a("");
|
|
20
20
|
let y = a(!1), b = a({ 1: !1, 2: !1 });
|
|
@@ -33,7 +33,7 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
|
33
33
|
).label), !u && e !== "" ? (v.value = "Bitte wählen Sie eine gültige Lizenz aus der Liste", b.value[l] = !1, o.value[0].isValid = !1) : (v.value = "", y.value = e !== "", e !== "" ? (b.value[l] = !0, e !== "" && b.value[2] && (o.value[0].isValid = !0)) : (b.value[l] = !1, o.value[0].isValid = !1), o.value = o.value.map((i) => t in i ? { ...i, [t]: e, uri: n, title: p } : i)), console.log(r.value.DistributionSimple), r.value.DistributionSimple["dct:license"] = o.value;
|
|
34
34
|
};
|
|
35
35
|
return k(async () => {
|
|
36
|
-
const t =
|
|
36
|
+
const t = B().appContext.app.config.globalProperties.$env;
|
|
37
37
|
try {
|
|
38
38
|
const l = await O(t.api.baseUrl);
|
|
39
39
|
s.value = l.map((n) => ({
|
|
@@ -49,7 +49,7 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
|
49
49
|
return E(), T("div", W, [
|
|
50
50
|
m(l, null, {
|
|
51
51
|
default: F(() => {
|
|
52
|
-
var n, u, p, i, V, h, w,
|
|
52
|
+
var n, u, p, i, V, D, h, w, I, x, L, z, C, S;
|
|
53
53
|
return [
|
|
54
54
|
m(j, {
|
|
55
55
|
"onUpdate:modelValue": [
|
|
@@ -68,7 +68,7 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
|
68
68
|
preIcon: !1,
|
|
69
69
|
label: "Lizenz",
|
|
70
70
|
dropdown_dpiV3: !0,
|
|
71
|
-
placeholder: ((V = (i = (p = (u = (n = c(r).DistributionSimple) == null ? void 0 : n["dcat:distribution"]) == null ? void 0 : u[0]) == null ? void 0 : p["dct:license"]) == null ? void 0 : i[0]) == null ? void 0 : V["dcterms:license"]) || ((
|
|
71
|
+
placeholder: ((V = (i = (p = (u = (n = c(r).DistributionSimple) == null ? void 0 : n["dcat:distribution"]) == null ? void 0 : u[0]) == null ? void 0 : p["dct:license"]) == null ? void 0 : i[0]) == null ? void 0 : V["dcterms:license"]) || ((w = (h = (D = c(r).DistributionSimple) == null ? void 0 : D["dct:license"]) == null ? void 0 : h[0]) == null ? void 0 : w["dcterms:license"]) || "Lizenz wählen...",
|
|
72
72
|
inputFieldSize: "large",
|
|
73
73
|
defaultInput: !0,
|
|
74
74
|
showError: !1
|
|
@@ -86,7 +86,7 @@ const W = { class: "dpiV3_innerRapModalWrapper" }, Y = {
|
|
|
86
86
|
initialHintText: !0,
|
|
87
87
|
"supporting-hint-message": "Dieser Namensnennungstext stellt sicher, dass die Lizenzbedingungen eingehalten werden.",
|
|
88
88
|
showEndIcon: !1,
|
|
89
|
-
placeholder: ((L = (
|
|
89
|
+
placeholder: ((L = (x = (I = c(r).DistributionSimple) == null ? void 0 : I["dcat:distribution"]) == null ? void 0 : x[0]) == null ? void 0 : L["dcatde:licenseAttributionByText"]) || ((S = (C = (z = c(r).DistributionSimple) == null ? void 0 : z["dct:license"]) == null ? void 0 : C[0]) == null ? void 0 : S.attribution) || "Nennung des Datenbereitstellers",
|
|
90
90
|
modelValue: o.value[0].attribution,
|
|
91
91
|
"onUpdate:modelValue": t[2] || (t[2] = (d) => o.value[0].attribution = d)
|
|
92
92
|
}, null, 8, ["label", "placeholder", "modelValue"])
|
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js
CHANGED
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
import { mergeModels as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { PhWarning as
|
|
1
|
+
import { mergeModels as A, ref as R, getCurrentInstance as z, useModel as H, computed as N, watch as o, createElementBlock as u, openBlock as c, createElementVNode as l, createVNode as s, createCommentVNode as d, unref as h, toDisplayString as n } from "vue";
|
|
2
|
+
import p from "../InputField.vue.js";
|
|
3
|
+
import x from "../TextAreaV3.vue.js";
|
|
4
|
+
import { PhWarning as m } from "@phosphor-icons/vue";
|
|
5
5
|
import "@formkit/core";
|
|
6
6
|
import "@formkit/vue";
|
|
7
|
-
import { useFormValues as
|
|
7
|
+
import { useFormValues as D } from "../../../composables/useDpiFormValues.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import F from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const L = { class: "dpiV3_innerRapModalWrapper" }, O = { class: "dpiV3_innerRapModalWrapper__section" }, Z = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "dpiV3_field_error_text"
|
|
13
|
-
},
|
|
13
|
+
}, j = { class: "copy-mini-regular" }, q = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "dpiV3_field_error_text"
|
|
16
|
-
},
|
|
16
|
+
}, G = { class: "copy-mini-regular" }, J = { class: "dpiV3_innerRapModalWrapper__section" }, K = { class: "headline-5 gap3BottomAsMargin" }, Q = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "dpiV3_field_error_text"
|
|
19
|
-
},
|
|
19
|
+
}, X = { class: "copy-mini-regular" }, Y = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "dpiV3_field_error_text"
|
|
22
|
-
},
|
|
22
|
+
}, ee = { class: "copy-mini-regular" }, te = {
|
|
23
23
|
key: 2,
|
|
24
24
|
class: "dpiV3_field_error_text"
|
|
25
|
-
},
|
|
25
|
+
}, re = { class: "copy-mini-regular" }, ae = { class: "dpiV3_innerRapModalWrapper__section" }, se = { class: "headline-5 gap3BottomAsMargin" }, le = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "dpiV3_field_error_text"
|
|
28
|
-
},
|
|
28
|
+
}, ie = { class: "copy-mini-regular" }, oe = {
|
|
29
|
+
key: 1,
|
|
30
|
+
class: "dpiV3_field_error_text"
|
|
31
|
+
}, ne = { class: "copy-mini-regular" }, ue = {
|
|
32
|
+
key: 2,
|
|
33
|
+
class: "dpiV3_field_error_text"
|
|
34
|
+
}, ce = { class: "copy-mini-regular" }, de = {
|
|
29
35
|
__name: "EssentialsModal",
|
|
30
|
-
props: /* @__PURE__ */
|
|
36
|
+
props: /* @__PURE__ */ A({
|
|
31
37
|
context: Object,
|
|
32
38
|
newValues: Object
|
|
33
39
|
}, {
|
|
@@ -52,69 +58,90 @@ const H = { class: "dpiV3_innerRapModalWrapper" }, z = { class: "dpiV3_innerRapM
|
|
|
52
58
|
publisherMailErrorMessage: "",
|
|
53
59
|
showErrorPublisherWebsite: !1,
|
|
54
60
|
publisherWebsiteErrorMessage: "",
|
|
61
|
+
showErrorContactPointName: !1,
|
|
62
|
+
contactPointNameErrorMessage: "",
|
|
55
63
|
showErrorContactPointMail: !1,
|
|
56
|
-
contactPointMailErrorMessage: ""
|
|
64
|
+
contactPointMailErrorMessage: "",
|
|
65
|
+
showErrorContactPointPhone: !1,
|
|
66
|
+
contactPointPhoneErrorMessage: ""
|
|
57
67
|
} },
|
|
58
68
|
modelModifiers: {}
|
|
59
69
|
}),
|
|
60
70
|
emits: ["update:modelValue"],
|
|
61
|
-
setup(
|
|
62
|
-
|
|
63
|
-
const { formValues:
|
|
64
|
-
if (!
|
|
71
|
+
setup(I, { expose: W }) {
|
|
72
|
+
R([]), z().appContext.app.config.globalProperties.$env;
|
|
73
|
+
const { formValues: he } = D(), e = H(I, "modelValue"), b = (t) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim()), M = (t) => {
|
|
74
|
+
if (!t || t.trim() === "")
|
|
75
|
+
return !0;
|
|
76
|
+
const r = t.replace(/[\s\-().]/g, "");
|
|
77
|
+
if (!/^[+]?\d+$/.test(r))
|
|
78
|
+
return !1;
|
|
79
|
+
const a = r.replace(/\D/g, "");
|
|
80
|
+
return a.length >= 6 && a.length <= 15;
|
|
81
|
+
}, E = (t) => !t || !t.trim() ? !1 : t.trim().length >= 2, f = (t) => {
|
|
65
82
|
try {
|
|
66
|
-
const
|
|
67
|
-
return new URL(
|
|
83
|
+
const r = t.trim(), a = r.startsWith("http://") || r.startsWith("https://") ? r : `https://${r}`;
|
|
84
|
+
return new URL(a), !0;
|
|
68
85
|
} catch {
|
|
69
86
|
return !1;
|
|
70
87
|
}
|
|
71
|
-
},
|
|
72
|
-
switch (
|
|
88
|
+
}, g = (t) => !t || !t.trim() ? !1 : /[a-zA-Z0-9]/.test(t.trim()), v = (t) => t && t.trim().length > 0, i = (t, r) => {
|
|
89
|
+
switch (t) {
|
|
73
90
|
case "title":
|
|
74
|
-
return
|
|
91
|
+
return g(r) ? (e.value.showErrorTitle = !1, e.value.titleErrorMessage = "", !0) : (e.value.showErrorTitle = !0, e.value.titleErrorMessage = "Bitte geben Sie einen Titel ein, bevor Sie fortfahren.", !1);
|
|
75
92
|
case "description":
|
|
76
|
-
return
|
|
93
|
+
return v(r) ? (e.value.showErrorDescription = !1, e.value.descriptionErrorMessage = "", !0) : (e.value.showErrorDescription = !0, e.value.descriptionErrorMessage = "Bitte geben Sie eine Beschreibung ein, bevor Sie fortfahren.", !1);
|
|
94
|
+
case "publisherMail":
|
|
95
|
+
return r && r.trim() && !b(r) ? (e.value.showErrorPublisherMail = !0, e.value.publisherMailErrorMessage = "Bitte geben Sie eine gültige E-Mail-Adresse ein.", !1) : (e.value.showErrorPublisherMail = !1, e.value.publisherMailErrorMessage = "", !0);
|
|
96
|
+
case "publisherWebsite":
|
|
97
|
+
return r && r.trim() && !f(r) ? (e.value.showErrorPublisherWebsite = !0, e.value.publisherWebsiteErrorMessage = "Bitte geben Sie eine gültige URL ein.", !1) : (e.value.showErrorPublisherWebsite = !1, e.value.publisherWebsiteErrorMessage = "", !0);
|
|
77
98
|
case "publisherName":
|
|
78
|
-
return
|
|
99
|
+
return g(r) ? (e.value.showErrorPublisherName = !1, e.value.publisherNameErrorMessage = "", !0) : (e.value.showErrorPublisherName = !0, e.value.publisherNameErrorMessage = "Publisher-Name ist erforderlich und muss mindestens ein alphanumerisches Zeichen enthalten.", !1);
|
|
79
100
|
case "publisherMail":
|
|
80
|
-
return
|
|
101
|
+
return r && r.trim() && !b(r) ? (e.value.showErrorPublisherMail = !0, e.value.publisherMailErrorMessage = "Ungültige E-Mail-Adresse.", !1) : (e.value.showErrorPublisherMail = !1, e.value.publisherMailErrorMessage = "", !0);
|
|
81
102
|
case "publisherWebsite":
|
|
82
|
-
return
|
|
103
|
+
return r && r.trim() && !f(r) ? (e.value.showErrorPublisherWebsite = !0, e.value.publisherWebsiteErrorMessage = "Ungültige Website-URL.", !1) : (e.value.showErrorPublisherWebsite = !1, e.value.publisherWebsiteErrorMessage = "", !0);
|
|
104
|
+
case "contactPointName":
|
|
105
|
+
return E(r) ? (e.value.showErrorContactPointName = !1, e.value.contactPointNameErrorMessage = "", !0) : (e.value.showErrorContactPointName = !0, e.value.contactPointNameErrorMessage = "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen).", !1);
|
|
83
106
|
case "contactPointMail":
|
|
84
|
-
return
|
|
107
|
+
return r && r.trim() && !b(r) ? (e.value.showErrorContactPointMail = !0, e.value.contactPointMailErrorMessage = "Bitte geben Sie eine gültige E-Mail-Adresse ein.", !1) : (e.value.showErrorContactPointMail = !1, e.value.contactPointMailErrorMessage = "", !0);
|
|
108
|
+
case "contactPointPhone":
|
|
109
|
+
return r && r.trim() && !M(r) ? (e.value.showErrorContactPointPhone = !0, e.value.contactPointPhoneErrorMessage = "Bitte geben Sie eine gültige Telefonnummer ein.", !1) : (e.value.showErrorContactPointPhone = !1, e.value.contactPointPhoneErrorMessage = "", !0);
|
|
85
110
|
default:
|
|
86
111
|
return !0;
|
|
87
112
|
}
|
|
88
|
-
},
|
|
89
|
-
var
|
|
90
|
-
const
|
|
91
|
-
return r &&
|
|
113
|
+
}, C = N(() => {
|
|
114
|
+
var P, w, V, _;
|
|
115
|
+
const t = g(e.value.title), r = v(e.value.description), a = g(e.value.publisherName), y = !((P = e.value.publisherMail) != null && P.trim()) || b(e.value.publisherMail), B = !((w = e.value.publisherWebsite) != null && w.trim()) || f(e.value.publisherWebsite), S = E(e.value.contactPointName), U = !((V = e.value.contactPointMail) != null && V.trim()) || b(e.value.contactPointMail), k = !((_ = e.value.contactPointPhone) != null && _.trim()) || M(e.value.contactPointPhone);
|
|
116
|
+
return t && r && a && y && B && S && U && k;
|
|
92
117
|
});
|
|
93
|
-
|
|
94
|
-
const
|
|
95
|
-
title: !
|
|
96
|
-
description: !
|
|
97
|
-
publisherName: !
|
|
98
|
-
publisherMail: e.value.publisherMail && e.value.publisherMail.trim() && !
|
|
99
|
-
publisherWebsite: e.value.publisherWebsite && e.value.publisherWebsite.trim() && !
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
118
|
+
o(() => e.value.title, (t) => i("title", t)), o(() => e.value.description, (t) => i("description", t)), o(() => e.value.publisherName, (t) => i("publisherName", t)), o(() => e.value.publisherMail, (t) => i("publisherMail", t)), o(() => e.value.publisherWebsite, (t) => i("publisherWebsite", t)), o(() => e.value.contactPointMail, (t) => i("contactPointMail", t)), o(() => e.value.contactPointName, (t) => i("contactPointName", t)), o(() => e.value.contactPointMail, (t) => i("contactPointMail", t)), o(() => e.value.contactPointPhone, (t) => i("contactPointPhone", t));
|
|
119
|
+
const T = N(() => ({
|
|
120
|
+
title: !g(e.value.title),
|
|
121
|
+
description: !v(e.value.description),
|
|
122
|
+
publisherName: !g(e.value.publisherName),
|
|
123
|
+
publisherMail: e.value.publisherMail && e.value.publisherMail.trim() && !b(e.value.publisherMail),
|
|
124
|
+
publisherWebsite: e.value.publisherWebsite && e.value.publisherWebsite.trim() && !f(e.value.publisherWebsite),
|
|
125
|
+
contactPointName: !E(e.value.contactPointName),
|
|
126
|
+
// Now always validated
|
|
127
|
+
contactPointMail: e.value.contactPointMail && e.value.contactPointMail.trim() && !b(e.value.contactPointMail)
|
|
128
|
+
})), $ = () => {
|
|
129
|
+
const t = [];
|
|
130
|
+
return e.value.showErrorTitle && t.push(e.value.titleErrorMessage), e.value.showErrorDescription && t.push(e.value.descriptionErrorMessage), e.value.showErrorPublisherName && t.push(e.value.publisherNameErrorMessage), e.value.showErrorPublisherMail && t.push(e.value.publisherMailErrorMessage), e.value.showErrorPublisherWebsite && t.push(e.value.publisherWebsiteErrorMessage), e.value.showErrorContactPointName && t.push(e.value.contactPointNameErrorMessage), e.value.showErrorContactPointMail && t.push(e.value.contactPointMailErrorMessage), e.value.showErrorContactPointPhone && t.push(e.value.contactPointPhoneErrorMessage), t.length > 0 ? t : ["Bitte füllen Sie alle erforderlichen Felder korrekt aus."];
|
|
104
131
|
};
|
|
105
|
-
return
|
|
106
|
-
}, { deep: !0 }),
|
|
107
|
-
isValid:
|
|
108
|
-
validationErrors:
|
|
109
|
-
getValidationErrorMessages:
|
|
110
|
-
validateField:
|
|
111
|
-
}), (
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
class: "
|
|
115
|
-
label:
|
|
132
|
+
return o(() => e.value, () => {
|
|
133
|
+
}, { deep: !0 }), W({
|
|
134
|
+
isValid: C,
|
|
135
|
+
validationErrors: T,
|
|
136
|
+
getValidationErrorMessages: $,
|
|
137
|
+
validateField: i
|
|
138
|
+
}), (t, r) => (c(), u("div", L, [
|
|
139
|
+
l("div", O, [
|
|
140
|
+
s(p, {
|
|
141
|
+
class: "",
|
|
142
|
+
label: t.$t("message.metadata.title"),
|
|
116
143
|
modelValue: e.value.title,
|
|
117
|
-
"onUpdate:modelValue":
|
|
144
|
+
"onUpdate:modelValue": r[0] || (r[0] = (a) => e.value.title = a),
|
|
118
145
|
placeholder: "",
|
|
119
146
|
infoIcon: !1,
|
|
120
147
|
preIcon: !1,
|
|
@@ -122,142 +149,172 @@ const H = { class: "dpiV3_innerRapModalWrapper" }, z = { class: "dpiV3_innerRapM
|
|
|
122
149
|
showEndIcon: !1,
|
|
123
150
|
showError: e.value.showErrorTitle
|
|
124
151
|
}, null, 8, ["label", "modelValue", "showError"]),
|
|
125
|
-
e.value.showErrorTitle && e.value.titleErrorMessage ? (
|
|
126
|
-
|
|
152
|
+
e.value.showErrorTitle && e.value.titleErrorMessage ? (c(), u("div", Z, [
|
|
153
|
+
s(h(m), {
|
|
127
154
|
size: 16,
|
|
128
155
|
weight: "fill"
|
|
129
156
|
}),
|
|
130
|
-
|
|
131
|
-
])) :
|
|
132
|
-
|
|
133
|
-
class: "
|
|
134
|
-
label:
|
|
157
|
+
l("span", j, n(e.value.titleErrorMessage), 1)
|
|
158
|
+
])) : d("", !0),
|
|
159
|
+
s(x, {
|
|
160
|
+
class: "",
|
|
161
|
+
label: t.$t("message.metadata.description"),
|
|
135
162
|
modelValue: e.value.description,
|
|
136
|
-
"onUpdate:modelValue":
|
|
163
|
+
"onUpdate:modelValue": r[1] || (r[1] = (a) => e.value.description = a)
|
|
137
164
|
}, null, 8, ["label", "modelValue"]),
|
|
138
|
-
e.value.showErrorDescription && e.value.descriptionErrorMessage ? (
|
|
139
|
-
|
|
165
|
+
e.value.showErrorDescription && e.value.descriptionErrorMessage ? (c(), u("div", q, [
|
|
166
|
+
s(h(m), {
|
|
140
167
|
size: 16,
|
|
141
168
|
weight: "fill"
|
|
142
169
|
}),
|
|
143
|
-
|
|
144
|
-
])) :
|
|
145
|
-
|
|
146
|
-
label:
|
|
170
|
+
l("span", G, n(e.value.descriptionErrorMessage), 1)
|
|
171
|
+
])) : d("", !0),
|
|
172
|
+
s(p, {
|
|
173
|
+
label: t.$t("message.dataupload.datasets.rap.essentials.modifiedHeader"),
|
|
147
174
|
infoIcon: !1,
|
|
148
175
|
preIcon: !1,
|
|
149
176
|
datePicker: !0,
|
|
150
177
|
showEndIcon: !1,
|
|
151
178
|
modelValue: e.value.modified,
|
|
152
|
-
"onUpdate:modelValue":
|
|
179
|
+
"onUpdate:modelValue": r[2] || (r[2] = (a) => e.value.modified = a),
|
|
153
180
|
defaultInput: !0,
|
|
154
181
|
inputType: "date",
|
|
155
182
|
initialHintText: !1
|
|
156
183
|
}, null, 8, ["label", "modelValue"])
|
|
157
184
|
]),
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
label:
|
|
185
|
+
l("div", J, [
|
|
186
|
+
l("h5", K, n(t.$t("message.metadata.publisher")), 1),
|
|
187
|
+
s(p, {
|
|
188
|
+
label: t.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
|
|
162
189
|
infoIcon: !1,
|
|
163
190
|
preIcon: !1,
|
|
191
|
+
placeholder: t.$t("message.dataupload.datasets.dct:publisher.nameInput.placeholder"),
|
|
164
192
|
initialHintText: !1,
|
|
165
193
|
showEndIcon: !1,
|
|
166
|
-
class: "
|
|
194
|
+
class: "",
|
|
167
195
|
modelValue: e.value.publisherName,
|
|
168
|
-
"onUpdate:modelValue":
|
|
196
|
+
"onUpdate:modelValue": r[3] || (r[3] = (a) => e.value.publisherName = a),
|
|
169
197
|
showError: e.value.showErrorPublisherName,
|
|
170
|
-
error_message: "
|
|
171
|
-
}, null, 8, ["label", "modelValue", "showError"]),
|
|
172
|
-
e.value.showErrorPublisherName && e.value.publisherNameErrorMessage ? (
|
|
173
|
-
|
|
198
|
+
error_message: "Bitte geben Sie einen gültigen Organisationsnamen ein."
|
|
199
|
+
}, null, 8, ["label", "placeholder", "modelValue", "showError"]),
|
|
200
|
+
e.value.showErrorPublisherName && e.value.publisherNameErrorMessage ? (c(), u("div", Q, [
|
|
201
|
+
s(h(m), {
|
|
174
202
|
size: 16,
|
|
175
203
|
weight: "fill"
|
|
176
204
|
}),
|
|
177
|
-
|
|
178
|
-
])) :
|
|
179
|
-
|
|
180
|
-
label:
|
|
205
|
+
l("span", X, n(e.value.publisherNameErrorMessage), 1)
|
|
206
|
+
])) : d("", !0),
|
|
207
|
+
s(p, {
|
|
208
|
+
label: t.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
|
|
209
|
+
placeholder: t.$t("message.dataupload.datasets.dct:publisher.mailInput.placeholder"),
|
|
181
210
|
infoIcon: !1,
|
|
182
211
|
preIcon: !1,
|
|
183
212
|
initialHintText: !1,
|
|
184
213
|
showEndIcon: !1,
|
|
185
|
-
class: "
|
|
214
|
+
class: "",
|
|
186
215
|
modelValue: e.value.publisherMail,
|
|
187
|
-
"onUpdate:modelValue":
|
|
216
|
+
"onUpdate:modelValue": r[4] || (r[4] = (a) => e.value.publisherMail = a),
|
|
188
217
|
showError: e.value.showErrorPublisherMail,
|
|
189
|
-
error_message: "
|
|
190
|
-
}, null, 8, ["label", "modelValue", "showError"]),
|
|
191
|
-
e.value.showErrorPublisherMail && e.value.publisherMailErrorMessage ? (
|
|
192
|
-
|
|
218
|
+
error_message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
|
|
219
|
+
}, null, 8, ["label", "placeholder", "modelValue", "showError"]),
|
|
220
|
+
e.value.showErrorPublisherMail && e.value.publisherMailErrorMessage ? (c(), u("div", Y, [
|
|
221
|
+
s(h(m), {
|
|
193
222
|
size: 16,
|
|
194
223
|
weight: "fill"
|
|
195
224
|
}),
|
|
196
|
-
|
|
197
|
-
])) :
|
|
198
|
-
|
|
199
|
-
label:
|
|
225
|
+
l("span", ee, n(e.value.publisherMailErrorMessage), 1)
|
|
226
|
+
])) : d("", !0),
|
|
227
|
+
s(p, {
|
|
228
|
+
label: t.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
|
|
229
|
+
placeholder: t.$t("message.dataupload.datasets.dct:publisher.websiteInput.placeholder"),
|
|
200
230
|
infoIcon: !1,
|
|
201
231
|
preIcon: !1,
|
|
202
232
|
initialHintText: !1,
|
|
203
233
|
showEndIcon: !1,
|
|
204
234
|
modelValue: e.value.publisherWebsite,
|
|
205
|
-
"onUpdate:modelValue":
|
|
235
|
+
"onUpdate:modelValue": r[5] || (r[5] = (a) => e.value.publisherWebsite = a),
|
|
206
236
|
showError: e.value.showErrorPublisherWebsite,
|
|
207
|
-
error_message: "
|
|
208
|
-
}, null, 8, ["label", "modelValue", "showError"]),
|
|
209
|
-
e.value.showErrorPublisherWebsite && e.value.publisherWebsiteErrorMessage ? (
|
|
210
|
-
|
|
237
|
+
error_message: "Bitte geben Sie eine gültige URL ein."
|
|
238
|
+
}, null, 8, ["label", "placeholder", "modelValue", "showError"]),
|
|
239
|
+
e.value.showErrorPublisherWebsite && e.value.publisherWebsiteErrorMessage ? (c(), u("div", te, [
|
|
240
|
+
s(h(m), {
|
|
211
241
|
size: 16,
|
|
212
242
|
weight: "fill"
|
|
213
243
|
}),
|
|
214
|
-
|
|
215
|
-
])) :
|
|
244
|
+
l("span", re, n(e.value.publisherWebsiteErrorMessage), 1)
|
|
245
|
+
])) : d("", !0)
|
|
216
246
|
]),
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
247
|
+
l("div", ae, [
|
|
248
|
+
l("h5", se, n(t.$t("message.header.subnav.contact")), 1),
|
|
249
|
+
s(p, {
|
|
220
250
|
modelValue: e.value.contactPointName,
|
|
221
|
-
"onUpdate:modelValue":
|
|
222
|
-
label:
|
|
251
|
+
"onUpdate:modelValue": r[6] || (r[6] = (a) => e.value.contactPointName = a),
|
|
252
|
+
label: t.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
|
|
253
|
+
placeholder: t.$t(
|
|
254
|
+
"message.dataupload.datasets.dcat:contactPoint.nameInput.placeholder"
|
|
255
|
+
),
|
|
223
256
|
infoIcon: !1,
|
|
224
257
|
preIcon: !1,
|
|
225
258
|
initialHintText: !1,
|
|
226
259
|
showEndIcon: !1,
|
|
227
|
-
class: "
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
260
|
+
class: "",
|
|
261
|
+
showError: e.value.showErrorContactPointName,
|
|
262
|
+
error_message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
|
|
263
|
+
}, null, 8, ["modelValue", "label", "placeholder", "showError"]),
|
|
264
|
+
e.value.showErrorContactPointName && e.value.contactPointNameErrorMessage ? (c(), u("div", le, [
|
|
265
|
+
s(h(m), {
|
|
266
|
+
size: 16,
|
|
267
|
+
weight: "fill"
|
|
268
|
+
}),
|
|
269
|
+
l("span", ie, n(e.value.contactPointNameErrorMessage), 1)
|
|
270
|
+
])) : d("", !0),
|
|
271
|
+
s(p, {
|
|
272
|
+
label: t.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
|
|
231
273
|
infoIcon: !1,
|
|
232
274
|
preIcon: !1,
|
|
233
|
-
initialHintText: !
|
|
275
|
+
initialHintText: !1,
|
|
276
|
+
placeholder: t.$t(
|
|
277
|
+
"message.dataupload.datasets.dcat:contactPoint.mailInput.placeholder"
|
|
278
|
+
),
|
|
234
279
|
showEndIcon: !1,
|
|
235
|
-
class: "
|
|
280
|
+
class: "",
|
|
236
281
|
modelValue: e.value.contactPointMail,
|
|
237
|
-
"onUpdate:modelValue":
|
|
282
|
+
"onUpdate:modelValue": r[7] || (r[7] = (a) => e.value.contactPointMail = a),
|
|
238
283
|
showError: e.value.showErrorContactPointMail,
|
|
239
|
-
error_message: "
|
|
240
|
-
}, null, 8, ["label", "modelValue", "showError"]),
|
|
241
|
-
e.value.showErrorContactPointMail && e.value.contactPointMailErrorMessage ? (
|
|
242
|
-
|
|
284
|
+
error_message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
|
|
285
|
+
}, null, 8, ["label", "placeholder", "modelValue", "showError"]),
|
|
286
|
+
e.value.showErrorContactPointMail && e.value.contactPointMailErrorMessage ? (c(), u("div", oe, [
|
|
287
|
+
s(h(m), {
|
|
243
288
|
size: 16,
|
|
244
289
|
weight: "fill"
|
|
245
290
|
}),
|
|
246
|
-
|
|
247
|
-
])) :
|
|
248
|
-
|
|
249
|
-
label:
|
|
291
|
+
l("span", ne, n(e.value.contactPointMailErrorMessage), 1)
|
|
292
|
+
])) : d("", !0),
|
|
293
|
+
s(p, {
|
|
294
|
+
label: t.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
|
|
250
295
|
infoIcon: !1,
|
|
296
|
+
placeholder: t.$t(
|
|
297
|
+
"message.dataupload.datasets.dcat:contactPoint.telInput.placeholder"
|
|
298
|
+
),
|
|
251
299
|
preIcon: !1,
|
|
252
300
|
initialHintText: !1,
|
|
253
301
|
showEndIcon: !1,
|
|
254
302
|
modelValue: e.value.contactPointPhone,
|
|
255
|
-
"onUpdate:modelValue":
|
|
256
|
-
|
|
303
|
+
"onUpdate:modelValue": r[8] || (r[8] = (a) => e.value.contactPointPhone = a),
|
|
304
|
+
showError: e.value.showErrorContactPointPhone,
|
|
305
|
+
error_message: "Bitte geben Sie eine gültige Telefonnummer ein."
|
|
306
|
+
}, null, 8, ["label", "placeholder", "modelValue", "showError"]),
|
|
307
|
+
e.value.showErrorContactPointPhone && e.value.contactPointPhoneErrorMessage ? (c(), u("div", ue, [
|
|
308
|
+
s(h(m), {
|
|
309
|
+
size: 16,
|
|
310
|
+
weight: "fill"
|
|
311
|
+
}),
|
|
312
|
+
l("span", ce, n(e.value.contactPointPhoneErrorMessage), 1)
|
|
313
|
+
])) : d("", !0)
|
|
257
314
|
])
|
|
258
315
|
]));
|
|
259
316
|
}
|
|
260
|
-
},
|
|
317
|
+
}, we = /* @__PURE__ */ F(de, [["__scopeId", "data-v-de07dd77"]]);
|
|
261
318
|
export {
|
|
262
|
-
|
|
319
|
+
we as default
|
|
263
320
|
};
|