@piveau/dpi 0.2.0-alpha.18 → 0.2.0-alpha.19

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