@piveau/dpi 0.1.0-beta.7 → 0.1.0-beta.71
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/DPIMenu.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ComponentLibrary.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +58 -53
- package/dist/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +88 -68
- package/dist/data-provider-interface/HappyFlowComponents/ui/CloseOpenButtonV3.vue.js +11 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +101 -76
- package/dist/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalSimpleV3.vue.js +11 -11
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +444 -355
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessRightsV3.vue.js +64 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +108 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +17 -22
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +130 -77
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +122 -85
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +111 -74
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +170 -99
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/FileFormatV3.vue.js +7 -10
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LanguageV3.vue.js +110 -52
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +65 -86
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/StatusV3.vue.js +29 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +159 -103
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js +48 -48
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +566 -207
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +100 -53
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +43 -89
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +329 -100
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/FindabilityChips.vue.js +43 -26
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/HVDSwitch.vue.js +70 -38
- package/dist/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +181 -107
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +19 -14
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextButtonSmall.vue.js +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/Toast.vue.js +30 -29
- package/dist/data-provider-interface/components/ContactPage.vue.js +148 -100
- package/dist/data-provider-interface/components/DiscoverabilityPage.vue.js +32 -32
- package/dist/data-provider-interface/components/DistLicense.vue.js +198 -99
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +950 -833
- package/dist/data-provider-interface/components/Dropup.vue.js +6 -6
- package/dist/data-provider-interface/components/HVDPage.vue.js +107 -85
- package/dist/data-provider-interface/components/InfoSlot.vue.js +5 -5
- package/dist/data-provider-interface/components/PolGeoUriPage.vue.js +89 -46
- package/dist/data-provider-interface/components/PublisherPage.vue.js +111 -81
- package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +314 -260
- package/dist/data-provider-interface/components/TempResPage.vue.js +267 -187
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +392 -0
- package/dist/data-provider-interface/components/TitelPage.vue.js +4 -4
- package/dist/data-provider-interface/components/UpdateDate.vue.js +33 -29
- package/dist/data-provider-interface/components/dpiV3Description.vue.js +7 -6
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +397 -244
- package/dist/data-provider-interface/config/dcatapde/vocab-prefixes.js +1 -1
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +477 -96
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +104 -152
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +9 -2
- package/dist/data-provider-interface/store/modules/authStore.js +11 -11
- package/dist/data-provider-interface/views/DraftsPage.vue.js +3 -3
- package/dist/data-provider-interface/views/InputPage.vue.js +384 -758
- package/dist/styles/_dpi.scss +1614 -0
- package/dist/styles/_maps.scss +24 -0
- package/dist/styles/_variables.scss +973 -0
- package/package.json +28 -19
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/LicenseAttributionByText.vue.js +0 -46
|
@@ -1,20 +1,28 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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
|
|
13
|
+
import { useFormValues as ce } from "../../composables/useDpiFormValues.js";
|
|
12
14
|
/* empty css */
|
|
13
|
-
import
|
|
14
|
-
const
|
|
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
|
-
},
|
|
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(
|
|
29
|
-
const
|
|
30
|
-
let
|
|
31
|
-
const { formValues:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
})) :
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
context:
|
|
94
|
-
newValues:
|
|
95
|
-
modelValue:
|
|
96
|
-
"onUpdate:modelValue":
|
|
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
|
-
])) :
|
|
99
|
-
|
|
100
|
-
default:
|
|
101
|
-
|
|
102
|
-
context:
|
|
103
|
-
newValues:
|
|
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
|
-
})) :
|
|
108
|
-
|
|
109
|
-
default:
|
|
110
|
-
|
|
111
|
-
context:
|
|
112
|
-
newValues:
|
|
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
|
-
})) :
|
|
117
|
-
|
|
118
|
-
default:
|
|
119
|
-
|
|
120
|
-
context:
|
|
121
|
-
onCloseModal:
|
|
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
|
-
})) :
|
|
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
|
-
|
|
184
|
+
a.activeSection != "additionals" ? (o(), V(G, {
|
|
129
185
|
key: 0,
|
|
130
186
|
class: "dpiV3_interactionWrap"
|
|
131
187
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
onClick:
|
|
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
|
-
|
|
142
|
-
onClick:
|
|
197
|
+
s(O, {
|
|
198
|
+
onClick: Z,
|
|
143
199
|
buttonText: "Speichern",
|
|
144
200
|
size: "large"
|
|
145
201
|
})
|
|
146
202
|
])
|
|
147
203
|
]),
|
|
148
204
|
_: 1
|
|
149
|
-
})) :
|
|
205
|
+
})) : u("", !0)
|
|
150
206
|
])
|
|
151
207
|
]);
|
|
152
208
|
};
|
|
153
209
|
}
|
|
154
|
-
},
|
|
210
|
+
}, ze = /* @__PURE__ */ re(Ve, [["__scopeId", "data-v-055b1a66"]]);
|
|
155
211
|
export {
|
|
156
|
-
|
|
212
|
+
ze as default
|
|
157
213
|
};
|
package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsModal.vue.js
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
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
|
|
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:
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
function
|
|
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 <
|
|
19
|
-
e < 4 ?
|
|
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,
|
|
22
|
-
},
|
|
23
|
-
|
|
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
|
|
27
|
-
return
|
|
28
|
-
|
|
29
|
-
t[4] || (t[4] =
|
|
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(
|
|
33
|
+
l(x, null, {
|
|
34
34
|
default: u(() => [
|
|
35
|
-
t[2] || (t[2] =
|
|
36
|
-
l(
|
|
37
|
-
onClick: t[0] || (t[0] = (
|
|
38
|
-
expanded:
|
|
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
|
-
|
|
44
|
+
S(l(C, null, {
|
|
45
45
|
default: u(() => [
|
|
46
|
-
(
|
|
47
|
-
|
|
48
|
-
onClick: (
|
|
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
|
-
},
|
|
50
|
+
}, _(e.$t("message.dataupload.datasets." + o.identifier + ".label")), 9, L)
|
|
51
51
|
]))), 256))
|
|
52
52
|
]),
|
|
53
53
|
_: 1
|
|
54
54
|
}, 512), [
|
|
55
|
-
[
|
|
55
|
+
[w, a(n) === "recommended"]
|
|
56
56
|
])
|
|
57
57
|
]),
|
|
58
58
|
_: 1
|
|
59
59
|
}),
|
|
60
|
-
t[
|
|
60
|
+
t[5] || (t[5] = i("hr", null, null, -1)),
|
|
61
61
|
l($, null, {
|
|
62
62
|
default: u(() => [
|
|
63
|
-
l(
|
|
63
|
+
l(x, null, {
|
|
64
64
|
default: u(() => [
|
|
65
|
-
t[3] || (t[3] =
|
|
66
|
-
l(
|
|
67
|
-
onClick: t[1] || (t[1] = (
|
|
68
|
-
expanded:
|
|
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
|
-
|
|
74
|
+
S(l(C, null, {
|
|
75
75
|
default: u(() => [
|
|
76
|
-
(
|
|
77
|
-
|
|
78
|
-
onClick: (
|
|
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
|
-
},
|
|
80
|
+
}, _(e.$t("message.dataupload.datasets." + o.identifier + ".label")), 9, R)
|
|
81
81
|
]))), 256))
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}, 512), [
|
|
85
|
-
[
|
|
85
|
+
[w, a(n) === "advanced"]
|
|
86
86
|
])
|
|
87
87
|
]),
|
|
88
88
|
_: 1
|
|
89
89
|
})
|
|
90
90
|
])),
|
|
91
|
-
|
|
92
|
-
|
|
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:
|
|
96
|
-
onGoBack:
|
|
97
|
-
onSst:
|
|
95
|
+
item: a(p),
|
|
96
|
+
onGoBack: E,
|
|
97
|
+
onSst: D
|
|
98
98
|
}, null, 8, ["context", "item"])
|
|
99
|
-
])) :
|
|
99
|
+
])) : b("", !0)
|
|
100
100
|
], 64);
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
};
|
|
103
|
+
}, Y = /* @__PURE__ */ j(J, [["__scopeId", "data-v-3dba6a98"]]);
|
|
104
104
|
export {
|
|
105
|
-
|
|
105
|
+
Y as default
|
|
106
106
|
};
|