@piveau/dpi 0.2.0-alpha.14 → 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/AboutProject.vue.js +46 -48
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +107 -88
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +86 -62
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +7 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
- 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 +140 -116
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +36 -29
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +189 -155
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
- 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 +367 -379
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +157 -141
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
- 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 +68 -70
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +61 -59
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +185 -180
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +60 -61
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +76 -46
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +67 -34
- package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +98 -94
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +314 -307
- package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
- package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
- package/package.json +5 -5
- package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
|
@@ -1,155 +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
|
-
hidden: ""
|
|
59
|
-
}, null, 8, ["modelValue"]),
|
|
60
|
-
h.value.length > 0 ? (p(), d("div", M, [
|
|
61
|
-
(p(!0), d(U, null, z(h.value, (i, r) => {
|
|
62
|
-
var a, u;
|
|
63
|
-
return p(), d("div", {
|
|
64
|
-
key: `application-${i}@${r}`,
|
|
65
|
-
class: "label-chip"
|
|
66
|
-
}, [
|
|
67
|
-
I(t("input", {
|
|
68
|
-
id: `application-${i}@${r}`,
|
|
69
|
-
"onUpdate:modelValue": e[1] || (e[1] = (x) => s.value = x),
|
|
70
|
-
class: "label-chip__input",
|
|
71
|
-
type: "checkbox",
|
|
72
|
-
value: (u = (a = m(f)[r]) == null ? void 0 : a.resultEnhanced) == null ? void 0 : u.resource
|
|
73
|
-
}, null, 8, Z), [
|
|
74
|
-
[P, s.value]
|
|
75
|
-
]),
|
|
76
|
-
l(N, {
|
|
77
|
-
as: "label",
|
|
78
|
-
for: `application-${i}@${r}`,
|
|
79
|
-
class: "label-chip__inner",
|
|
80
|
-
text: i,
|
|
81
|
-
data: {
|
|
82
|
-
"@value": i,
|
|
83
|
-
URI: "https://example.com/default"
|
|
84
|
-
},
|
|
85
|
-
setup: {
|
|
86
|
-
"@type": "selected",
|
|
87
|
-
"@icon": "suffix",
|
|
88
|
-
"@inTable": !1,
|
|
89
|
-
"@selected": !0
|
|
90
|
-
}
|
|
91
|
-
}, null, 8, ["for", "text", "data"])
|
|
92
|
-
]);
|
|
93
|
-
}), 128))
|
|
94
|
-
])) : A("", !0),
|
|
95
|
-
l(E, {
|
|
96
|
-
modelValue: c.value,
|
|
97
|
-
"onUpdate:modelValue": e[2] || (e[2] = (i) => c.value = i),
|
|
98
|
-
vocabulary: V,
|
|
99
|
-
name: "projectName",
|
|
100
|
-
label: "Wählen Sie Vorschläge aus der Liste",
|
|
101
|
-
placeholder: "Wählen Sie den Projektstatus.",
|
|
102
88
|
validation: "required",
|
|
103
|
-
"validation-label": "
|
|
89
|
+
"validation-label": "Anwendungsbereiche",
|
|
90
|
+
hidden: ""
|
|
104
91
|
}, null, 8, ["modelValue"]),
|
|
105
|
-
|
|
106
|
-
|
|
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, {
|
|
107
130
|
"button-text": "Anwendungsbereich hinzufügen",
|
|
108
131
|
size: "medium",
|
|
109
132
|
variant: "tertiary",
|
|
110
133
|
"icon-start": "plus",
|
|
111
|
-
|
|
112
|
-
|
|
134
|
+
disabled: !r.value.id,
|
|
135
|
+
onClick: y
|
|
136
|
+
}, null, 8, ["disabled"])
|
|
113
137
|
])
|
|
114
138
|
])
|
|
115
139
|
]),
|
|
116
|
-
|
|
117
|
-
|
|
140
|
+
i("section", T, [
|
|
141
|
+
t(I, { "hide-cancel": "" })
|
|
118
142
|
]),
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
icon:
|
|
122
|
-
|
|
143
|
+
i("section", $, [
|
|
144
|
+
t(k, { variant: "default" }, {
|
|
145
|
+
icon: s(() => [
|
|
146
|
+
t(c(w), {
|
|
123
147
|
size: 32,
|
|
124
148
|
color: "#009fe3"
|
|
125
149
|
})
|
|
126
150
|
]),
|
|
127
|
-
title:
|
|
128
|
-
|
|
151
|
+
title: s(() => n[5] || (n[5] = [
|
|
152
|
+
v(" Information ", -1)
|
|
129
153
|
])),
|
|
130
|
-
default:
|
|
131
|
-
|
|
132
|
-
|
|
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. ")
|
|
133
157
|
], -1))
|
|
134
158
|
]),
|
|
135
159
|
_: 1,
|
|
136
160
|
__: [6]
|
|
137
161
|
})
|
|
138
162
|
]),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
icon:
|
|
142
|
-
|
|
163
|
+
i("section", q, [
|
|
164
|
+
t(k, { variant: "default" }, {
|
|
165
|
+
icon: s(() => [
|
|
166
|
+
t(c(w), {
|
|
143
167
|
size: 32,
|
|
144
168
|
color: "#009fe3"
|
|
145
169
|
})
|
|
146
170
|
]),
|
|
147
|
-
title:
|
|
148
|
-
|
|
171
|
+
title: s(() => n[7] || (n[7] = [
|
|
172
|
+
v(" Beispiel ", -1)
|
|
149
173
|
])),
|
|
150
|
-
default:
|
|
151
|
-
|
|
152
|
-
|
|
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. ")
|
|
153
177
|
], -1))
|
|
154
178
|
]),
|
|
155
179
|
_: 1,
|
|
@@ -160,5 +184,5 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
|
|
|
160
184
|
}
|
|
161
185
|
});
|
|
162
186
|
export {
|
|
163
|
-
|
|
187
|
+
ae as default
|
|
164
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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61aa715e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,60 +1,67 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, ref as c, computed as f, resolveComponent as v, createElementBlock as h, openBlock as g, createElementVNode as i, createVNode as l } from "vue";
|
|
2
2
|
import { defineHubSearch as y } from "@piveau/sdk-vue";
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const
|
|
3
|
+
import * as b from "zod";
|
|
4
|
+
import _ from "../../../components/StepActionsSection.vue.js";
|
|
5
|
+
import S from "../ChipToggleList/ChipToggleList.vue.js";
|
|
6
|
+
const V = { class: "dpiV3_page V3-typography" }, C = { class: "funny-section" }, P = { class: "funny-flex" }, k = { class: "funny-section" }, z = /* @__PURE__ */ d({
|
|
7
7
|
__name: "CategoriesStep",
|
|
8
|
-
setup(
|
|
9
|
-
const s = c([]), u = c(""), { useSearch:
|
|
8
|
+
setup(q) {
|
|
9
|
+
const s = c([]), u = c(""), { useSearch: m } = y({
|
|
10
10
|
baseUrl: "https://staging.bydata.de/api/hub/search",
|
|
11
11
|
index: "vocabulary",
|
|
12
|
-
schema:
|
|
12
|
+
schema: b.any()
|
|
13
13
|
}, (e) => {
|
|
14
|
-
var t,
|
|
15
|
-
const o = String((e == null ? void 0 : e.resource) || ""),
|
|
14
|
+
var t, a;
|
|
15
|
+
const o = String((e == null ? void 0 : e.resource) || ""), n = String(((t = e == null ? void 0 : e.pref_label) == null ? void 0 : t.de) || ((a = e == null ? void 0 : e.pref_label) == null ? void 0 : a.en) || "");
|
|
16
16
|
return {
|
|
17
17
|
id: o,
|
|
18
|
-
name:
|
|
18
|
+
name: n
|
|
19
19
|
};
|
|
20
|
-
}), { getSearchResultsEnhanced:
|
|
20
|
+
}), { getSearchResultsEnhanced: r } = m({
|
|
21
21
|
queryParams: {
|
|
22
22
|
q: u,
|
|
23
|
-
limit:
|
|
24
|
-
vocabulary: "data-theme"
|
|
23
|
+
limit: 40,
|
|
24
|
+
vocabulary: "data-theme",
|
|
25
|
+
sort: "title+asc"
|
|
25
26
|
}
|
|
27
|
+
}), p = f(() => {
|
|
28
|
+
var e;
|
|
29
|
+
return r.value ? (e = [...r.value].filter((o) => !o.id.endsWith("OP_DATPRO"))) == null ? void 0 : e.sort((o, n) => o.name.localeCompare(n.name)) : [];
|
|
26
30
|
});
|
|
27
31
|
return (e, o) => {
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
o[2] || (o[2] =
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
const n = v("FormKit");
|
|
33
|
+
return g(), h("div", V, [
|
|
34
|
+
i("section", C, [
|
|
35
|
+
i("div", P, [
|
|
36
|
+
o[2] || (o[2] = i("div", null, [
|
|
37
|
+
i("h4", null, " Machen Sie Ihr Projekt leicht auffindbar "),
|
|
38
|
+
i("div", { class: "visibility-description" }, [
|
|
39
|
+
i("p", { class: "copy-large-regular" }, " Um sicherzustellen, dass Ihr Projekt für andere leicht zu finden ist, wählen Sie die relevanten, übergeordneten Kategorien aus. ")
|
|
36
40
|
])
|
|
37
41
|
], -1)),
|
|
38
|
-
|
|
42
|
+
l(n, {
|
|
39
43
|
modelValue: s.value,
|
|
40
44
|
"onUpdate:modelValue": o[0] || (o[0] = (t) => s.value = t),
|
|
41
45
|
type: "list",
|
|
42
|
-
name: "categories"
|
|
46
|
+
name: "categories",
|
|
47
|
+
validation: "required",
|
|
48
|
+
"validation-visibility": "submit",
|
|
49
|
+
"validation-label": "Kategorien"
|
|
43
50
|
}, null, 8, ["modelValue"]),
|
|
44
|
-
|
|
51
|
+
l(S, {
|
|
45
52
|
modelValue: s.value,
|
|
46
53
|
"onUpdate:modelValue": o[1] || (o[1] = (t) => s.value = t),
|
|
47
|
-
options:
|
|
54
|
+
options: p.value || []
|
|
48
55
|
}, null, 8, ["modelValue", "options"])
|
|
49
56
|
])
|
|
50
57
|
]),
|
|
51
|
-
|
|
52
|
-
|
|
58
|
+
i("section", k, [
|
|
59
|
+
l(_, { "hide-cancel": "" })
|
|
53
60
|
])
|
|
54
61
|
]);
|
|
55
62
|
};
|
|
56
63
|
}
|
|
57
64
|
});
|
|
58
65
|
export {
|
|
59
|
-
|
|
66
|
+
z as default
|
|
60
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { FormKit as
|
|
1
|
+
import { ref as b, computed as v, createElementBlock as f, openBlock as g, createElementVNode as e, createStaticVNode as p, createVNode as a, unref as l, withCtx as o, createTextVNode as t } from "vue";
|
|
2
|
+
import { FormKit as m } from "@formkit/vue";
|
|
3
3
|
import { PhLightbulb as S } from "@phosphor-icons/vue";
|
|
4
4
|
import k from "../../../components/StepActionsSection.vue.js";
|
|
5
5
|
import y from "../Card.vue.js";
|
|
@@ -9,22 +9,22 @@ import z from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
|
9
9
|
const I = { class: "dpiV3_page V3-typography" }, w = { class: "funny-section" }, V = { class: "funny-flex" }, x = { class: "funny-section" }, N = { class: "funny-section" }, O = {
|
|
10
10
|
__name: "DiscoverabilityStep",
|
|
11
11
|
setup(P) {
|
|
12
|
-
const r =
|
|
12
|
+
const r = b([
|
|
13
13
|
{ id: "public", name: "Öffentlich", unavailable: !1 },
|
|
14
14
|
{ id: "restricted", name: "Eingeschränkt", unavailable: !1 },
|
|
15
15
|
{ id: "internal", name: "Intern", unavailable: !1 }
|
|
16
16
|
]), d = v(() => r.value.map((n) => String(n.id))), c = (n) => {
|
|
17
17
|
var i;
|
|
18
18
|
return ((i = r.value.find((s) => String(s.id) === String(n))) == null ? void 0 : i.name) ?? n;
|
|
19
|
-
}, u = (n) => String(n),
|
|
19
|
+
}, u = (n) => String(n), h = (n) => {
|
|
20
20
|
var i;
|
|
21
21
|
return !!((i = r.value.find((s) => String(s.id) === String(n))) != null && i.unavailable);
|
|
22
22
|
};
|
|
23
|
-
return (n, i) => (
|
|
23
|
+
return (n, i) => (g(), f("div", I, [
|
|
24
24
|
e("section", w, [
|
|
25
25
|
e("div", V, [
|
|
26
|
-
i[0] || (i[0] =
|
|
27
|
-
a(l(
|
|
26
|
+
i[0] || (i[0] = p('<div data-v-17b7a73a><h4 data-v-17b7a73a> Legen Sie die Sichtbarkeit Ihres Projekts fest </h4><div class="visibility-description" data-v-17b7a73a><span class="copy-large-regular" data-v-17b7a73a> Sie können für jedes Projekt individuell entscheiden, wer Ihre Metadaten sehen soll. Wir freuen uns, wenn Sie Ihre Daten möglichst offen teilen, um den Austausch zwischen den Kommunen zu fördern und gemeinsam von Erfahrungen und Lösungen zu profitieren. Gleichzeitig verstehen wir, dass manche Informationen einen geschützten Raum benötigen. Deshalb können Sie zwischen drei Sichtbarkeitsstufen wählen: </span></div><ul class="visibility-variants" data-v-17b7a73a><li data-v-17b7a73a><div class="variant-content" data-v-17b7a73a><p data-v-17b7a73a><strong data-v-17b7a73a>„öffentlich“</strong> (für alle Nutzer sichtbar) </p></div></li><li data-v-17b7a73a><div class="variant-content" data-v-17b7a73a><p data-v-17b7a73a><strong data-v-17b7a73a>„eingeschränkt“</strong> (für alle registrierten Nutzer sichtbar) </p></div></li><li data-v-17b7a73a><div class="variant-content" data-v-17b7a73a><p data-v-17b7a73a><strong data-v-17b7a73a>„intern“</strong> (für alle registrierten Nutzer Ihrer Organisation und Nutzer, denen Sie oder Ihre Organisation Sichtrechte erteilt haben, sichtbar) </p></div></li></ul></div>', 1)),
|
|
27
|
+
a(l(m), {
|
|
28
28
|
type: l(_),
|
|
29
29
|
name: "visibility",
|
|
30
30
|
label: "Sichtbarkeit",
|
|
@@ -32,8 +32,9 @@ const I = { class: "dpiV3_page V3-typography" }, w = { class: "funny-section" },
|
|
|
32
32
|
options: d.value,
|
|
33
33
|
"option-label": c,
|
|
34
34
|
"option-value": u,
|
|
35
|
-
"option-disabled":
|
|
36
|
-
validation: "required"
|
|
35
|
+
"option-disabled": h,
|
|
36
|
+
validation: "required",
|
|
37
|
+
"validation-visibility": "submit"
|
|
37
38
|
}, null, 8, ["type", "options"])
|
|
38
39
|
])
|
|
39
40
|
]),
|
|
@@ -79,7 +80,7 @@ const I = { class: "dpiV3_page V3-typography" }, w = { class: "funny-section" },
|
|
|
79
80
|
])
|
|
80
81
|
]));
|
|
81
82
|
}
|
|
82
|
-
}, K = /* @__PURE__ */ z(O, [["__scopeId", "data-v-
|
|
83
|
+
}, K = /* @__PURE__ */ z(O, [["__scopeId", "data-v-17b7a73a"]]);
|
|
83
84
|
export {
|
|
84
85
|
K as default
|
|
85
86
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import t from "./InputFieldFormKit.vue.js";
|
|
2
|
-
const
|
|
2
|
+
const e = {
|
|
3
3
|
type: "input",
|
|
4
4
|
schema: [],
|
|
5
5
|
component: t,
|
|
@@ -15,9 +15,10 @@ const i = {
|
|
|
15
15
|
"textLabel",
|
|
16
16
|
"placeholder",
|
|
17
17
|
"trailing_text",
|
|
18
|
-
"trailing-text"
|
|
18
|
+
"trailing-text",
|
|
19
|
+
"is-disabled"
|
|
19
20
|
]
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
|
-
|
|
23
|
+
e as default
|
|
23
24
|
};
|
|
@@ -1,70 +1,76 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const M = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as j, computed as n, createBlock as K, openBlock as P, unref as l } from "vue";
|
|
2
|
+
import C from "../InputField.vue.js";
|
|
3
|
+
const M = /* @__PURE__ */ j({
|
|
4
4
|
__name: "InputFieldFormKit",
|
|
5
5
|
props: {
|
|
6
6
|
context: {}
|
|
7
7
|
},
|
|
8
8
|
setup(y) {
|
|
9
|
-
var
|
|
10
|
-
const t = y,
|
|
9
|
+
var d, m, g, f, v, h, _;
|
|
10
|
+
const t = y, r = n({
|
|
11
11
|
get: () => {
|
|
12
12
|
var e;
|
|
13
13
|
return ((e = t.context) == null ? void 0 : e._value) || "";
|
|
14
14
|
},
|
|
15
15
|
set: (e) => {
|
|
16
|
-
var
|
|
17
|
-
(
|
|
16
|
+
var o;
|
|
17
|
+
(o = t.context) == null || o.node.input(e);
|
|
18
18
|
}
|
|
19
|
-
}),
|
|
19
|
+
}), I = n(() => {
|
|
20
20
|
var e;
|
|
21
21
|
return (e = t.context) == null ? void 0 : e.textLabel;
|
|
22
|
-
}),
|
|
22
|
+
}), w = n(() => {
|
|
23
23
|
var e;
|
|
24
24
|
return (e = t.context) == null ? void 0 : e.name;
|
|
25
|
-
}), i =
|
|
25
|
+
}), i = n(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return ((e = t.context) == null ? void 0 : e.placeholder) || "Enter text here";
|
|
28
|
-
}), c =
|
|
28
|
+
}), c = n(() => {
|
|
29
29
|
var e;
|
|
30
30
|
return ((e = t.context) == null ? void 0 : e.trailing_text) || "$";
|
|
31
|
-
}),
|
|
31
|
+
}), u = n(() => {
|
|
32
32
|
var e;
|
|
33
33
|
return ((e = t.context) == null ? void 0 : e.trailingText) || !1;
|
|
34
|
-
}),
|
|
34
|
+
}), p = n(() => {
|
|
35
|
+
var e;
|
|
36
|
+
return ((e = t.context) == null ? void 0 : e["is-disabled"]) || !1;
|
|
37
|
+
});
|
|
38
|
+
console.log(p.value);
|
|
39
|
+
const x = n(() => {
|
|
35
40
|
var e;
|
|
36
41
|
return Object.keys((e = t.context) == null ? void 0 : e.messages).length > 0;
|
|
37
|
-
}),
|
|
38
|
-
var
|
|
39
|
-
if (!
|
|
42
|
+
}), s = n(() => {
|
|
43
|
+
var o, a, b, T, k;
|
|
44
|
+
if (!x.value)
|
|
40
45
|
return "";
|
|
41
|
-
const e = (
|
|
42
|
-
return ((k = (T = (
|
|
43
|
-
}),
|
|
44
|
-
(
|
|
45
|
-
const
|
|
46
|
-
(
|
|
47
|
-
const
|
|
48
|
-
return console.log(
|
|
49
|
-
modelValue:
|
|
50
|
-
"onUpdate:modelValue":
|
|
51
|
-
label:
|
|
46
|
+
const e = (a = Object.keys((o = t.context) == null ? void 0 : o.messages)) == null ? void 0 : a[0];
|
|
47
|
+
return ((k = (T = (b = t.context) == null ? void 0 : b.messages) == null ? void 0 : T[e]) == null ? void 0 : k.value) || "";
|
|
48
|
+
}), E = ((d = t.context) == null ? void 0 : d.inputType) || "text", O = ((m = t.context) == null ? void 0 : m.addOnText) || !1, B = ((g = t.context) == null ? void 0 : g.datePicker) || !1;
|
|
49
|
+
(f = t.context) != null && f.infoIcon;
|
|
50
|
+
const F = ((v = t.context) == null ? void 0 : v.preIcon) || !1;
|
|
51
|
+
(h = t.context) == null || h.showEndIcon;
|
|
52
|
+
const V = ((_ = t.context) == null ? void 0 : _.tooltipText) || "This is helpful information";
|
|
53
|
+
return console.log(u.value, c.value, i.value), (e, o) => (P(), K(C, {
|
|
54
|
+
modelValue: r.value,
|
|
55
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => r.value = a),
|
|
56
|
+
label: I.value,
|
|
52
57
|
placeholder: i.value,
|
|
53
|
-
"input-type":
|
|
54
|
-
"add-on-text":
|
|
55
|
-
"date-picker":
|
|
58
|
+
"input-type": l(E),
|
|
59
|
+
"add-on-text": l(O),
|
|
60
|
+
"date-picker": l(B),
|
|
56
61
|
"info-icon": !1,
|
|
57
|
-
"pre-icon":
|
|
62
|
+
"pre-icon": l(F),
|
|
58
63
|
"show-end-icon": !1,
|
|
59
|
-
"tooltip-text":
|
|
60
|
-
"show-error":
|
|
61
|
-
"supporting-hint-message":
|
|
62
|
-
"initial-hint-text":
|
|
63
|
-
error_message:
|
|
64
|
-
name:
|
|
65
|
-
"trailing-text":
|
|
66
|
-
trailing_text: c.value
|
|
67
|
-
|
|
64
|
+
"tooltip-text": l(V),
|
|
65
|
+
"show-error": x.value,
|
|
66
|
+
"supporting-hint-message": s.value,
|
|
67
|
+
"initial-hint-text": s.value,
|
|
68
|
+
error_message: s.value,
|
|
69
|
+
name: w.value,
|
|
70
|
+
"trailing-text": u.value,
|
|
71
|
+
trailing_text: c.value,
|
|
72
|
+
"is-disabled": p.value
|
|
73
|
+
}, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "date-picker", "pre-icon", "tooltip-text", "show-error", "supporting-hint-message", "initial-hint-text", "error_message", "name", "trailing-text", "trailing_text", "is-disabled"]));
|
|
68
74
|
}
|
|
69
75
|
});
|
|
70
76
|
export {
|