@piveau/dpi 0.2.0-alpha.47 → 0.2.0-alpha.49

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 (58) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +1 -1
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +64 -49
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +38 -30
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +59 -55
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +129 -98
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +148 -135
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +5 -5
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +317 -296
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +77 -0
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +58 -56
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +97 -90
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +35 -35
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +86 -86
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +9 -8
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +55 -50
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +8 -8
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +92 -91
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +49 -48
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +122 -117
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +289 -293
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +32 -30
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +46 -29
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +264 -221
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +41 -35
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +63 -65
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -35
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  38. package/dist/packages/dpi/src/data-provider-interface/components/ContactPage.vue.js +121 -108
  39. package/dist/packages/dpi/src/data-provider-interface/components/DiscoverabilityPage.vue.js +1 -1
  40. package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +102 -100
  41. package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +657 -600
  42. package/dist/packages/dpi/src/data-provider-interface/components/HVDPage.vue.js +41 -42
  43. package/dist/packages/dpi/src/data-provider-interface/components/PublisherPage.vue.js +161 -130
  44. package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +272 -239
  45. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +3 -3
  46. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +94 -82
  47. package/dist/packages/dpi/src/data-provider-interface/components/TempResPage.vue.js +81 -81
  48. package/dist/packages/dpi/src/data-provider-interface/components/TempResPageInModal.vue.js +138 -141
  49. package/dist/packages/dpi/src/data-provider-interface/components/TitelPage.vue.js +4 -4
  50. package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +4 -3
  51. package/dist/packages/dpi/src/data-provider-interface/components/dpiV3Description.vue.js +1 -1
  52. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +255 -242
  53. package/dist/packages/dpi/src/data-provider-interface/composables/useOrganizationInfo.js +48 -0
  54. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +80 -84
  55. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +2 -2
  56. package/dist/packages/dpi/src/data-provider-interface/store/modules/authStore.js +1 -3
  57. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +226 -250
  58. package/package.json +2 -2
@@ -1,37 +1,40 @@
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";
1
+ import { mergeModels as H, ref as R, getCurrentInstance as z, useModel as x, computed as W, watch as l, createElementBlock as u, openBlock as d, createElementVNode as s, createVNode as i, createCommentVNode as h, unref as p, toDisplayString as n } from "vue";
2
+ import g from "../InputField.vue.js";
3
+ import F from "../TextAreaV3.vue.js";
4
4
  import { PhWarning as m } from "@phosphor-icons/vue";
5
- import { useFormValues as D } from "../../../composables/useDpiFormValues.js";
5
+ import { useFormValues as O } from "../../../composables/useDpiFormValues.js";
6
6
  /* empty css */
