@piveau/dpi 0.2.0-alpha.34 → 0.2.0-alpha.36

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 (18) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue2.js +35 -31
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +1 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +37 -33
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +41 -37
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +69 -64
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +1 -1
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +474 -458
  13. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +20 -14
  15. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +44 -41
  16. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +97 -95
  17. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +26 -19
  18. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, ref as h, computed as j, createElementBlock as f, openBlock as s, 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";
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
2
  import { FormKit as r } from "@formkit/vue";
3
3
  import { PhLightbulb as $ } from "@phosphor-icons/vue";
4
4
  import A from "../../../../stories/components/LinkCard.vue.js";
@@ -10,22 +10,22 @@ import T from "../Card.vue.js";
10
10
  import W from "../Chip.vue.js";
11
11
  import M from "../InputField.vue.js";
12
12
  import S from "../InputField/InputFieldDefinition.js";
13
- import Z from "../TextArea/TextAreaDefinition.js";
14
- const q = { class: "dpiV3_page V3-typography" }, O = {
13
+ import R from "../TextArea/TextAreaDefinition.js";
14
+ const Z = { class: "dpiV3_page V3-typography" }, q = {
15
15
  id: "partners-section",
16
16
  class: "funny-section"
17
- }, R = { class: "partner-cards-container" }, H = { class: "action-container" }, J = { class: "funny-section" }, Q = { class: "start-and-end" }, X = { class: "funny-section" }, Y = { class: "funny-section required-skills" }, ee = {
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 = {
18
18
  key: 0,
19
19
  style: { display: "flex", "flex-wrap": "wrap" }
20
- }, te = ["id", "value"], ne = ["for"], ie = { class: "action-container" }, le = {
20
+ }, ne = ["id", "value"], ie = ["for"], le = { class: "action-container" }, ae = {
21
21
  id: "partners-section",
22
22
  class: "funny-section"
23
- }, ae = { class: "partner-cards-container" }, re = { class: "action-container" }, oe = {
23
+ }, re = { class: "partner-cards-container" }, se = { class: "action-container" }, oe = {
24
24
  id: "partners-section",
25
25
  class: "funny-section"
26
- }, se = { class: "partner-cards-container" }, ue = { class: "action-container" }, de = 500, Ce = /* @__PURE__ */ B({
26
+ }, ue = { class: "partner-cards-container" }, de = { class: "action-container" }, me = 500, we = /* @__PURE__ */ B({
27
27
  __name: "OptionalDataStep",
28
- setup(me) {
28
+ setup(pe) {
29
29
  const x = h(""), C = h([]), w = h([]), _ = h([]), P = j(() => {
30
30
  var c;
31
31
  return ((c = x.value) == null ? void 0 : c.length) || 0;
@@ -37,17 +37,17 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
37
37
  }
38
38
  }
39
39
  const z = h("");
40
- return (c, e) => (s(), f("div", q, [
41
- e[23] || (e[23] = t("section", { class: "funny-section" }, [
40
+ return (c, e) => (o(), f("div", Z, [
41
+ e[24] || (e[24] = t("section", { class: "funny-section" }, [
42
42
  t("div", { class: "funny-flex" }, [
43
43
  t("h4", null, "Fügen Sie optionale Daten hinzu"),
44
44
  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
45
  ])
46
46
  ], -1)),
47
- t("section", O, [
47
+ t("section", q, [
48
48
  e[9] || (e[9] = t("h5", null, " Partner ", -1)),
49
49
  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", R, [
50
+ t("div", O, [
51
51
  i(l(r), {
52
52
  modelValue: C.value,
53
53
  "onUpdate:modelValue": e[0] || (e[0] = (n) => C.value = n),
@@ -55,8 +55,8 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
55
55
  name: "partners",
56
56
  dynamic: ""
57
57
  }, {
58
- default: a(({ items: n, node: o, value: d }) => [
59
- (s(!0), f(k, null, y(n, (m, p) => (s(), V(l(r), {
58
+ default: a(({ items: n, node: s, value: d }) => [
59
+ (o(!0), f(k, null, y(n, (m, p) => (o(), V(l(r), {
60
60
  key: m,
61
61
  type: "group",
62
62
  index: p
@@ -69,7 +69,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
69
69
  size: "small",
70
70
  variant: "tertiary",
71
71
  "icon-start": "trash",
72
- onClick: () => o.input(d.filter((F, b) => b !== p))
72
+ onClick: () => s.input(d.filter((F, b) => b !== p))
73
73
  }, null, 8, ["onClick"])
74
74
  ]),
75
75
  _: 2
@@ -83,7 +83,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
83
83
  size: "medium",
84
84
  variant: "tertiary",
85
85
  "icon-start": "plus",
86
- onClick: (m) => o.input(d.concat({}))
86
+ onClick: (m) => s.input(d.concat({}))
87
87
  }, null, 8, ["onClick"])
88
88
  ])
89
89
  ]),
@@ -124,31 +124,36 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
124
124
  ])
125
125
  ]),
126
126
  t("section", X, [
127
- e[15] || (e[15] = t("h5", null, "Budget", -1)),
128
- e[16] || (e[16] = t("div", { class: "budget" }, [
127
+ e[16] || (e[16] = t("h5", null, "Budget", -1)),
128
+ e[17] || (e[17] = t("div", { class: "budget" }, [
129
129
  t("span", { class: "copy-large-regular" }, " Bitte geben Sie hier das Gesamtbudget für Ihr Projekt an. ")
130
130
  ], -1)),
131
- i(l(r), {
132
- modelValue: z.value,
133
- "onUpdate:modelValue": e[1] || (e[1] = (n) => z.value = n),
134
- type: l(S),
135
- name: "budget",
136
- "trailing-text": !0,
137
- trailing_text: "€",
138
- "text-label": "Budget",
139
- placeholder: "....Budget",
140
- validation: "number",
141
- "validation-visibility": "submit",
142
- inputmode: "numeric",
143
- pattern: "[0-9]*"
144
- }, null, 8, ["modelValue", "type"]),
131
+ t("div", Y, [
132
+ i(l(r), {
133
+ modelValue: z.value,
134
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => z.value = n),
135
+ type: l(S),
136
+ name: "budget",
137
+ "trailing-text": !0,
138
+ trailing_text: "",
139
+ classList: "budget-field-input",
140
+ "text-label": "Budget",
141
+ placeholder: "....",
142
+ inputStyle: { paddingRight: "50px" },
143
+ validation: "number",
144
+ "validation-visibility": "submit",
145
+ inputmode: "numeric",
146
+ pattern: "[0-9]*"
147
+ }, null, 8, ["modelValue", "type"]),
148
+ e[13] || (e[13] = t("div", { class: "euro-icon" }, " € ", -1))
149
+ ]),
145
150
  i(l(r), {
146
151
  id: "Förderung",
147
152
  modelValue: x.value,
148
153
  "onUpdate:modelValue": e[2] || (e[2] = (n) => x.value = n),
149
154
  class: "budgetArea",
150
155
  label: "Förderung (optional)",
151
- type: l(Z),
156
+ type: l(R),
152
157
  name: "budgetDescription",
153
158
  "text-label": "Förderung (optional)",
154
159
  placeholder: "Beschreiben Sie welche Förderung Sie erhalten haben.",
@@ -156,7 +161,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
156
161
  validation: "length:0,500",
157
162
  "validation-visibility": "live",
158
163
  hint: "true",
159
- help: `${P.value} von ${de} Zeichen`,
164
+ help: `${P.value} von ${me} Zeichen`,
160
165
  "count-hint": !0
161
166
  }, null, 8, ["modelValue", "type", "disabled", "help"]),
162
167
  i(T, { variant: "default" }, {
@@ -166,39 +171,39 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
166
171
  color: "#009fe3"
167
172
  })
168
173
  ]),
169
- title: a(() => e[13] || (e[13] = [
174
+ title: a(() => e[14] || (e[14] = [
170
175
  D(" Information ", -1)
171
176
  ])),
172
177
  default: a(() => [
173
- e[14] || (e[14] = t("div", { class: "copy-large-regular" }, [
178
+ e[15] || (e[15] = t("div", { class: "copy-large-regular" }, [
174
179
  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.")
175
180
  ], -1))
176
181
  ]),
177
182
  _: 1,
178
- __: [14]
183
+ __: [15]
179
184
  })
180
185
  ]),
181
- t("section", Y, [
182
- e[17] || (e[17] = t("h5", null, "Erforderliche Fachkompetenzen", -1)),
183
- e[18] || (e[18] = 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)),
186
+ t("section", ee, [
187
+ e[18] || (e[18] = t("h5", null, "Erforderliche Fachkompetenzen", -1)),
188
+ 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)),
184
189
  i(l(r), {
185
190
  modelValue: u.value,
186
191
  "onUpdate:modelValue": e[3] || (e[3] = (n) => u.value = n),
187
192
  type: "hidden",
188
193
  name: "requiredExpertise"
189
194
  }, null, 8, ["modelValue"]),
190
- u.value.length > 0 ? (s(), f("div", ee, [
191
- (s(!0), f(k, null, y(u.value, (n) => (s(), f("div", {
195
+ u.value.length > 0 ? (o(), f("div", te, [
196
+ (o(!0), f(k, null, y(u.value, (n) => (o(), f("div", {
192
197
  key: n,
193
198
  class: "label-chip"
194
199
  }, [
195
200
  U(t("input", {
196
201
  id: `hardware-${n}`,
197
- "onUpdate:modelValue": e[4] || (e[4] = (o) => u.value = o),
202
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => u.value = s),
198
203
  class: "label-chip__input",
199
204
  type: "checkbox",
200
205
  value: n
201
- }, null, 8, te), [
206
+ }, null, 8, ne), [
202
207
  [E, u.value]
203
208
  ]),
204
209
  t("label", {
@@ -218,7 +223,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
218
223
  "@inTable": !1
219
224
  }
220
225
  }, null, 8, ["text", "data"])
221
- ], 8, ne)
226
+ ], 8, ie)
222
227
  ]))), 128))
223
228
  ])) : L("", !0),
224
229
  i(M, {
@@ -234,7 +239,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
234
239
  "show-end-icon": !1,
235
240
  "initial-hint-text": !1
236
241
  }, null, 8, ["modelValue"]),
237
- t("div", ie, [
242
+ t("div", le, [
238
243
  i(g, {
239
244
  "button-text": "Fachkompetenz hinzufügen",
240
245
  size: "medium",
@@ -244,10 +249,10 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
244
249
  })
245
250
  ])
246
251
  ]),
247
- t("section", le, [
248
- e[19] || (e[19] = t("h5", null, " Screenshots ", -1)),
249
- e[20] || (e[20] = 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)),
250
- t("div", ae, [
252
+ t("section", ae, [
253
+ e[20] || (e[20] = t("h5", null, " Screenshots ", -1)),
254
+ 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, [
251
256
  i(l(r), {
252
257
  modelValue: w.value,
253
258
  "onUpdate:modelValue": e[7] || (e[7] = (n) => w.value = n),
@@ -255,8 +260,8 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
255
260
  name: "references",
256
261
  dynamic: ""
257
262
  }, {
258
- default: a(({ items: n, node: o, value: d }) => [
259
- (s(!0), f(k, null, y(n, (m, p) => (s(), V(l(r), {
263
+ default: a(({ items: n, node: s, value: d }) => [
264
+ (o(!0), f(k, null, y(n, (m, p) => (o(), V(l(r), {
260
265
  key: m,
261
266
  type: "group",
262
267
  index: p
@@ -269,7 +274,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
269
274
  size: "small",
270
275
  variant: "tertiary",
271
276
  "icon-start": "trash",
272
- onClick: () => o.input(d.filter((F, b) => b !== p))
277
+ onClick: () => s.input(d.filter((F, b) => b !== p))
273
278
  }, null, 8, ["onClick"])
274
279
  ]),
275
280
  _: 2
@@ -277,13 +282,13 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
277
282
  ]),
278
283
  _: 2
279
284
  }, 1032, ["index"]))), 128)),
280
- t("div", re, [
285
+ t("div", se, [
281
286
  i(g, {
282
287
  "button-text": "Screenshot hinzufügen",
283
288
  size: "medium",
284
289
  variant: "tertiary",
285
290
  "icon-start": "plus",
286
- onClick: (m) => o.input(d.concat({}))
291
+ onClick: (m) => s.input(d.concat({}))
287
292
  }, null, 8, ["onClick"])
288
293
  ])
289
294
  ]),
@@ -292,9 +297,9 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
292
297
  ])
293
298
  ]),
294
299
  t("section", oe, [
295
- e[21] || (e[21] = t("h5", null, " Weiterführende Links ", -1)),
296
- e[22] || (e[22] = 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)),
297
- t("div", se, [
300
+ e[22] || (e[22] = t("h5", null, " Weiterführende Links ", -1)),
301
+ 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, [
298
303
  i(l(r), {
299
304
  modelValue: _.value,
300
305
  "onUpdate:modelValue": e[8] || (e[8] = (n) => _.value = n),
@@ -302,8 +307,8 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
302
307
  name: "links",
303
308
  dynamic: ""
304
309
  }, {
305
- default: a(({ items: n, node: o, value: d }) => [
306
- (s(!0), f(k, null, y(n, (m, p) => (s(), V(l(r), {
310
+ default: a(({ items: n, node: s, value: d }) => [
311
+ (o(!0), f(k, null, y(n, (m, p) => (o(), V(l(r), {
307
312
  key: m,
308
313
  type: "group",
309
314
  index: p
@@ -316,7 +321,7 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
316
321
  size: "small",
317
322
  variant: "tertiary",
318
323
  "icon-start": "trash",
319
- onClick: () => o.input(d.filter((F, b) => b !== p))
324
+ onClick: () => s.input(d.filter((F, b) => b !== p))
320
325
  }, null, 8, ["onClick"])
321
326
  ]),
322
327
  _: 2
@@ -324,13 +329,13 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
324
329
  ]),
325
330
  _: 2
326
331
  }, 1032, ["index"]))), 128)),
327
- t("div", ue, [
332
+ t("div", de, [
328
333
  i(g, {
329
334
  "button-text": "Link hinzufügen",
330
335
  size: "medium",
331
336
  variant: "tertiary",
332
337
  "icon-start": "plus",
333
- onClick: (m) => o.input(d.concat({}))
338
+ onClick: (m) => s.input(d.concat({}))
334
339
  }, null, 8, ["onClick"])
335
340
  ])
336
341
  ]),
@@ -343,5 +348,5 @@ const q = { class: "dpiV3_page V3-typography" }, O = {
343
348
  }
344
349
  });
345
350
  export {
346
- Ce as default
351
+ we as default
347
352
  };
@@ -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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-db9967a5"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4cf8fd8c"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -513,7 +513,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
513
513
  s("div", Gt, [
514
514
  a(f, {
515
515
  "button-text": "Löschen",
516
- size: "medium",
516
+ size: "small",
517
517
  variant: "tertiary",
518
518
  "icon-start": "trash",
519
519
  onClick: pt
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-09fc3c2b"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-43209a7f"]]);
5
5
  export {
6
- c as default
6
+ a as default
7
7
  };