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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
  3. package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
  4. package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
  5. package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
  24. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
  25. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
  26. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
  27. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
  28. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
  29. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
  30. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
  31. package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
  32. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
  33. package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
  34. package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
  35. package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
  36. package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
  37. package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
  38. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
  39. package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
  40. package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
  41. package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
  42. package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
  43. package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
  44. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
  45. package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
  46. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
  47. package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
  48. package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
  49. package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
  50. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
  51. package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
  52. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
  53. package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
  54. package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
  55. package/dist/data-provider-interface/store/modules/authStore.js +11 -11
  56. package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
  57. package/dist/data-provider-interface/views/InputPage.vue.js +389 -760
  58. package/dist/styles/_dpi.scss +1614 -0
  59. package/dist/styles/_maps.scss +24 -0
  60. package/dist/styles/_variables.scss +973 -0
  61. package/package.json +28 -19
  62. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
@@ -1,20 +1,28 @@
1
- import { ref as M, computed as O, resolveComponent as p, createElementBlock as g, openBlock as c, createElementVNode as m, createBlock as v, createCommentVNode as r, createVNode as i, toDisplayString as T, withCtx as _, unref as y } from "vue";
2
- import $ from "./CrossOutButton.vue.js";
3
- import C from "./ButtonV3.vue.js";
4
- import z from "./SectionItems/FindabilityChips.vue.js";
5
- import F from "./SectionItems/HVDSwitch.vue.js";
6
- import I from "./SectionItems/EssentialsModal.vue.js";
7
- import W from "./SectionItems/DistributionModal.vue.js";
8
- import H from "./SectionItems/CoverageModal.vue.js";
9
- import L from "./SectionItems/AdditionalsModal.vue.js";
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
+ import { useI18n as Y } from "vue-i18n";
3
+ import { PhWarning as ee } from "@phosphor-icons/vue";
4
+ import te from "./CrossOutButton.vue.js";
5
+ import O from "./ButtonV3.vue.js";
6
+ import ae from "./SectionItems/FindabilityChips.vue.js";
7
+ import ie from "./SectionItems/HVDSwitch.vue.js";
8
+ import oe from "./SectionItems/EssentialsModal.vue.js";
9
+ import ne from "./SectionItems/DistributionModal.vue.js";
10
+ import le from "./SectionItems/CoverageModal.vue.js";
11
+ import se from "./SectionItems/AdditionalsModal.vue.js";
10
12
  import "@formkit/core";
11
- import { useFormValues as J } from "../../composables/useDpiFormValues.js";
13
+ import { useFormValues as ce } from "../../composables/useDpiFormValues.js";
12
14
  /* empty css */