7
- import F from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
- const L = { class: "dpiV3_innerRapModalWrapper" }, O = { class: "dpiV3_innerRapModalWrapper__section" }, Z = {
7
+ import Y from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
8
+ const Z = { class: "dpiV3_innerRapModalWrapper" }, L = { class: "dpiV3_innerRapModalWrapper__section" }, j = {
9
9
  key: 0,
10
10
  class: "dpiV3_field_error_text"
11
- }, j = { class: "copy-mini-regular" }, q = {
12
- key: 1,
11
+ }, q = { class: "copy-mini-regular" }, J = { class: "topSpacing" }, G = {
12
+ key: 0,
13
+ class: "dpiV3_field_error_text"
14
+ }, K = { class: "copy-mini-regular" }, Q = { class: "topSpacing" }, X = {
15
+ key: 0,
13
16
  class: "dpiV3_field_error_text"
14
- }, G = { class: "copy-mini-regular" }, J = { class: "dpiV3_innerRapModalWrapper__section" }, K = { class: "headline-5 gap3BottomAsMargin" }, Q = {
17
+ }, ee = { class: "copy-mini-regular" }, te = { class: "dpiV3_innerRapModalWrapper__section" }, re = { class: "headline-5 gap3BottomAsMargin" }, ae = { class: "topSpacing" }, se = {
15
18
  key: 0,
16
19
  class: "dpiV3_field_error_text"
17
- }, X = { class: "copy-mini-regular" }, Y = {
18
- key: 1,
20
+ }, ie = { class: "copy-mini-regular" }, oe = { class: "topSpacing" }, le = {
21
+ key: 0,
19
22
  class: "dpiV3_field_error_text"
20
- }, ee = { class: "copy-mini-regular" }, te = {
21
- key: 2,
23
+ }, ne = { class: "copy-mini-regular" }, ue = { class: "topSpacing" }, de = {
24
+ key: 0,
22
25
  class: "dpiV3_field_error_text"
23
- }, re = { class: "copy-mini-regular" }, ae = { class: "dpiV3_innerRapModalWrapper__section" }, se = { class: "headline-5 gap3BottomAsMargin" }, le = {
26
+ }, ce = { class: "copy-mini-regular" }, he = { class: "dpiV3_innerRapModalWrapper__section" }, pe = { class: "headline-5 gap3BottomAsMargin" }, me = { class: "topSpacing" }, ge = {
24
27
  key: 0,
25
28
  class: "dpiV3_field_error_text"
26
- }, ie = { class: "copy-mini-regular" }, oe = {
27
- key: 1,
29
+ }, fe = { class: "copy-mini-regular" }, ve = { class: "topSpacing" }, Ee = {
30
+ key: 0,
28
31
  class: "dpiV3_field_error_text"
29
- }, ne = { class: "copy-mini-regular" }, ue = {
30
- key: 2,
32
+ }, be = { class: "copy-mini-regular" }, Me = { class: "topSpacing" }, Pe = {
33
+ key: 0,
31
34
  class: "dpiV3_field_error_text"
32
- }, ce = { class: "copy-mini-regular" }, de = {
35
+ }, we = { class: "copy-mini-regular" }, _e = {
33
36
  __name: "EssentialsModal",
34
- props: /* @__PURE__ */ A({
37
+ props: /* @__PURE__ */ H({
35
38
  context: Object,
36
39
  newValues: Object
37
40
  }, {
@@ -61,14 +64,17 @@ const L = { class: "dpiV3_innerRapModalWrapper" }, O = { class: "dpiV3_innerRapM
61
64
  showErrorContactPointMail: !1,
62
65
  contactPointMailErrorMessage: "",
63
66
  showErrorContactPointPhone: !1,
64
- contactPointPhoneErrorMessage: ""
67
+ contactPointPhoneErrorMessage: "",
68
+ modified: "",
69
+ showErrorModified: !1,
70
+ modifiedErrorMessage: ""
65
71
  } },
66
72
  modelModifiers: {}
67
73
  }),
68
74
  emits: ["update:modelValue"],
69
- setup(I, { expose: W }) {
75
+ setup(S, { expose: y }) {
70
76
  R([]), z().appContext.app.config.globalProperties.$env;
71
- const { formValues: he } = D(), e = H(I, "modelValue"), b = (t) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim()), M = (t) => {
77
+ const { formValues: Ve } = O(), e = x(S, "modelValue"), f = (t) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t.trim()), w = (t) => {
72
78
  if (!t || t.trim() === "")
73
79
  return !0;
74
80
  const r = t.replace(/[\s\-().]/g, "");
@@ -76,66 +82,78 @@ const L = { class: "dpiV3_innerRapModalWrapper" }, O = { class: "dpiV3_innerRapM
76
82
  return !1;
77
83
  const a = r.replace(/\D/g, "");
78
84
  return a.length >= 6 && a.length <= 15;
79
- }, E = (t) => !t || !t.trim() ? !1 : t.trim().length >= 2, f = (t) => {
85
+ }, b = (t) => !t || !t.trim() ? !1 : t.trim().length >= 2, M = (t) => {
80
86
  try {
81
87
  const r = t.trim(), a = r.startsWith("http://") || r.startsWith("https://") ? r : `https://${r}`;
82
88
  return new URL(a), !0;
83
89
  } catch {
84
90
  return !1;
85
91
  }
86
- }, g = (t) => !t || !t.trim() ? !1 : /[a-zA-Z0-9]/.test(t.trim()), v = (t) => t && t.trim().length > 0, i = (t, r) => {
92
+ }, D = (t) => {
93
+ if (!t) return !1;
94
+ const r = new Date(t);
95
+ if (isNaN(r.getTime())) return !1;
96
+ const a = r.getFullYear(), c = /* @__PURE__ */ new Date();
97
+ c.setHours(0, 0, 0, 0);
98
+ const E = new Date(r);
99
+ return E.setHours(0, 0, 0, 0), a >= 1950 && E <= c;
100
+ }, v = (t) => !t || !t.trim() ? !1 : /[a-zA-Z0-9]/.test(t.trim()), P = (t) => t && t.trim().length > 0, o = (t, r) => {
87
101
  switch (t) {
88
102
  case "title":
89
- 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);
103
+ return v(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);
90
104
  case "description":
91
- 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);
92
- case "publisherMail":
93
- 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);
94
- case "publisherWebsite":
95
- 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);
105
+ return P(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);
106
+ case "modified":
107
+ if (!r)
108
+ return e.value.showErrorModified = !0, e.value.modifiedErrorMessage = "Bitte geben Sie ein Aktualisierungsdatum ein.", !1;
109
+ const a = new Date(r), c = /* @__PURE__ */ new Date();
110
+ return new Date(a.getFullYear(), a.getMonth(), a.getDate()), new Date(c.getFullYear(), c.getMonth(), c.getDate()), isNaN(a.getTime()) ? (e.value.showErrorModified = !0, e.value.modifiedErrorMessage = "Bitte geben Sie ein gültiges Datum ein.", !1) : a.getFullYear() < 1950 ? (e.value.showErrorModified = !0, e.value.modifiedErrorMessage = "Das Jahr darf nicht vor 1950 liegen.", !1) : a > c ? (e.value.showErrorModified = !0, e.value.modifiedErrorMessage = "Das Datum darf nicht in der Zukunft liegen.", !1) : (e.value.showErrorModified = !1, e.value.modifiedErrorMessage = "", !0);
96
111
  case "publisherName":
97
- 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);
112
+ return v(r) ? (e.value.showErrorPublisherName = !1, e.value.publisherNameErrorMessage = "", !0) : (e.value.showErrorPublisherName = !0, e.value.publisherNameErrorMessage = "Bitte geben Sie einen gültigen Organisationsnamen ein.", !1);
98
113
  case "publisherMail":
99
- 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);
114
+ return !r || !r.trim() || !f(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);
100
115
  case "publisherWebsite":
101
- 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);
116
+ return !r || !r.trim() || !M(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);
102
117
  case "contactPointName":
103
- 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);
118
+ return b(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);
104
119
  case "contactPointMail":
105
- 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);
120
+ return !r || !r.trim() || !f(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);
106
121
  case "contactPointPhone":
107
- 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);
122
+ return r && r.trim() && !w(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);
108
123
  default:
109
124
  return !0;
110
125
  }
111
- }, C = N(() => {
112
- var P, w, V, _;
113
- 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);
114
- return t && r && a && y && B && S && U && k;
126
+ }, T = W(() => {
127
+ var _, V, N, I;
128
+ const t = v(e.value.title), r = P(e.value.description), a = D(e.value.modified), c = v(e.value.publisherName), E = ((_ = e.value.publisherMail) == null ? void 0 : _.trim()) && f(e.value.publisherMail), $ = ((V = e.value.publisherWebsite) == null ? void 0 : V.trim()) && M(e.value.publisherWebsite), k = b(e.value.contactPointName), U = ((N = e.value.contactPointMail) == null ? void 0 : N.trim()) && f(e.value.contactPointMail), A = !((I = e.value.contactPointPhone) != null && I.trim()) || w(e.value.contactPointPhone);
129
+ return t && r && c && E && $ && k && U && A && a;
115
130
  });
116
- 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));
117
- const T = N(() => ({
118
- title: !g(e.value.title),
119
- description: !v(e.value.description),
120
- publisherName: !g(e.value.publisherName),
121
- publisherMail: e.value.publisherMail && e.value.publisherMail.trim() && !b(e.value.publisherMail),
122
- publisherWebsite: e.value.publisherWebsite && e.value.publisherWebsite.trim() && !f(e.value.publisherWebsite),
123
- contactPointName: !E(e.value.contactPointName),
124
- // Now always validated
125
- contactPointMail: e.value.contactPointMail && e.value.contactPointMail.trim() && !b(e.value.contactPointMail)
126
- })), $ = () => {
131
+ l(() => e.value.title, (t) => o("title", t)), l(() => e.value.description, (t) => o("description", t)), l(() => e.value.publisherName, (t) => o("publisherName", t)), l(() => e.value.publisherMail, (t) => o("publisherMail", t)), l(() => e.value.publisherWebsite, (t) => o("publisherWebsite", t)), l(() => e.value.contactPointMail, (t) => o("contactPointMail", t)), l(() => e.value.contactPointName, (t) => o("contactPointName", t)), l(() => e.value.contactPointMail, (t) => o("contactPointMail", t)), l(() => e.value.contactPointPhone, (t) => o("contactPointPhone", t)), l(() => e.value.modified, (t) => o("modified", t));
132
+ const B = W(() => {
133
+ var t, r, a;
134
+ return {
135
+ title: !v(e.value.title),
136
+ description: !P(e.value.description),
137
+ publisherName: !v(e.value.publisherName),
138
+ publisherMail: !((t = e.value.publisherMail) != null && t.trim()) || !f(e.value.publisherMail),
139
+ publisherWebsite: !((r = e.value.publisherWebsite) != null && r.trim()) || !M(e.value.publisherWebsite),
140
+ contactPointName: !b(e.value.contactPointName),
141
+ // Now always validated
142
+ contactPointMail: !((a = e.value.contactPointMail) != null && a.trim()) || !f(e.value.contactPointMail)
143
+ };
144
+ }), C = () => {
127
145
  const t = [];
128
- 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."];
146
+ 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), e.value.showErrorModified && t.push(e.value.modifiedErrorMessage), t.length > 0 ? t : ["Bitte füllen Sie alle erforderlichen Felder korrekt aus."];
129
147
  };
