@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.70

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 (62) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  4. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  5. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
  32. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  33. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  34. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  35. package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
  36. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  37. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  38. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
  39. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  40. package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
  41. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  42. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  43. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  44. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
  45. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  46. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
  47. package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
  48. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  49. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  50. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  51. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
  53. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  54. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
  55. package/dist/data-provider-interface/store/modules/authStore.js +11 -11
  56. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  57. package/dist/data-provider-interface/views/InputPage.vue.js +389 -760
  58. package/dist/styles/_dpi.scss +1614 -0
  59. package/dist/styles/_maps.scss +24 -0
  60. package/dist/styles/_variables.scss +973 -0
  61. package/package.json +28 -19
  62. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
@@ -1,99 +1,129 @@
1
- import { ref as w, computed as x, getCurrentInstance as $, createElementBlock as d, openBlock as u, createElementVNode as s, createCommentVNode as m, toDisplayString as p, createVNode as r, Fragment as P, renderList as S, unref as g } from "vue";
2
- import _ from "../HappyFlowComponents/ui/InputField.vue.js";
3
- import T from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
4
- import { PhWarning as h } from "@phosphor-icons/vue";
1
+ import { ref as m, computed as P, getCurrentInstance as S, watch as B, createElementBlock as d, openBlock as f, createElementVNode as o, createCommentVNode as v, toDisplayString as c, createVNode as u, Fragment as D, renderList as O, unref as h } from "vue";
2
+ import k from "../HappyFlowComponents/ui/InputField.vue.js";
3
+ import W from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
4
+ import { PhWarning as g } from "@phosphor-icons/vue";
5
5
  /* empty css */
