@piveau/dpi 0.1.0-beta.66 → 0.1.0-beta.67

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.
@@ -1,14 +1,14 @@
1
- import { ref as f, computed as M, resolveComponent as S, createElementBlock as m, openBlock as o, createElementVNode as p, createBlock as V, createCommentVNode as u, toDisplayString as R, createVNode as l, withCtx as x, unref as B, Fragment as Q, renderList as X } from "vue";
1
+ import { ref as f, computed as k, resolveComponent as S, createElementBlock as m, openBlock as o, createElementVNode as p, createBlock as V, createCommentVNode as u, toDisplayString as R, createVNode as s, withCtx as x, unref as B, Fragment as Q, renderList as X } from "vue";
2
2
  import { useI18n as Y } from "vue-i18n";
3
3
  import { PhWarning as ee } from "@phosphor-icons/vue";
4
4
  import te from "./CrossOutButton.vue.js";
5
- import $ from "./ButtonV3.vue.js";
5
+ import O from "./ButtonV3.vue.js";
6
6
  import ae from "./SectionItems/FindabilityChips.vue.js";
7
7
  import ie from "./SectionItems/HVDSwitch.vue.js";
8
8
  import oe from "./SectionItems/EssentialsModal.vue.js";
9
9
  import ne from "./SectionItems/DistributionModal.vue.js";
10
- import se from "./SectionItems/CoverageModal.vue.js";
11
- import le from "./SectionItems/AdditionalsModal.vue.js";
10
+ import le from "./SectionItems/CoverageModal.vue.js";
11
+ import se from "./SectionItems/AdditionalsModal.vue.js";
12
12
  import "@formkit/core";
13
13
  import { useFormValues as ce } from "../../composables/useDpiFormValues.js";
14
14
  /* empty css */
@@ -33,10 +33,10 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
33
33
  activeSection: String
34
34
  },
35
35
  emits: ["close"],
