@piveau/dpi 0.2.0-alpha.34 → 0.2.0-alpha.35
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +1 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +37 -33
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +41 -37
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +69 -64
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +20 -14
- package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +44 -41
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +97 -95
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +26 -19
- 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
|
|
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
|
|
14
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
20
|
+
}, ne = ["id", "value"], ie = ["for"], le = { class: "action-container" }, ae = {
|
|
21
21
|
id: "partners-section",
|
|
22
22
|
class: "funny-section"
|
|
23
|
-
},
|
|
23
|
+
}, re = { class: "partner-cards-container" }, se = { class: "action-container" }, oe = {
|
|
24
24
|
id: "partners-section",
|
|
25
25
|
class: "funny-section"
|
|
26
|
-
},
|
|
26
|
+
}, ue = { class: "partner-cards-container" }, de = { class: "action-container" }, me = 500, we = /* @__PURE__ */ B({
|
|
27
27
|
__name: "OptionalDataStep",
|
|
28
|
-
setup(
|
|
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) => (
|
|
41
|
-
e[
|
|
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",
|
|
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",
|
|
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:
|
|
59
|
-
(
|
|
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: () =>
|
|
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) =>
|
|
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[
|
|
128
|
-
e[
|
|
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
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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(
|
|
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 ${
|
|
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[
|
|
174
|
+
title: a(() => e[14] || (e[14] = [
|
|
170
175
|
D(" Information ", -1)
|
|
171
176
|
])),
|
|
172
177
|
default: a(() => [
|
|
173
|
-
e[
|
|
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
|
-
__: [
|
|
183
|
+
__: [15]
|
|
179
184
|
})
|
|
180
185
|
]),
|
|
181
|
-
t("section",
|
|
182
|
-
e[
|
|
183
|
-
e[
|
|
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 ? (
|
|
191
|
-
(
|
|
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] = (
|
|
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,
|
|
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,
|
|
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",
|
|
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",
|
|
248
|
-
e[
|
|
249
|
-
e[
|
|
250
|
-
t("div",
|
|
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:
|
|
259
|
-
(
|
|
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: () =>
|
|
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",
|
|
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) =>
|
|
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[
|
|
296
|
-
e[
|
|
297
|
-
t("div",
|
|
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:
|
|
306
|
-
(
|
|
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: () =>
|
|
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",
|
|
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) =>
|
|
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
|
-
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4cf8fd8c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./TheCancelConfirmationDialog.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const i = /* @__PURE__ */
|
|
3
|
+
import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = /* @__PURE__ */ a(o, [["__scopeId", "data-v-374d8fa1"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js
CHANGED
|
@@ -1,41 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, useModel as p, computed as c, createBlock as v, openBlock as g, withCtx as o, createElementVNode as a, createVNode as l } from "vue";
|
|
2
2
|
import { useRouter as V } from "vue-router";
|
|
3
|
-
import { useProjectActions as
|
|
3
|
+
import { useProjectActions as b } from "../composables/useProjectActions.js";
|
|
4
4
|
import i from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const y = /* @__PURE__ */
|
|
5
|
+
import k from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
|
|
6
|
+
const y = /* @__PURE__ */ f({
|
|
7
7
|
__name: "TheCancelConfirmationDialog",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { type: Boolean },
|
|
10
10
|
modelModifiers: {}
|
|
11
11
|
},
|
|
12
|
-
emits:
|
|
13
|
-
setup(
|
|
14
|
-
const s = V(), t = p(
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(u) {
|
|
14
|
+
const s = V(), t = p(u, "modelValue"), { submitDraft: n } = b({
|
|
15
|
+
onSuccess: () => {
|
|
16
|
+
s.push({ name: "DPI-Home-HappyFlow" });
|
|
17
|
+
}
|
|
18
|
+
});
|
|
15
19
|
async function m() {
|
|
16
|
-
await
|
|
20
|
+
await n.execute(320);
|
|
17
21
|
}
|
|
18
|
-
|
|
22
|
+
const d = c(() => n.isLoading.value);
|
|
23
|
+
return (w, e) => (g(), v(k, {
|
|
19
24
|
modelValue: t.value,
|
|
20
25
|
"onUpdate:modelValue": e[1] || (e[1] = (r) => t.value = r)
|
|
21
26
|
}, {
|
|
22
27
|
header: o(() => e[2] || (e[2] = [
|
|
23
|
-
|
|
28
|
+
a("h4", { class: "cancel-header" }, " Projektanlage später fortführen ", -1)
|
|
24
29
|
])),
|
|
25
30
|
footer: o(() => [
|
|
26
|
-
|
|
31
|
+
l(i, {
|
|
27
32
|
"button-text": "Bearbeitung verwerfen",
|
|
28
33
|
variant: "secondary",
|
|
29
34
|
onClick: e[0] || (e[0] = (r) => t.value = !1)
|
|
30
35
|
}),
|
|
31
|
-
|
|
36
|
+
l(i, {
|
|
32
37
|
"button-text": "Projekt als Entwurf speichern",
|
|
33
38
|
variant: "primary",
|
|
39
|
+
loading: d.value,
|
|
34
40
|
onClick: m
|
|
35
|
-
})
|
|
41
|
+
}, null, 8, ["loading"])
|
|
36
42
|
]),
|
|
37
43
|
default: o(() => [
|
|
38
|
-
e[3] || (e[3] =
|
|
44
|
+
e[3] || (e[3] = a("div", null, " Sie können die Projektanlage später fortführen und Ihren bisherigen Fortschritt entweder verwerfen oder als Entwurf speichern. ", -1))
|
|
39
45
|
]),
|
|
40
46
|
_: 1,
|
|
41
47
|
__: [3]
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { defineComponent as E, computed as B, createBlock as g, openBlock as i, unref as o, isRef as C, withCtx as c, createElementBlock as k, createCommentVNode as l, createElementVNode as t, toDisplayString as N, createVNode as b, renderSlot as w, createTextVNode as R } from "vue";
|
|
2
|
+
import { whenever as S } from "@vueuse/core";
|
|
3
|
+
import { useRouter as F, useRoute as T } from "vue-router";
|
|
4
|
+
import { useRuntimeEnv as q } from "../../composables/useRuntimeEnv.js";
|
|
5
|
+
import { useErrorDialog as M } from "../composables/useErrorDialog.js";
|
|
6
|
+
import V from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
7
|
+
import z from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
|
|
8
|
+
const A = { class: "dpiV3_modalTitle" }, J = {
|
|
8
9
|
key: 0,
|
|
9
10
|
class: "dpiV3_modalErrorContent"
|
|
10
|
-
},
|
|
11
|
+
}, O = { class: "dpiV3_modalErrorMain" }, L = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "error-message"
|
|
13
|
-
},
|
|
14
|
+
}, U = { class: "development-notice" }, j = ["value"], G = { class: "dpiV3_modalActions" }, Z = /* @__PURE__ */ E({
|
|
14
15
|
__name: "TheErrorDialog",
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
function
|
|
16
|
+
setup(H) {
|
|
17
|
+
const D = F(), u = T(), { open: r, error: n, currentError: d, userMessage: p } = M(), f = q(), _ = !0;
|
|
18
|
+
function $() {
|
|
18
19
|
r.value = !1;
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
21
|
+
function x() {
|
|
22
|
+
D.push("/");
|
|
22
23
|
}
|
|
23
|
-
const
|
|
24
|
-
var s, e, a,
|
|
25
|
-
return `${(s =
|
|
24
|
+
const m = B(() => {
|
|
25
|
+
var s, e, a, v, y, h;
|
|
26
|
+
return `${(s = d == null ? void 0 : d.value) == null ? void 0 : s.message}
|
|
26
27
|
|
|
27
28
|
----
|
|
28
29
|
|
|
@@ -30,63 +31,65 @@ ${window.location}
|
|
|
30
31
|
|
|
31
32
|
----
|
|
32
33
|
|
|
33
|
-
id = ${(e =
|
|
34
|
+
id = ${(e = u.query) == null ? void 0 : e.id}; fromDraft = ${(a = u.query) == null ? void 0 : a.fromDraft}; edit = ${(v = u.query) == null ? void 0 : v.edit}
|
|
34
35
|
|
|
35
36
|
----
|
|
36
37
|
|
|
37
|
-
${(
|
|
38
|
+
${(y = n == null ? void 0 : n.value) == null ? void 0 : y.stack}
|
|
38
39
|
|
|
39
40
|
----
|
|
40
41
|
|
|
41
|
-
${JSON.stringify(
|
|
42
|
+
${JSON.stringify(f.api, null, 2)}
|
|
42
43
|
|
|
43
44
|
----
|
|
44
45
|
|
|
45
|
-
${JSON.stringify(
|
|
46
|
+
${JSON.stringify((h = f.authentication) == null ? void 0 : h.keycloak, null, 2)}
|
|
46
47
|
|
|
47
48
|
`;
|
|
48
49
|
});
|
|
49
|
-
return (
|
|
50
|
+
return S(m, () => {
|
|
51
|
+
console.error(m.value);
|
|
52
|
+
}), (s, e) => (i(), g(z, {
|
|
50
53
|
modelValue: o(r),
|
|
51
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
52
|
-
persistent: !o(
|
|
54
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => C(r) ? r.value = a : null),
|
|
55
|
+
persistent: !o(_),
|
|
53
56
|
"on-close": "() => {}"
|
|
54
57
|
}, {
|
|
55
|
-
header:
|
|
56
|
-
t("h2",
|
|
58
|
+
header: c(() => [
|
|
59
|
+
t("h2", A, [
|
|
57
60
|
t("strong", null, [
|
|
58
|
-
|
|
61
|
+
w(s.$slots, "title", {}, () => [
|
|
59
62
|
e[1] || (e[1] = R("Fehler beim Laden des Datensatzes", -1))
|
|
60
63
|
])
|
|
61
64
|
])
|
|
62
65
|
])
|
|
63
66
|
]),
|
|
64
|
-
footer:
|
|
65
|
-
t("div",
|
|
66
|
-
o(
|
|
67
|
+
footer: c(() => [
|
|
68
|
+
t("div", G, [
|
|
69
|
+
o(_) ? (i(), g(V, {
|
|
67
70
|
key: 0,
|
|
68
71
|
"button-text": "Trotzdem Fortfahren",
|
|
69
72
|
variant: "secondary",
|
|
70
|
-
onClick:
|
|
73
|
+
onClick: $
|
|
71
74
|
})) : l("", !0),
|
|
72
|
-
|
|
75
|
+
b(V, {
|
|
73
76
|
"button-text": "Schließen",
|
|
74
77
|
variant: "primary",
|
|
75
|
-
onClick:
|
|
78
|
+
onClick: x
|
|
76
79
|
})
|
|
77
80
|
])
|
|
78
81
|
]),
|
|
79
|
-
default:
|
|
80
|
-
o(n) ? (i(),
|
|
81
|
-
t("div",
|
|
82
|
-
o(
|
|
82
|
+
default: c(() => [
|
|
83
|
+
o(n) ? (i(), k("div", J, [
|
|
84
|
+
t("div", O, [
|
|
85
|
+
o(p) ? (i(), k("p", L, N(o(p)), 1)) : l("", !0),
|
|
83
86
|
e[2] || (e[2] = t("p", { class: "error-message" }, " Ein Fehler ist aufgetreten. Die folgenden Details können den Betreibenden bei der Fehleranalyse helfen. ", -1)),
|
|
84
|
-
t("div",
|
|
87
|
+
t("div", U, [
|
|
85
88
|
t("textarea", {
|
|
86
89
|
readonly: "",
|
|
87
90
|
class: "error-textarea",
|
|
88
|
-
value:
|
|
89
|
-
}, null, 8,
|
|
91
|
+
value: m.value
|
|
92
|
+
}, null, 8, j)
|
|
90
93
|
])
|
|
91
94
|
]),
|
|
92
95
|
l("", !0)
|
|
@@ -97,5 +100,5 @@ ${JSON.stringify(p.authentication.keycloak, null, 2)}
|
|
|
97
100
|
}
|
|
98
101
|
});
|
|
99
102
|
export {
|
|
100
|
-
|
|
103
|
+
Z as default
|
|
101
104
|
};
|