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

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 (25) 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 +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +84 -65
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +18 -13
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +16 -11
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +113 -105
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +45 -49
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +103 -103
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
  16. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
  17. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +68 -67
  18. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +2 -2
  19. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
  20. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  21. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -19
  22. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  23. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -18
  24. package/dist/packages/dpi/src/utils/twinbyUtils.js +28 -4
  25. package/package.json +1 -1
@@ -1,75 +1,78 @@
1
- import { defineComponent as B, ref as h, computed as j, createElementBlock as f, openBlock as o, createElementVNode as t, createVNode as i, unref as l, withCtx as a, Fragment as k, renderList as y, createBlock as V, createTextVNode as D, createCommentVNode as L, withDirectives as U, vModelCheckbox as E } from "vue";
2
- import { FormKit as r } from "@formkit/vue";
3
- import { PhLightbulb as $ } from "@phosphor-icons/vue";
4
- import A from "../../../../stories/components/LinkCard.vue.js";
5
- import N from "../../../../stories/components/PartnerCard.vue.js";
6
- import G from "../../../../stories/components/ScreenshotCard.vue.js";
7
- import K from "../../../components/StepActionsSection.vue.js";
1
+ import { defineComponent as j, ref as h, computed as D, createElementBlock as f, openBlock as u, createElementVNode as t, createVNode as i, unref as l, withCtx as r, Fragment as k, renderList as y, createBlock as V, createTextVNode as L, createCommentVNode as U, withDirectives as E, vModelCheckbox as $ } from "vue";
2
+ import { FormKit as s } from "@formkit/vue";
3
+ import { PhLightbulb as A } from "@phosphor-icons/vue";
4
+ import N from "../../../../stories/components/LinkCard.vue.js";
5
+ import G from "../../../../stories/components/PartnerCard.vue.js";
6
+ import K from "../../../../stories/components/ScreenshotCard.vue.js";
7
+ import T from "../../../components/StepActionsSection.vue.js";
8
8
  import g from "../ButtonV3.vue.js";
9
- import T from "../Card.vue.js";
10
- import W from "../Chip.vue.js";
11
- import M from "../InputField.vue.js";
9
+ import W from "../Card.vue.js";
10
+ import M from "../Chip.vue.js";
11
+ import Z from "../InputField.vue.js";
12
12
  import S from "../InputField/InputFieldDefinition.js";
13
13
  import R from "../TextArea/TextAreaDefinition.js";
14
- const Z = { class: "dpiV3_page V3-typography" }, q = {
14
+ const q = { class: "dpiV3_page V3-typography" }, O = {
15
15
  id: "partners-section",
16
16
  class: "funny-section"
17
- }, O = { class: "partner-cards-container" }, H = { class: "action-container" }, J = { class: "funny-section" }, Q = { class: "start-and-end" }, X = { class: "funny-section" }, Y = { class: "budget-field" }, ee = { class: "funny-section required-skills" }, te = {
17
+ }, H = { class: "partner-cards-container" }, J = { class: "action-container" }, Q = { class: "funny-section" }, X = { class: "start-and-end" }, Y = { class: "funny-section" }, ee = { class: "budget-field" }, te = { class: "funny-section required-skills" }, ne = {
18
18
  key: 0,
19
19
  style: { display: "flex", "flex-wrap": "wrap" }
20
- }, ne = ["id", "value"], ie = ["for"], le = { class: "action-container" }, ae = {
20
+ }, ie = ["id", "value"], le = ["for"], ae = { class: "action-container" }, re = {
21
21
  id: "partners-section",
22
22
  class: "funny-section"
23
- }, re = { class: "partner-cards-container" }, se = { class: "action-container" }, oe = {
23
+ }, se = { class: "partner-cards-container" }, oe = { class: "action-container" }, ue = {
24
24
  id: "partners-section",
25
25
  class: "funny-section"
26
- }, ue = { class: "partner-cards-container" }, de = { class: "action-container" }, me = 500, we = /* @__PURE__ */ B({
26
+ }, de = { class: "partner-cards-container" }, me = { class: "action-container" }, pe = 500, _e = /* @__PURE__ */ j({
27
27
  __name: "OptionalDataStep",
28
- setup(pe) {
29
- const x = h(""), C = h([]), w = h([]), _ = h([]), P = j(() => {
30
- var c;
31
- return ((c = x.value) == null ? void 0 : c.length) || 0;
32
- }), v = h(""), u = h([]);
33
- function I(c) {
34
- if (c && c.trim()) {
35
- const e = c.trim();
36
- u.value.includes(e) || u.value.push(e), v.value = "";
28
+ setup(ce) {
29
+ const x = h(""), C = h([]), w = h([]), _ = h([]), P = D(() => {
30
+ var a;
31
+ return ((a = x.value) == null ? void 0 : a.length) || 0;
32
+ }), b = h(""), d = h([]);
33
+ function I(a) {
34
+ if (a && a.trim()) {
35
+ const e = a.trim();
36
+ d.value.includes(e) || d.value.push(e), b.value = "";
37
37
  }
38
38
  }
39
39
  const z = h("");
40
- return (c, e) => (o(), f("div", Z, [
40
+ function B(a) {
41
+ return a._value === null || a._value === void 0 ? !0 : typeof a._value != "string" ? !1 : /^\d*$/.test(a._value);
42
+ }
43
+ return (a, e) => (u(), f("div", q, [
41
44
  e[24] || (e[24] = t("section", { class: "funny-section" }, [
42
45
  t("div", { class: "funny-flex" }, [
43
46
  t("h4", null, "Fügen Sie optionale Daten hinzu"),
44
47
  t("span", { class: "copy-large-regular" }, " Zusätzliche Informationen, wie etwa zur Laufzeit oder zum Budgetrahmen Ihres Projekts, können für andere Kommunen hilfreich sein. ")
45
48
  ])
46
49
  ], -1)),
47
- t("section", q, [
50
+ t("section", O, [
48
51
  e[9] || (e[9] = t("h5", null, " Partner ", -1)),
49
52
  e[10] || (e[10] = t("span", { class: "copy-large-regular" }, "Wenn Sie mit einem oder mehreren Partnern zusammengearbeitet haben, können Sie diese hier angeben.", -1)),
50
- t("div", O, [
51
- i(l(r), {
53
+ t("div", H, [
54
+ i(l(s), {
52
55
  modelValue: C.value,
53
56
  "onUpdate:modelValue": e[0] || (e[0] = (n) => C.value = n),
54
57
  type: "list",
55
58
  name: "partners",
56
59
  dynamic: ""
57
60
  }, {
58
- default: a(({ items: n, node: s, value: d }) => [
59
- (o(!0), f(k, null, y(n, (m, p) => (o(), V(l(r), {
60
- key: m,
61
+ default: r(({ items: n, node: o, value: m }) => [
62
+ (u(!0), f(k, null, y(n, (p, c) => (u(), V(l(s), {
63
+ key: p,
61
64
  type: "group",
62
- index: p
65
+ index: c
63
66
  }, {
64
- default: a(() => [
65
- i(N, null, {
66
- action: a(() => [
67
+ default: r(() => [
68
+ i(G, null, {
69
+ action: r(() => [
67
70
  i(g, {
68
71
  "button-text": "Löschen",
69
72
  size: "small",
70
73
  variant: "tertiary",
71
74
  "icon-start": "trash",
72
- onClick: () => s.input(d.filter((F, b) => b !== p))
75
+ onClick: () => o.input(m.filter((F, v) => v !== c))
73
76
  }, null, 8, ["onClick"])
74
77
  ]),
75
78
  _: 2
@@ -77,13 +80,13 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
77
80
  ]),
78
81
  _: 2
79
82
  }, 1032, ["index"]))), 128)),
80
- t("div", H, [
83
+ t("div", J, [
81
84
  i(g, {
82
85
  "button-text": "Partner hinzufügen",
83
86
  size: "medium",
84
87
  variant: "tertiary",
85
88
  "icon-start": "plus",
86
- onClick: (m) => s.input(d.concat({}))
89
+ onClick: (p) => o.input(m.concat({}))
87
90
  }, null, 8, ["onClick"])
88
91
  ])
89
92
  ]),
@@ -91,11 +94,11 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
91
94
  }, 8, ["modelValue"])
92
95
  ])
93
96
  ]),
94
- t("section", J, [
97
+ t("section", Q, [
95
98
  e[11] || (e[11] = t("h5", null, " Projektzeitraum ", -1)),
96
99
  e[12] || (e[12] = t("span", { class: "copy-large-regular" }, "Für Projekte, die noch nicht abgeschlossen sind, können Sie das Enddatum frei lassen.", -1)),
97
- t("div", Q, [
98
- i(l(r), {
100
+ t("div", X, [
101
+ i(l(s), {
99
102
  type: l(S),
100
103
  name: "startDate",
101
104
  "text-label": "Startdatum",
@@ -108,7 +111,7 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
108
111
  "show-end-icon": !1,
109
112
  "initial-hint-text": !1
110
113
  }, null, 8, ["type"]),
111
- i(l(r), {
114
+ i(l(s), {
112
115
  type: l(S),
113
116
  name: "endDate",
114
117
  "text-label": "Enddatum",
@@ -123,31 +126,36 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
123
126
  }, null, 8, ["type"])
124
127
  ])
125
128
  ]),
126
- t("section", X, [
129
+ t("section", Y, [
127
130
  e[16] || (e[16] = t("h5", null, "Budget", -1)),
128
131
  e[17] || (e[17] = t("div", { class: "budget" }, [
129
132
  t("span", { class: "copy-large-regular" }, " Bitte geben Sie hier das Gesamtbudget für Ihr Projekt an. ")
130
133
  ], -1)),
131
- t("div", Y, [
132
- i(l(r), {
134
+ t("div", ee, [
135
+ i(l(s), {
133
136
  modelValue: z.value,
134
137
  "onUpdate:modelValue": e[1] || (e[1] = (n) => z.value = n),
135
- type: l(S),
136
138
  name: "budget",
139
+ number: "",
137
140
  "trailing-text": !0,
138
141
  trailing_text: "€",
139
- classList: "budget-field-input",
142
+ "class-list": "budget-field-input",
140
143
  "text-label": "Budget",
141
144
  placeholder: "....",
142
- inputStyle: { paddingRight: "50px" },
143
- validation: "number",
145
+ "input-style": { paddingRight: "50px" },
146
+ "validation-rules": { numeric: B },
147
+ validation: "numeric",
144
148
  "validation-visibility": "submit",
145
149
  inputmode: "numeric",
146
- pattern: "[0-9]*"
147
- }, null, 8, ["modelValue", "type"]),
150
+ type: l(S),
151
+ pattern: "[0-9]*",
152
+ "validation-messages": {
153
+ numeric: "Budget muss eine Zahl sein, ohne Sonderzeichen."
154
+ }
155
+ }, null, 8, ["modelValue", "validation-rules", "type"]),
148
156
  e[13] || (e[13] = t("div", { class: "euro-icon" }, " € ", -1))
149
157
  ]),
150
- i(l(r), {
158
+ i(l(s), {
151
159
  id: "Förderung",
152
160
  modelValue: x.value,
153
161
  "onUpdate:modelValue": e[2] || (e[2] = (n) => x.value = n),
@@ -161,20 +169,20 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
161
169
  validation: "length:0,500",
162
170
  "validation-visibility": "live",
163
171
  hint: "true",
164
- help: `${P.value} von ${me} Zeichen`,
172
+ help: `${P.value} von ${pe} Zeichen`,
165
173
  "count-hint": !0
166
174
  }, null, 8, ["modelValue", "type", "disabled", "help"]),
167
- i(T, { variant: "default" }, {
168
- icon: a(() => [
169
- i(l($), {
175
+ i(W, { variant: "default" }, {
176
+ icon: r(() => [
177
+ i(l(A), {
170
178
  size: 32,
171
179
  color: "#009fe3"
172
180
  })
173
181
  ]),
174
- title: a(() => e[14] || (e[14] = [
175
- D(" Information ", -1)
182
+ title: r(() => e[14] || (e[14] = [
183
+ L(" Information ", -1)
176
184
  ])),
177
- default: a(() => [
185
+ default: r(() => [
178
186
  e[15] || (e[15] = t("div", { class: "copy-large-regular" }, [
179
187
  t("p", null, "Ihre Angabe zum Gesamtbudget hilft anderen Kommunen, den Umfang Ihres Projekts besser einzuschätzen. Sie können hier auch einen Schätzwert eingeben, falls das Projekt z.B. noch nicht abgeschlossen ist. Wenn Sie eine Förderung erhalten und das Projekt ausschließlich damit finanziert haben, geben Sie die Fördersumme als Ihr Gesamtbudget an.")
180
188
  ], -1))
@@ -183,34 +191,34 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
183
191
  __: [15]
184
192
  })
185
193
  ]),
186
- t("section", ee, [
194
+ t("section", te, [
187
195
  e[18] || (e[18] = t("h5", null, "Erforderliche Fachkompetenzen", -1)),
188
196
  e[19] || (e[19] = t("p", null, "Damit andere Kommunen besser einschätzen können, welche Fachkenntnisse das Projektteam mitbringen sollte, bitten wir Sie, hier die Kompetenzfelder anzugeben, die für Ihr Projekt am Wichtigsten waren (z.B. Datenmanagement oder Projektmanagement).", -1)),
189
- i(l(r), {
190
- modelValue: u.value,
191
- "onUpdate:modelValue": e[3] || (e[3] = (n) => u.value = n),
197
+ i(l(s), {
198
+ modelValue: d.value,
199
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => d.value = n),
192
200
  type: "hidden",
193
201
  name: "requiredExpertise"
194
202
  }, null, 8, ["modelValue"]),
195
- u.value.length > 0 ? (o(), f("div", te, [
196
- (o(!0), f(k, null, y(u.value, (n) => (o(), f("div", {
203
+ d.value.length > 0 ? (u(), f("div", ne, [
204
+ (u(!0), f(k, null, y(d.value, (n) => (u(), f("div", {
197
205
  key: n,
198
206
  class: "label-chip"
199
207
  }, [
200
- U(t("input", {
208
+ E(t("input", {
201
209
  id: `hardware-${n}`,
202
- "onUpdate:modelValue": e[4] || (e[4] = (s) => u.value = s),
210
+ "onUpdate:modelValue": e[4] || (e[4] = (o) => d.value = o),
203
211
  class: "label-chip__input",
204
212
  type: "checkbox",
205
213
  value: n
206
- }, null, 8, ne), [
207
- [E, u.value]
214
+ }, null, 8, ie), [
215
+ [$, d.value]
208
216
  ]),
209
217
  t("label", {
210
218
  class: "label-chip__label",
211
219
  for: `hardware-${n}`
212
220
  }, [
213
- i(W, {
221
+ i(M, {
214
222
  class: "label-chip__inner",
215
223
  text: n,
216
224
  data: {
@@ -223,12 +231,12 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
223
231
  "@inTable": !1
224
232
  }
225
233
  }, null, 8, ["text", "data"])
226
- ], 8, ie)
234
+ ], 8, le)
227
235
  ]))), 128))
228
- ])) : L("", !0),
229
- i(M, {
230
- modelValue: v.value,
231
- "onUpdate:modelValue": e[5] || (e[5] = (n) => v.value = n),
236
+ ])) : U("", !0),
237
+ i(Z, {
238
+ modelValue: b.value,
239
+ "onUpdate:modelValue": e[5] || (e[5] = (n) => b.value = n),
232
240
  label: "Erforderliche Fachkompetenz",
233
241
  "input-type": "text",
234
242
  placeholder: "Nennen Sie eine Fachkompetenz.",
@@ -239,42 +247,42 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
239
247
  "show-end-icon": !1,
240
248
  "initial-hint-text": !1
241
249
  }, null, 8, ["modelValue"]),
242
- t("div", le, [
250
+ t("div", ae, [
243
251
  i(g, {
244
252
  "button-text": "Fachkompetenz hinzufügen",
245
253
  size: "medium",
246
254
  variant: "tertiary",
247
255
  "icon-start": "plus",
248
- onClick: e[6] || (e[6] = (n) => I(v.value))
256
+ onClick: e[6] || (e[6] = (n) => I(b.value))
249
257
  })
250
258
  ])
251
259
  ]),
252
- t("section", ae, [
260
+ t("section", re, [
253
261
  e[20] || (e[20] = t("h5", null, " Screenshots ", -1)),
254
262
  e[21] || (e[21] = t("span", { class: "copy-large-regular" }, "Bilder oder Screenshots helfen einen besseren Eindruck von Ihrem Projekt zu bekommen. Aus rechtlichen und technischen Gründen können Sie keine Dateien hochladen. Geben Sie daher bitte die URL an, unter der das Bild oder der Screenshot dauerhaft zu erreichen sein wird.", -1)),
255
- t("div", re, [
256
- i(l(r), {
263
+ t("div", se, [
264
+ i(l(s), {
257
265
  modelValue: w.value,
258
266
  "onUpdate:modelValue": e[7] || (e[7] = (n) => w.value = n),
259
267
  type: "list",
260
268
  name: "references",
261
269
  dynamic: ""
262
270
  }, {
263
- default: a(({ items: n, node: s, value: d }) => [
264
- (o(!0), f(k, null, y(n, (m, p) => (o(), V(l(r), {
265
- key: m,
271
+ default: r(({ items: n, node: o, value: m }) => [
272
+ (u(!0), f(k, null, y(n, (p, c) => (u(), V(l(s), {
273
+ key: p,
266
274
  type: "group",
267
- index: p
275
+ index: c
268
276
  }, {
269
- default: a(() => [
270
- i(G, null, {
271
- action: a(() => [
277
+ default: r(() => [
278
+ i(K, null, {
279
+ action: r(() => [
272
280
  i(g, {
273
281
  "button-text": "Löschen",
274
282
  size: "small",
275
283
  variant: "tertiary",
276
284
  "icon-start": "trash",
277
- onClick: () => s.input(d.filter((F, b) => b !== p))
285
+ onClick: () => o.input(m.filter((F, v) => v !== c))
278
286
  }, null, 8, ["onClick"])
279
287
  ]),
280
288
  _: 2
@@ -282,13 +290,13 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
282
290
  ]),
283
291
  _: 2
284
292
  }, 1032, ["index"]))), 128)),
285
- t("div", se, [
293
+ t("div", oe, [
286
294
  i(g, {
287
295
  "button-text": "Screenshot hinzufügen",
288
296
  size: "medium",
289
297
  variant: "tertiary",
290
298
  "icon-start": "plus",
291
- onClick: (m) => s.input(d.concat({}))
299
+ onClick: (p) => o.input(m.concat({}))
292
300
  }, null, 8, ["onClick"])
293
301
  ])
294
302
  ]),
@@ -296,32 +304,32 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
296
304
  }, 8, ["modelValue"])
297
305
  ])
298
306
  ]),
299
- t("section", oe, [
307
+ t("section", ue, [
300
308
  e[22] || (e[22] = t("h5", null, " Weiterführende Links ", -1)),
301
309
  e[23] || (e[23] = t("span", { class: "copy-large-regular" }, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zu Ihrer Vorgehensweise beim Aufbau eines Digitalen Zwillings enthalten, wie etwa Status- oder Abschlussberichte.", -1)),
302
- t("div", ue, [
303
- i(l(r), {
310
+ t("div", de, [
311
+ i(l(s), {
304
312
  modelValue: _.value,
305
313
  "onUpdate:modelValue": e[8] || (e[8] = (n) => _.value = n),
306
314
  type: "list",
307
315
  name: "links",
308
316
  dynamic: ""
309
317
  }, {
310
- default: a(({ items: n, node: s, value: d }) => [
311
- (o(!0), f(k, null, y(n, (m, p) => (o(), V(l(r), {
312
- key: m,
318
+ default: r(({ items: n, node: o, value: m }) => [
319
+ (u(!0), f(k, null, y(n, (p, c) => (u(), V(l(s), {
320
+ key: p,
313
321
  type: "group",
314
- index: p
322
+ index: c
315
323
  }, {
316
- default: a(() => [
317
- i(A, null, {
318
- action: a(() => [
324
+ default: r(() => [
325
+ i(N, null, {
326
+ action: r(() => [
319
327
  i(g, {
320
328
  "button-text": "Löschen",
321
329
  size: "small",
322
330
  variant: "tertiary",
323
331
  "icon-start": "trash",
324
- onClick: () => s.input(d.filter((F, b) => b !== p))
332
+ onClick: () => o.input(m.filter((F, v) => v !== c))
325
333
  }, null, 8, ["onClick"])
326
334
  ]),
327
335
  _: 2
@@ -329,13 +337,13 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
329
337
  ]),
330
338
  _: 2
331
339
  }, 1032, ["index"]))), 128)),
332
- t("div", de, [
340
+ t("div", me, [
333
341
  i(g, {
334
342
  "button-text": "Link hinzufügen",
335
343
  size: "medium",
336
344
  variant: "tertiary",
337
345
  "icon-start": "plus",
338
- onClick: (m) => s.input(d.concat({}))
346
+ onClick: (p) => o.input(m.concat({}))
339
347
  }, null, 8, ["onClick"])
340
348
  ])
341
349
  ]),
@@ -343,10 +351,10 @@ const Z = { class: "dpiV3_page V3-typography" }, q = {
343
351
  }, 8, ["modelValue"])
344
352
  ])
345
353
  ]),
346
- i(K, { "next-text": "Weiter zu den Projektphasen" })
354
+ i(T, { "next-text": "Weiter zu den Projektphasen" })
347
355
  ]));
348
356
  }
349
357
  });
350
358
  export {
351
- we as default
359
+ _e as default
352
360
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./FunctionalityForm.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-7c4d7197"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9d393151"]]);
5
5
  export {
6
- c as default
6
+ i as default
7
7
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as _, mergeModels as N, useModel as A, computed as y, ref as v, watch as B, createElementBlock as s, openBlock as u, createCommentVNode as E, createVNode as c, createElementVNode as h, Fragment as M, renderList as R, unref as U } from "vue";
2
- import { toTypedSchema as x } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
- import { useForm as z } from "vee-validate";
4
- import * as o from "zod";
5
- import O from "../ButtonV3.vue.js";
6
- import T from "../Chip.vue.js";
7
- import $ from "../InputField/InputFieldVeeValidate.vue.js";
8
- import j from "../ListBox/ListboxVeeValidate.vue.js";
9
- const w = { class: "functionality-form" }, D = {
1
+ import { defineComponent as C, mergeModels as _, useModel as N, computed as y, ref as v, watch as x, createElementBlock as a, openBlock as u, createCommentVNode as A, createVNode as s, createElementVNode as h, Fragment as B, renderList as E, unref as M } from "vue";
2
+ import { toTypedSchema as R } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
+ import { useForm as U } from "vee-validate";
4
+ import * as c from "zod";
5
+ import z from "../ButtonV3.vue.js";
6
+ import O from "../Chip.vue.js";
7
+ import T from "../InputField/InputFieldVeeValidate.vue.js";
8
+ import $ from "../ListBox/ListboxVeeValidate.vue.js";
9
+ const j = { class: "functionality-form" }, w = {
10
10
  key: 0,
11
11
  class: "functionalities-container"
12
- }, L = { class: "step-section-actions" }, b = "Funktionalität ist erforderlich.", K = /* @__PURE__ */ _({
12
+ }, D = { class: "step-section-actions" }, L = "Funktionalität ist erforderlich.", K = /* @__PURE__ */ C({
13
13
  __name: "FunctionalityForm",
14
- props: /* @__PURE__ */ N({
14
+ props: /* @__PURE__ */ _({
15
15
  options: {},
16
16
  disabled: { type: Boolean, default: !1 }
17
17
  }, {
@@ -22,28 +22,24 @@ const w = { class: "functionality-form" }, D = {
22
22
  }),
23
23
  emits: ["update:modelValue"],
24
24
  setup(m) {
25
- const I = m, i = A(m, "modelValue"), d = y(
25
+ const b = m, i = N(m, "modelValue"), r = y(
26
26
  () => Array.from(i.value || [])
27
- ), S = y(() => {
27
+ ), F = y(() => {
28
28
  var e, n;
29
- const t = d.value.join(" ");
30
- return (n = (e = I.options) == null ? void 0 : e.filter((l) => !t.includes(l))) == null ? void 0 : n.sort((l, p) => l.localeCompare(p));
31
- }), F = o.object({
32
- functionalitySelect: o.string().optional(),
33
- functionalityInput: o.string().optional()
29
+ const t = r.value.join(" ");
30
+ return (n = (e = b.options) == null ? void 0 : e.filter((l) => !t.includes(l))) == null ? void 0 : n.sort((l, p) => l.localeCompare(p));
31
+ }), S = c.object({
32
+ functionalitySelect: c.string().optional(),
33
+ functionalityInput: c.string().optional()
34
34
  }).superRefine((t, e) => {
35
35
  const n = t.functionalitySelect && t.functionalitySelect.trim().length > 0, l = t.functionalityInput && t.functionalityInput.trim().length > 0;
36
- !n && !l && (e.addIssue({
37
- code: o.ZodIssueCode.custom,
38
- message: b,
39
- path: ["functionalitySelect"]
40
- }), e.addIssue({
41
- code: o.ZodIssueCode.custom,
42
- message: b,
36
+ !n && !l && e.addIssue({
37
+ code: c.ZodIssueCode.custom,
38
+ message: L,
43
39
  path: ["functionalityInput"]
44
- }));
45
- }), V = z({
46
- validationSchema: x(F),
40
+ });
41
+ }), V = U({
42
+ validationSchema: R(S),
47
43
  initialValues: {
48
44
  functionalitySelect: "",
49
45
  functionalityInput: ""
@@ -51,26 +47,26 @@ const w = { class: "functionality-form" }, D = {
51
47
  name: "functionalityForm"
52
48
  }), {
53
49
  handleSubmit: k,
54
- resetForm: g
55
- } = V, a = v(""), r = v(""), f = k((t) => {
50
+ resetForm: I
51
+ } = V, o = v(""), d = v(""), f = k((t) => {
56
52
  var n;
57
53
  const e = t.functionalitySelect || t.functionalityInput;
58
- e && e.trim().length > 0 && !((n = i.value) != null && n.includes(e)) && (i.value = [...i.value || [], e]), g(), a.value = "", r.value = "";
54
+ e && e.trim().length > 0 && !((n = i.value) != null && n.includes(e)) && (i.value = [...i.value || [], e]), I(), o.value = "", d.value = "";
59
55
  });
60
- B(a, (t) => {
56
+ x(o, (t) => {
61
57
  t && t.trim().length > 0 && f();
62
58
  });
63
- function C(t) {
59
+ function g(t) {
64
60
  var e;
65
61
  i.value = ((e = i.value) == null ? void 0 : e.filter((n) => n !== t)) || [];
66
62
  }
67
- return (t, e) => (u(), s("div", w, [
68
- d.value.length > 0 ? (u(), s("div", D, [
69
- (u(!0), s(M, null, R(d.value, (n, l) => (u(), s("div", {
63
+ return (t, e) => (u(), a("div", j, [
64
+ r.value.length > 0 ? (u(), a("div", w, [
65
+ (u(!0), a(B, null, E(r.value, (n, l) => (u(), a("div", {
70
66
  key: l,
71
67
  class: "functionalities"
72
68
  }, [
73
- c(T, {
69
+ s(O, {
74
70
  text: n,
75
71
  setup: {
76
72
  "@type": "select",
@@ -81,23 +77,23 @@ const w = { class: "functionality-form" }, D = {
81
77
  },
82
78
  data: { "@value": n, URI: n },
83
79
  "select-value": !0,
84
- onClick: (p) => C(n)
80
+ onClick: (p) => g(n)
85
81
  }, null, 8, ["text", "data", "onClick"])
86
82
  ]))), 128))
87
- ])) : E("", !0),
88
- c(j, {
89
- modelValue: a.value,
90
- "onUpdate:modelValue": e[0] || (e[0] = (n) => a.value = n),
83
+ ])) : A("", !0),
84
+ s($, {
85
+ modelValue: o.value,
86
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => o.value = n),
91
87
  name: "functionalitySelect",
92
- options: S.value,
88
+ options: F.value,
93
89
  label: "Funktionalitäten auswählen",
94
90
  placeholder: "Wählen Sie eine Funktionalität.",
95
91
  disabled: t.disabled
96
92
  }, null, 8, ["modelValue", "options", "disabled"]),
97
93
  e[2] || (e[2] = h("h5", null, " oder ", -1)),
98
- c($, {
99
- modelValue: r.value,
100
- "onUpdate:modelValue": e[1] || (e[1] = (n) => r.value = n),
94
+ s(T, {
95
+ modelValue: d.value,
96
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => d.value = n),
101
97
  name: "functionalityInput",
102
98
  "add-on-text": !1,
103
99
  "date-picker": !1,
@@ -108,14 +104,14 @@ const w = { class: "functionality-form" }, D = {
108
104
  label: "Funktionalitäten nennen",
109
105
  placeholder: "Nennen Sie eine Funktionalität."
110
106
  }, null, 8, ["modelValue", "is-disabled"]),
111
- h("div", L, [
112
- c(O, {
107
+ h("div", D, [
108
+ s(z, {
113
109
  "button-text": "Funktionalität hinzufügen",
114
110
  size: "medium",
115
111
  variant: "tertiary",
116
112
  "icon-start": "plus",
117
113
  disabled: t.disabled,
118
- onClick: U(f)
114
+ onClick: M(f)
119
115
  }, null, 8, ["disabled", "onClick"])
120
116
  ])
121
117
  ]));
@@ -1,7 +1,7 @@
1
1
  import o from "./HardwareForm.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5f91e301"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-bf22c9c3"]]);
5
5
  export {
6
- e as default
6
+ c as default
7
7
  };