@piveau/dpi 0.2.0-alpha.42 → 0.2.0-alpha.44

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 "./BasicInformationStep.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-c80a70b4"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0409d8ed"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as P, ref as v, computed as C, inject as A, createElementBlock as _, openBlock as l, createElementVNode as t, createVNode as r, createTextVNode as f, unref as a, withCtx as i, Fragment as N, renderList as T, createBlock as h, createCommentVNode as k } from "vue";
2
- import { FormKit as b } from "@formkit/vue";
1
+ import { defineComponent as P, ref as v, computed as C, inject as A, createElementBlock as _, openBlock as l, createElementVNode as t, createVNode as r, createTextVNode as f, unref as a, withCtx as i, Fragment as N, renderList as T, createBlock as h, createCommentVNode as b } from "vue";
2
+ import { FormKit as k } from "@formkit/vue";
3
3
  import { PhLightbulb as w } from "@phosphor-icons/vue";
4
4
  import $ from "../../../../stories/components/LinkCard.vue.js";
5
5
  import { empty as V, generateIsRequiredMsg as q } from "../../../../utils/twinbyUtils.js";
@@ -48,7 +48,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
48
48
  ])
49
49
  ], -1)),
50
50
  t("section", F, [
51
- r(a(b), {
51
+ r(a(k), {
52
52
  id: "Beschreibung",
53
53
  modelValue: d.value,
54
54
  "onUpdate:modelValue": e[0] || (e[0] = (n) => d.value = n),
@@ -59,7 +59,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
59
59
  "text-label": "Beschreibung",
60
60
  placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
61
61
  validation: "+requireIfLink|length:0,1000",
62
- "validation-visibility": "live",
62
+ "validation-visibility": "submit",
63
63
  hint: "true",
64
64
  help: `${L.value} von ${J} Zeichen`,
65
65
  "count-hint": !0,
@@ -93,7 +93,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
93
93
  e[5] || (e[5] = t("h5", null, " Weiterführende Links (optional) ", -1)),
94
94
  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)),
95
95
  t("div", j, [
96
- r(a(b), {
96
+ r(a(k), {
97
97
  modelValue: c.value,
98
98
  "onUpdate:modelValue": e[1] || (e[1] = (n) => c.value = n),
99
99
  type: "list",
@@ -101,7 +101,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
101
101
  dynamic: ""
102
102
  }, {
103
103
  default: i(({ items: n, node: o, value: p }) => [
104
- (l(!0), _(N, null, T(n, (m, g) => (l(), h(a(b), {
104
+ (l(!0), _(N, null, T(n, (m, g) => (l(), h(a(k), {
105
105
  key: m,
106
106
  type: "group",
107
107
  index: g
@@ -150,7 +150,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
150
150
  }) => [
151
151
  t("div", U, [
152
152
  t("div", H, [
153
- n ? k("", !0) : (l(), h(u, {
153
+ n ? b("", !0) : (l(), h(u, {
154
154
  key: 0,
155
155
  variant: "secondary",
156
156
  size: "large",
@@ -158,7 +158,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
158
158
  "icon-start": "CaretLeft",
159
159
  onClick: g
160
160
  }, null, 8, ["button-text", "onClick"])),
161
- n ? k("", !0) : (l(), h(u, {
161
+ n ? b("", !0) : (l(), h(u, {
162
162
  key: 1,
163
163
  disabled: S.value,
164
164
  variant: "secondary",
@@ -168,7 +168,7 @@ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" },
168
168
  onClick: e[2] || (e[2] = (z) => S.value ? null : I())
169
169
  }, null, 8, ["disabled"]))
170
170
  ]),
171
- o ? k("", !0) : (l(), h(u, {
171
+ o ? b("", !0) : (l(), h(u, {
172
172
  key: 0,
173
173
  variant: "primary",
174
174
  size: "large",
@@ -1,7 +1,7 @@
1
1
  import o from "./BasicInformationStep.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-fe6419ed"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b60e270b"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -51,7 +51,7 @@ const W = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
51
51
  "text-label": "Beschreibung",
52
52
  placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
53
53
  validation: "+requireIfLink|length:0,1000",
54
- "validation-visibility": "live",
54
+ "validation-visibility": "submit",
55
55
  hint: "true",
56
56
  help: `${w.value} von ${O} Zeichen`,
57
57
  "count-hint": !0,
@@ -1,7 +1,7 @@
1
1
  import o from "./BasicInformationStep.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6f7c3628"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fce6b036"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -1,43 +1,45 @@
1
- import { defineComponent as I, ref as f, computed as w, useModel as A, inject as D, createElementBlock as _, openBlock as a, createElementVNode as t, createVNode as r, createBlock as u, createCommentVNode as g, createTextVNode as z, unref as i, isRef as M, withCtx as s, Fragment as H, renderList as N } from "vue";
1
+ import { defineComponent as M, mergeModels as A, ref as f, computed as S, useModel as D, inject as H, createElementBlock as _, openBlock as a, 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
2
  import { FormKit as k } from "@formkit/vue";
3
- import { PhLightbulb as O, PhExclamationMark as q } from "@phosphor-icons/vue";
4
- import K from "../../../../stories/components/LinkCard.vue.js";
5
- import { empty as S, generateIsRequiredMsg as W } from "../../../../utils/twinbyUtils.js";
6
- import $ from "../../../components/StepActionsSection.vue.js";
7
- import { dpiStepperKey as j } from "../../../utils/injectionKeys.js";
8
- import d from "../ButtonV3.vue.js";
9
- import B from "../Card.vue.js";
10
- import { useProcessStepResources as U, ensureHasOneResource as Z } from "../ProcessSteps/utils.js";
11
- import T from "../TextArea/TextAreaDefinition.js";
12
- const G = { class: "dpiV3_page V3-typography" }, J = { class: "funny-section" }, Q = { class: "funny-section" }, X = {
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 = {
13
13
  id: "partners-section",
14
14
  class: "funny-section"
15
- }, Y = { class: "partner-cards-container" }, ee = { class: "action-container" }, te = { class: "step-actions__prev-and-next" }, ne = { class: "actions" }, ie = 1e3, he = /* @__PURE__ */ I({
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({
16
16
  __name: "BasicInformationStep",
17
- props: {
17
+ props: /* @__PURE__ */ A({
18
+ edit: { type: Boolean }
19
+ }, {
18
20
  modelValue: {},
19
21
  modelModifiers: {}
20
- },
22
+ }),
21
23
  emits: ["update:modelValue"],
22
- setup(L) {
23
- const c = f(""), m = f([]);
24
+ setup(C) {
25
+ const P = C, m = f(""), p = f([]);
24
26
  f([]);
25
- const P = f(!1), R = w(() => {
27
+ const R = f(!1), E = S(() => {
26
28
  var o;
27
- return ((o = c.value) == null ? void 0 : o.length) || 0;
29
+ return ((o = m.value) == null ? void 0 : o.length) || 0;
28
30
  });
29
- A(L, "modelValue");
30
- const E = D(j), C = w(() => {
31
- const o = !S(c.value), e = Array.isArray(m.value) && m.value.length > 0;
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;
32
34
  return o || e;
33
35
  });
34
- function F(o) {
36
+ function I(o) {
35
37
  var n, l;
36
38
  const e = o.at("$parent");
37
- return !e || e.type !== "group" ? !0 : Array.isArray((n = e.value) == null ? void 0 : n.links) && ((l = e.value) == null ? void 0 : l.links).length > 0 ? !S(o.value) : !0;
39
+ return !e || e.type !== "group" ? !0 : Array.isArray((n = e.value) == null ? void 0 : n.links) && ((l = e.value) == null ? void 0 : l.links).length > 0 ? !B(o.value) : !0;
38
40
  }
39
- const { globalResourceCount: b } = U("4. Datenvisualisierung", !1);
40
- return (o, e) => (a(), _("div", G, [
41
+ const { globalResourceCount: b } = T("4. Datenvisualisierung", !1);
42
+ return (o, e) => (a(), _("div", Q, [
41
43
  e[9] || (e[9] = t("section", { class: "funny-section" }, [
42
44
  t("div", { class: "funny-flex" }, [
43
45
  t("h4", null, "Beschreiben Sie den Prozessschritt zur Datenvisualisierung"),
@@ -48,86 +50,87 @@ const G = { class: "dpiV3_page V3-typography" }, J = { class: "funny-section" },
48
50
  ])
49
51
  ])
50
52
  ], -1)),
51
- r(i(k), {
53
+ P.edit ? d("", !0) : (a(), u(i(k), {
54
+ key: 0,
52
55
  modelValue: i(b),
53
- "onUpdate:modelValue": e[0] || (e[0] = (n) => M(b) ? b.value = n : null),
56
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => N(b) ? b.value = n : null),
54
57
  type: "hidden",
55
58
  name: "__resourceCountGlobal",
56
59
  hidden: "",
57
60
  "aria-hidden": "",
58
- "validation-rules": { ensureHasOneResource: i(Z) },
61
+ "validation-rules": { ensureHasOneResource: i(G) },
59
62
  validation: "+ensureHasOneResource",
60
- "validation-visibility": "live",
63
+ "validation-visibility": "submit",
61
64
  "validation-messages": { ensureHasOneResource: "Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden." }
62
- }, null, 8, ["modelValue", "validation-rules"]),
63
- t("section", J, [
64
- r(i(k), {
65
+ }, null, 8, ["modelValue", "validation-rules"])),
66
+ t("section", X, [
67
+ s(i(k), {
65
68
  id: "Beschreibung",
66
- modelValue: c.value,
67
- "onUpdate:modelValue": e[1] || (e[1] = (n) => c.value = n),
69
+ modelValue: m.value,
70
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => m.value = n),
68
71
  class: "budgetArea",
69
72
  label: "Beschreibung",
70
- type: i(T),
73
+ type: i(J),
71
74
  name: "description",
72
75
  "text-label": "Beschreibung",
73
76
  placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
74
77
  validation: "+requireIfLink|length:0,1000",
75
- "validation-visibility": "live",
78
+ "validation-visibility": "submit",
76
79
  hint: "true",
77
- help: `${R.value} von ${ie} Zeichen`,
80
+ help: `${E.value} von ${se} Zeichen`,
78
81
  "count-hint": !0,
79
82
  "validation-rules": {
80
- requireIfLink: F
83
+ requireIfLink: I
81
84
  },
82
85
  "validation-messages": {
83
- requireIfLink: i(W)("Beschreibung")
86
+ requireIfLink: i(j)("Beschreibung")
84
87
  }
85
88
  }, null, 8, ["modelValue", "type", "help", "validation-rules", "validation-messages"])
86
89
  ]),
87
- t("section", Q, [
88
- r(B, { variant: "default" }, {
89
- icon: s(() => [
90
- r(i(O), {
90
+ t("section", Y, [
91
+ s(L, { variant: "default" }, {
92
+ icon: r(() => [
93
+ s(i(K), {
91
94
  size: 32,
92
95
  color: "#009FE3"
93
96
  })
94
97
  ]),
95
- title: s(() => e[3] || (e[3] = [
98
+ title: r(() => e[3] || (e[3] = [
96
99
  z(" Beispiel ", -1)
97
100
  ])),
98
- default: s(() => [
101
+ default: r(() => [
99
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))
100
103
  ]),
101
104
  _: 1,
102
105
  __: [4]
103
106
  })
104
107
  ]),
105
- t("section", X, [
108
+ t("section", ee, [
106
109
  e[5] || (e[5] = t("h5", null, " Weiterführende Links (optional) ", -1)),
107
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)),
108
- t("div", Y, [
109
- r(i(k), {
110
- modelValue: m.value,
111
- "onUpdate:modelValue": e[2] || (e[2] = (n) => m.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),
112
115
  type: "list",
113
116
  name: "links",
114
117
  dynamic: ""
115
118
  }, {
116
- default: s(({ items: n, node: l, value: p }) => [
117
- (a(!0), _(H, null, N(n, (v, h) => (a(), u(i(k), {
119
+ default: r(({ items: n, node: l, value: h }) => [
120
+ (a(!0), _(O, null, q(n, (v, g) => (a(), u(i(k), {
118
121
  key: v,
119
122
  type: "group",
120
- index: h
123
+ index: g
121
124
  }, {
122
- default: s(() => [
123
- r(K, null, {
124
- action: s(() => [
125
- r(d, {
125
+ default: r(() => [
126
+ s($, null, {
127
+ action: r(() => [
128
+ s(c, {
126
129
  "button-text": "Löschen",
127
130
  size: "small",
128
131
  variant: "tertiary",
129
132
  "icon-start": "trash",
130
- onClick: () => l.input(p.filter((x, y) => y !== h))
133
+ onClick: () => l.input(h.filter((V, y) => y !== g))
131
134
  }, null, 8, ["onClick"])
132
135
  ]),
133
136
  _: 2
@@ -135,13 +138,13 @@ const G = { class: "dpiV3_page V3-typography" }, J = { class: "funny-section" },
135
138
  ]),
136
139
  _: 2
137
140
  }, 1032, ["index"]))), 128)),
138
- t("div", ee, [
139
- r(d, {
141
+ t("div", ne, [
142
+ s(c, {
140
143
  "button-text": "Link hinzufügen",
141
144
  size: "medium",
142
145
  variant: "tertiary",
143
146
  "icon-start": "plus",
144
- onClick: (v) => l.input(p.concat({}))
147
+ onClick: (v) => l.input(h.concat({}))
145
148
  }, null, 8, ["onClick"])
146
149
  ])
147
150
  ]),
@@ -149,86 +152,86 @@ const G = { class: "dpiV3_page V3-typography" }, J = { class: "funny-section" },
149
152
  }, 8, ["modelValue"])
150
153
  ])
151
154
  ]),
152
- r($, {
155
+ s(U, {
153
156
  compact: "",
154
157
  "next-text": "Weiter zu Software",
155
158
  class: "actions-container",
156
159
  "show-detailed-error-summary": ""
157
160
  }, {
158
- "prev-and-next": s(({
161
+ "prev-and-next": r(({
159
162
  hidePrevious: n,
160
163
  hideNext: l,
161
- previousText: p,
164
+ previousText: h,
162
165
  nextText: v,
163
- handleNext: h,
164
- handlePrevious: x,
166
+ handleSubmit: g,
167
+ handlePrevious: V,
165
168
  validate: y
166
169
  }) => [
167
- t("div", te, [
168
- t("div", ne, [
169
- n ? g("", !0) : (a(), u(d, {
170
+ t("div", ie, [
171
+ t("div", re, [
172
+ n ? d("", !0) : (a(), u(c, {
170
173
  key: 0,
171
174
  variant: "secondary",
172
175
  size: "large",
173
- "button-text": p,
176
+ "button-text": h,
174
177
  "icon-start": "CaretLeft",
175
178
  class: "previus-button",
176
- onClick: x
179
+ onClick: V
177
180
  }, null, 8, ["button-text", "onClick"])),
178
- n ? g("", !0) : (a(), u(d, {
181
+ n ? d("", !0) : (a(), u(c, {
179
182
  key: 1,
180
- disabled: C.value,
183
+ disabled: x.value,
181
184
  variant: "secondary",
182
185
  class: "skip-button",
183
186
  size: "large",
184
187
  "button-text": "Weiter ohne Datenvisualisierung",
185
188
  "icon-end": "CaretRight",
186
189
  onClick: () => {
187
- C.value || y(() => {
188
- var V;
189
- return (V = i(E)) == null ? void 0 : V.goToStep("Vorschau");
190
+ x.value || y(() => {
191
+ var w;
192
+ return (w = i(F)) == null ? void 0 : w.goToStep("Vorschau");
190
193
  });
191
194
  }
192
195
  }, null, 8, ["disabled", "onClick"]))
193
196
  ]),
194
- l ? g("", !0) : (a(), u(d, {
197
+ l ? d("", !0) : (a(), u(c, {
195
198
  key: 0,
196
199
  variant: "primary",
197
200
  size: "large",
198
201
  "button-text": v,
199
202
  "icon-end": "CaretRight",
200
203
  class: "next-button",
201
- onClick: h
204
+ onClick: g
202
205
  }, null, 8, ["button-text", "onClick"]))
203
206
  ])
204
207
  ]),
205
208
  _: 1
206
209
  }),
207
- P.value ? (a(), u(B, {
208
- key: 0,
210
+ R.value ? (a(), u(L, {
211
+ key: 1,
209
212
  variant: "error",
210
213
  class: "error"
211
214
  }, {
212
- icon: s(() => [
213
- r(i(q), {
215
+ icon: r(() => [
216
+ s(i(W), {
214
217
  size: 32,
215
218
  color: "currentColor"
216
219
  })
217
220
  ]),
218
- title: s(() => e[7] || (e[7] = [
221
+ title: r(() => e[7] || (e[7] = [
219
222
  t("span", { class: "error-title" }, "Fehler", -1)
220
223
  ])),
221
- default: s(() => [
224
+ default: r(() => [
222
225
  e[8] || (e[8] = t("ul", { class: "validation-errors" }, [
223
226
  t("li", null, " Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden. ")
224
227
  ], -1))
225
228
  ]),
226
229
  _: 1,
227
230
  __: [8]
228
- })) : g("", !0)
231
+ })) : d("", !0)
229
232
  ]));
230
233
  }
231
234
  });
232
235
  export {
233
- he as default
236
+ fe as default
234
237
  };