@piveau/dpi 0.1.0-beta.39 → 0.1.0-beta.41

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 (24) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +393 -314
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +105 -69
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +95 -57
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +83 -55
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +116 -75
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +145 -124
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +41 -41
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +123 -108
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +440 -258
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +37 -32
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +6 -6
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  14. package/dist/data-provider-interface/components/ContactPage.vue.js +95 -89
  15. package/dist/data-provider-interface/components/DistLicense.vue.js +1 -1
  16. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +401 -396
  17. package/dist/data-provider-interface/components/HVDPage.vue.js +56 -55
  18. package/dist/data-provider-interface/components/PublisherPage.vue.js +94 -89
  19. package/dist/data-provider-interface/components/TempResPage.vue.js +122 -104
  20. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  21. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +128 -118
  22. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +40 -28
  23. package/dist/data-provider-interface/views/InputPage.vue.js +375 -746
  24. package/package.json +2 -2
@@ -1,25 +1,28 @@
1
- import { ref as b, computed as x, resolveComponent as g, createElementBlock as m, openBlock as o, createElementVNode as f, createBlock as y, createCommentVNode as r, toDisplayString as B, createVNode as s, withCtx as V, unref as k, Fragment as q, renderList as U } from "vue";
2
- import { useI18n as Z } from "vue-i18n";
3
- import { PhWarning as G } from "@phosphor-icons/vue";
4
- import Q from "./CrossOutButton.vue.js";
5
- import W from "./ButtonV3.vue.js";
6
- import X from "./SectionItems/FindabilityChips.vue.js";
7
- import Y from "./SectionItems/HVDSwitch.vue.js";
8
- import ee from "./SectionItems/EssentialsModal.vue.js";
9
- import te from "./SectionItems/DistributionModal.vue.js";
10
- import ae from "./SectionItems/CoverageModal.vue.js";
11
- import ie from "./SectionItems/AdditionalsModal.vue.js";
1
+ import { ref as g, computed as k, resolveComponent as y, createElementBlock as f, openBlock as o, createElementVNode as m, createBlock as S, createCommentVNode as d, toDisplayString as P, createVNode as s, withCtx as V, unref as M, Fragment as Z, renderList as G } from "vue";
2
+ import { useI18n as Q } from "vue-i18n";
3
+ import { PhWarning as X } from "@phosphor-icons/vue";
4
+ import Y from "./CrossOutButton.vue.js";
5
+ import z from "./ButtonV3.vue.js";
6
+ import ee from "./SectionItems/FindabilityChips.vue.js";
7
+ import te from "./SectionItems/HVDSwitch.vue.js";
8
+ import ae from "./SectionItems/EssentialsModal.vue.js";
9
+ import ie from "./SectionItems/DistributionModal.vue.js";
10
+ import oe from "./SectionItems/CoverageModal.vue.js";
11
+ import ne from "./SectionItems/AdditionalsModal.vue.js";
12
12
  import "@formkit/core";
13
- import { useFormValues as oe } from "../../composables/useDpiFormValues.js";
13
+ import { useFormValues as se } from "../../composables/useDpiFormValues.js";
14
14
  /* empty css */
