@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.
Files changed (29) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +1 -1
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +393 -314
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +105 -69
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +95 -57
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +83 -55
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +116 -75
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +145 -124
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +41 -41
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +123 -108
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +440 -258
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +37 -32
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +6 -6
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  15. package/dist/data-provider-interface/components/ContactPage.vue.js +95 -89
  16. package/dist/data-provider-interface/components/DistLicense.vue.js +224 -133
  17. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +401 -396
  18. package/dist/data-provider-interface/components/HVDPage.vue.js +56 -55
  19. package/dist/data-provider-interface/components/PublisherPage.vue.js +94 -89
  20. package/dist/data-provider-interface/components/TempResPage.vue.js +122 -104
  21. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  22. package/dist/data-provider-interface/components/VisibilityPage.vue.js +86 -0
  23. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +128 -118
  24. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +40 -28
  25. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +4 -0
  26. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +1 -1
  27. package/dist/data-provider-interface/views/InputPage.vue.js +421 -767
  28. package/dist/form/inputDefinitions.js +15 -10
  29. package/package.json +2 -2
@@ -1,20 +1,21 @@
1
- import { ref as l, getCurrentInstance as _, resolveComponent as I, createElementBlock as R, openBlock as C, createVNode as a, withCtx as u, unref as m } from "vue";
2
- import { filterGeocodingURIs as h } from "../../services/dpiV3_apis.js";
3
- import x from "../Dropdown.vue.js";
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 y = { class: "dpiV3_innerRapModalWrapper" }, M = {
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(f) {
14
- var d, r;
15
- let i = l([]), g = _().appContext.app.config.globalProperties.$env, n;
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
- ((r = (d = e.value.Covering) == null ? void 0 : d["dcat:temporalResolution"]) == null ? void 0 : r["dct:temporal"]) === void 0 && (e.value.Covering["dcat:temporalResolution"] = {
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
- }), l(), l({
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 v = (t, o) => {
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: o
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
- }, V = async (t) => {
62
- clearTimeout(n), n = setTimeout(async () => {
62
+ }, I = async (t) => {
63
+ clearTimeout(d), d = setTimeout(async () => {
63
64
  if (t !== "")
64
65
  try {
65
- console.log(t), i.value = await h(t, g.api.baseUrl);
66
- } catch (o) {
67
- console.log(o);
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 (t, o) => {
72
- const c = I("innerRapModalItem");
73
- return C(), R("div", y, [
74
- a(c, null, {
75
- default: u(() => {
76
- var s, p;
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
- a(x, {
81
+ i(A, {
79
82
  dropdownWidth: "large",
80
83
  type: "inputField",
81
- onInput: o[0] || (o[0] = (b) => V(b)),
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: v,
96
- data: m(i),
98
+ onValueSent: b,
99
+ data: f(n),
97
100
  multi: "true",
98
101
  autocomplete: !0,
99
- modelValue: (p = (s = m(e).Covering) == null ? void 0 : s["dcatde:politicalGeocodingURI"]) == null ? void 0 : p[0].label
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
- a(c, null, {
106
- default: u(() => [
107
- a(T, {
108
- context: f.context,
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
- M as default
125
+ S as default
121
126
  };
@@ -1,4 +1,4 @@
1
- import { ref as a, getCurrentInstance as S, 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";
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([]), S().appContext.app.config.globalProperties.$env;
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 = S().appContext.app.config.globalProperties.$env;
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, D, x, I, L, C, z, B;
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"]) || ((D = (w = (h = c(r).DistributionSimple) == null ? void 0 : h["dct:license"]) == null ? void 0 : w[0]) == null ? void 0 : D["dcterms:license"]) || "Lizenz wählen...",
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 = (I = (x = c(r).DistributionSimple) == null ? void 0 : x["dcat:distribution"]) == null ? void 0 : I[0]) == null ? void 0 : L["dcatde:licenseAttributionByText"]) || ((B = (z = (C = c(r).DistributionSimple) == null ? void 0 : C["dct:license"]) == null ? void 0 : z[0]) == null ? void 0 : B.attribution) || "Namensnennungstext für By-Clauses",
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"])
@@ -1,33 +1,39 @@
1
- import { mergeModels as y, ref as $, getCurrentInstance as x, useModel as B, computed as P, watch as u, createElementBlock as d, openBlock as p, createElementVNode as t, createVNode as a, createCommentVNode as m, unref as b, toDisplayString as i } from "vue";
2
- import o from "../InputField.vue.js";
3
- import k from "../TextAreaV3.vue.js";
4
- import { PhWarning as f } from "@phosphor-icons/vue";
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 R } from "../../../composables/useDpiFormValues.js";
7
+ import { useFormValues as D } from "../../../composables/useDpiFormValues.js";
8
8
  /* empty css */
9
- import C from "../../../../_virtual/_plugin-vue_export-helper.js";
10
- const H = { class: "dpiV3_innerRapModalWrapper" }, z = { class: "dpiV3_innerRapModalWrapper__section" }, D = {
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
- }, F = { class: "copy-mini-regular" }, Z = {
13
+ }, j = { class: "copy-mini-regular" }, q = {
14
14
  key: 1,
15
15
  class: "dpiV3_field_error_text"
16
- }, L = { class: "copy-mini-regular" }, j = { class: "dpiV3_innerRapModalWrapper__section" }, O = { class: "headline-5 gap3BottomAsMargin" }, S = {
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
- }, q = { class: "copy-mini-regular" }, G = {
19
+ }, X = { class: "copy-mini-regular" }, Y = {
20
20
  key: 1,
21
21
  class: "dpiV3_field_error_text"
22
- }, J = { class: "copy-mini-regular" }, K = {
22
+ }, ee = { class: "copy-mini-regular" }, te = {
23
23
  key: 2,
24
24
  class: "dpiV3_field_error_text"
25
- }, Q = { class: "copy-mini-regular" }, X = { class: "dpiV3_innerRapModalWrapper__section" }, Y = { class: "headline-5 gap3BottomAsMargin" }, ee = {
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
- }, re = { class: "copy-mini-regular" }, se = {
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__ */ y({
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(V, { expose: _ }) {
62
- $([]), x().appContext.app.config.globalProperties.$env;
63
- const { formValues: le } = R(), e = B(V, "modelValue"), c = (r) => !r || !r.trim() ? !0 : /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r.trim()), v = (r) => {
64
- if (!r || !r.trim()) return !0;
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 s = r.trim(), l = s.startsWith("http://") || s.startsWith("https://") ? s : `https://${s}`;
67
- return new URL(l), !0;
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
- }, h = (r) => !r || !r.trim() ? !1 : /[a-zA-Z0-9]/.test(r.trim()), M = (r) => r && r.trim().length > 0, n = (r, s) => {
72
- switch (r) {
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 h(s) ? (e.value.showErrorTitle = !1, e.value.titleErrorMessage = "", !0) : (e.value.showErrorTitle = !0, e.value.titleErrorMessage = "Titel ist erforderlich und muss mindestens ein alphanumerisches Zeichen enthalten.", !1);
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 M(s) ? (e.value.showErrorDescription = !1, e.value.descriptionErrorMessage = "", !0) : (e.value.showErrorDescription = !0, e.value.descriptionErrorMessage = "Beschreibung ist erforderlich.", !1);
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 h(s) ? (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);
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 s && s.trim() && !c(s) ? (e.value.showErrorPublisherMail = !0, e.value.publisherMailErrorMessage = "Ungültige E-Mail-Adresse.", !1) : (e.value.showErrorPublisherMail = !1, e.value.publisherMailErrorMessage = "", !0);
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 s && s.trim() && !v(s) ? (e.value.showErrorPublisherWebsite = !0, e.value.publisherWebsiteErrorMessage = "Ungültige Website-URL.", !1) : (e.value.showErrorPublisherWebsite = !1, e.value.publisherWebsiteErrorMessage = "", !0);
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 s && s.trim() && !c(s) ? (e.value.showErrorContactPointMail = !0, e.value.contactPointMailErrorMessage = "Ungültige E-Mail-Adresse.", !1) : (e.value.showErrorContactPointMail = !1, e.value.contactPointMailErrorMessage = "", !0);
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
- }, I = P(() => {
89
- var g, E, w;
90
- const r = h(e.value.title), s = M(e.value.description), l = h(e.value.publisherName), U = !((g = e.value.publisherMail) != null && g.trim()) || c(e.value.publisherMail), T = !((E = e.value.publisherWebsite) != null && E.trim()) || v(e.value.publisherWebsite), A = !((w = e.value.contactPointMail) != null && w.trim()) || c(e.value.contactPointMail);
91
- return r && s && l && U && T && A;
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
- u(() => e.value.title, (r) => n("title", r)), u(() => e.value.description, (r) => n("description", r)), u(() => e.value.publisherName, (r) => n("publisherName", r)), u(() => e.value.publisherMail, (r) => n("publisherMail", r)), u(() => e.value.publisherWebsite, (r) => n("publisherWebsite", r)), u(() => e.value.contactPointMail, (r) => n("contactPointMail", r));
94
- const W = P(() => ({
95
- title: !h(e.value.title),
96
- description: !M(e.value.description),
97
- publisherName: !h(e.value.publisherName),
98
- publisherMail: e.value.publisherMail && e.value.publisherMail.trim() && !c(e.value.publisherMail),
99
- publisherWebsite: e.value.publisherWebsite && e.value.publisherWebsite.trim() && !v(e.value.publisherWebsite),
100
- contactPointMail: e.value.contactPointMail && e.value.contactPointMail.trim() && !c(e.value.contactPointMail)
101
- })), N = () => {
102
- const r = [];
103
- return e.value.showErrorTitle && r.push(e.value.titleErrorMessage), e.value.showErrorDescription && r.push(e.value.descriptionErrorMessage), e.value.showErrorPublisherName && r.push(e.value.publisherNameErrorMessage), e.value.showErrorPublisherMail && r.push(e.value.publisherMailErrorMessage), e.value.showErrorPublisherWebsite && r.push(e.value.publisherWebsiteErrorMessage), e.value.showErrorContactPointMail && r.push(e.value.contactPointMailErrorMessage), r.length > 0 ? r : ["Bitte füllen Sie alle erforderlichen Felder korrekt aus."];
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 u(() => e.value, () => {
106
- }, { deep: !0 }), _({
107
- isValid: I,
108
- validationErrors: W,
109
- getValidationErrorMessages: N,
110
- validateField: n
111
- }), (r, s) => (p(), d("div", H, [
112
- t("div", z, [
113
- a(o, {
114
- class: "gap5BottomAsMargin",
115
- label: r.$t("message.metadata.title"),
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": s[0] || (s[0] = (l) => e.value.title = l),
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 ? (p(), d("div", D, [
126
- a(b(f), {
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
- t("span", F, i(e.value.titleErrorMessage), 1)
131
- ])) : m("", !0),
132
- a(k, {
133
- class: "gap5BottomAsMargin",
134
- label: r.$t("message.metadata.description"),
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": s[1] || (s[1] = (l) => e.value.description = l)
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 ? (p(), d("div", Z, [
139
- a(b(f), {
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
- t("span", L, i(e.value.descriptionErrorMessage), 1)
144
- ])) : m("", !0),
145
- a(o, {
146
- label: r.$t("message.dataupload.datasets.rap.essentials.modifiedHeader"),
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": s[2] || (s[2] = (l) => e.value.modified = l),
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
- t("div", j, [
159
- t("h5", O, i(r.$t("message.metadata.publisher")), 1),
160
- a(o, {
161
- label: r.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
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: "gap5BottomAsMargin",
194
+ class: "",
167
195
  modelValue: e.value.publisherName,
168
- "onUpdate:modelValue": s[3] || (s[3] = (l) => e.value.publisherName = l),
196
+ "onUpdate:modelValue": r[3] || (r[3] = (a) => e.value.publisherName = a),
169
197
  showError: e.value.showErrorPublisherName,
170
- error_message: "Publisher-Name ist erforderlich und muss mindestens ein alphanumerisches Zeichen enthalten."
171
- }, null, 8, ["label", "modelValue", "showError"]),
172
- e.value.showErrorPublisherName && e.value.publisherNameErrorMessage ? (p(), d("div", S, [
173
- a(b(f), {
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
- t("span", q, i(e.value.publisherNameErrorMessage), 1)
178
- ])) : m("", !0),
179
- a(o, {
180
- label: r.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
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: "gap5BottomAsMargin",
214
+ class: "",
186
215
  modelValue: e.value.publisherMail,
187
- "onUpdate:modelValue": s[4] || (s[4] = (l) => e.value.publisherMail = l),
216
+ "onUpdate:modelValue": r[4] || (r[4] = (a) => e.value.publisherMail = a),
188
217
  showError: e.value.showErrorPublisherMail,
189
- error_message: "Ungültige E-Mail-Adresse."
190
- }, null, 8, ["label", "modelValue", "showError"]),
191
- e.value.showErrorPublisherMail && e.value.publisherMailErrorMessage ? (p(), d("div", G, [
192
- a(b(f), {
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
- t("span", J, i(e.value.publisherMailErrorMessage), 1)
197
- ])) : m("", !0),
198
- a(o, {
199
- label: r.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
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": s[5] || (s[5] = (l) => e.value.publisherWebsite = l),
235
+ "onUpdate:modelValue": r[5] || (r[5] = (a) => e.value.publisherWebsite = a),
206
236
  showError: e.value.showErrorPublisherWebsite,
207
- error_message: "Ungültige Website-URL."
208
- }, null, 8, ["label", "modelValue", "showError"]),
209
- e.value.showErrorPublisherWebsite && e.value.publisherWebsiteErrorMessage ? (p(), d("div", K, [
210
- a(b(f), {
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
- t("span", Q, i(e.value.publisherWebsiteErrorMessage), 1)
215
- ])) : m("", !0)
244
+ l("span", re, n(e.value.publisherWebsiteErrorMessage), 1)
245
+ ])) : d("", !0)
216
246
  ]),
217
- t("div", X, [
218
- t("h5", Y, i(r.$t("message.header.subnav.contact")), 1),
219
- a(o, {
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": s[6] || (s[6] = (l) => e.value.contactPointName = l),
222
- label: r.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
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: "gap5BottomAsMargin"
228
- }, null, 8, ["modelValue", "label"]),
229
- a(o, {
230
- label: r.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
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: !0,
275
+ initialHintText: !1,
276
+ placeholder: t.$t(
277
+ "message.dataupload.datasets.dcat:contactPoint.mailInput.placeholder"
278
+ ),
234
279
  showEndIcon: !1,
235
- class: "gap5BottomAsMargin",
280
+ class: "",
236
281
  modelValue: e.value.contactPointMail,
237
- "onUpdate:modelValue": s[7] || (s[7] = (l) => e.value.contactPointMail = l),
282
+ "onUpdate:modelValue": r[7] || (r[7] = (a) => e.value.contactPointMail = a),
238
283
  showError: e.value.showErrorContactPointMail,
239
- error_message: "Ungültige E-Mail-Adresse."
240
- }, null, 8, ["label", "modelValue", "showError"]),
241
- e.value.showErrorContactPointMail && e.value.contactPointMailErrorMessage ? (p(), d("div", ee, [
242
- a(b(f), {
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
- t("span", re, i(e.value.contactPointMailErrorMessage), 1)
247
- ])) : m("", !0),
248
- a(o, {
249
- label: r.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
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": s[8] || (s[8] = (l) => e.value.contactPointPhone = l)
256
- }, null, 8, ["label", "modelValue"])
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
- }, he = /* @__PURE__ */ C(se, [["__scopeId", "data-v-93280e23"]]);
317
+ }, we = /* @__PURE__ */ F(de, [["__scopeId", "data-v-de07dd77"]]);
261
318
  export {
262
- he as default
319
+ we as default
263
320
  };