@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.
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a67a5c73"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53df9331"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };
@@ -1,156 +1,179 @@
1
- import { defineComponent as C, ref as v, computed as b, createElementBlock as d, openBlock as p, createElementVNode as t, createVNode as l, createCommentVNode as A, unref as m, Fragment as U, renderList as z, withDirectives as I, vModelCheckbox as P, withCtx as r, createTextVNode as g } from "vue";
2
- import { FormKit as D } from "@formkit/vue";
3
- import { PhLightbulb as _ } from "@phosphor-icons/vue";
4
- import { defineHubSearch as j } from "@piveau/sdk-vue";
5
- import $ from "zod";
6
- import B from "../../../components/StepActionsSection.vue.js";
7
- import E from "../Autocomplete/AutocompleteVocab.vue.js";
8
- import L from "../ButtonV3.vue.js";
9
- import w from "../Card.vue.js";
10
- import N from "../Chip.vue.js";
11
- const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" }, W = { class: "funny-flex" }, q = {
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
- }, M = ["id", "value"], Z = { class: "ml-auto" }, F = { class: "funny-section action-section" }, K = { class: "action-section" }, T = { class: "action-section" }, V = "data-theme", se = /* @__PURE__ */ C({
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(G) {
17
- const s = v([]), c = v(""), { useResources: k } = j({
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: $.any()
22
- }, (n) => {
23
- var a, u;
24
- const e = String((n == null ? void 0 : n.id) || ""), i = String(((a = n == null ? void 0 : n.pref_label) == null ? void 0 : a.de) || ((u = n == null ? void 0 : n.pref_label) == null ? void 0 : u.en) || "");
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: e,
27
- name: i,
28
- resource: n == null ? void 0 : n.resource
26
+ id: n,
27
+ name: a,
28
+ resource: e == null ? void 0 : e.resource
29
29
  };
30
- }), y = b(() => s.value.map((n) => ({
31
- resourceId: `${V}/vocable`,
32
- params: {
33
- additionalParams: {
34
- resource: n
35
- }
36
- }
37
- }))), f = k(y), h = b(() => f.value.every((n) => n.isSuccess) ? f.value.map((n) => {
38
- const e = n.resultEnhanced;
39
- return (e == null ? void 0 : e.name) || "";
40
- }) : []);
41
- function S() {
42
- const n = c.value;
43
- if (n && n.trim()) {
44
- const e = n.trim();
45
- s.value.includes(e) || s.value.push(e), c.value = "";
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 (n, e) => (p(), d("div", H, [
49
- t("section", R, [
50
- t("div", W, [
51
- e[3] || (e[3] = t("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
52
- e[4] || (e[4] = t("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)),
53
- l(m(D), {
54
- modelValue: s.value,
55
- "onUpdate:modelValue": e[0] || (e[0] = (i) => s.value = i),
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
- h.value.length > 0 ? (p(), d("div", q, [
62
- (p(!0), d(U, null, z(h.value, (i, o) => {
63
- var a, u;
64
- return p(), d("div", {
65
- key: `application-${i}@${o}`,
66
- class: "label-chip"
67
- }, [
68
- I(t("input", {
69
- id: `application-${i}@${o}`,
70
- "onUpdate:modelValue": e[1] || (e[1] = (x) => s.value = x),
71
- class: "label-chip__input",
72
- type: "checkbox",
73
- value: (u = (a = m(f)[o]) == null ? void 0 : a.resultEnhanced) == null ? void 0 : u.resource
74
- }, null, 8, M), [
75
- [P, s.value]
76
- ]),
77
- l(N, {
78
- as: "label",
79
- for: `application-${i}@${o}`,
80
- class: "label-chip__inner",
81
- text: i,
82
- data: {
83
- "@value": i,
84
- URI: "https://example.com/default"
85
- },
86
- setup: {
87
- "@type": "selected",
88
- "@icon": "suffix",
89
- "@inTable": !1,
90
- "@selected": !0
91
- }
92
- }, null, 8, ["for", "text", "data"])
93
- ]);
94
- }), 128))
95
- ])) : A("", !0),
96
- l(E, {
97
- modelValue: c.value,
98
- "onUpdate:modelValue": e[2] || (e[2] = (i) => c.value = i),
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
- onClick: S
113
- })
134
+ disabled: !r.value.id,
135
+ onClick: y
136
+ }, null, 8, ["disabled"])
114
137
  ])
115
138
  ])
116
139
  ]),
117
- t("section", F, [
118
- l(B, { "hide-cancel": "" })
140
+ i("section", T, [
141
+ t(I, { "hide-cancel": "" })
119
142
  ]),
120
- t("section", K, [
121
- l(w, { variant: "default" }, {
122
- icon: r(() => [
123
- l(m(_), {
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: r(() => e[5] || (e[5] = [
129
- g(" Information ", -1)
151
+ title: s(() => n[5] || (n[5] = [
152
+ v(" Information ", -1)
130
153
  ])),
131
- default: r(() => [
132
- e[6] || (e[6] = t("div", { class: "application-information" }, [
133
- t("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. ")
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
- t("section", T, [
141
- l(w, { variant: "default" }, {
142
- icon: r(() => [
143
- l(m(_), {
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: r(() => e[7] || (e[7] = [
149
- g(" Beispiel ", -1)
171
+ title: s(() => n[7] || (n[7] = [
172
+ v(" Beispiel ", -1)
150
173
  ])),
151
- default: r(() => [
152
- e[8] || (e[8] = t("div", { class: "application-information" }, [
153
- t("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. ")
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
- se as default
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-f9a54e61"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61aa715e"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -20,7 +20,7 @@ const V = { class: "dpiV3_page V3-typography" }, C = { class: "funny-section" },
20
20
  }), { getSearchResultsEnhanced: r } = m({
21
21
  queryParams: {
22
22
  q: u,
23
- limit: 12,
23
+ limit: 40,
24
24
  vocabulary: "data-theme",
25
25
  sort: "title+asc"
26
26
  }
@@ -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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d00c4cc"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a93ecc1"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };