@piveau/dpi 0.2.0-alpha.15 → 0.2.0-alpha.16
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/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +139 -116
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +157 -169
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +20 -20
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +37 -37
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +98 -94
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ApplicationsStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53df9331"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,156 +1,179 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { PhLightbulb as
|
|
4
|
-
import { defineHubSearch as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import E from "../
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const H = { class: "dpiV3_page V3-typography" },
|
|
1
|
+
import { defineComponent as V, ref as h, computed as b, createElementBlock as u, openBlock as m, createElementVNode as i, createVNode as t, createCommentVNode as z, unref as c, Fragment as S, renderList as x, withDirectives as A, vModelCheckbox as C, withCtx as s, createTextVNode as v } from "vue";
|
|
2
|
+
import { FormKit as U } from "@formkit/vue";
|
|
3
|
+
import { PhLightbulb as w } from "@phosphor-icons/vue";
|
|
4
|
+
import { defineHubSearch as B } from "@piveau/sdk-vue";
|
|
5
|
+
import D from "zod";
|
|
6
|
+
import I from "../../../components/StepActionsSection.vue.js";
|
|
7
|
+
import E from "../ButtonV3.vue.js";
|
|
8
|
+
import k from "../Card.vue.js";
|
|
9
|
+
import L from "../Chip.vue.js";
|
|
10
|
+
import P from "../ListBox/Listbox.vue.js";
|
|
11
|
+
const H = { class: "dpiV3_page V3-typography" }, M = { class: "funny-section" }, N = { class: "funny-flex" }, W = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "d-flex selected-applications"
|
|
14
|
-
},
|
|
14
|
+
}, j = ["id", "value"], K = { class: "ml-auto" }, T = { class: "funny-section action-section" }, $ = { class: "action-section" }, q = { class: "action-section" }, ae = /* @__PURE__ */ V({
|
|
15
15
|
__name: "ApplicationsStep",
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
16
|
+
setup(Z) {
|
|
17
|
+
const l = h([]), r = h({ id: "", name: "", label: "", value: "" }), { useSearch: F } = B({
|
|
18
18
|
baseUrl: "https://staging.bydata.de/api/hub/search",
|
|
19
19
|
index: "vocabulary",
|
|
20
20
|
indexDetails: "vocabularies",
|
|
21
|
-
schema:
|
|
22
|
-
}, (
|
|
23
|
-
var
|
|
24
|
-
const
|
|
21
|
+
schema: D.any()
|
|
22
|
+
}, (e) => {
|
|
23
|
+
var o, f;
|
|
24
|
+
const n = String((e == null ? void 0 : e.id) || ""), a = String(((o = e == null ? void 0 : e.pref_label) == null ? void 0 : o.de) || ((f = e == null ? void 0 : e.pref_label) == null ? void 0 : f.en) || "");
|
|
25
25
|
return {
|
|
26
|
-
id:
|
|
27
|
-
name:
|
|
28
|
-
resource:
|
|
26
|
+
id: n,
|
|
27
|
+
name: a,
|
|
28
|
+
resource: e == null ? void 0 : e.resource
|
|
29
29
|
};
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
30
|
+
}), p = [
|
|
31
|
+
{ id: 1, name: "Abfallmanagement" },
|
|
32
|
+
{ id: 2, name: "Abwassermanagement" },
|
|
33
|
+
{ id: 3, name: "Baumanagement" },
|
|
34
|
+
{ id: 4, name: "Besuchermanagement" },
|
|
35
|
+
{ id: 5, name: "Bildungsinfrastruktur" },
|
|
36
|
+
{ id: 6, name: "Bürgerinformationssysteme" },
|
|
37
|
+
{ id: 7, name: "Denkmalschutz" },
|
|
38
|
+
{ id: 8, name: "E-Mobilität" },
|
|
39
|
+
{ id: 9, name: "Emissionsüberwachung" },
|
|
40
|
+
{ id: 10, name: "Energieeffizienz" },
|
|
41
|
+
{ id: 11, name: "Energieversorgung" },
|
|
42
|
+
{ id: 12, name: "Gebäudemanagement" },
|
|
43
|
+
{ id: 13, name: "Hitzeinseln" },
|
|
44
|
+
{ id: 14, name: "Hochwassermanagement" },
|
|
45
|
+
{ id: 15, name: "Integration & Teilhabe" },
|
|
46
|
+
{ id: 16, name: "Katastrophenschutz" },
|
|
47
|
+
{ id: 17, name: "Krankenhausmanagement" },
|
|
48
|
+
{ id: 18, name: "Ladeinfrastruktur" },
|
|
49
|
+
{ id: 19, name: "Lärmschutz" },
|
|
50
|
+
{ id: 20, name: "Lieferverkehr" },
|
|
51
|
+
{ id: 21, name: "Luftqualität" },
|
|
52
|
+
{ id: 22, name: "Mobilitätsauslastung" },
|
|
53
|
+
{ id: 23, name: "Netzwerkinfrastruktur" },
|
|
54
|
+
{ id: 24, name: "Notfallmanagement" },
|
|
55
|
+
{ id: 25, name: "Parkraummanagement" },
|
|
56
|
+
{ id: 26, name: "Sozialraummonitoring" },
|
|
57
|
+
{ id: 27, name: "Stadtplanung" },
|
|
58
|
+
{ id: 28, name: "Straßenbeleuchtung" },
|
|
59
|
+
{ id: 29, name: "Straßeninstandhaltung" },
|
|
60
|
+
{ id: 30, name: "Tourismusmanagement" },
|
|
61
|
+
{ id: 31, name: "Umweltüberwachung" },
|
|
62
|
+
{ id: 32, name: "Urbanes Monitoring" },
|
|
63
|
+
{ id: 33, name: "Veranstaltungsplanung" },
|
|
64
|
+
{ id: 34, name: "Verkehrsflussanalyse" },
|
|
65
|
+
{ id: 35, name: "Wasserqualität" },
|
|
66
|
+
{ id: 36, name: "Wasserversorgung" },
|
|
67
|
+
{ id: 37, name: "Wirtschaftsflächenmanagement" }
|
|
68
|
+
], g = b(() => l.value), _ = b(() => p ? p.map((e) => ({
|
|
69
|
+
id: e.id,
|
|
70
|
+
name: e.name,
|
|
71
|
+
label: e.name,
|
|
72
|
+
value: e.name
|
|
73
|
+
})) : []);
|
|
74
|
+
function y() {
|
|
75
|
+
const e = r.value;
|
|
76
|
+
e.id && (l.value.includes(e.value) || l.value.push(e.value), r.value = { id: "", name: "", label: "", value: "" });
|
|
47
77
|
}
|
|
48
|
-
return (
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
modelValue:
|
|
55
|
-
"onUpdate:modelValue":
|
|
78
|
+
return (e, n) => (m(), u("div", H, [
|
|
79
|
+
i("section", M, [
|
|
80
|
+
i("div", N, [
|
|
81
|
+
n[3] || (n[3] = i("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
|
|
82
|
+
n[4] || (n[4] = i("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese hier entweder aus der Liste oder geben Sie sie manuell an. ", -1)),
|
|
83
|
+
t(c(U), {
|
|
84
|
+
modelValue: l.value,
|
|
85
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => l.value = a),
|
|
56
86
|
name: "applications",
|
|
57
87
|
type: "list",
|
|
58
88
|
validation: "required",
|
|
89
|
+
"validation-label": "Anwendungsbereiche",
|
|
59
90
|
hidden: ""
|
|
60
91
|
}, null, 8, ["modelValue"]),
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
vocabulary: V,
|
|
100
|
-
name: "projectName",
|
|
101
|
-
label: "Wählen Sie Vorschläge aus der Liste",
|
|
102
|
-
placeholder: "Wählen Sie den Projektstatus.",
|
|
103
|
-
validation: "required",
|
|
104
|
-
"validation-label": "Projektstatus"
|
|
105
|
-
}, null, 8, ["modelValue"]),
|
|
106
|
-
t("div", Z, [
|
|
107
|
-
l(L, {
|
|
92
|
+
g.value.length > 0 ? (m(), u("div", W, [
|
|
93
|
+
(m(!0), u(S, null, x(g.value, (a, d) => (m(), u("div", {
|
|
94
|
+
key: `application-${a}@${d}`,
|
|
95
|
+
class: "label-chip"
|
|
96
|
+
}, [
|
|
97
|
+
A(i("input", {
|
|
98
|
+
id: `application-${a}@${d}`,
|
|
99
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => l.value = o),
|
|
100
|
+
class: "label-chip__input",
|
|
101
|
+
type: "checkbox",
|
|
102
|
+
value: a
|
|
103
|
+
}, null, 8, j), [
|
|
104
|
+
[C, l.value]
|
|
105
|
+
]),
|
|
106
|
+
t(L, {
|
|
107
|
+
as: "label",
|
|
108
|
+
for: a,
|
|
109
|
+
class: "label-chip__inner",
|
|
110
|
+
text: a,
|
|
111
|
+
data: { "@value": a, URI: "https://example.com/default" },
|
|
112
|
+
setup: { "@type": "selected", "@icon": "suffix", "@inTable": !1, "@selected": !0 }
|
|
113
|
+
}, null, 8, ["for", "text", "data"])
|
|
114
|
+
]))), 128))
|
|
115
|
+
])) : z("", !0),
|
|
116
|
+
t(P, {
|
|
117
|
+
modelValue: r.value,
|
|
118
|
+
"onUpdate:modelValue": n[2] || (n[2] = (a) => r.value = a),
|
|
119
|
+
options: _.value,
|
|
120
|
+
placeholder: "Suche oder neuen Anwendungsbereich eingeben...",
|
|
121
|
+
label: "Anwendungsbereich auswählen oder neuen eingeben",
|
|
122
|
+
filterable: "",
|
|
123
|
+
taggable: "",
|
|
124
|
+
"create-option": "",
|
|
125
|
+
clearable: "",
|
|
126
|
+
class: "mt-6"
|
|
127
|
+
}, null, 8, ["modelValue", "options"]),
|
|
128
|
+
i("div", K, [
|
|
129
|
+
t(E, {
|
|
108
130
|
"button-text": "Anwendungsbereich hinzufügen",
|
|
109
131
|
size: "medium",
|
|
110
132
|
variant: "tertiary",
|
|
111
133
|
"icon-start": "plus",
|
|
112
|
-
|
|
113
|
-
|
|
134
|
+
disabled: !r.value.id,
|
|
135
|
+
onClick: y
|
|
136
|
+
}, null, 8, ["disabled"])
|
|
114
137
|
])
|
|
115
138
|
])
|
|
116
139
|
]),
|
|
117
|
-
|
|
118
|
-
|
|
140
|
+
i("section", T, [
|
|
141
|
+
t(I, { "hide-cancel": "" })
|
|
119
142
|
]),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
icon:
|
|
123
|
-
|
|
143
|
+
i("section", $, [
|
|
144
|
+
t(k, { variant: "default" }, {
|
|
145
|
+
icon: s(() => [
|
|
146
|
+
t(c(w), {
|
|
124
147
|
size: 32,
|
|
125
148
|
color: "#009fe3"
|
|
126
149
|
})
|
|
127
150
|
]),
|
|
128
|
-
title:
|
|
129
|
-
|
|
151
|
+
title: s(() => n[5] || (n[5] = [
|
|
152
|
+
v(" Information ", -1)
|
|
130
153
|
])),
|
|
131
|
-
default:
|
|
132
|
-
|
|
133
|
-
|
|
154
|
+
default: s(() => [
|
|
155
|
+
n[6] || (n[6] = i("div", { class: "application-information" }, [
|
|
156
|
+
i("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
|
|
134
157
|
], -1))
|
|
135
158
|
]),
|
|
136
159
|
_: 1,
|
|
137
160
|
__: [6]
|
|
138
161
|
})
|
|
139
162
|
]),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
icon:
|
|
143
|
-
|
|
163
|
+
i("section", q, [
|
|
164
|
+
t(k, { variant: "default" }, {
|
|
165
|
+
icon: s(() => [
|
|
166
|
+
t(c(w), {
|
|
144
167
|
size: 32,
|
|
145
168
|
color: "#009fe3"
|
|
146
169
|
})
|
|
147
170
|
]),
|
|
148
|
-
title:
|
|
149
|
-
|
|
171
|
+
title: s(() => n[7] || (n[7] = [
|
|
172
|
+
v(" Beispiel ", -1)
|
|
150
173
|
])),
|
|
151
|
-
default:
|
|
152
|
-
|
|
153
|
-
|
|
174
|
+
default: s(() => [
|
|
175
|
+
n[8] || (n[8] = i("div", { class: "application-information" }, [
|
|
176
|
+
i("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
|
|
154
177
|
], -1))
|
|
155
178
|
]),
|
|
156
179
|
_: 1,
|
|
@@ -161,5 +184,5 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
|
|
|
161
184
|
}
|
|
162
185
|
});
|
|
163
186
|
export {
|
|
164
|
-
|
|
187
|
+
ae as default
|
|
165
188
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./CategoriesStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61aa715e"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ReviewStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a93ecc1"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|