15
- import ne from "../../../_virtual/_plugin-vue_export-helper.js";
16
- const se = { class: "dpiV3_RapModalContainer" }, le = { class: "dpiV3_RapModalOuter" }, ce = { class: "dpiV3_RapModalInner" }, re = { class: "dpiV3_modalHead" }, de = { key: 0 }, ue = { class: "dpiV3_closeButtonContainer" }, ve = { class: "dpiV3_modalBody" }, me = { key: 0 }, fe = {
15
+ import le from "../../../_virtual/_plugin-vue_export-helper.js";
16
+ const ce = { class: "dpiV3_RapModalContainer" }, re = { class: "dpiV3_RapModalOuter" }, de = { class: "dpiV3_RapModalInner" }, ue = { class: "dpiV3_modalHead" }, ve = {
17
+ key: 0,
18
+ class: "headline"
19
+ }, fe = { class: "dpiV3_closeButtonContainer" }, me = { class: "dpiV3_modalBody" }, pe = { key: 0 }, _e = {
17
20
  key: 2,
18
21
  id: "essentials"
19
- }, pe = {
22
+ }, ge = {
20
23
  key: 6,
21
24
  class: "dpiV3_errormsgWrapper"
22
- }, _e = { class: "validation-messages" }, he = { class: "dpiV3_actionButtonWrap" }, be = {
25
+ }, he = { class: "validation-messages" }, be = { class: "dpiV3_actionButtonWrap" }, ye = {
23
26
  __name: "RapModal",
24
27
  props: {
25
28
  isVisible: {
@@ -30,10 +33,10 @@ const se = { class: "dpiV3_RapModalContainer" }, le = { class: "dpiV3_RapModalOu
30
33
  activeSection: String
31
34
  },
32
35
  emits: ["close"],
33
- setup(d, { emit: z }) {
34
- const { t: O } = Z(), a = d;
35
- let M = b();
36
- const { formValues: h } = oe(), P = z, $ = b(null), p = b(null), u = b(!1), L = {
36
+ setup(u, { emit: O }) {
37
+ const { t: $ } = Q(), t = u;
38
+ let C = g();
39
+ const { formValues: h } = se(), R = O, A = g(null), p = g(null), b = g(null), l = g(!1), L = {
37
40
  findabilityHvd: "message.dataupload.datasets.rap.findability.title",
38
41
  essentials: "message.dataupload.datasets.rap.essentials.title",
39
42
  coverage: "message.dataupload.datasets.rap.coverage.title",
@@ -41,45 +44,55 @@ const se = { class: "dpiV3_RapModalContainer" }, le = { class: "dpiV3_RapModalOu
41
44
  additionals: "message.metadata.additionals"
42
45
  };
43
46
  console.log(h.value);
44
- const R = x(() => {
45
- const e = L[a.activeSection];
46
- return e ? O(e) : "";
47
- }), w = x(() => {
48
- var i, c;
49
- const e = (c = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : c.discoverabilityPage;
47
+ const w = k(() => {
48
+ const e = L[t.activeSection];
49
+ return e ? $(e) : "";
50
+ }), E = k(() => {
51
+ var i, r;
52
+ const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
50
53
  return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
51
- }), A = () => a.activeSection === "findabilityHvd" && !w.value ? (u.value = !0, !1) : (u.value = !1, !0), D = () => a.activeSection === "essentials" && p.value && !p.value.isValid ? (u.value = !0, !1) : (u.value = !1, !0), E = () => a.activeSection === "findabilityHvd" ? A() : a.activeSection === "essentials" ? D() : (u.value = !1, !0), H = x(() => a.activeSection === "findabilityHvd" && !w.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : a.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : []), I = () => {
52
- E() && T();
54
+ }), D = () => t.activeSection === "findabilityHvd" && !E.value ? (l.value = !0, !1) : (l.value = !1, !0), J = () => t.activeSection === "essentials" && p.value && !p.value.isValid ? (l.value = !0, !1) : (l.value = !1, !0), K = () => t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (l.value = !0, !1) : (l.value = !1, !0), I = () => {
55
+ if (t.activeSection === "findabilityHvd")
56
+ return D();
57
+ if (t.activeSection === "essentials")
58
+ return J();
59
+ if (t.activeSection === "coverage") {
60
+ debugger;
61
+ return K();
62
+ }
63
+ return l.value = !1, !0;
64
+ }, F = k(() => t.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : t.activeSection === "essentials" && p.value && !p.value.isValid ? p.value.getValidationErrorMessages() : t.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), H = () => {
65
+ I() && T();
53
66
  }, T = () => {
54
- u.value = !1, P("close");
55
- }, l = x(() => h.value.BasicInfos), F = (e, t) => {
67
+ l.value = !1, R("close");
68
+ }, c = k(() => h.value.BasicInfos), N = (e, a) => {
56
69
  var i;
57
- return ((i = e == null ? void 0 : e.find((c) => c["@language"] === t)) == null ? void 0 : i["@value"]) || "";
58
- }, _ = (e, t) => {
70
+ return ((i = e == null ? void 0 : e.find((r) => r["@language"] === a)) == null ? void 0 : i["@value"]) || "";
71
+ }, _ = (e, a) => {
59
72
  var i;
60
- return ((i = e == null ? void 0 : e[0]) == null ? void 0 : i[t]) || "";
61
- }, J = (e) => {
62
- var t;
63
- return ((t = e == null ? void 0 : e[0]) == null ? void 0 : t["@value"]) || "";
64
- }, n = b({
65
- title: F(l.value["dct:title"], "de"),
66
- description: F(l.value["dct:description"], "de"),
67
- modified: J(l.value["dct:modified"]),
68
- publisherName: _(l.value["dct:publisher"], "foaf:name"),
69
- publisherMail: _(l.value["dct:publisher"], "foaf:mbox"),
70
- publisherWebsite: _(l.value["dct:publisher"], "foaf:homepage"),
71
- contactPointName: _(l.value["dcat:contactPoint"], "vcard:fn"),
72
- contactPointMail: _(l.value["dcat:contactPoint"], "vcard:hasEmail"),
73
- contactPointPhone: _(l.value["dcat:contactPoint"], "vcard:hasTelephone")
74
- }), N = (e, t, i, c) => {
75
- e[t] || (e[t] = []);
76
- const v = e[t].find((C) => C["@language"] === c);
77
- v ? v["@value"] = i : e[t].push({ "@value": i, "@language": c });
78
- }, K = () => {
79
- if (!E())
73
+ return ((i = e == null ? void 0 : e[0]) == null ? void 0 : i[a]) || "";
74
+ }, j = (e) => {
75
+ var a;
76
+ return ((a = e == null ? void 0 : e[0]) == null ? void 0 : a["@value"]) || "";
77
+ }, n = g({
78
+ title: N(c.value["dct:title"], "de"),
79
+ description: N(c.value["dct:description"], "de"),
80
+ modified: j(c.value["dct:modified"]),
81
+ publisherName: _(c.value["dct:publisher"], "foaf:name"),
82
+ publisherMail: _(c.value["dct:publisher"], "foaf:mbox"),
83
+ publisherWebsite: _(c.value["dct:publisher"], "foaf:homepage"),
84
+ contactPointName: _(c.value["dcat:contactPoint"], "vcard:fn"),
85
+ contactPointMail: _(c.value["dcat:contactPoint"], "vcard:hasEmail"),
86
+ contactPointPhone: _(c.value["dcat:contactPoint"], "vcard:hasTelephone")
87
+ }), W = (e, a, i, r) => {
88
+ e[a] || (e[a] = []);
89
+ const v = e[a].find((B) => B["@language"] === r);
90
+ v ? v["@value"] = i : e[a].push({ "@value": i, "@language": r });
91
+ }, q = () => {
92
+ if (!I())
80
93
  return;
81
94
  const e = JSON.parse(JSON.stringify(h.value.BasicInfos));
82
- N(e, "dct:title", n.value.title, "de"), N(e, "dct:description", n.value.description, "de"), e["dct:publisher"] = [{
95
+ W(e, "dct:title", n.value.title, "de"), W(e, "dct:description", n.value.description, "de"), e["dct:publisher"] = [{
83
96
  "foaf:name": n.value.publisherName,
84
97
  "foaf:mbox": n.value.publisherMail,
85
98
  "foaf:homepage": n.value.publisherWebsite
@@ -87,117 +100,119 @@ const se = { class: "dpiV3_RapModalContainer" }, le = { class: "dpiV3_RapModalOu
87
100
  "vcard:fn": n.value.contactPointName,
88
101
  "vcard:hasEmail": n.value.contactPointMail,
89
102
  "vcard:hasTelephone": n.value.contactPointPhone
90
- }], e["dct:modified"] = [{ "@value": n.value.modified }], h.value.BasicInfos = e, P("close");
103
+ }], e["dct:modified"] = [{ "@value": n.value.modified }], h.value.BasicInfos = e, R("close");
91
104
  };
92
- return (e, t) => {
93
- const i = g("findability"), c = g("coverage"), v = g("distributionRap"), C = g("additionals"), j = g("interaction");
94
- return o(), m("div", se, [
95
- f("div", le, [
96
- f("div", ce, [
97
- f("div", re, [
98
- R.value ? (o(), m("h4", de, B(R.value), 1)) : r("", !0),
99
- f("div", ue, [
100
- s(Q, {
101
- onClick: I,
105
+ return (e, a) => {
106
+ const i = y("findability"), r = y("coverage"), v = y("distributionRap"), B = y("additionals"), U = y("interaction");
107
+ return o(), f("div", ce, [
108
+ m("div", re, [
109
+ m("div", de, [
110
+ m("div", ue, [
111
+ w.value ? (o(), f("div", ve, P(w.value), 1)) : d("", !0),
112
+ m("div", fe, [
113
+ s(Y, {
114
+ onClick: H,
102
115
  class: "dpiV3_closeButton",
103
116
  type: "default"
104
117
  })
105
118
  ])
106
119
  ]),
107
- f("div", ve, [
108
- a.activeSection === "findabilityHvd" ? (o(), m("span", me, B(e.$t("message.metadata.categories")), 1)) : r("", !0),
109
- a.activeSection === "findabilityHvd" ? (o(), y(i, {
120
+ m("div", me, [
121
+ t.activeSection === "findabilityHvd" ? (o(), f("span", pe, P(e.$t("message.metadata.categories")), 1)) : d("", !0),
122
+ t.activeSection === "findabilityHvd" ? (o(), S(i, {
110
123
  key: 1,
111
124
  class: "findability-container"
112
125
  }, {
113
126
  default: V(() => [
114
- s(X, {
115
- context: d.context,
127
+ s(ee, {
128
+ context: u.context,
116
129
  ref_key: "findabilityChipsRef",
117
- ref: $
130
+ ref: A
118
131
  }, null, 8, ["context"]),
119
- s(Y, { context: d.context }, null, 8, ["context"])
132
+ s(te, { context: u.context }, null, 8, ["context"])
120
133
  ]),
121
134
  _: 1
122
- })) : r("", !0),
123
- a.activeSection === "essentials" ? (o(), m("div", fe, [
124
- s(ee, {
125
- context: d.context,
126
- newValues: k(M),
135
+ })) : d("", !0),
136
+ t.activeSection === "essentials" ? (o(), f("div", _e, [
137
+ s(ae, {
138
+ context: u.context,
139
+ newValues: M(C),
127
140
  modelValue: n.value,
128
- "onUpdate:modelValue": t[0] || (t[0] = (S) => n.value = S),
141
+ "onUpdate:modelValue": a[0] || (a[0] = (x) => n.value = x),
129
142
  ref_key: "essentialsModalRef",
130
143
  ref: p
131
144
  }, null, 8, ["context", "newValues", "modelValue"])
132
- ])) : r("", !0),
133
- a.activeSection === "coverage" ? (o(), y(c, { key: 3 }, {
145
+ ])) : d("", !0),
146
+ t.activeSection === "coverage" ? (o(), S(r, { key: 3 }, {
134
147
  default: V(() => [
135
- s(ae, {
136
- context: d.context,
137
- newValues: k(M)
148
+ s(oe, {
149
+ context: u.context,
150
+ newValues: M(C),
151
+ ref_key: "coverageModalRef",
152
+ ref: b
138
153
  }, null, 8, ["context", "newValues"])
139
154
  ]),
140
155
  _: 1
141
- })) : r("", !0),
142
- a.activeSection === "distributions" ? (o(), y(v, { key: 4 }, {
156
+ })) : d("", !0),
157
+ t.activeSection === "distributions" ? (o(), S(v, { key: 4 }, {
143
158
  default: V(() => [
144
- s(te, {
145
- context: d.context,
146
- newValues: k(M)
159
+ s(ie, {
160
+ context: u.context,
161
+ newValues: M(C)
147
162
  }, null, 8, ["context", "newValues"])
148
163
  ]),
149
164
  _: 1
150
- })) : r("", !0),
151
- a.activeSection === "additionals" ? (o(), y(C, { key: 5 }, {
165
+ })) : d("", !0),
166
+ t.activeSection === "additionals" ? (o(), S(B, { key: 5 }, {
152
167
  default: V(() => [
153
- s(ie, {
154
- context: d.context,
168
+ s(ne, {
169
+ context: u.context,
155
170
  onCloseModal: T
156
171
  }, null, 8, ["context"])
157
172
  ]),
158
173
  _: 1
159
- })) : r("", !0),
160
- u.value && H.value.length > 0 ? (o(), m("div", pe, [
161
- s(k(G), {
174
+ })) : d("", !0),
175
+ l.value && F.value.length > 0 ? (o(), f("div", ge, [
176
+ s(M(X), {
162
177
  size: 16,
163
178
  weight: "fill"
164
179
  }),
165
- f("div", _e, [
166
- (o(!0), m(q, null, U(H.value, (S) => (o(), m("span", {
167
- key: S,
180
+ m("div", he, [
181
+ (o(!0), f(Z, null, G(F.value, (x) => (o(), f("span", {
182
+ key: x,
168
183
  class: "copy-mini-regular"
169
- }, B(S), 1))), 128))
184
+ }, P(x), 1))), 128))
170
185
  ])
171
- ])) : r("", !0)
186
+ ])) : d("", !0)
172
187
  ])
173
188
  ]),
174
- a.activeSection != "additionals" ? (o(), y(j, {
189
+ t.activeSection != "additionals" ? (o(), S(U, {
175
190
  key: 0,
176
191
  class: "dpiV3_interactionWrap"
177
192
  }, {
178
193
  default: V(() => [
179
- f("div", he, [
180
- s(W, {
181
- onClick: I,
194
+ m("div", be, [
195
+ s(z, {
196
+ onClick: H,
182
197
  buttonText: "Zurück",
183
198
  size: "large",
184
199
  iconStart: "CaretLeft",
185
200
  variant: "tertiary"
186
201
  }),
187
- s(W, {
188
- onClick: K,
202
+ s(z, {
203
+ onClick: q,
189
204
  buttonText: "Speichern",
190
205
  size: "large"
191
206
  })
192
207
  ])
193
208
  ]),
194
209
  _: 1
195
- })) : r("", !0)
210
+ })) : d("", !0)
196
211
  ])
197
212
  ]);
198
213
  };
199
214
  }
200
- }, Te = /* @__PURE__ */ ne(be, [["__scopeId", "data-v-fcbb472d"]]);
215
+ }, Ne = /* @__PURE__ */ le(ye, [["__scopeId", "data-v-245bdb9c"]]);
201
216
  export {
202
- Te as default
217
+ Ne as default
203
218
  };