6
- import B from "../../_virtual/_plugin-vue_export-helper.js";
7
- import { useEditModeInfo as W } from "../composables/useDpiEditMode.js";
8
- const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular" }, R = { class: "dpiV3AutoCompleteWrap" }, A = { class: "firstRow" }, D = { class: "secondRow" }, F = { class: "copy-small-regular" }, N = { class: "input-container" }, U = {
6
+ import A from "../../_virtual/_plugin-vue_export-helper.js";
7
+ import { useEditModeInfo as C } from "../composables/useDpiEditMode.js";
8
+ const R = { class: "dpiV3InnerComponentWrap" }, F = { class: "copy-large-regular" }, N = { class: "dpiV3AutoCompleteWrap" }, U = { class: "firstRow" }, Z = { class: "secondRow" }, H = { class: "copy-small-regular" }, L = { class: "input-container" }, M = {
9
9
  key: 0,
10
10
  class: "dpiV3_errormsgWrapper"
11
- }, Z = { class: "copy-mini-regular" }, H = { class: "input-container" }, L = {
11
+ }, j = { class: "copy-mini-regular" }, K = { class: "input-container" }, q = {
12
12
  key: 0,
13
13
  class: "dpiV3_errormsgWrapper"
14
- }, M = { class: "copy-mini-regular" }, j = { class: "input-container" }, K = {
14
+ }, G = { class: "copy-mini-regular" }, J = { class: "input-container" }, Q = {
15
15
  key: 0,
16
16
  class: "dpiV3_errormsgWrapper"
17
- }, q = { class: "copy-mini-regular" }, G = {
17
+ }, X = { class: "copy-mini-regular" }, Y = { class: "copy-large-regular" }, ee = {
18
18
  key: 0,
19
19
  class: "form-error-message"
20
- }, J = {
20
+ }, ae = {
21
21
  __name: "PublisherPage",
22
22
  props: {
23
23
  context: Object
24
24
  },
25
- setup(k) {
26
- const v = k, { isEditMode: I } = W();
27
- let c = w({ 1: !1, 2: !1, 3: !1 });
28
- const n = x(() => {
29
- var a, t;
30
- const e = (t = (a = $().appContext.config.globalProperties.$keycloak) == null ? void 0 : a.idTokenParsed) == null ? void 0 : t.contact;
25
+ setup(z) {
26
+ const b = z, { isEditMode: I } = C();
27
+ let s = m({ 1: !1, 2: !1, 3: !1 });
28
+ const w = m(null), _ = m(null), n = P(() => {
29
+ var a, l;
30
+ const e = (l = (a = S().appContext.config.globalProperties.$keycloak) == null ? void 0 : a.idTokenParsed) == null ? void 0 : l.contact;
31
31
  if (e) {
32
- const i = {
32
+ const r = {
33
33
  organization: e.organization
34
34
  };
35
- return e.email && (i.email = e.email), e.website && (i.website = `https://${e.website}`), i;
35
+ return e.email && (r.email = e.email), e.website && (r.website = `https://${e.website}`), r;
36
36
  }
37
37
  return {};
38
- }), o = w([
38
+ }), i = m([
39
39
  { isValid: "unset", "foaf:name": "", "foaf:mbox": "", "foaf:homepage": "" }
40
- ]), l = w({
40
+ ]), t = m({
41
41
  1: { show: !1, message: "Bitte geben Sie einen gültigen Organisationsnamen ein." },
42
42
  2: { show: !1, message: "Bitte geben Sie eine gültige E-Mail-Adresse ein." },
43
43
  3: { show: !1, message: "Bitte geben Sie eine gültige URL ein." }
44
- }), V = (e) => e.trim().length >= 2, E = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), y = (e) => /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(e);
45
- I.value || v.context.node.input(o);
46
- const f = (e, a, t) => {
47
- o.value = o.value.map((b) => a in b ? { ...b, [a]: e } : b);
48
- let i = !1;
44
+ }), y = (e) => e.trim().length >= 2, T = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e), E = (e) => /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/.test(e);
45
+ I.value || b.context.node.input(i);
46
+ const V = (e, a, l) => {
47
+ let r = !1;
49
48
  if (e.trim() === "")
50
- l.value[t].show = !1, c.value[t] = !1;
49
+ t.value[l].show = !1, s.value[l] = !1;
51
50
  else {
52
51
  switch (a) {
53
52
  case "foaf:name":
54
- i = V(e);
53
+ r = y(e);
55
54
  break;
56
55
  case "foaf:mbox":
57
- i = E(e);
56
+ r = T(e);
58
57
  break;
59
58
  case "foaf:homepage":
60
- i = y(e);
59
+ r = E(e);
61
60
  break;
62
61
  default:
63
- i = e.trim() !== "";
62
+ r = e.trim() !== "";
64
63
  }
65
- l.value[t].show = !i, c.value[t] = i;
64
+ t.value[l].show = !r, s.value[l] = r;
66
65
  }
67
- c.value[1] && c.value[2] && c.value[3] ? o.value[0].isValid = !0 : o.value[0].isValid = !1, v.context.node.value.length === 0 && v.context.node.input(o.value);
68
- }, z = () => {
69
- if (n.value && (n.value.organization && f(n.value.organization, "foaf:name", 1), n.value.email && f(n.value.email, "foaf:mbox", 2), n.value.website)) {
66
+ s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = "unset";
67
+ }, p = (e, a, l) => {
68
+ i.value = i.value.map((r) => a in r ? { ...r, [a]: e } : r), b.context.node.value.length === 0 && b.context.node.input(i.value), l === 2 ? (w.value && clearTimeout(w.value), w.value = setTimeout(() => {
69
+ V(e, a, l);
70
+ }, 800)) : l === 3 ? (_.value && clearTimeout(_.value), _.value = setTimeout(() => {
71
+ V(e, a, l);
72
+ }, 800)) : V(e, a, l);
73
+ }, $ = () => {
74
+ const e = i.value[0];
75
+ if (e["foaf:name"].trim() === "")
76
+ t.value[1].show = !0, s.value[1] = !1;
77
+ else {
78
+ const a = y(e["foaf:name"]);
79
+ t.value[1].show = !a, s.value[1] = a;
80
+ }
81
+ if (e["foaf:mbox"].trim() === "")
82
+ t.value[2].show = !0, s.value[2] = !1;
83
+ else {
84
+ const a = T(e["foaf:mbox"]);
85
+ t.value[2].show = !a, s.value[2] = a;
86
+ }
87
+ if (e["foaf:homepage"].trim() === "")
88
+ t.value[3].show = !0, s.value[3] = !1;
89
+ else {
90
+ const a = E(e["foaf:homepage"]);
91
+ t.value[3].show = !a, s.value[3] = a;
92
+ }
93
+ s.value[1] && s.value[2] && s.value[3] ? i.value[0].isValid = !0 : i.value[0].isValid = !1, console.log("Validation states:", s.value), console.log("Validation errors:", t.value);
94
+ };
95
+ B(() => i.value[0].isValid, (e) => {
96
+ console.log("Overall validity changed:", e), e === !1 && $();
97
+ });
98
+ const x = () => {
99
+ if (n.value && (n.value.organization && p(n.value.organization, "foaf:name", 1), n.value.email && p(n.value.email, "foaf:mbox", 2), n.value.website)) {
70
100
  let e = n.value.website;
71
- e.startsWith("https://") ? e = e.substring(8) : e.startsWith("http://") && (e = e.substring(7)), f(e, "foaf:homepage", 3);
101
+ e.startsWith("https://") ? e = e.substring(8) : e.startsWith("http://") && (e = e.substring(7)), p(e, "foaf:homepage", 3);
72
102
  }
73
103
  };
74
- return (e, a) => (u(), d("div", C, [
75
- s("h4", null, p(e.$t("message.dataupload.datasets.dct:publisher.title")), 1),
76
- s("div", O, p(e.$t("message.dataupload.datasets.dct:publisher.description")), 1),
77
- s("div", R, [
78
- s("div", A, [
79
- a[3] || (a[3] = s("div", null, [
80
- s("span", { class: "copy-small-semi-bold" }, "Konto")
104
+ return (e, a) => (f(), d("div", R, [
105
+ o("h4", null, c(e.$t("message.dataupload.datasets.dct:publisher.title")), 1),
106
+ o("div", F, c(e.$t("message.dataupload.datasets.dct:publisher.description")), 1),
107
+ o("div", N, [
108
+ o("div", U, [
109
+ a[3] || (a[3] = o("div", null, [
110
+ o("span", { class: "copy-small-semi-bold" }, "Konto")
81
111
  ], -1)),
82
- r(T, {
112
+ u(W, {
83
113
  buttonText: "Diese Details verwenden",
84
114
  iconStart: "true",
85
115
  iconName: "copy",
86
- onClick: z
116
+ onClick: x
87
117
  })
88
118
  ]),
89
- s("div", D, [
90
- (u(!0), d(P, null, S(Object.values(n.value), (t) => (u(), d("span", F, p(t), 1))), 256))
119
+ o("div", Z, [
120
+ (f(!0), d(D, null, O(Object.values(n.value), (l) => (f(), d("span", H, c(l), 1))), 256))
91
121
  ])
92
122
  ]),
93
- s("div", N, [
94
- r(_, {
95
- modelValue: o.value[0]["foaf:name"],
96
- "onUpdate:modelValue": a[0] || (a[0] = (t) => f(t, "foaf:name", 1)),
123
+ o("div", L, [
124
+ u(k, {
125
+ modelValue: i.value[0]["foaf:name"],
126
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => p(l, "foaf:name", 1)),
97
127
  addOnText: !1,
98
128
  datePicker: !1,
99
129
  infoIcon: !1,
@@ -103,20 +133,20 @@ const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular
103
133
  initialHintText: !1,
104
134
  label: e.$t("message.dataupload.datasets.dct:publisher.nameInput.title"),
105
135
  showEndIcon: !1,
106
- showError: l.value[1].show
136
+ showError: t.value[1].show
107
137
  }, null, 8, ["modelValue", "placeholder", "label", "showError"]),
108
- l.value[1].show ? (u(), d("div", U, [
109
- r(g(h), {
138
+ t.value[1].show ? (f(), d("div", M, [
139
+ u(h(g), {
110
140
  size: 16,
111
141
  weight: "fill"
112
142
  }),
113
- s("span", Z, p(l.value[1].message), 1)
114
- ])) : m("", !0)
143
+ o("span", j, c(t.value[1].message), 1)
144
+ ])) : v("", !0)
115
145
  ]),
116
- s("div", H, [
117
- r(_, {
118
- modelValue: o.value[0]["foaf:mbox"],
119
- "onUpdate:modelValue": a[1] || (a[1] = (t) => f(t, "foaf:mbox", 2)),
146
+ o("div", K, [
147
+ u(k, {
148
+ modelValue: i.value[0]["foaf:mbox"],
149
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => p(l, "foaf:mbox", 2)),
120
150
  addOnText: !1,
121
151
  datePicker: !1,
122
152
  infoIcon: !1,
@@ -124,22 +154,22 @@ const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular
124
154
  preIcon: !1,
125
155
  inputFieldSize: "large",
126
156
  initialHintText: !1,
127
- showError: l.value[2].show,
157
+ showError: t.value[2].show,
128
158
  label: e.$t("message.dataupload.datasets.dct:publisher.mailInput.title"),
129
159
  showEndIcon: !1
130
160
  }, null, 8, ["modelValue", "placeholder", "showError", "label"]),
131
- l.value[2].show ? (u(), d("div", L, [
132
- r(g(h), {
161
+ t.value[2].show ? (f(), d("div", q, [
162
+ u(h(g), {
133
163
  size: 16,
134
164
  weight: "fill"
135
165
  }),
136
- s("span", M, p(l.value[2].message), 1)
137
- ])) : m("", !0)
166
+ o("span", G, c(t.value[2].message), 1)
167
+ ])) : v("", !0)
138
168
  ]),
139
- s("div", j, [
140
- r(_, {
141
- modelValue: o.value[0]["foaf:homepage"],
142
- "onUpdate:modelValue": a[2] || (a[2] = (t) => f(t, "foaf:homepage", 3)),
169
+ o("div", J, [
170
+ u(k, {
171
+ modelValue: i.value[0]["foaf:homepage"],
172
+ "onUpdate:modelValue": a[2] || (a[2] = (l) => p(l, "foaf:homepage", 3)),
143
173
  addOnText: !0,
144
174
  datePicker: !1,
145
175
  infoIcon: !1,
@@ -150,27 +180,27 @@ const C = { class: "dpiV3InnerComponentWrap" }, O = { class: "copy-large-regular
150
180
  addOnLeadingText: "https://",
151
181
  label: e.$t("message.dataupload.datasets.dct:publisher.websiteInput.title"),
152
182
  showEndIcon: !1,
153
- showError: l.value[3].show
183
+ showError: t.value[3].show
154
184
  }, null, 8, ["modelValue", "placeholder", "label", "showError"]),
155
- l.value[3].show ? (u(), d("div", K, [
156
- r(g(h), {
185
+ t.value[3].show ? (f(), d("div", Q, [
186
+ u(h(g), {
157
187
  size: 16,
158
188
  weight: "fill"
159
189
  }),
160
- s("span", q, p(l.value[3].message), 1)
161
- ])) : m("", !0)
190
+ o("span", X, c(t.value[3].message), 1)
191
+ ])) : v("", !0)
162
192
  ]),
163
- s("div", null, p(e.$t("message.dataupload.datasets.dct:publisher.descriptionBottom")), 1),
164
- o.value.find((t) => t.isValid === !1) ? (u(), d("div", G, [
165
- r(g(h), {
193
+ o("div", Y, c(e.$t("message.dataupload.datasets.dct:publisher.descriptionBottom")), 1),
194
+ i.value.find((l) => l.isValid === !1) ? (f(), d("div", ee, [
195
+ u(h(g), {
166
196
  size: 16,
167
197
  weight: "fill"
168
198
  }),
169
- a[4] || (a[4] = s("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
170
- ])) : m("", !0)
199
+ a[4] || (a[4] = o("span", { class: "copy-mini-regular" }, "Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren.", -1))
200
+ ])) : v("", !0)
171
201
  ]));
172
202
  }
173
- }, le = /* @__PURE__ */ B(J, [["__scopeId", "data-v-6f99db11"]]);
203
+ }, ue = /* @__PURE__ */ A(ae, [["__scopeId", "data-v-c2988908"]]);
174
204
  export {
175
- le as default
205
+ ue as default
176
206
  };