@piveau/dpi 0.1.0-beta.6 → 0.1.0-beta.8

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,39 +1,39 @@
1
- import { computed as v, ref as g, onMounted as ve, resolveComponent as fe, createElementBlock as n, openBlock as o, Fragment as S, createCommentVNode as c, createBlock as T, createElementVNode as a, unref as p, toDisplayString as s, createVNode as _, renderList as B, createTextVNode as z, withCtx as _e, isRef as te } from "vue";
2
- import { useI18n as he } from "vue-i18n";
3
- /* empty css */
4
- /* empty css */
5
- import C from "../HappyFlowComponents/ui/ButtonV3.vue.js";
6
- import ge from "../HappyFlowComponents/ui/Chip.vue.js";
7
- import "@phosphor-icons/vue";
1
+ import { computed as v, ref as h, onMounted as ve, resolveComponent as fe, createElementBlock as n, openBlock as o, Fragment as k, createCommentVNode as c, createBlock as B, createElementVNode as a, unref as u, toDisplayString as s, createVNode as _, renderList as M, createTextVNode as w, withCtx as _e, isRef as te } from "vue";
8
2
  import "@formkit/core";
9
- import ae from "../HappyFlowComponents/ui/StateTag.vue.js";
10
- import se from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
11
- import O from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
12
- import ye from "../HappyFlowComponents/ui/RapModal.vue.js";
13
- import { useStore as me } from "vuex";
14
- import { useFormKitNodeById as be } from "@formkit/vue";
15
- import Se from "../HappyFlowComponents/ui/TableRowV3.vue.js";
3
+ import { useFormKitNodeById as he } from "@formkit/vue";
4
+ import "@phosphor-icons/vue";
5
+ import { useI18n as ge } from "vue-i18n";
16
6
  import "vue-router";
17
- import { useFormValues as ke } from "../composables/useDpiFormValues.js";
7
+ import { useStore as ye } from "vuex";
8
+ import { useFormValues as me } from "../composables/useDpiFormValues.js";
9
+ import C from "../HappyFlowComponents/ui/ButtonV3.vue.js";
10
+ import be from "../HappyFlowComponents/ui/Chip.vue.js";
11
+ import ae from "../HappyFlowComponents/ui/ModalSimpleV3.vue.js";
12
+ import ke from "../HappyFlowComponents/ui/RapModal.vue.js";
13
+ import se from "../HappyFlowComponents/ui/StateTag.vue.js";
14
+ import Se from "../HappyFlowComponents/ui/TableRowV3.vue.js";
15
+ import E from "../HappyFlowComponents/ui/TextButtonSmall.vue.js";
16
+ /* empty css */
17
+ /* empty css */
18
18
  /* empty css */
19
19
  import Ce from "../../_virtual/_plugin-vue_export-helper.js";
20
20
  import { useDpiContext as De } from "../composables/useDpiContext.js";