36
- setup(d, { emit: A }) {
37
- const { t: L } = Y(), a = d;
36
+ setup(d, { emit: L }) {
37
+ const { t: $ } = Y(), a = d;
38
38
  let C = f();
39
- const { formValues: h } = ce(), w = A, D = f(null), g = f(null), b = f(null), n = f(!1), y = f(null), J = {
39
+ const { formValues: h } = ce(), w = L, D = f(null), g = f(null), b = f(null), n = f(!1), y = f(null), J = {
40
40
  findabilityHvd: "message.dataupload.datasets.rap.findability.title",
41
41
  essentials: "message.dataupload.datasets.rap.essentials.title",
42
42
  coverage: "message.dataupload.datasets.rap.coverage.title",
@@ -44,18 +44,18 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
44
44
  additionals: "message.metadata.additionals"
45
45
  };
46
46
  console.log(h.value);
47
- const I = M(() => {
47
+ const I = k(() => {
48
48
  const e = J[a.activeSection];
49
- return e ? L(e) : "";
50
- }), E = M(() => {
49
+ return e ? $(e) : "";
50
+ }), E = k(() => {
51
51
  var i, r;
52
52
  const e = (r = (i = h.value) == null ? void 0 : i.Discoverability) == null ? void 0 : r.discoverabilityPage;
53
53
  return !e || !Array.isArray(e) ? !1 : e.filter((v) => v.id && v.label).length > 0;
54
- }), K = () => a.activeSection === "findabilityHvd" && !E.value ? (n.value = !0, !1) : (n.value = !1, !0), F = () => a.activeSection === "distributions" && (console.log(y.value && !y.value.isValid), y.value && !y.value.isValid) ? (n.value = !0, !1) : (n.value = !1, !0), j = () => a.activeSection === "essentials" && g.value && !g.value.isValid ? (n.value = !0, !1) : (n.value = !1, !0), q = () => a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (n.value = !0, !1) : (n.value = !1, !0), H = () => a.activeSection === "findabilityHvd" ? K() : a.activeSection === "essentials" ? j() : a.activeSection === "coverage" ? q() : a.activeSection === "distributions" ? (console.log("hey" + F()), F()) : (n.value = !1, !0), T = M(() => a.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : a.activeSection === "essentials" && g.value && !g.value.isValid ? ["Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren."] : a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), N = () => {
54
+ }), K = () => a.activeSection === "findabilityHvd" && !E.value ? (n.value = !0, !1) : (n.value = !1, !0), F = () => a.activeSection === "distributions" && (console.log(y.value && !y.value.isValid), y.value && !y.value.isValid) ? (n.value = !0, !1) : (n.value = !1, !0), j = () => a.activeSection === "essentials" && g.value && !g.value.isValid ? (n.value = !0, !1) : (n.value = !1, !0), q = () => a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? (n.value = !0, !1) : (n.value = !1, !0), H = () => a.activeSection === "findabilityHvd" ? K() : a.activeSection === "essentials" ? j() : a.activeSection === "coverage" ? q() : a.activeSection === "distributions" ? (console.log("hey" + F()), F()) : (n.value = !1, !0), T = k(() => a.activeSection === "findabilityHvd" && !E.value ? ["Bitte wählen Sie mindestens eine Kategorie aus, bevor Sie fortfahren."] : a.activeSection === "essentials" && g.value && !g.value.isValid ? ["Bitte füllen Sie alle Pflichtfelder aus, bevor Sie fortfahren."] : a.activeSection === "coverage" && b.value && b.value.validateAllItems() ? ["Bitte füllen Sie alle erforderlichen Felder aus, wenn ein Feld ausgefüllt ist."] : []), N = () => {
55
55
  H() && W();
56
56
  }, W = () => {
57
57
  n.value = !1, w("close");
58
- }, c = M(() => h.value.BasicInfos), z = (e, t) => {
58
+ }, c = k(() => h.value.BasicInfos), z = (e, t) => {
59
59
  var i;
60
60
  return ((i = e == null ? void 0 : e.find((r) => r["@language"] === t)) == null ? void 0 : i["@value"]) || "";
61
61
  }, _ = (e, t) => {
@@ -64,7 +64,7 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
64
64
  }, U = (e) => {
65
65
  var t;
66
66
  return ((t = e == null ? void 0 : e[0]) == null ? void 0 : t["@value"]) || "";
67
- }, s = f({
67
+ }, l = f({
68
68
  title: z(c.value["dct:title"], "de"),
69
69
  description: z(c.value["dct:description"], "de"),
70
70
  modified: U(c.value["dct:modified"]),
@@ -74,7 +74,7 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
74
74
  contactPointName: _(c.value["dcat:contactPoint"], "vcard:fn"),
75
75
  contactPointMail: _(c.value["dcat:contactPoint"], "vcard:hasEmail"),
76
76
  contactPointPhone: _(c.value["dcat:contactPoint"], "vcard:hasTelephone")
77
- }), O = (e, t, i, r) => {
77
+ }), A = (e, t, i, r) => {
78
78
  e[t] || (e[t] = []);
79
79
  const v = e[t].find((P) => P["@language"] === r);
80
80
  v ? v["@value"] = i : e[t].push({ "@value": i, "@language": r });
@@ -82,15 +82,15 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
82
82
  if (H()) {
83
83
  if (a.activeSection === "essentials") {
84
84
  const e = h.value.BasicInfos || {}, t = JSON.parse(JSON.stringify(e));
85
- O(t, "dct:title", s.value.title, "de"), O(t, "dct:description", s.value.description, "de"), t["dct:publisher"] = [{
86
- "foaf:name": s.value.publisherName,
87
- "foaf:mbox": s.value.publisherMail,
88
- "foaf:homepage": s.value.publisherWebsite
85
+ A(t, "dct:title", l.value.title, "de"), A(t, "dct:description", l.value.description, "de"), t["dct:publisher"] = [{
86
+ "foaf:name": l.value.publisherName,
87
+ "foaf:mbox": l.value.publisherMail,
88
+ "foaf:homepage": l.value.publisherWebsite
89
89
  }], t["dcat:contactPoint"] = [{
90
- "vcard:fn": s.value.contactPointName,
91
- "vcard:hasEmail": s.value.contactPointMail,
92
- "vcard:hasTelephone": s.value.contactPointPhone
93
- }], t["dct:modified"] = [{ "@value": s.value.modified }], h.value.BasicInfos = t;
90
+ "vcard:fn": l.value.contactPointName,
91
+ "vcard:hasEmail": l.value.contactPointMail,
92
+ "vcard:hasTelephone": l.value.contactPointPhone
93
+ }], t["dct:modified"] = [{ "@value": l.value.modified }], h.value.BasicInfos = t;
94
94
  }
95
95
  w("close");
96
96
  }
@@ -103,7 +103,7 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
103
103
  p("div", fe, [
104
104
  I.value ? (o(), m("div", me, R(I.value), 1)) : u("", !0),
105
105
  p("div", pe, [
106
- l(te, {
106
+ s(te, {
107
107
  onClick: N,
108
108
  class: "dpiV3_closeButton",
109
109
  type: "default"
@@ -117,28 +117,28 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
117
117
  class: "findability-container"
118
118
  }, {
119
119
  default: x(() => [
120
- l(ae, {
120
+ s(ae, {
121
121
  context: d.context,
122
122
  ref_key: "findabilityChipsRef",
123
123
  ref: D
124
124
  }, null, 8, ["context"]),
125
- l(ie, { context: d.context }, null, 8, ["context"])
125
+ s(ie, { context: d.context }, null, 8, ["context"])
126
126
  ]),
127
127
  _: 1
128
128
  })) : u("", !0),
129
129
  a.activeSection === "essentials" ? (o(), m("div", ge, [
130
- l(oe, {
130
+ s(oe, {
131
131
  context: d.context,
132
132
  newValues: B(C),
133
- modelValue: s.value,
134
- "onUpdate:modelValue": t[0] || (t[0] = (k) => s.value = k),
133
+ modelValue: l.value,
134
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => l.value = M),
135
135
  ref_key: "essentialsModalRef",
136
136
  ref: g
137
137
  }, null, 8, ["context", "newValues", "modelValue"])
138
138
  ])) : u("", !0),
139
139
  a.activeSection === "coverage" ? (o(), V(r, { key: 3 }, {
140
140
  default: x(() => [
141
- l(se, {
141
+ s(le, {
142
142
  context: d.context,
143
143
  newValues: B(C),
144
144
  ref_key: "coverageModalRef",
@@ -149,7 +149,7 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
149
149
  })) : u("", !0),
150
150
  a.activeSection === "distributions" ? (o(), V(v, { key: 4 }, {
151
151
  default: x(() => [
152
- l(ne, {
152
+ s(ne, {
153
153
  context: d.context,
154
154
  newValues: B(C),
155
155
  ref_key: "distributionModalRef",
@@ -160,7 +160,7 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
160
160
  })) : u("", !0),
161
161
  a.activeSection === "additionals" ? (o(), V(P, { key: 5 }, {
162
162
  default: x(() => [
163
- l(le, {
163
+ s(se, {
164
164
  context: d.context,
165
165
  onCloseModal: W
166
166
  }, null, 8, ["context"])
@@ -168,15 +168,15 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
168
168
  _: 1
169
169
  })) : u("", !0),
170
170
  n.value && T.value.length > 0 ? (o(), m("div", be, [
171
- l(B(ee), {
171
+ s(B(ee), {
172
172
  size: 16,
173
173
  weight: "fill"
174
174
  }),
175
175
  p("div", ye, [
176
- (o(!0), m(Q, null, X(T.value, (k) => (o(), m("span", {
177
- key: k,
176
+ (o(!0), m(Q, null, X(T.value, (M) => (o(), m("span", {
177
+ key: M,
178
178
  class: "copy-mini-regular"
179
- }, R(k), 1))), 128))
179
+ }, R(M), 1))), 128))
180
180
  ])
181
181
  ])) : u("", !0)
182
182
  ])
@@ -187,14 +187,14 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
187
187
  }, {
188
188
  default: x(() => [
189
189
  p("div", Se, [
190
- l($, {
190
+ s(O, {
191
191
  onClick: N,
192
192
  buttonText: "Zurück",
193
193
  size: "large",
194
194
  iconStart: "CaretLeft",
195
195
  variant: "tertiary"
196
196
  }),
197
- l($, {
197
+ s(O, {
198
198
  onClick: Z,
199
199
  buttonText: "Speichern",
200
200
  size: "large"
@@ -207,7 +207,7 @@ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOu
207
207
  ]);
208
208
  };
209
209
  }
210
- }, ze = /* @__PURE__ */ re(Ve, [["__scopeId", "data-v-6dbcc9d0"]]);
210
+ }, ze = /* @__PURE__ */ re(Ve, [["__scopeId", "data-v-055b1a66"]]);
211
211
  export {
212
212
  ze as default
213
213
  };
@@ -1,106 +1,106 @@
1
- import { ref as r, resolveComponent as v, createElementBlock as s, openBlock as i, Fragment as f, createCommentVNode as S, createElementVNode as a, createVNode as l, withCtx as u, withDirectives as b, unref as o, isRef as W, renderList as w, toDisplayString as h, vShow as y } from "vue";
2
- import A from "../CloseOpenButtonV3.vue.js";
1
+ import { ref as d, resolveComponent as v, createElementBlock as r, openBlock as s, Fragment as f, createCommentVNode as b, createElementVNode as i, createVNode as l, withCtx as u, withDirectives as S, unref as a, isRef as A, renderList as W, toDisplayString as _, vShow as w } from "vue";
2
+ import y from "../CloseOpenButtonV3.vue.js";
3
3
  import O from "./AdditionalsSubModal.vue.js";
4
4
  /* empty css */
5
+ import j from "../../../../_virtual/_plugin-vue_export-helper.js";
5
6
  import { useFormSchema as z } from "../../../composables/useFormSchema.js";
6
- const j = { key: 0 }, G = ["onClick"], L = ["onClick"], R = { key: 1 }, q = { class: "headline-4" }, T = {
7
+ const G = { key: 0 }, L = ["onClick"], R = ["onClick"], q = { key: 1 }, H = { class: "headline-4" }, J = {
7
8
  __name: "AdditionalsModal",
8
9
  props: {
9
10
  context: Object
10
11
  },
11
12
  setup(B, { emit: V }) {
12
- const I = V, { getSchema: N } = z(), c = r(N("datasets")), m = r(!1);
13
- let _ = r([]), g = r([]), n = r("recommended"), p = r();
14
- const D = r("");
15
- function E(e) {
13
+ const I = V, { getSchema: M } = z(), m = d(M("datasets")), c = d(!1);
14
+ let h = d([]), g = d([]), n = d("recommended"), p = d();
15
+ const N = d("");
16
+ function D(e) {
16
17
  I("closeModal", e);
17
18
  }
18
- for (let e = 0; e < c.value.Additionals.length; e++)
19
- e < 4 ? _.value.push(c.value.Additionals[e]) : g.value.push(c.value.Additionals[e]);
19
+ for (let e = 0; e < m.value.Additionals.length; e++)
20
+ e < 4 ? h.value.push(m.value.Additionals[e]) : g.value.push(m.value.Additionals[e]);
20
21
  const k = (e) => {
21
- p.value = e, m.value = !0;
22
- }, F = (e) => {
23
- m.value = e, D.value = e;
22
+ p.value = e, c.value = !0;
23
+ }, E = (e) => {
24
+ c.value = e, N.value = e;
24
25
  };
25
26
  return (e, t) => {
26
- const C = v("headlineWrapper"), x = v("itemWrapper"), $ = v("outerItemWrapper");
27
- return i(), s(f, null, [
28
- m.value ? S("", !0) : (i(), s("div", j, [
29
- t[4] || (t[4] = a("h4", { class: "headline-4" }, "Optionale Informationen hinzufügen", -1)),
30
- t[5] || (t[5] = a("hr", null, null, -1)),
27
+ const x = v("headlineWrapper"), C = v("itemWrapper"), $ = v("outerItemWrapper");
28
+ return s(), r(f, null, [
29
+ c.value ? b("", !0) : (s(), r("div", G, [
30
+ t[4] || (t[4] = i("hr", null, null, -1)),
31
31
  l($, null, {
32
32
  default: u(() => [
33
- l(C, null, {
33
+ l(x, null, {
34
34
  default: u(() => [
35
- t[2] || (t[2] = a("h5", { class: "headline-5" }, "Empfohlen", -1)),
36
- l(A, {
37
- onClick: t[0] || (t[0] = (d) => W(n) ? n.value = "recommended" : n = "recommended"),
38
- expanded: o(n) != "recommended"
35
+ t[2] || (t[2] = i("h5", { class: "headline-5" }, "Empfohlen", -1)),
36
+ l(y, {
37
+ onClick: t[0] || (t[0] = (o) => A(n) ? n.value = "recommended" : n = "recommended"),
38
+ expanded: a(n) != "recommended"
39
39
  }, null, 8, ["expanded"])
40
40
  ]),
41
41
  _: 1,
42
42
  __: [2]
43
43
  }),
44
- b(l(x, null, {
44
+ S(l(C, null, {
45
45
  default: u(() => [
46
- (i(!0), s(f, null, w(o(_), (d) => (i(), s("div", null, [
47
- a("span", {
48
- onClick: (M) => k(d),
46
+ (s(!0), r(f, null, W(a(h), (o) => (s(), r("div", null, [
47
+ i("span", {
48
+ onClick: (F) => k(o),
49
49
  class: "copy-large-regular"
50
- }, h(e.$t("message.dataupload.datasets." + d.identifier + ".label")), 9, G)
50
+ }, _(e.$t("message.dataupload.datasets." + o.identifier + ".label")), 9, L)
51
51
  ]))), 256))
52
52
  ]),
53
53
  _: 1
54
54
  }, 512), [
55
- [y, o(n) === "recommended"]
55
+ [w, a(n) === "recommended"]
56
56
  ])
57
57
  ]),
58
58
  _: 1
59
59
  }),
60
- t[6] || (t[6] = a("hr", null, null, -1)),
60
+ t[5] || (t[5] = i("hr", null, null, -1)),
61
61
  l($, null, {
62
62
  default: u(() => [
63
- l(C, null, {
63
+ l(x, null, {
64
64
  default: u(() => [
65
- t[3] || (t[3] = a("h5", { class: "headline-5" }, "Fortgeschrittene", -1)),
66
- l(A, {
67
- onClick: t[1] || (t[1] = (d) => W(n) ? n.value = "advanced" : n = "advanced"),
68
- expanded: o(n) != "advanced"
65
+ t[3] || (t[3] = i("h5", { class: "headline-5" }, "Fortgeschrittene", -1)),
66
+ l(y, {
67
+ onClick: t[1] || (t[1] = (o) => A(n) ? n.value = "advanced" : n = "advanced"),
68
+ expanded: a(n) != "advanced"
69
69
  }, null, 8, ["expanded"])
70
70
  ]),
71
71
  _: 1,
72
72
  __: [3]
73
73
  }),
74
- b(l(x, null, {
74
+ S(l(C, null, {
75
75
  default: u(() => [
76
- (i(!0), s(f, null, w(o(g), (d) => (i(), s("div", null, [
77
- a("span", {
78
- onClick: (M) => k(d),
76
+ (s(!0), r(f, null, W(a(g), (o) => (s(), r("div", null, [
77
+ i("span", {
78
+ onClick: (F) => k(o),
79
79
  class: "copy-large-regular"
80
- }, h(e.$t("message.dataupload.datasets." + d.identifier + ".label")), 9, L)
80
+ }, _(e.$t("message.dataupload.datasets." + o.identifier + ".label")), 9, R)
81
81
  ]))), 256))
82
82
  ]),
83
83
  _: 1
84
84
  }, 512), [
85
- [y, o(n) === "advanced"]
85
+ [w, a(n) === "advanced"]
86
86
  ])
87
87
  ]),
88
88
  _: 1
89
89
  })
90
90
  ])),
91
- m.value ? (i(), s("div", R, [
92
- a("h4", q, h(e.$t("message.dataupload.datasets." + o(p).identifier + ".label")) + " hinzufügen ", 1),
91
+ c.value ? (s(), r("div", q, [
92
+ i("h4", H, _(e.$t("message.dataupload.datasets." + a(p).identifier + ".label")) + " hinzufügen ", 1),
93
93
  l(O, {
94
94
  context: B.context,
95
- item: o(p),
96
- onGoBack: F,
97
- onSst: E
95
+ item: a(p),
96
+ onGoBack: E,
97
+ onSst: D
98
98
  }, null, 8, ["context", "item"])
99
- ])) : S("", !0)
99
+ ])) : b("", !0)
100
100
  ], 64);
101
101
  };
102
102
  }
103
- };
103
+ }, Y = /* @__PURE__ */ j(J, [["__scopeId", "data-v-3dba6a98"]]);
104
104
  export {
105
- T as default
105
+ Y as default
106
106
  };