130
- return o(() => e.value, () => {
131
- }, { deep: !0 }), W({
132
- isValid: C,
133
- validationErrors: T,
134
- getValidationErrorMessages: $,
135
- validateField: i
136
- }), (t, r) => (c(), u("div", L, [
137
- l("div", O, [
138
- s(p, {
148
+ return l(() => e.value, () => {
149
+ }, { deep: !0 }), y({
150
+ isValid: T,
151
+ validationErrors: B,
152
+ getValidationErrorMessages: C,
153
+ validateField: o
154
+ }), (t, r) => (d(), u("div", Z, [
155
+ s("div", L, [
156
+ i(g, {
139
157
  class: "",
140
158
  label: t.$t("message.metadata.title"),
141
159
  modelValue: e.value.title,
@@ -147,172 +165,197 @@ const L = { class: "dpiV3_innerRapModalWrapper" }, O = { class: "dpiV3_innerRapM
147
165
  showEndIcon: !1,
148
166
  showError: e.value.showErrorTitle
149
167
  }, null, 8, ["label", "modelValue", "showError"]),
150
- e.value.showErrorTitle && e.value.titleErrorMessage ? (c(), u("div", Z, [
151
- s(h(m), {
152
- size: 16,
153
- weight: "fill"
154
- }),
155
- l("span", j, n(e.value.titleErrorMessage), 1)
156
- ])) : d("", !0),
157
- s(x, {
158
- class: "",
159
- label: t.$t("message.metadata.description"),
160
- modelValue: e.value.description,
161
- "onUpdate:modelValue": r[1] || (r[1] = (a) => e.value.description = a)
162
- }, null, 8, ["label", "modelValue"]),
163
- e.value.showErrorDescription && e.value.descriptionErrorMessage ? (c(), u("div", q, [
164
- s(h(m), {
168
+ e.value.showErrorTitle && e.value.titleErrorMessage ? (d(), u("div", j, [
169
+ i(p(m), {
165
170
  size: 16,
166
171
  weight: "fill"
167
172
  }),
168
- l("span", G, n(e.value.descriptionErrorMessage), 1)
169
- ])) : d("", !0),
170
- s(p, {
171
- label: t.$t("message.dataupload.datasets.rap.essentials.modifiedHeader"),
172
- infoIcon: !1,
173
- preIcon: !1,
174
- datePicker: !0,
175
- showEndIcon: !1,
176
- modelValue: e.value.modified,
177
- "onUpdate:modelValue": r[2] || (r[2] = (a) => e.value.modified = a),
178
- defaultInput: !0,
179
- inputType: "date",
180
- initialHintText: !1
181
- }, null, 8, ["label", "modelValue"])
173
+ s("span", q, n(e.value.titleErrorMessage), 1)
174
+ ])) : h("", !0),
175
+ s("div", J, [
176
+ i(F, {
177
+ class: "",
178
+ label: t.$t("message.metadata.description"),
179
+ modelValue: e.value.description,
180
+ "onUpdate:modelValue": r[1] || (r[1] = (a) => e.value.description = a),
181
+ showError: e.value.showErrorDescription
182
+ }, null, 8, ["label", "modelValue", "showError"]),
183
+ e.value.showErrorDescription && e.value.descriptionErrorMessage ? (d(), u("div", G, [
184
+ i(p(m), {
185
+ size: 16,
186
+ weight: "fill"
187
+ }),
188
+ s("span", K, n(e.value.descriptionErrorMessage), 1)
189
+ ])) : h("", !0)
190
+ ]),
191
+ s("div", Q, [
192
+ i(g, {
193
+ label: t.$t("message.dataupload.datasets.rap.essentials.modifiedHeader"),
194
+ infoIcon: !1,
195
+ preIcon: !1,
196
+ datePicker: !0,
197
+ showEndIcon: !1,
198
+ modelValue: e.value.modified,
199
+ "onUpdate:modelValue": r[2] || (r[2] = (a) => e.value.modified = a),
200
+ defaultInput: !0,
201
+ inputType: "date",
202
+ showError: e.value.showErrorModified,
203
+ initialHintText: !1
204
+ }, null, 8, ["label", "modelValue", "showError"]),
205
+ e.value.showErrorModified && e.value.modifiedErrorMessage ? (d(), u("div", X, [
206
+ i(p(m), {
207
+ size: 16,
208
+ weight: "fill"
209
+ }),
210
+ s("span", ee, n(e.value.modifiedErrorMessage), 1)
211
+ ])) : h("", !0)
212
+ ])
182
213
  ]),
183
- l("div", J, [
184
- l("h5", K, n(t.$t("message.metadata.publisher")), 1),
185
- s(p, {
186
- label: t.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
187
- infoIcon: !1,
188
- preIcon: !1,
189
- placeholder: t.$t("message.dataupload.datasets.dct:publisher.nameInput.placeholder"),
190
- initialHintText: !1,
191
- showEndIcon: !1,
192
- class: "",
193
- modelValue: e.value.publisherName,
194
- "onUpdate:modelValue": r[3] || (r[3] = (a) => e.value.publisherName = a),
195
- showError: e.value.showErrorPublisherName,
196
- error_message: "Bitte geben Sie einen gültigen Organisationsnamen ein."
197
- }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
198
- e.value.showErrorPublisherName && e.value.publisherNameErrorMessage ? (c(), u("div", Q, [
199
- s(h(m), {
200
- size: 16,
201
- weight: "fill"
202
- }),
203
- l("span", X, n(e.value.publisherNameErrorMessage), 1)
204
- ])) : d("", !0),
205
- s(p, {
206
- label: t.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
207
- placeholder: t.$t("message.dataupload.datasets.dct:publisher.mailInput.placeholder"),
208
- infoIcon: !1,
209
- preIcon: !1,
210
- initialHintText: !1,
211
- showEndIcon: !1,
212
- class: "",
213
- modelValue: e.value.publisherMail,
214
- "onUpdate:modelValue": r[4] || (r[4] = (a) => e.value.publisherMail = a),
215
- showError: e.value.showErrorPublisherMail,
216
- error_message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
217
- }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
218
- e.value.showErrorPublisherMail && e.value.publisherMailErrorMessage ? (c(), u("div", Y, [
219
- s(h(m), {
220
- size: 16,
221
- weight: "fill"
222
- }),
223
- l("span", ee, n(e.value.publisherMailErrorMessage), 1)
224
- ])) : d("", !0),
225
- s(p, {
226
- label: t.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
227
- placeholder: t.$t("message.dataupload.datasets.dct:publisher.websiteInput.placeholder"),
228
- infoIcon: !1,
229
- preIcon: !1,
230
- initialHintText: !1,
231
- showEndIcon: !1,
232
- modelValue: e.value.publisherWebsite,
233
- "onUpdate:modelValue": r[5] || (r[5] = (a) => e.value.publisherWebsite = a),
234
- showError: e.value.showErrorPublisherWebsite,
235
- error_message: "Bitte geben Sie eine gültige URL ein."
236
- }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
237
- e.value.showErrorPublisherWebsite && e.value.publisherWebsiteErrorMessage ? (c(), u("div", te, [
238
- s(h(m), {
239
- size: 16,
240
- weight: "fill"
241
- }),
242
- l("span", re, n(e.value.publisherWebsiteErrorMessage), 1)
243
- ])) : d("", !0)
214
+ s("div", te, [
215
+ s("h5", re, n(t.$t("message.metadata.publisher")), 1),
216
+ s("div", ae, [
217
+ i(g, {
218
+ label: t.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
219
+ infoIcon: !1,
220
+ preIcon: !1,
221
+ placeholder: t.$t("message.dataupload.datasets.dct:publisher.nameInput.placeholder"),
222
+ initialHintText: !1,
223
+ showEndIcon: !1,
224
+ class: "",
225
+ modelValue: e.value.publisherName,
226
+ "onUpdate:modelValue": r[3] || (r[3] = (a) => e.value.publisherName = a),
227
+ showError: e.value.showErrorPublisherName,
228
+ error_message: "Bitte geben Sie einen gültigen Organisationsnamen ein."
229
+ }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
230
+ e.value.showErrorPublisherName && e.value.publisherNameErrorMessage ? (d(), u("div", se, [
231
+ i(p(m), {
232
+ size: 16,
233
+ weight: "fill"
234
+ }),
235
+ s("span", ie, n(e.value.publisherNameErrorMessage), 1)
236
+ ])) : h("", !0)
237
+ ]),
238
+ s("div", oe, [
239
+ i(g, {
240
+ label: t.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
241
+ placeholder: t.$t("message.dataupload.datasets.dct:publisher.mailInput.placeholder"),
242
+ infoIcon: !1,
243
+ preIcon: !1,
244
+ initialHintText: !1,
245
+ showEndIcon: !1,
246
+ class: "",
247
+ modelValue: e.value.publisherMail,
248
+ "onUpdate:modelValue": r[4] || (r[4] = (a) => e.value.publisherMail = a),
249
+ showError: e.value.showErrorPublisherMail,
250
+ error_message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
251
+ }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
252
+ e.value.showErrorPublisherMail && e.value.publisherMailErrorMessage ? (d(), u("div", le, [
253
+ i(p(m), {
254
+ size: 16,
255
+ weight: "fill"
256
+ }),
257
+ s("span", ne, n(e.value.publisherMailErrorMessage), 1)
258
+ ])) : h("", !0)
259
+ ]),
260
+ s("div", ue, [
261
+ i(g, {
262
+ label: t.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
263
+ placeholder: t.$t("message.dataupload.datasets.dct:publisher.websiteInput.placeholder"),
264
+ infoIcon: !1,
265
+ preIcon: !1,
266
+ initialHintText: !1,
267
+ showEndIcon: !1,
268
+ modelValue: e.value.publisherWebsite,
269
+ "onUpdate:modelValue": r[5] || (r[5] = (a) => e.value.publisherWebsite = a),
270
+ showError: e.value.showErrorPublisherWebsite,
271
+ error_message: "Bitte geben Sie eine gültige URL ein."
272
+ }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
273
+ e.value.showErrorPublisherWebsite && e.value.publisherWebsiteErrorMessage ? (d(), u("div", de, [
274
+ i(p(m), {
275
+ size: 16,
276
+ weight: "fill"
277
+ }),
278
+ s("span", ce, n(e.value.publisherWebsiteErrorMessage), 1)
279
+ ])) : h("", !0)
280
+ ])
244
281
  ]),
245
- l("div", ae, [
246
- l("h5", se, n(t.$t("message.header.subnav.contact")), 1),
247
- s(p, {
248
- modelValue: e.value.contactPointName,
249
- "onUpdate:modelValue": r[6] || (r[6] = (a) => e.value.contactPointName = a),
250
- label: t.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
251
- placeholder: t.$t(
252
- "message.dataupload.datasets.dcat:contactPoint.nameInput.placeholder"
253
- ),
254
- infoIcon: !1,
255
- preIcon: !1,
256
- initialHintText: !1,
257
- showEndIcon: !1,
258
- class: "",
259
- showError: e.value.showErrorContactPointName,
260
- error_message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
261
- }, null, 8, ["modelValue", "label", "placeholder", "showError"]),
262
- e.value.showErrorContactPointName && e.value.contactPointNameErrorMessage ? (c(), u("div", le, [
263
- s(h(m), {
264
- size: 16,
265
- weight: "fill"
266
- }),
267
- l("span", ie, n(e.value.contactPointNameErrorMessage), 1)
268
- ])) : d("", !0),
269
- s(p, {
270
- label: t.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
271
- infoIcon: !1,
272
- preIcon: !1,
273
- initialHintText: !1,
274
- placeholder: t.$t(
275
- "message.dataupload.datasets.dcat:contactPoint.mailInput.placeholder"
276
- ),
277
- showEndIcon: !1,
278
- class: "",
279
- modelValue: e.value.contactPointMail,
280
- "onUpdate:modelValue": r[7] || (r[7] = (a) => e.value.contactPointMail = a),
281
- showError: e.value.showErrorContactPointMail,
282
- error_message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
283
- }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
284
- e.value.showErrorContactPointMail && e.value.contactPointMailErrorMessage ? (c(), u("div", oe, [
285
- s(h(m), {
286
- size: 16,
287
- weight: "fill"
288
- }),
289
- l("span", ne, n(e.value.contactPointMailErrorMessage), 1)
290
- ])) : d("", !0),
291
- s(p, {
292
- label: t.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
293
- infoIcon: !1,
294
- placeholder: t.$t(
295
- "message.dataupload.datasets.dcat:contactPoint.telInput.placeholder"
296
- ),
297
- preIcon: !1,
298
- initialHintText: !1,
299
- showEndIcon: !1,
300
- modelValue: e.value.contactPointPhone,
301
- "onUpdate:modelValue": r[8] || (r[8] = (a) => e.value.contactPointPhone = a),
302
- showError: e.value.showErrorContactPointPhone,
303
- error_message: "Bitte geben Sie eine gültige Telefonnummer ein."
304
- }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
305
- e.value.showErrorContactPointPhone && e.value.contactPointPhoneErrorMessage ? (c(), u("div", ue, [
306
- s(h(m), {
307
- size: 16,
308
- weight: "fill"
309
- }),
310
- l("span", ce, n(e.value.contactPointPhoneErrorMessage), 1)
311
- ])) : d("", !0)
282
+ s("div", he, [
283
+ s("h5", pe, n(t.$t("message.header.subnav.contact")), 1),
284
+ s("div", me, [
285
+ i(g, {
286
+ modelValue: e.value.contactPointName,
287
+ "onUpdate:modelValue": r[6] || (r[6] = (a) => e.value.contactPointName = a),
288
+ label: t.$t("message.dataupload.datasets.dcat:contactPoint.nameInput.title"),
289
+ placeholder: t.$t(
290
+ "message.dataupload.datasets.dcat:contactPoint.nameInput.placeholder"
291
+ ),
292
+ infoIcon: !1,
293
+ preIcon: !1,
294
+ initialHintText: !1,
295
+ showEndIcon: !1,
296
+ class: "",
297
+ showError: e.value.showErrorContactPointName,
298
+ error_message: "Bitte geben Sie einen gültigen Namen ein (mindestens 2 Zeichen)."
299
+ }, null, 8, ["modelValue", "label", "placeholder", "showError"]),
300
+ e.value.showErrorContactPointName && e.value.contactPointNameErrorMessage ? (d(), u("div", ge, [
301
+ i(p(m), {
302
+ size: 16,
303
+ weight: "fill"
304
+ }),
305
+ s("span", fe, n(e.value.contactPointNameErrorMessage), 1)
306
+ ])) : h("", !0)
307
+ ]),
308
+ s("div", ve, [
309
+ i(g, {
310
+ label: t.$t("message.dataupload.datasets.dcat:contactPoint.mailInput.title"),
311
+ infoIcon: !1,
312
+ preIcon: !1,
313
+ initialHintText: !1,
314
+ placeholder: t.$t(
315
+ "message.dataupload.datasets.dcat:contactPoint.mailInput.placeholder"
316
+ ),
317
+ showEndIcon: !1,
318
+ class: "",
319
+ modelValue: e.value.contactPointMail,
320
+ "onUpdate:modelValue": r[7] || (r[7] = (a) => e.value.contactPointMail = a),
321
+ showError: e.value.showErrorContactPointMail,
322
+ error_message: "Bitte geben Sie eine gültige E-Mail-Adresse ein."
323
+ }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
324
+ e.value.showErrorContactPointMail && e.value.contactPointMailErrorMessage ? (d(), u("div", Ee, [
325
+ i(p(m), {
326
+ size: 16,
327
+ weight: "fill"
328
+ }),
329
+ s("span", be, n(e.value.contactPointMailErrorMessage), 1)
330
+ ])) : h("", !0)
331
+ ]),
332
+ s("div", Me, [
333
+ i(g, {
334
+ label: t.$t("message.dataupload.datasets.dcat:contactPoint.telInput.title"),
335
+ infoIcon: !1,
336
+ placeholder: t.$t(
337
+ "message.dataupload.datasets.dcat:contactPoint.telInput.placeholder"
338
+ ),
339
+ preIcon: !1,
340
+ initialHintText: !1,
341
+ showEndIcon: !1,
342
+ modelValue: e.value.contactPointPhone,
343
+ "onUpdate:modelValue": r[8] || (r[8] = (a) => e.value.contactPointPhone = a),
344
+ showError: e.value.showErrorContactPointPhone,
345
+ error_message: "Bitte geben Sie eine gültige Telefonnummer ein."
346
+ }, null, 8, ["label", "placeholder", "modelValue", "showError"]),
347
+ e.value.showErrorContactPointPhone && e.value.contactPointPhoneErrorMessage ? (d(), u("div", Pe, [
348
+ i(p(m), {
349
+ size: 16,
350
+ weight: "fill"
351
+ }),
352
+ s("span", we, n(e.value.contactPointPhoneErrorMessage), 1)
353
+ ])) : h("", !0)
354
+ ])
312
355
  ])
313
356
  ]));
314
357
  }
315
- }, Me = /* @__PURE__ */ F(de, [["__scopeId", "data-v-b37346f9"]]);
358
+ }, Be = /* @__PURE__ */ Y(_e, [["__scopeId", "data-v-6c3c68f1"]]);
316
359
  export {
317
- Me as default
360
+ Be as default
318
361
  };