21
- const Ve = { key: 0 }, xe = {
21
+ const $e = { key: 0 }, Ve = {
22
22
  key: 1,
23
23
  class: "dpiV3InnerComponentWrap V3-typography"
24
- }, $e = { class: "w-100" }, Te = { class: "dpiV3_Frame_831" }, Be = { key: 0 }, Me = {
24
+ }, xe = { class: "w-100" }, Be = { class: "dpiV3_Frame_831" }, Me = { key: 0 }, Te = {
25
25
  key: 1,
26
26
  class: "dpiV3_Frame_840"
27
- }, He = { class: "dpiV3_title" }, Re = { class: "dpiV3_intro copy-large-regular" }, Pe = {
27
+ }, He = { class: "dpiV3_title" }, ze = { class: "dpiV3_intro copy-large-regular" }, Re = {
28
28
  key: 0,
29
29
  class: "dpiV3Card rapFindability"
30
- }, we = { class: "firstSec" }, ze = { class: "secondSec" }, Oe = {
30
+ }, Ne = { class: "firstSec" }, Pe = { class: "secondSec" }, we = {
31
31
  class: "copy-large-regular",
32
32
  style: { "margin-bottom": "4px" }
33
- }, Ee = { class: "thirdSec" }, Fe = { class: "headline-5" }, je = {
33
+ }, Ee = { class: "thirdSec" }, Oe = { class: "headline-5" }, Fe = {
34
34
  key: 1,
35
35
  class: "dpiV3Card rapEssentials"
36
- }, Le = { class: "firstSec" }, Ie = { class: "secondSec" }, Ne = { class: "heading-3" }, We = { class: "thirdSec" }, Ue = { class: "fourthSec flexSec" }, Ge = { class: "copy-large-regular" }, Ke = { class: "copy-large-semi-bold" }, Ye = { class: "fifthSec flexSec" }, Ze = { class: "copy-large-regular" }, qe = { class: "headline-5" }, Je = { class: "copy-large-regular" }, Qe = ["href"], Xe = { class: "sixthSec flexSec" }, Ae = { class: "copy-large-regular" }, et = { class: "headline-5" }, tt = { class: "copy-large-regular" }, at = { class: "copy-large-regular" }, st = {
36
+ }, Le = { class: "firstSec" }, je = { class: "secondSec" }, Ie = { class: "heading-3" }, Ke = { class: "thirdSec" }, We = { class: "fourthSec flexSec" }, Ue = { class: "copy-large-regular" }, Ge = { class: "copy-large-semi-bold" }, Ye = { class: "fifthSec flexSec" }, Ze = { class: "copy-large-regular" }, qe = { class: "headline-5" }, Je = { class: "copy-large-regular" }, Qe = ["href"], Xe = { class: "sixthSec flexSec" }, Ae = { class: "copy-large-regular" }, et = { class: "headline-5" }, tt = { class: "copy-large-regular" }, at = { class: "copy-large-regular" }, st = {
37
37
  key: 0,
38
38
  class: "dpiV3Card rapCoverage"
39
39
  }, ot = { class: "firstSec" }, lt = {
@@ -42,158 +42,167 @@ const Ve = { key: 0 }, xe = {
42
42
  }, nt = { class: "rapHeadWrap" }, it = { class: "copy-large-regular" }, rt = { class: "coveragePlaceWrap" }, dt = { class: "headline-5" }, ct = {
43
43
  key: 1,
44
44
  class: "thirdSec"
45
- }, ut = { class: "rapHeadWrap" }, pt = { class: "copy-large-regular" }, vt = { class: "dpiV3_RapInnerCardWrapper" }, ft = { class: "dpiV3_RapInnerCard" }, _t = { class: "copy-small-regular" }, ht = { key: 0 }, gt = { class: "copy-small-regular" }, yt = { key: 0 }, mt = { class: "dpiV3Card rapDistribution" }, bt = { class: "firstSec" }, St = { class: "secondSec flexSec" }, kt = { class: "copy-large-regular" }, Ct = { class: "headline-5" }, Dt = { class: "thirdSec flexSec" }, Vt = { class: "copy-large-regular" }, xt = { class: "headline-5" }, $t = { class: "fourthSec flexSec" }, Tt = { class: "copy-large-regular" }, Bt = { class: "dpiV3_distCard" }, Mt = { class: "copy-large-semi-bold" }, Ht = {
45
+ }, ut = { class: "rapHeadWrap" }, pt = { class: "copy-large-regular" }, vt = { class: "dpiV3_RapInnerCardWrapper" }, ft = { class: "dpiV3_RapInnerCard" }, _t = { class: "copy-small-regular" }, ht = { key: 0 }, gt = { class: "copy-small-regular" }, yt = { key: 0 }, mt = { class: "dpiV3Card rapDistribution" }, bt = { class: "firstSec" }, kt = { class: "secondSec flexSec" }, St = { class: "copy-large-regular" }, Ct = { class: "headline-5" }, Dt = { class: "thirdSec flexSec" }, $t = { class: "copy-large-regular" }, Vt = { class: "headline-5" }, xt = { class: "fourthSec flexSec" }, Bt = { class: "copy-large-regular" }, Mt = { class: "dpiV3_distCard" }, Tt = { class: "copy-large-semi-bold" }, Ht = {
46
46
  key: 1,
47
47
  class: "dpiV3Card rapDistribution"
48
- }, Rt = { class: "firstSec" }, Pt = { class: "secondSec flexSec" }, wt = { class: "dpiV3_optionalSpanHeadWrap" }, zt = { class: "dpiV3_optionalSpan copy-large-regular" }, Ot = { key: 0 }, Et = { key: 0 }, Ft = { key: 1 }, jt = { key: 2 }, Lt = { key: 3 }, It = { key: 4 }, Nt = { key: 5 }, Wt = { key: 6 }, Ut = { class: "dpiV3_tempAddMore" }, Gt = {
48
+ }, zt = { class: "firstSec" }, Rt = { class: "secondSec flexSec" }, Nt = { class: "dpiV3_optionalSpanHeadWrap" }, Pt = { class: "dpiV3_optionalSpan copy-large-regular" }, wt = { key: 0 }, Et = { key: 0 }, Ot = { key: 1 }, Ft = { key: 2 }, Lt = { key: 3 }, jt = { key: 4 }, It = { key: 5 }, Kt = { key: 6 }, Wt = { class: "dpiV3_tempAddMore" }, Ut = {
49
49
  key: 2,
50
50
  class: "dpiV3_tempAddMore"
51
- }, Kt = {
51
+ }, Gt = {
52
52
  __name: "ReviewAndPublishPage",
53
53
  props: {
54
54
  context: Object
55
55
  },
56
56
  setup(oe) {
57
- const { t: E } = he(), D = De();
57
+ const { t: O } = ge(), D = De();
58
58
  v(() => {
59
59
  var e;
60
60
  return !!((e = D.value.edit) != null && e.enabled);
61
61
  });
62
- let F = g(D.value.edit.enabled && !D.value.edit.fromDraft);
63
- console.log(F), g([{ isValid: !0 }]), g(!1), me(), g(null);
64
- let y = g(!1), m = g({});
65
- const j = g(!1), { formValues: u } = ke();
66
- be("dpiForm", (e) => {
67
- j.value = !0;
62
+ let F = h(D.value.edit.enabled && !D.value.edit.fromDraft);
63
+ console.log(F), h([{ isValid: !0 }]), h(!1), ye(), h(null);
64
+ let y = h(!1), m = h({});
65
+ const L = h(!1), { formValues: p } = me();
66
+ he("dpiForm", (e) => {
67
+ L.value = !0;
68
68
  });
69
- const le = (e) => {
70
- let t, i, d, h, x, $;
69
+ function le(e) {
70
+ let t, i, d, g, V, x;
71
71
  return e.forEach((f) => {
72
- f.Year && (t = parseInt(f.Year)), f.Month && (i = parseInt(f.Month) - 1), f.Day && (d = parseInt(f.Day)), f.Hour && (h = parseInt(f.Hour)), f.Minute && (x = parseInt(f.Minute)), f.Second && ($ = parseInt(f.Second));
72
+ f.Year && (t = Number.parseInt(f.Year)), f.Month && (i = Number.parseInt(f.Month) - 1), f.Day && (d = Number.parseInt(f.Day)), f.Hour && (g = Number.parseInt(f.Hour)), f.Minute && (V = Number.parseInt(f.Minute)), f.Second && (x = Number.parseInt(f.Second));
73
73
  }), new Date(
74
74
  t || 2025,
75
75
  i || 0,
76
76
  d || 1,
77
- h || 0,
78
- x || 0,
79
- $ || 0
77
+ g || 0,
78
+ V || 0,
79
+ x || 0
80
80
  ).toLocaleString("de", {
81
81
  timeZone: "Europe/Berlin",
82
82
  timeZoneName: "short"
83
83
  });
84
- }, L = g(), V = g(!1);
84
+ }
85
+ const j = h(), $ = h(!1);
85
86
  function H(e) {
86
87
  return !(Object.keys(e).includes("isValid") && Object.keys(e).length === 1);
87
88
  }
88
89
  const ne = v(() => {
89
90
  var t, i;
90
- const e = (i = (t = u.value) == null ? void 0 : t.Discoverability) == null ? void 0 : i.discoverabilityPage;
91
+ const e = (i = (t = p.value) == null ? void 0 : t.Discoverability) == null ? void 0 : i.discoverabilityPage;
91
92
  return Array.isArray(e) ? (e == null ? void 0 : e.filter(H)) || [] : [];
92
93
  }), ie = v(() => {
93
94
  var e, t;
94
- return ((t = (e = u.value) == null ? void 0 : e.Discoverability) == null ? void 0 : t.hvdPage) || [];
95
+ return ((t = (e = p.value) == null ? void 0 : e.Discoverability) == null ? void 0 : t.hvdPage) || [];
95
96
  }), re = v(() => {
96
97
  var i, d;
97
- const e = (d = (i = u.value) == null ? void 0 : i.BasicInfos) == null ? void 0 : d["dct:title"], t = e == null ? void 0 : e.find((h) => h["@language"] === "de");
98
+ const e = (d = (i = p.value) == null ? void 0 : i.BasicInfos) == null ? void 0 : d["dct:title"], t = e == null ? void 0 : e.find((g) => g["@language"] === "de");
98
99
  return t ? t["@value"] : null;
99
100
  }), de = v(() => {
100
101
  var e, t, i, d;
101
- return ((d = (i = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:description"]) == null ? void 0 : i[0]) == null ? void 0 : d["@value"]) || "";
102
+ return ((d = (i = (t = (e = p.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:description"]) == null ? void 0 : i[0]) == null ? void 0 : d["@value"]) || "";
102
103
  }), I = v(() => {
103
- var t, i, d, h;
104
- const e = (h = (d = (i = (t = u.value) == null ? void 0 : t.BasicInfos) == null ? void 0 : i["dct:modified"]) == null ? void 0 : d[0]) == null ? void 0 : h["@value"];
104
+ var t, i, d, g;
105
+ const e = (g = (d = (i = (t = p.value) == null ? void 0 : t.BasicInfos) == null ? void 0 : i["dct:modified"]) == null ? void 0 : d[0]) == null ? void 0 : g["@value"];
105
106
  return e ? new Date(e).toLocaleDateString("de-DE") : "";
106
- }), M = v(() => {
107
+ }), T = v(() => {
107
108
  var e, t, i;
108
- return ((i = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:publisher"]) == null ? void 0 : i[0]) || {};
109
- }), R = v(() => {
109
+ return ((i = (t = (e = p.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dct:publisher"]) == null ? void 0 : i[0]) || {};
110
+ }), z = v(() => {
110
111
  var e, t, i;
111
- return ((i = (t = (e = u.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dcat:contactPoint"]) == null ? void 0 : i[0]) || {};
112
- }), P = v(() => {
112
+ return ((i = (t = (e = p.value) == null ? void 0 : e.BasicInfos) == null ? void 0 : t["dcat:contactPoint"]) == null ? void 0 : i[0]) || {};
113
+ }), R = v(() => {
113
114
  var e, t, i, d;
114
- return ((d = (i = (t = (e = u.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcatde:politicalGeocodingURI"]) == null ? void 0 : i.filter(
115
+ return ((d = (i = (t = (e = p.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcatde:politicalGeocodingURI"]) == null ? void 0 : i.filter(
115
116
  H
116
117
  )) == null ? void 0 : d[0]) || {};
117
- }), w = v(() => {
118
+ }), N = v(() => {
118
119
  var e, t, i, d;
119
- return ((d = (i = (t = (e = u.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcat:temporalResolution"]) == null ? void 0 : i.filter(
120
+ return ((d = (i = (t = (e = p.value) == null ? void 0 : e.Covering) == null ? void 0 : t["dcat:temporalResolution"]) == null ? void 0 : i.filter(
120
121
  H
121
122
  )) == null ? void 0 : d[0]) || {};
122
- }), N = v(() => Object.keys(P.value).length > 1), W = v(() => Object.keys(w.value).length > 1 && w.value["dct:temporal"]), U = v(() => {
123
+ }), K = v(() => Object.keys(R.value).length > 1), W = v(() => Object.keys(N.value).length > 1 && N.value["dct:temporal"]);
124
+ let P = h();
125
+ P = v(() => {
123
126
  var e, t, i;
124
- return ((i = (t = (e = u.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dct:license"]) == null ? void 0 : i[0]) || {};
125
- }), ce = v(() => {
127
+ return ((i = (t = (e = p.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dct:license"]) == null ? void 0 : i[0]) || {};
128
+ });
129
+ const ce = v(() => {
126
130
  var e, t;
127
- return ((t = (e = u.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) || [];
131
+ return ((t = (e = p.value) == null ? void 0 : e.DistributionSimple) == null ? void 0 : t["dcat:distribution"]) || [];
128
132
  }), b = v(() => {
129
133
  var e;
130
- return ((e = u.value) == null ? void 0 : e.Additionals) || {};
131
- }), G = v(() => (console.log(Object.keys(b.value)), Object.keys(b.value).forEach((e) => {
134
+ return ((e = p.value) == null ? void 0 : e.Additionals) || {};
135
+ }), U = v(() => (Object.keys(b.value).forEach((e) => {
132
136
  if (b.value.hasOwnProperty(e)) {
133
137
  const t = b.value[e];
134
138
  (t === void 0 || Array.isArray(t) && t.length === 0) && delete b.value[e];
135
139
  }
136
- }), Object.keys(b.value))), K = v(() => G.value.length > 0), k = (e) => {
137
- L.value = e, V.value = !0, console.log("Modal sichtbar:", V.value);
138
- }, ue = () => {
139
- V.value = !1, console.log("Modal unsichtbar:", V.value);
140
- }, Y = (e) => {
141
- delete u.value.Additionals[e];
142
- }, pe = (e, t) => {
140
+ }), Object.keys(b.value))), G = v(() => U.value.length > 0);
141
+ function S(e) {
142
+ j.value = e, $.value = !0, console.log("Modal sichtbar:", $.value);
143
+ }
144
+ function ue() {
145
+ $.value = !1, console.log("Modal unsichtbar:", $.value);
146
+ }
147
+ function Y(e) {
148
+ delete p.value.Additionals[e];
149
+ }
150
+ function pe(e, t) {
143
151
  y.value = !0, m.value = {
144
152
  button: "Löschen",
145
- header: E("message.dataupload.additionals." + e) + " löschen",
146
- text: "Sind Sie sicher, dass Sie das optionale Feld " + E("message.dataupload.additionals." + e) + " löschen wollen?",
153
+ header: `${O(`message.dataupload.additionals.${e}`)} löschen`,
154
+ text: `Sind Sie sicher, dass Sie das optionale Feld ${O(`message.dataupload.additionals.${e}`)} löschen wollen?`,
147
155
  action: e
148
156
  };
149
- }, Z = g(!1);
157
+ }
158
+ const Z = h(!1);
150
159
  return ve(() => {
151
160
  Z.value = !0;
152
161
  }), (e, t) => {
153
- var d, h, x, $, f, q, J, Q, X, A, ee;
162
+ var d, g, V, x, f, q, J, Q, X, A, ee;
154
163
  const i = fe("formatbubble");
155
- return o(), n(S, null, [
156
- Z.value && j.value ? (o(), n("div", Ve, [
157
- V.value ? (o(), T(ye, {
164
+ return o(), n(k, null, [
165
+ Z.value && L.value ? (o(), n("div", $e, [
166
+ $.value ? (o(), B(ke, {
158
167
  key: 0,
159
- onClose: ue,
160
168
  context: oe.context,
161
- activeSection: L.value
162
- }, null, 8, ["context", "activeSection"])) : c("", !0),
163
- (o(), n("div", xe, [
164
- a("div", $e, [
165
- a("div", Te, [
166
- p(D).edit.fromDraft || p(D).edit.enabled ? (o(), n("div", Be, [
167
- (o(), T(Se, {
168
- key: (h = (d = p(u).value) == null ? void 0 : d.BasicInfos) == null ? void 0 : h.datasetID,
169
- "data-cy": p(u).value,
170
- id: ($ = (x = p(u).value) == null ? void 0 : x.BasicInfos) == null ? void 0 : $.datasetID,
169
+ "active-section": j.value,
170
+ onClose: ue
171
+ }, null, 8, ["context", "active-section"])) : c("", !0),
172
+ (o(), n("div", Ve, [
173
+ a("div", xe, [
174
+ a("div", Be, [
175
+ u(D).edit.fromDraft || u(D).edit.enabled ? (o(), n("div", Me, [
176
+ (o(), B(Se, {
177
+ id: (g = (d = u(p).value) == null ? void 0 : d.BasicInfos) == null ? void 0 : g.datasetID,
178
+ key: (x = (V = u(p).value) == null ? void 0 : V.BasicInfos) == null ? void 0 : x.datasetID,
179
+ "data-cy": u(p).value,
171
180
  catalogue: "test-catalog",
172
- text: ((q = (f = p(u).value) == null ? void 0 : f.BasicInfos) == null ? void 0 : q.title.de) || ((Q = (J = p(u).value) == null ? void 0 : J.BasicInfos) == null ? void 0 : Q.title.en),
181
+ text: ((q = (f = u(p).value) == null ? void 0 : f.BasicInfos) == null ? void 0 : q.title.de) || ((Q = (J = u(p).value) == null ? void 0 : J.BasicInfos) == null ? void 0 : Q.title.en),
173
182
  date: I.value,
174
- draft: !p(F),
183
+ draft: !u(F),
175
184
  dataset: e.dataset,
176
- fromDraft: "true"
177
- }, null, 8, ["data-cy", "id", "text", "date", "draft", "dataset"]))
178
- ])) : (o(), n("div", Me, [
185
+ "from-draft": "true"
186
+ }, null, 8, ["id", "data-cy", "text", "date", "draft", "dataset"]))
187
+ ])) : (o(), n("div", Te, [
179
188
  a("h4", He, s(e.$t("message.dataupload.datasets.rap.title")), 1),
180
- a("div", Re, s(e.$t("message.dataupload.datasets.rap.intro-text")), 1)
189
+ a("div", ze, s(e.$t("message.dataupload.datasets.rap.intro-text")), 1)
181
190
  ]))
182
191
  ])
183
192
  ]),
184
- (o(), n("div", Pe, [
185
- a("div", we, [
193
+ (o(), n("div", Re, [
194
+ a("div", Ne, [
186
195
  a("span", null, s(e.$t("message.dataupload.datasets.rap.findability.title")), 1),
187
196
  _(C, {
188
197
  size: "large",
189
- iconStart: "pen",
198
+ "icon-start": "pen",
190
199
  variant: "secondary",
191
- onClick: t[0] || (t[0] = (l) => k("findabilityHvd"))
200
+ onClick: t[0] || (t[0] = (l) => S("findabilityHvd"))
192
201
  })
193
202
  ]),
194
- a("div", ze, [
195
- a("span", Oe, s(e.$t("message.dataupload.datasets.rap.findability.categoryHeader")), 1),
196
- (o(!0), n(S, null, B(ne.value, (l, r) => (o(), T(ge, {
203
+ a("div", Pe, [
204
+ a("span", we, s(e.$t("message.dataupload.datasets.rap.findability.categoryHeader")), 1),
205
+ (o(!0), n(k, null, M(ne.value, (l, r) => (o(), B(be, {
197
206
  key: r,
198
207
  text: l.label,
199
208
  data: { "@value": l.value, URI: l.URI },
@@ -205,70 +214,70 @@ const Ve = { key: 0 }, xe = {
205
214
  }, null, 8, ["text", "data"]))), 128))
206
215
  ]),
207
216
  a("div", Ee, [
208
- _(ae, {
217
+ _(se, {
209
218
  label: "HVD",
210
219
  state: "hvd",
211
220
  size: "page"
212
221
  }),
213
- a("h5", Fe, s(((A = (X = ie.value) == null ? void 0 : X[0]) == null ? void 0 : A.label) || "Kein HVD Datensatz"), 1)
222
+ a("h5", Oe, s(((A = (X = ie.value) == null ? void 0 : X[0]) == null ? void 0 : A.label) || "Kein HVD Datensatz"), 1)
214
223
  ])
215
224
  ])),
216
- (o(), n("div", je, [
225
+ (o(), n("div", Fe, [
217
226
  a("div", Le, [
218
227
  a("span", null, s(e.$t("message.dataupload.datasets.rap.essentials.title")), 1),
219
228
  _(C, {
220
229
  size: "large",
221
- iconStart: "pen",
230
+ "icon-start": "pen",
222
231
  variant: "secondary",
223
- onClick: t[1] || (t[1] = (l) => k("essentials"))
232
+ onClick: t[1] || (t[1] = (l) => S("essentials"))
224
233
  })
225
234
  ]),
226
- a("div", Ie, [
227
- a("h3", Ne, s(re.value), 1)
235
+ a("div", je, [
236
+ a("h3", Ie, s(re.value), 1)
228
237
  ]),
229
- a("div", We, [
238
+ a("div", Ke, [
230
239
  a("span", null, s(de.value), 1)
231
240
  ]),
232
- a("div", Ue, [
233
- a("span", Ge, s(e.$t("message.dataupload.datasets.rap.essentials.modifiedHeader")), 1),
234
- a("span", Ke, s(I.value), 1)
241
+ a("div", We, [
242
+ a("span", Ue, s(e.$t("message.dataupload.datasets.rap.essentials.modifiedHeader")), 1),
243
+ a("span", Ge, s(I.value), 1)
235
244
  ]),
236
245
  a("div", Ye, [
237
246
  a("span", Ze, s(e.$t("message.dataupload.datasets.rap.essentials.publisherHeader")), 1),
238
- a("h5", qe, s(M.value["foaf:name"] || ""), 1),
239
- a("a", Je, s(M.value["foaf:mbox"] || ""), 1),
247
+ a("h5", qe, s(T.value["foaf:name"] || ""), 1),
248
+ a("a", Je, s(T.value["foaf:mbox"] || ""), 1),
240
249
  a("a", {
241
250
  class: "copy-large-regular",
242
- href: M.value["foaf:homepage"] || ""
243
- }, s(M.value["foaf:homepage"] || ""), 9, Qe)
251
+ href: T.value["foaf:homepage"] || ""
252
+ }, s(T.value["foaf:homepage"] || ""), 9, Qe)
244
253
  ]),
245
254
  a("div", Xe, [
246
255
  a("span", Ae, s(e.$t("message.dataupload.datasets.rap.essentials.contactHeader")), 1),
247
- a("h5", et, s(R.value["vcard:fn"] || ""), 1),
248
- a("a", tt, s(R.value["vcard:hasEmail"] || ""), 1),
249
- a("span", at, s(R.value["vcard:hasTelephone"] || ""), 1)
256
+ a("h5", et, s(z.value["vcard:fn"] || ""), 1),
257
+ a("a", tt, s(z.value["vcard:hasEmail"] || ""), 1),
258
+ a("span", at, s(z.value["vcard:hasTelephone"] || ""), 1)
250
259
  ])
251
260
  ])),
252
- (o(), n(S, { key: 2 }, [
253
- N.value || W.value ? (o(), n("div", st, [
261
+ (o(), n(k, { key: 2 }, [
262
+ K.value || W.value ? (o(), n("div", st, [
254
263
  a("div", ot, [
255
264
  a("span", null, s(e.$t("message.dataupload.datasets.rap.coverage.title")), 1),
256
265
  _(C, {
257
266
  size: "large",
258
- iconStart: "pen",
267
+ "icon-start": "pen",
259
268
  variant: "secondary",
260
- onClick: t[2] || (t[2] = (l) => k("coverage"))
269
+ onClick: t[2] || (t[2] = (l) => S("coverage"))
261
270
  })
262
271
  ]),
263
- N.value ? (o(), n("div", lt, [
272
+ K.value ? (o(), n("div", lt, [
264
273
  a("div", nt, [
265
274
  a("span", it, s(e.$t("message.dataupload.datasets.rap.coverage.geopolTitle")), 1),
266
- _(O, { buttonText: "löschen" })
275
+ _(E, { "button-text": "löschen" })
267
276
  ]),
268
277
  a("div", rt, [
269
- a("h5", dt, s(P.value.label || ""), 1),
270
- _(ae, {
271
- label: ((ee = P.value.inVoc) == null ? void 0 : ee.toUpperCase()) || "",
278
+ a("h5", dt, s(R.value.label || ""), 1),
279
+ _(se, {
280
+ label: ((ee = R.value.inVoc) == null ? void 0 : ee.toUpperCase()) || "",
272
281
  state: "geopolitical",
273
282
  size: "page"
274
283
  }, null, 8, ["label"])
@@ -277,12 +286,12 @@ const Ve = { key: 0 }, xe = {
277
286
  W.value ? (o(), n("div", ct, [
278
287
  a("div", ut, [
279
288
  a("span", pt, s(e.$t("message.dataupload.datasets.rap.coverage.tempCoverage")), 1),
280
- _(O, { buttonText: "löschen" })
289
+ _(E, { "button-text": "löschen" })
281
290
  ]),
282
291
  a("div", vt, [
283
- (o(!0), n(S, null, B(w.value["dct:temporal"] || [], (l) => (o(), n("div", ft, [
292
+ (o(!0), n(k, null, M(N.value["dct:temporal"] || [], (l) => (o(), n("div", ft, [
284
293
  a("div", _t, [
285
- t[10] || (t[10] = z(" von: ", -1)),
294
+ t[10] || (t[10] = w(" von: ", -1)),
286
295
  a("div", null, [
287
296
  a("span", null, s(new Date(l["dcat:startDate"]).toLocaleDateString(
288
297
  "de-DE"
@@ -291,7 +300,7 @@ const Ve = { key: 0 }, xe = {
291
300
  ])
292
301
  ]),
293
302
  a("div", gt, [
294
- t[11] || (t[11] = z(" bis: ", -1)),
303
+ t[11] || (t[11] = w(" bis: ", -1)),
295
304
  a("div", null, [
296
305
  a("span", null, s(new Date(l["dcat:endDate"]).toLocaleDateString(
297
306
  "de-DE"
@@ -308,28 +317,28 @@ const Ve = { key: 0 }, xe = {
308
317
  a("span", null, s(e.$t("message.metadata.distributions")), 1),
309
318
  _(C, {
310
319
  size: "large",
311
- iconStart: "pen",
320
+ "icon-start": "pen",
312
321
  variant: "secondary",
313
- onClick: t[3] || (t[3] = (l) => k("distributions"))
322
+ onClick: t[3] || (t[3] = (l) => S("distributions"))
314
323
  })
315
324
  ]),
316
- a("div", St, [
317
- a("span", kt, s(e.$t("message.dataupload.steps.dct:license")), 1),
318
- a("h5", Ct, s(U.value["dcterms:license"] || ""), 1)
325
+ a("div", kt, [
326
+ a("span", St, s(e.$t("message.dataupload.steps.dct:license")), 1),
327
+ a("h5", Ct, s(u(P)["dcterms:license"] || "Keine Lizenz angegeben"), 1)
319
328
  ]),
320
329
  a("div", Dt, [
321
- a("span", Vt, s(e.$t("message.dataupload.steps.dct:publisher")), 1),
322
- a("h5", xt, s(U.value.title || ""), 1)
330
+ a("span", $t, s(e.$t("message.dataupload.steps.dct:publisher")), 1),
331
+ a("h5", Vt, s(u(P).title || "Kein Titel angegeben"), 1)
323
332
  ]),
324
- a("div", $t, [
325
- a("span", Tt, s(e.$t("message.dataupload.steps.dcat:distribution")), 1),
326
- (o(!0), n(S, null, B(ce.value, (l) => (o(), n("div", Bt, [
327
- a("span", Mt, s(l["dct:title"]), 1),
333
+ a("div", xt, [
334
+ a("span", Bt, s(e.$t("message.dataupload.steps.dcat:distribution")), 1),
335
+ (o(!0), n(k, null, M(ce.value, (l) => (o(), n("div", Mt, [
336
+ a("span", Tt, s(l["dct:title"]), 1),
328
337
  _(i, null, {
329
338
  default: _e(() => {
330
339
  var r;
331
340
  return [
332
- z(s((r = l["dct:format"]) == null ? void 0 : r.label), 1)
341
+ w(s(((r = l["dct:format"]) == null ? void 0 : r.label) || "Kein Format angegeben"), 1)
333
342
  ];
334
343
  }),
335
344
  _: 2
@@ -337,77 +346,77 @@ const Ve = { key: 0 }, xe = {
337
346
  ]))), 256))
338
347
  ])
339
348
  ]),
340
- K.value ? (o(), n("div", Ht, [
341
- a("div", Rt, [
349
+ G.value ? (o(), n("div", Ht, [
350
+ a("div", zt, [
342
351
  a("span", null, s(e.$t("message.metadata.additionals")), 1)
343
352
  ]),
344
- (o(!0), n(S, null, B(G.value, (l) => (o(), n("div", Pt, [
345
- a("div", wt, [
346
- a("span", zt, s(e.$t("message.dataupload.additionals." + l)) + " (optional)", 1),
347
- _(O, {
348
- buttonText: "löschen",
353
+ (o(!0), n(k, null, M(U.value, (l) => (o(), n("div", Rt, [
354
+ a("div", Nt, [
355
+ a("span", Pt, s(e.$t(`message.dataupload.additionals.${l}`)) + " (optional)", 1),
356
+ _(E, {
357
+ "button-text": "löschen",
349
358
  onClick: (r) => pe(l)
350
359
  }, null, 8, ["onClick"])
351
360
  ]),
352
- l === "dcat:temporalResolution" ? (o(), n("div", Ot, [
361
+ l === "dcat:temporalResolution" ? (o(), n("div", wt, [
353
362
  a("span", null, s(le(b.value[l] || [])), 1)
354
363
  ])) : c("", !0),
355
- l != "dcat:temporalResolution" ? (o(!0), n(S, { key: 1 }, B(b.value[l] || [], (r) => (o(), n("div", {
364
+ l != "dcat:temporalResolution" ? (o(!0), n(k, { key: 1 }, M(b.value[l] || [], (r) => (o(), n("div", {
356
365
  key: r ? r["@id"] || r["@value"] || r["rdfs:label"] : null
357
366
  }, [
358
367
  r && r["@value"] ? (o(), n("span", Et, s(r["@value"]), 1)) : c("", !0),
359
- r && r["@id"] ? (o(), n("span", Ft, s(r["@id"]), 1)) : c("", !0),
360
- r && r["rdfs:label"] ? (o(), n("span", jt, s(r["rdfs:label"]), 1)) : c("", !0),
368
+ r && r["@id"] ? (o(), n("span", Ot, s(r["@id"]), 1)) : c("", !0),
369
+ r && r["rdfs:label"] ? (o(), n("span", Ft, s(r["rdfs:label"]), 1)) : c("", !0),
361
370
  r && r["foaf:name"] ? (o(), n("span", Lt, s(r["foaf:name"]), 1)) : c("", !0),
362
- r && r["foaf:homepage"] ? (o(), n("span", It, s(r["foaf:homepage"]), 1)) : c("", !0),
363
- r && r["foaf:mbox"] ? (o(), n("span", Nt, s(r["foaf:mbox"]), 1)) : c("", !0),
364
- r && r["rdf:type"] ? (o(), n("span", Wt, s(r["rdf:type"]), 1)) : c("", !0)
371
+ r && r["foaf:homepage"] ? (o(), n("span", jt, s(r["foaf:homepage"]), 1)) : c("", !0),
372
+ r && r["foaf:mbox"] ? (o(), n("span", It, s(r["foaf:mbox"]), 1)) : c("", !0),
373
+ r && r["rdf:type"] ? (o(), n("span", Kt, s(r["rdf:type"]), 1)) : c("", !0)
365
374
  ]))), 128)) : c("", !0)
366
375
  ]))), 256)),
367
- a("div", Ut, [
376
+ a("div", Wt, [
368
377
  _(C, {
369
- buttonText: "Optionale Informationen hinzufügen",
378
+ "button-text": "Optionale Informationen hinzufügen",
370
379
  size: "large",
371
- iconStart: "plus",
380
+ "icon-start": "plus",
372
381
  variant: "tertiary",
373
- onClick: t[4] || (t[4] = (l) => k("additionals"))
382
+ onClick: t[4] || (t[4] = (l) => S("additionals"))
374
383
  })
375
384
  ])
376
385
  ])) : c("", !0),
377
- K.value ? c("", !0) : (o(), n("div", Gt, [
386
+ G.value ? c("", !0) : (o(), n("div", Ut, [
378
387
  _(C, {
379
- buttonText: "Optionale Informationen hinzufügen",
388
+ "button-text": "Optionale Informationen hinzufügen",
380
389
  size: "large",
381
- iconStart: "plus",
390
+ "icon-start": "plus",
382
391
  variant: "tertiary",
383
- onClick: t[5] || (t[5] = (l) => k("additionals"))
392
+ onClick: t[5] || (t[5] = (l) => S("additionals"))
384
393
  })
385
394
  ]))
386
395
  ], 64))
387
396
  ])),
388
- p(y) ? (o(), T(se, {
397
+ u(y) ? (o(), B(ae, {
389
398
  key: 2,
390
- buttons: p(m).button,
391
- headerText: p(m).header,
392
- text: p(m).text,
399
+ buttons: u(m).button,
400
+ "header-text": u(m).header,
401
+ text: u(m).text,
402
+ action: u(m).action,
393
403
  onClose: t[6] || (t[6] = (l) => te(y) ? y.value = !1 : y = !1),
394
- action: p(m).action,
395
404
  onActionHandling: t[7] || (t[7] = (l) => Y(l))
396
- }, null, 8, ["buttons", "headerText", "text", "action"])) : c("", !0)
405
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : c("", !0)
397
406
  ])) : c("", !0),
398
- p(y) ? (o(), T(se, {
407
+ u(y) ? (o(), B(ae, {
399
408
  key: 1,
400
- buttons: p(m).button,
401
- headerText: p(m).header,
402
- text: p(m).text,
409
+ buttons: u(m).button,
410
+ "header-text": u(m).header,
411
+ text: u(m).text,
412
+ action: u(m).action,
403
413
  onClose: t[8] || (t[8] = (l) => te(y) ? y.value = !1 : y = !1),
404
- action: p(m).action,
405
414
  onActionHandling: t[9] || (t[9] = (l) => Y(l))
406
- }, null, 8, ["buttons", "headerText", "text", "action"])) : c("", !0)
415
+ }, null, 8, ["buttons", "header-text", "text", "action"])) : c("", !0)
407
416
  ], 64);
408
417
  };
409
418
  }
410
- }, va = /* @__PURE__ */ Ce(Kt, [["__scopeId", "data-v-c7de4a73"]]);
419
+ }, va = /* @__PURE__ */ Ce(Gt, [["__scopeId", "data-v-fa2e727a"]]);
411
420
  export {
412
421
  va as default
413
422
  };
@@ -1,17 +1,15 @@
1
1
  import "@formkit/core";
2
2
  import { provide as e, computed as n, toValue as i, inject as p } from "vue";
3
3
  const o = Symbol("dpiContext");
4
- function x() {
4
+ function c() {
5
5
  const t = p(o);
6
- if (!t)
7
- throw new Error("[useDpiContext] DPI Context not found. Did you forget to inject it?");
8
- return t;
6
+ return t || !1;
9
7
  }
10
- function c(t) {
8
+ function x(t) {
11
9
  e(o, n(() => i(t)));
12
10
  }
13
11
  export {
14
12
  o as dpiContextKey,
15
- c as setupDpiContext,
16
- x as useDpiContext
13
+ x as setupDpiContext,
14
+ c as useDpiContext
17
15
  };