13
- import j from "../../../_virtual/_plugin-vue_export-helper.js";
14
- const q = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalOuter" }, U = { class: "dpiV3_RapModalInner" }, Z = { class: "dpiV3_modalHead" }, A = { class: "dpiV3_closeButtonContainer" }, G = { class: "dpiV3_modalBody" }, K = { key: 0 }, Q = {
15
+ import re from "../../../_virtual/_plugin-vue_export-helper.js";
16
+ const ue = { class: "dpiV3_RapModalContainer" }, de = { class: "dpiV3_RapModalOuter" }, ve = { class: "dpiV3_RapModalInner" }, fe = { class: "dpiV3_modalHead" }, me = {
17
+ key: 0,
18
+ class: "headline"
19
+ }, pe = { class: "dpiV3_closeButtonContainer" }, _e = { class: "dpiV3_modalBody" }, he = { key: 0 }, ge = {
15
20
  key: 2,
16
21
  id: "essentials"
17
- }, X = { class: "dpiV3_actionButtonWrap" }, Y = {
22
+ }, be = {
23
+ key: 6,
24
+ class: "dpiV3_errormsgWrapper"
25
+ }, ye = { class: "validation-messages" }, Se = { class: "dpiV3_actionButtonWrap" }, Ve = {
18
26
  __name: "RapModal",
19
27
  props: {
20
28
  isVisible: {
@@ -25,133 +33,181 @@ const q = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalOute
25
33
  activeSection: String
26
34
  },
27
35
  emits: ["close"],
28
- setup(s, { emit: P }) {
29
- const l = s;
30
- let h = M();
31
- const { formValues: V } = J(), S = P, x = () => {
32
- S("close");
33
- }, n = O(() => V.value.BasicInfos), k = (t, e) => {
34
- var a;
35
- return ((a = t == null ? void 0 : t.find((u) => u["@language"] === e)) == null ? void 0 : a["@value"]) || "";
36
- }, d = (t, e) => {
37
- var a;
38
- return ((a = t == null ? void 0 : t[0]) == null ? void 0 : a[e]) || "";
39
- }, w = (t) => {
40
- var e;
41
- return ((e = t == null ? void 0 : t[0]) == null ? void 0 : e["@value"]) || "";
42
- }, o = M({
43
- title: k(n.value["dct:title"], "de"),
44
- description: k(n.value["dct:description"], "de"),
45
- modified: w(n.value["dct:modified"]),
46
- publisherName: d(n.value["dct:publisher"], "foaf:name"),
47
- publisherMail: d(n.value["dct:publisher"], "foaf:mbox"),
48
- publisherWebsite: d(n.value["dct:publisher"], "foaf:homepage"),
49
- contactPointName: d(n.value["dcat:contactPoint"], "vcard:fn"),
50
- contactPointMail: d(n.value["dcat:contactPoint"], "vcard:hasEmail"),
51
- contactPointPhone: d(n.value["dcat:contactPoint"], "vcard:hasTelephone")
52
- }), B = (t, e, a, u) => {
53
- t[e] || (t[e] = []);
54
- const f = t[e].find((b) => b["@language"] === u);
55
- f ? f["@value"] = a : t[e].push({ "@value": a, "@language": u });
56
- }, R = () => {
57
- const t = JSON.parse(JSON.stringify(V.value.BasicInfos));
58
- B(t, "dct:title", o.value.title, "de"), B(t, "dct:description", o.value.description, "de"), t["dct:publisher"] = [{
59
- "foaf:name": o.value.publisherName,
60
- "foaf:mbox": o.value.publisherMail,
61
- "foaf:homepage": o.value.publisherWebsite
62
- }], t["dcat:contactPoint"] = [{
63
- "vcard:fn": o.value.contactPointName,
64
- "vcard:hasEmail": o.value.contactPointMail,
65
- "vcard:hasTelephone": o.value.contactPointPhone
66
- }], t["dct:modified"] = [{ "@value": o.value.modified }], V.value.BasicInfos = t, S("close");
36
+ setup(d, { emit: L }) {
37
+ const { t: $ } = Y(), a = d;
38
+ let C = f();
39
+ const { formValues: h } = ce(), w = L, D = f(null), g = f(null), b = f(null), n = f(!1), y = f(null), J = {
40
+ findabilityHvd: "message.dataupload.datasets.rap.findability.title",
41
+ essentials: "message.dataupload.datasets.rap.essentials.title",
42
+ coverage: "message.dataupload.datasets.rap.coverage.title",
43
+ distributions: "message.metadata.distributions",
44
+ additionals: "message.metadata.additionals"
67
45
  };
68
- return (t, e) => {
69
- const a = p("findability"), u = p("coverage"), f = p("distributionRap"), b = p("additionals"), E = p("interaction");
70
- return c(), g("div", q, [
71
- m("div", D, [
72
- m("div", U, [
73
- m("div", Z, [
74
- m("div", A, [
75
- i($, {
76
- onClick: x,
46
+ console.log(h.value);
47
+ const I = k(() => {
48
+ const e = J[a.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;
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 = 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
+ H() && W();
56
+ }, W = () => {
57
+ n.value = !1, w("close");
58
+ }, c = k(() => h.value.BasicInfos), z = (e, t) => {
59
+ var i;
60
+ return ((i = e == null ? void 0 : e.find((r) => r["@language"] === t)) == null ? void 0 : i["@value"]) || "";
61
+ }, _ = (e, t) => {
62
+ var i;
63
+ return ((i = e == null ? void 0 : e[0]) == null ? void 0 : i[t]) || "";
64
+ }, U = (e) => {
65
+ var t;
66
+ return ((t = e == null ? void 0 : e[0]) == null ? void 0 : t["@value"]) || "";
67
+ }, l = f({
68
+ title: z(c.value["dct:title"], "de"),
69
+ description: z(c.value["dct:description"], "de"),
70
+ modified: U(c.value["dct:modified"]),
71
+ publisherName: _(c.value["dct:publisher"], "foaf:name"),
72
+ publisherMail: _(c.value["dct:publisher"], "foaf:mbox"),
73
+ publisherWebsite: _(c.value["dct:publisher"], "foaf:homepage"),
74
+ contactPointName: _(c.value["dcat:contactPoint"], "vcard:fn"),
75
+ contactPointMail: _(c.value["dcat:contactPoint"], "vcard:hasEmail"),
76
+ contactPointPhone: _(c.value["dcat:contactPoint"], "vcard:hasTelephone")
77
+ }), A = (e, t, i, r) => {
78
+ e[t] || (e[t] = []);
79
+ const v = e[t].find((P) => P["@language"] === r);
80
+ v ? v["@value"] = i : e[t].push({ "@value": i, "@language": r });
81
+ }, Z = () => {
82
+ if (H()) {
83
+ if (a.activeSection === "essentials") {
84
+ const e = h.value.BasicInfos || {}, t = JSON.parse(JSON.stringify(e));
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
+ }], t["dcat:contactPoint"] = [{
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
+ }
95
+ w("close");
96
+ }
97
+ };
98
+ return (e, t) => {
99
+ const i = S("findability"), r = S("coverage"), v = S("distributionRap"), P = S("additionals"), G = S("interaction");
100
+ return o(), m("div", ue, [
101
+ p("div", de, [
102
+ p("div", ve, [
103
+ p("div", fe, [
104
+ I.value ? (o(), m("div", me, R(I.value), 1)) : u("", !0),
105
+ p("div", pe, [
106
+ s(te, {
107
+ onClick: N,
77
108
  class: "dpiV3_closeButton",
78
109
  type: "default"
79
110
  })
80
111
  ])
81
112
  ]),
82
- m("div", G, [
83
- l.activeSection === "findabilityHvd" ? (c(), g("span", K, T(t.$t("message.metadata.categories")), 1)) : r("", !0),
84
- l.activeSection === "findabilityHvd" ? (c(), v(a, { key: 1 }, {
85
- default: _(() => [
86
- i(z, { context: s.context }, null, 8, ["context"]),
87
- i(F, { context: s.context }, null, 8, ["context"])
113
+ p("div", _e, [
114
+ a.activeSection === "findabilityHvd" ? (o(), m("span", he, R(e.$t("message.metadata.categories")), 1)) : u("", !0),
115
+ a.activeSection === "findabilityHvd" ? (o(), V(i, {
116
+ key: 1,
117
+ class: "findability-container"
118
+ }, {
119
+ default: x(() => [
120
+ s(ae, {
121
+ context: d.context,
122
+ ref_key: "findabilityChipsRef",
123
+ ref: D
124
+ }, null, 8, ["context"]),
125
+ s(ie, { context: d.context }, null, 8, ["context"])
88
126
  ]),
89
127
  _: 1
90
- })) : r("", !0),
91
- l.activeSection === "essentials" ? (c(), g("div", Q, [
92
- i(I, {
93
- context: s.context,
94
- newValues: y(h),
95
- modelValue: o.value,
96
- "onUpdate:modelValue": e[0] || (e[0] = (N) => o.value = N)
128
+ })) : u("", !0),
129
+ a.activeSection === "essentials" ? (o(), m("div", ge, [
130
+ s(oe, {
131
+ context: d.context,
132
+ newValues: B(C),
133
+ modelValue: l.value,
134
+ "onUpdate:modelValue": t[0] || (t[0] = (M) => l.value = M),
135
+ ref_key: "essentialsModalRef",
136
+ ref: g
97
137
  }, null, 8, ["context", "newValues", "modelValue"])
98
- ])) : r("", !0),
99
- l.activeSection === "coverage" ? (c(), v(u, { key: 3 }, {
100
- default: _(() => [
101
- i(H, {
102
- context: s.context,
103
- newValues: y(h)
138
+ ])) : u("", !0),
139
+ a.activeSection === "coverage" ? (o(), V(r, { key: 3 }, {
140
+ default: x(() => [
141
+ s(le, {
142
+ context: d.context,
143
+ newValues: B(C),
144
+ ref_key: "coverageModalRef",
145
+ ref: b
104
146
  }, null, 8, ["context", "newValues"])
105
147
  ]),
106
148
  _: 1
107
- })) : r("", !0),
108
- l.activeSection === "distributions" ? (c(), v(f, { key: 4 }, {
109
- default: _(() => [
110
- i(W, {
111
- context: s.context,
112
- newValues: y(h)
149
+ })) : u("", !0),
150
+ a.activeSection === "distributions" ? (o(), V(v, { key: 4 }, {
151
+ default: x(() => [
152
+ s(ne, {
153
+ context: d.context,
154
+ newValues: B(C),
155
+ ref_key: "distributionModalRef",
156
+ ref: y
113
157
  }, null, 8, ["context", "newValues"])
114
158
  ]),
115
159
  _: 1
116
- })) : r("", !0),
117
- l.activeSection === "additionals" ? (c(), v(b, { key: 5 }, {
118
- default: _(() => [
119
- i(L, {
120
- context: s.context,
121
- onCloseModal: x
160
+ })) : u("", !0),
161
+ a.activeSection === "additionals" ? (o(), V(P, { key: 5 }, {
162
+ default: x(() => [
163
+ s(se, {
164
+ context: d.context,
165
+ onCloseModal: W
122
166
  }, null, 8, ["context"])
123
167
  ]),
124
168
  _: 1
125
- })) : r("", !0)
169
+ })) : u("", !0),
170
+ n.value && T.value.length > 0 ? (o(), m("div", be, [
171
+ s(B(ee), {
172
+ size: 16,
173
+ weight: "fill"
174
+ }),
175
+ p("div", ye, [
176
+ (o(!0), m(Q, null, X(T.value, (M) => (o(), m("span", {
177
+ key: M,
178
+ class: "copy-mini-regular"
179
+ }, R(M), 1))), 128))
180
+ ])
181
+ ])) : u("", !0)
126
182
  ])
127
183
  ]),
128
- l.activeSection != "additionals" ? (c(), v(E, {
184
+ a.activeSection != "additionals" ? (o(), V(G, {
129
185
  key: 0,
130
186
  class: "dpiV3_interactionWrap"
131
187
  }, {
132
- default: _(() => [
133
- m("div", X, [
134
- i(C, {
135
- onClick: x,
188
+ default: x(() => [
189
+ p("div", Se, [
190
+ s(O, {
191
+ onClick: N,
136
192
  buttonText: "Zurück",
137
193
  size: "large",
138
194
  iconStart: "CaretLeft",
139
195
  variant: "tertiary"
140
196
  }),
141
- i(C, {
142
- onClick: R,
197
+ s(O, {
198
+ onClick: Z,
143
199
  buttonText: "Speichern",
144
200
  size: "large"
145
201
  })
146
202
  ])
147
203
  ]),
148
204
  _: 1
149
- })) : r("", !0)
205
+ })) : u("", !0)
150
206
  ])
151
207
  ]);
152
208
  };
153
209
  }
154
- }, pt = /* @__PURE__ */ j(Y, [["__scopeId", "data-v-dcb88501"]]);
210
+ }, ze = /* @__PURE__ */ re(Ve, [["__scopeId", "data-v-055b1a66"]]);
155
211
  export {
156
- pt as default
212
+ ze as default
157
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
  };