@piveau/dpi 0.2.0-alpha.41 → 0.2.0-alpha.43

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 (31) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +1 -1
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +3 -3
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +2 -2
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +97 -80
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +107 -90
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +1 -1
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +96 -80
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +4 -4
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +115 -93
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +120 -109
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +60 -38
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +9 -8
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +114 -103
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +180 -185
  22. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +101 -90
  24. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +74 -74
  25. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitMessages.js +14 -0
  26. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitSummary.js +46 -0
  27. package/dist/packages/dpi/src/data-provider-interface/utils/useSteps.js +35 -29
  28. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +22 -21
  29. package/dist/packages/dpi/src/utils/twinbyUtils.js +1 -0
  30. package/dist/styles/_dpi.scss +16 -0
  31. package/package.json +1 -1
@@ -1,117 +1,136 @@
1
- import { defineComponent as R, ref as p, computed as E, useModel as L, inject as F, createElementBlock as V, openBlock as o, createElementVNode as t, createVNode as i, createBlock as l, createCommentVNode as h, createTextVNode as y, unref as r, isRef as D, withCtx as s, Fragment as M, renderList as N } from "vue";
2
- import { FormKit as v } from "@formkit/vue";
3
- import { PhLightbulb as O, PhExclamationMark as H } from "@phosphor-icons/vue";
4
- import K from "../../../../stories/components/LinkCard.vue.js";
5
- import W from "../../../components/StepActionsSection.vue.js";
6
- import { dpiStepperKey as $ } from "../../../utils/injectionKeys.js";
7
- import a from "../ButtonV3.vue.js";
8
- import w from "../Card.vue.js";
9
- import { useProcessStepResources as j, ensureHasOneResource as I } from "../ProcessSteps/utils.js";
10
- import U from "../TextArea/TextAreaDefinition.js";
11
- const Z = { class: "dpiV3_page V3-typography" }, A = { class: "funny-section" }, T = { class: "funny-section" }, G = {
1
+ import { defineComponent as M, mergeModels as A, ref as f, computed as S, useModel as D, inject as H, createElementBlock as _, openBlock as l, createElementVNode as t, createBlock as u, createCommentVNode as d, createVNode as s, createTextVNode as z, unref as i, isRef as N, withCtx as r, Fragment as O, renderList as q } from "vue";
2
+ import { FormKit as k } from "@formkit/vue";
3
+ import { PhLightbulb as K, PhExclamationMark as W } from "@phosphor-icons/vue";
4
+ import $ from "../../../../stories/components/LinkCard.vue.js";
5
+ import { empty as B, generateIsRequiredMsg as j } from "../../../../utils/twinbyUtils.js";
6
+ import U from "../../../components/StepActionsSection.vue.js";
7
+ import { dpiStepperKey as Z } from "../../../utils/injectionKeys.js";
8
+ import c from "../ButtonV3.vue.js";
9
+ import L from "../Card.vue.js";
10
+ import { useProcessStepResources as T, ensureHasOneResource as G } from "../ProcessSteps/utils.js";
11
+ import J from "../TextArea/TextAreaDefinition.js";
12
+ const Q = { class: "dpiV3_page V3-typography" }, X = { class: "funny-section" }, Y = { class: "funny-section" }, ee = {
12
13
  id: "partners-section",
13
14
  class: "funny-section"
14
- }, q = { class: "partner-cards-container" }, J = { class: "action-container" }, Q = { class: "step-actions__prev-and-next" }, X = { class: "actions" }, Y = 1e3, ce = /* @__PURE__ */ R({
15
+ }, te = { class: "partner-cards-container" }, ne = { class: "action-container" }, ie = { class: "step-actions__prev-and-next" }, re = { class: "actions" }, se = 1e3, fe = /* @__PURE__ */ M({
15
16
  __name: "BasicInformationStep",
16
- props: {
17
+ props: /* @__PURE__ */ A({
18
+ edit: { type: Boolean }
19
+ }, {
17
20
  modelValue: {},
18
21
  modelModifiers: {}
19
- },
22
+ }),
20
23
  emits: ["update:modelValue"],
21
- setup(_) {
22
- const f = p(""), z = p([]);
23
- p([]);
24
- const S = p(!1), B = E(() => {
25
- var b;
26
- return ((b = f.value) == null ? void 0 : b.length) || 0;
24
+ setup(C) {
25
+ const P = C, m = f(""), p = f([]);
26
+ f([]);
27
+ const R = f(!1), E = S(() => {
28
+ var o;
29
+ return ((o = m.value) == null ? void 0 : o.length) || 0;
27
30
  });
28
- L(_, "modelValue");
29
- const P = F($), { globalResourceCount: g } = j("4. Datenvisualisierung", !1);
30
- return (b, e) => (o(), V("div", Z, [
31
+ D(C, "modelValue");
32
+ const F = H(Z), x = S(() => {
33
+ const o = !B(m.value), e = Array.isArray(p.value) && p.value.length > 0;
34
+ return o || e;
35
+ });
36
+ function I(o) {
37
+ var n, a;
38
+ const e = o.at("$parent");
39
+ return !e || e.type !== "group" ? !0 : Array.isArray((n = e.value) == null ? void 0 : n.links) && ((a = e.value) == null ? void 0 : a.links).length > 0 ? !B(o.value) : !0;
40
+ }
41
+ const { globalResourceCount: b } = T("4. Datenvisualisierung", !1);
42
+ return (o, e) => (l(), _("div", Q, [
31
43
  e[9] || (e[9] = t("section", { class: "funny-section" }, [
32
44
  t("div", { class: "funny-flex" }, [
33
45
  t("h4", null, "Beschreiben Sie den Prozessschritt zur Datenvisualisierung"),
34
46
  t("span", { class: "copy-large-regular" }, [
35
- y(" Führen Sie im Schritt der "),
47
+ z(" Führen Sie im Schritt der "),
36
48
  t("strong", null, "Datenvisualisierung"),
37
- y(" aus, in welcher Form die Ergebnisse der Simulationen verständlich aufbereitet und visualisiert wurden. ")
49
+ z(" aus, in welcher Form die Ergebnisse der Simulationen verständlich aufbereitet und visualisiert wurden. ")
38
50
  ])
39
51
  ])
40
52
  ], -1)),
41
- i(r(v), {
42
- modelValue: r(g),
43
- "onUpdate:modelValue": e[0] || (e[0] = (n) => D(g) ? g.value = n : null),
53
+ P.edit ? d("", !0) : (l(), u(i(k), {
54
+ key: 0,
55
+ modelValue: i(b),
56
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => N(b) ? b.value = n : null),
44
57
  type: "hidden",
45
58
  name: "__resourceCountGlobal",
46
59
  hidden: "",
47
60
  "aria-hidden": "",
48
- "validation-rules": { ensureHasOneResource: r(I) },
61
+ "validation-rules": { ensureHasOneResource: i(G) },
49
62
  validation: "+ensureHasOneResource",
50
63
  "validation-visibility": "live",
51
64
  "validation-messages": { ensureHasOneResource: "Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden." }
52
- }, null, 8, ["modelValue", "validation-rules"]),
53
- t("section", A, [
54
- i(r(v), {
65
+ }, null, 8, ["modelValue", "validation-rules"])),
66
+ t("section", X, [
67
+ s(i(k), {
55
68
  id: "Beschreibung",
56
- modelValue: f.value,
57
- "onUpdate:modelValue": e[1] || (e[1] = (n) => f.value = n),
69
+ modelValue: m.value,
70
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => m.value = n),
58
71
  class: "budgetArea",
59
72
  label: "Beschreibung",
60
- type: r(U),
73
+ type: i(J),
61
74
  name: "description",
62
75
  "text-label": "Beschreibung",
63
76
  placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
64
- validation: "length:0,1000",
77
+ validation: "+requireIfLink|length:0,1000",
65
78
  "validation-visibility": "live",
66
79
  hint: "true",
67
- help: `${B.value} von ${Y} Zeichen`,
68
- "count-hint": !0
69
- }, null, 8, ["modelValue", "type", "help"])
80
+ help: `${E.value} von ${se} Zeichen`,
81
+ "count-hint": !0,
82
+ "validation-rules": {
83
+ requireIfLink: I
84
+ },
85
+ "validation-messages": {
86
+ requireIfLink: i(j)("Beschreibung")
87
+ }
88
+ }, null, 8, ["modelValue", "type", "help", "validation-rules", "validation-messages"])
70
89
  ]),
71
- t("section", T, [
72
- i(w, { variant: "default" }, {
73
- icon: s(() => [
74
- i(r(O), {
90
+ t("section", Y, [
91
+ s(L, { variant: "default" }, {
92
+ icon: r(() => [
93
+ s(i(K), {
75
94
  size: 32,
76
95
  color: "#009FE3"
77
96
  })
78
97
  ]),
79
- title: s(() => e[3] || (e[3] = [
80
- y(" Beispiel ", -1)
98
+ title: r(() => e[3] || (e[3] = [
99
+ z(" Beispiel ", -1)
81
100
  ])),
82
- default: s(() => [
101
+ default: r(() => [
83
102
  e[4] || (e[4] = t("p", null, " Die Simulationsergebnisse und aktuellen Messdaten werden in einer interaktiven Kartenanwendung dargestellt. Zusätzlich werden visuelle Warnhinweise sowie zeitbasierte Entwicklungen übersichtlich präsentiert, um die Kommunikation mit Einsatzkräften und Bürgern zu unterstützen. ", -1))
84
103
  ]),
85
104
  _: 1,
86
105
  __: [4]
87
106
  })
88
107
  ]),
89
- t("section", G, [
108
+ t("section", ee, [
90
109
  e[5] || (e[5] = t("h5", null, " Weiterführende Links (optional) ", -1)),
91
110
  e[6] || (e[6] = t("span", { class: "copy-large-regular further-links-text" }, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zur Vorgehensweise in diesem Prozessschritt enthalten, wie etwa einzuhaltende Richtlinien oder Standardarbeitsanweisungen.", -1)),
92
- t("div", q, [
93
- i(r(v), {
94
- modelValue: z.value,
95
- "onUpdate:modelValue": e[2] || (e[2] = (n) => z.value = n),
111
+ t("div", te, [
112
+ s(i(k), {
113
+ modelValue: p.value,
114
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => p.value = n),
96
115
  type: "list",
97
116
  name: "links",
98
117
  dynamic: ""
99
118
  }, {
100
- default: s(({ items: n, node: u, value: d }) => [
101
- (o(!0), V(M, null, N(n, (c, m) => (o(), l(r(v), {
102
- key: c,
119
+ default: r(({ items: n, node: a, value: v }) => [
120
+ (l(!0), _(O, null, q(n, (h, g) => (l(), u(i(k), {
121
+ key: h,
103
122
  type: "group",
104
- index: m
123
+ index: g
105
124
  }, {
106
- default: s(() => [
107
- i(K, null, {
108
- action: s(() => [
109
- i(a, {
125
+ default: r(() => [
126
+ s($, null, {
127
+ action: r(() => [
128
+ s(c, {
110
129
  "button-text": "Löschen",
111
130
  size: "small",
112
131
  variant: "tertiary",
113
132
  "icon-start": "trash",
114
- onClick: () => u.input(d.filter((x, k) => k !== m))
133
+ onClick: () => a.input(v.filter((V, y) => y !== g))
115
134
  }, null, 8, ["onClick"])
116
135
  ]),
117
136
  _: 2
@@ -119,13 +138,13 @@ const Z = { class: "dpiV3_page V3-typography" }, A = { class: "funny-section" },
119
138
  ]),
120
139
  _: 2
121
140
  }, 1032, ["index"]))), 128)),
122
- t("div", J, [
123
- i(a, {
141
+ t("div", ne, [
142
+ s(c, {
124
143
  "button-text": "Link hinzufügen",
125
144
  size: "medium",
126
145
  variant: "tertiary",
127
146
  "icon-start": "plus",
128
- onClick: (c) => u.input(d.concat({}))
147
+ onClick: (h) => a.input(v.concat({}))
129
148
  }, null, 8, ["onClick"])
130
149
  ])
131
150
  ]),
@@ -133,83 +152,86 @@ const Z = { class: "dpiV3_page V3-typography" }, A = { class: "funny-section" },
133
152
  }, 8, ["modelValue"])
134
153
  ])
135
154
  ]),
136
- i(W, {
155
+ s(U, {
137
156
  compact: "",
138
157
  "next-text": "Weiter zu Software",
139
158
  class: "actions-container",
140
159
  "show-detailed-error-summary": ""
141
160
  }, {
142
- "prev-and-next": s(({
161
+ "prev-and-next": r(({
143
162
  hidePrevious: n,
144
- hideNext: u,
145
- previousText: d,
146
- nextText: c,
147
- handleNext: m,
148
- handlePrevious: x,
149
- validate: k
163
+ hideNext: a,
164
+ previousText: v,
165
+ nextText: h,
166
+ handleNext: g,
167
+ handlePrevious: V,
168
+ validate: y
150
169
  }) => [
151
- t("div", Q, [
152
- t("div", X, [
153
- n ? h("", !0) : (o(), l(a, {
170
+ t("div", ie, [
171
+ t("div", re, [
172
+ n ? d("", !0) : (l(), u(c, {
154
173
  key: 0,
155
174
  variant: "secondary",
156
175
  size: "large",
157
- "button-text": d,
176
+ "button-text": v,
158
177
  "icon-start": "CaretLeft",
159
178
  class: "previus-button",
160
- onClick: x
179
+ onClick: V
161
180
  }, null, 8, ["button-text", "onClick"])),
162
- n ? h("", !0) : (o(), l(a, {
181
+ n ? d("", !0) : (l(), u(c, {
163
182
  key: 1,
183
+ disabled: x.value,
164
184
  variant: "secondary",
165
185
  class: "skip-button",
166
186
  size: "large",
167
187
  "button-text": "Weiter ohne Datenvisualisierung",
168
188
  "icon-end": "CaretRight",
169
- onClick: (ee) => k(() => {
170
- var C;
171
- return (C = r(P)) == null ? void 0 : C.goToStep("Vorschau");
172
- })
173
- }, null, 8, ["onClick"]))
189
+ onClick: () => {
190
+ x.value || y(() => {
191
+ var w;
192
+ return (w = i(F)) == null ? void 0 : w.goToStep("Vorschau");
193
+ });
194
+ }
195
+ }, null, 8, ["disabled", "onClick"]))
174
196
  ]),
175
- u ? h("", !0) : (o(), l(a, {
197
+ a ? d("", !0) : (l(), u(c, {
176
198
  key: 0,
177
199
  variant: "primary",
178
200
  size: "large",
179
- "button-text": c,
201
+ "button-text": h,
180
202
  "icon-end": "CaretRight",
181
203
  class: "next-button",
182
- onClick: m
204
+ onClick: g
183
205
  }, null, 8, ["button-text", "onClick"]))
184
206
  ])
185
207
  ]),
186
208
  _: 1
187
209
  }),
188
- S.value ? (o(), l(w, {
189
- key: 0,
210
+ R.value ? (l(), u(L, {
211
+ key: 1,
190
212
  variant: "error",
191
213
  class: "error"
192
214
  }, {
193
- icon: s(() => [
194
- i(r(H), {
215
+ icon: r(() => [
216
+ s(i(W), {
195
217
  size: 32,
196
218
  color: "currentColor"
197
219
  })
198
220
  ]),
199
- title: s(() => e[7] || (e[7] = [
221
+ title: r(() => e[7] || (e[7] = [
200
222
  t("span", { class: "error-title" }, "Fehler", -1)
201
223
  ])),
202
- default: s(() => [
224
+ default: r(() => [
203
225
  e[8] || (e[8] = t("ul", { class: "validation-errors" }, [
204
226
  t("li", null, " Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden. ")
205
227
  ], -1))
206
228
  ]),
207
229
  _: 1,
208
230
  __: [8]
209
- })) : h("", !0)
231
+ })) : d("", !0)
210
232
  ]));
211
233
  }
212
234
  });
213
235
  export {
214
- ce as default
236
+ fe as default
215
237
  };
@@ -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 e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-92060eba"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-632b4b70"]]);
5
5
  export {
6
- e as default
6
+ i as default
7
7
  };
@@ -1,17 +1,18 @@
1
- import { defineComponent as w, ref as p, computed as k, watch as _, createElementBlock as o, openBlock as u, createElementVNode as n, createVNode as a, createCommentVNode as V, unref as d, Fragment as y, renderList as z, withDirectives as x, vModelCheckbox as A, withCtx as s, createTextVNode as g } from "vue";
2
- import { FormKit as S } from "@formkit/vue";
3
- import { PhLightbulb as f } from "@phosphor-icons/vue";
4
- import C from "../../../components/StepActionsSection.vue.js";
5
- import h from "../Card.vue.js";
6
- import U from "../Chip.vue.js";
7
- import I from "../ListBox/Listbox.vue.js";
8
- const B = { class: "dpiV3_page V3-typography" }, E = { class: "funny-section" }, L = { class: "funny-flex" }, P = {
1
+ import { defineComponent as z, ref as f, computed as S, watch as h, createElementBlock as d, openBlock as m, createElementVNode as n, createVNode as a, createCommentVNode as x, unref as s, Fragment as A, renderList as C, withDirectives as I, vModelCheckbox as U, withCtx as l, createTextVNode as b } from "vue";
2
+ import { useFormKitNodeById as B, FormKit as E } from "@formkit/vue";
3
+ import { PhLightbulb as v } from "@phosphor-icons/vue";
4
+ import M from "../../../components/StepActionsSection.vue.js";
5
+ import { useFormKitMessages as L } from "../../../composables/useFormKitMessages.js";
6
+ import w from "../Card.vue.js";
7
+ import N from "../Chip.vue.js";
8
+ import P from "../ListBox/Listbox.vue.js";
9
+ const j = { class: "dpiV3_page V3-typography" }, D = { class: "funny-section" }, K = { class: "funny-flex" }, W = {
9
10
  key: 0,
10
11
  class: "d-flex selected-applications"
11
- }, D = ["id", "value"], M = { class: "funny-section action-section" }, N = { class: "action-section" }, W = { class: "action-section" }, G = /* @__PURE__ */ w({
12
+ }, H = ["id", "value"], F = { class: "funny-section action-section" }, T = { class: "action-section" }, $ = { class: "action-section" }, ee = /* @__PURE__ */ z({
12
13
  __name: "ApplicationsStep",
13
- setup(H) {
14
- const i = p([]), l = p(""), b = [
14
+ setup(q) {
15
+ const i = f([]), r = f(""), k = [
15
16
  "Abfallmanagement",
16
17
  "Abwassermanagement",
17
18
  "Baumanagement",
@@ -49,106 +50,116 @@ const B = { class: "dpiV3_page V3-typography" }, E = { class: "funny-section" },
49
50
  "Wasserqualität",
50
51
  "Wasserversorgung",
51
52
  "Wirtschaftsflächenmanagement"
52
- ], m = k(() => i.value);
53
- return _(l, (r) => {
54
- l.value = "", r && (i.value.includes(r) || i.value.push(r));
55
- }), (r, e) => (u(), o("div", B, [
56
- n("section", E, [
57
- n("div", L, [
58
- e[3] || (e[3] = n("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
59
- e[4] || (e[4] = n("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese in der Liste aus. ", -1)),
60
- a(d(S), {
61
- modelValue: i.value,
62
- "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t),
63
- name: "applications",
64
- type: "list",
65
- validation: "required",
66
- "validation-label": "Anwendungsbereiche",
67
- hidden: ""
68
- }, null, 8, ["modelValue"]),
69
- m.value.length > 0 ? (u(), o("div", P, [
70
- (u(!0), o(y, null, z(m.value, (t, c) => (u(), o("div", {
71
- key: `application-${t}@${c}`,
72
- class: "label-chip"
73
- }, [
74
- x(n("input", {
75
- id: `application-${t}@${c}`,
76
- "onUpdate:modelValue": e[1] || (e[1] = (v) => i.value = v),
77
- class: "label-chip__input",
78
- type: "checkbox",
79
- value: t
80
- }, null, 8, D), [
81
- [A, i.value]
82
- ]),
83
- a(U, {
84
- as: "label",
85
- for: t,
86
- class: "label-chip__inner",
87
- text: t,
88
- data: { "@value": t, URI: "https://example.com/default" },
89
- setup: { "@type": "selected", "@icon": "suffix", "@inTable": !1, "@selected": !0 }
90
- }, null, 8, ["for", "text", "data"])
91
- ]))), 128))
92
- ])) : V("", !0),
93
- a(I, {
94
- modelValue: l.value,
95
- "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value = t),
96
- options: b,
97
- placeholder: "Wählen Sie Ihre Anwendungsbereiche.",
98
- label: "Anwendungsbereich auswählen",
99
- filterable: "",
100
- taggable: "",
101
- "create-option": "",
102
- clearable: ""
103
- }, null, 8, ["modelValue"])
53
+ ], c = S(() => i.value);
54
+ h(r, (u) => {
55
+ r.value = "", u && (i.value.includes(u) || i.value.push(u));
56
+ });
57
+ const _ = B("applications"), { validationMessages: o, hasError: y } = L(_);
58
+ return h(o, () => {
59
+ console.log("validationMessages", o.value);
60
+ }), (u, e) => {
61
+ var p;
62
+ return m(), d("div", j, [
63
+ n("section", D, [
64
+ n("div", K, [
65
+ e[3] || (e[3] = n("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
66
+ e[4] || (e[4] = n("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese in der Liste aus. ", -1)),
67
+ a(s(E), {
68
+ id: "applications",
69
+ modelValue: i.value,
70
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t),
71
+ name: "applications",
72
+ type: "list",
73
+ validation: "required",
74
+ "validation-label": "Anwendungsbereiche",
75
+ hidden: ""
76
+ }, null, 8, ["modelValue"]),
77
+ c.value.length > 0 ? (m(), d("div", W, [
78
+ (m(!0), d(A, null, C(c.value, (t, g) => (m(), d("div", {
79
+ key: `application-${t}@${g}`,
80
+ class: "label-chip"
81
+ }, [
82
+ I(n("input", {
83
+ id: `application-${t}@${g}`,
84
+ "onUpdate:modelValue": e[1] || (e[1] = (V) => i.value = V),
85
+ class: "label-chip__input",
86
+ type: "checkbox",
87
+ value: t
88
+ }, null, 8, H), [
89
+ [U, i.value]
90
+ ]),
91
+ a(N, {
92
+ as: "label",
93
+ for: t,
94
+ class: "label-chip__inner",
95
+ text: t,
96
+ data: { "@value": t, URI: "https://example.com/default" },
97
+ setup: { "@type": "selected", "@icon": "suffix", "@inTable": !1, "@selected": !0 }
98
+ }, null, 8, ["for", "text", "data"])
99
+ ]))), 128))
100
+ ])) : x("", !0),
101
+ a(P, {
102
+ modelValue: r.value,
103
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => r.value = t),
104
+ options: k,
105
+ placeholder: "Wählen Sie Ihre Anwendungsbereiche.",
106
+ label: "Anwendungsbereich auswählen",
107
+ filterable: "",
108
+ taggable: "",
109
+ "create-option": "",
110
+ clearable: "",
111
+ error: s(y),
112
+ "error-message": Object.values(s(o)).length > 0 ? String((p = Object.values(s(o))[0]) == null ? void 0 : p.value) : ""
113
+ }, null, 8, ["modelValue", "error", "error-message"])
114
+ ])
115
+ ]),
116
+ n("section", F, [
117
+ a(M, { "hide-cancel": "" })
118
+ ]),
119
+ n("section", T, [
120
+ a(w, { variant: "default" }, {
121
+ icon: l(() => [
122
+ a(s(v), {
123
+ size: 32,
124
+ color: "#009fe3"
125
+ })
126
+ ]),
127
+ title: l(() => e[5] || (e[5] = [
128
+ b(" Information ", -1)
129
+ ])),
130
+ default: l(() => [
131
+ e[6] || (e[6] = n("div", { class: "application-information" }, [
132
+ n("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
+ ], -1))
134
+ ]),
135
+ _: 1,
136
+ __: [6]
137
+ })
138
+ ]),
139
+ n("section", $, [
140
+ a(w, { variant: "default" }, {
141
+ icon: l(() => [
142
+ a(s(v), {
143
+ size: 32,
144
+ color: "#009fe3"
145
+ })
146
+ ]),
147
+ title: l(() => e[7] || (e[7] = [
148
+ b(" Beispiel ", -1)
149
+ ])),
150
+ default: l(() => [
151
+ e[8] || (e[8] = n("div", { class: "application-information" }, [
152
+ n("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
+ ], -1))
154
+ ]),
155
+ _: 1,
156
+ __: [8]
157
+ })
104
158
  ])
105
- ]),
106
- n("section", M, [
107
- a(C, { "hide-cancel": "" })
108
- ]),
109
- n("section", N, [
110
- a(h, { variant: "default" }, {
111
- icon: s(() => [
112
- a(d(f), {
113
- size: 32,
114
- color: "#009fe3"
115
- })
116
- ]),
117
- title: s(() => e[5] || (e[5] = [
118
- g(" Information ", -1)
119
- ])),
120
- default: s(() => [
121
- e[6] || (e[6] = n("div", { class: "application-information" }, [
122
- n("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. ")
123
- ], -1))
124
- ]),
125
- _: 1,
126
- __: [6]
127
- })
128
- ]),
129
- n("section", W, [
130
- a(h, { variant: "default" }, {
131
- icon: s(() => [
132
- a(d(f), {
133
- size: 32,
134
- color: "#009fe3"
135
- })
136
- ]),
137
- title: s(() => e[7] || (e[7] = [
138
- g(" Beispiel ", -1)
139
- ])),
140
- default: s(() => [
141
- e[8] || (e[8] = n("div", { class: "application-information" }, [
142
- n("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. ")
143
- ], -1))
144
- ]),
145
- _: 1,
146
- __: [8]
147
- })
148
- ])
149
- ]));
159
+ ]);
160
+ };
150
161
  }
151
162
  });
152
163
  export {
153
- G as default
164
+ ee as default
154
165
  };
@@ -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-61aa715e"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-17f9d4b6"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };