@piveau/dpi 0.2.0-alpha.29 → 0.2.0-alpha.30
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/DPIHome.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +19 -19
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue2.js +24 -22
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +35 -33
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +25 -21
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +13 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +16 -15
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +34 -32
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +56 -43
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +56 -54
- 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 +372 -325
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +71 -68
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +45 -36
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue2.js +33 -23
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +137 -133
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +62 -59
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +250 -241
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -36
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +61 -57
- package/package.json +1 -1
package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { ref as p, computed as R, watch as
|
|
2
|
-
import { setResourcePublicationStatus as j, setDatasetPublicationStatus as I, deleteResource as
|
|
3
|
-
import { useRouter as
|
|
4
|
-
import { useStore as
|
|
5
|
-
import { useRuntimeEnv as
|
|
6
|
-
import { useDpiUtils as
|
|
7
|
-
import
|
|
1
|
+
import { ref as p, computed as R, watch as L, createElementBlock as q, openBlock as d, Fragment as F, createElementVNode as s, createBlock as b, createCommentVNode as h, withKeys as m, normalizeClass as H, withModifiers as y, unref as n, toDisplayString as z, isRef as B } from "vue";
|
|
2
|
+
import { setResourcePublicationStatus as j, setDatasetPublicationStatus as I, deleteResource as O, deleteDataset as W } from "@piveau/sdk-core/hubRepo";
|
|
3
|
+
import { useRouter as Z, useRoute as G } from "vue-router";
|
|
4
|
+
import { useStore as J } from "vuex";
|
|
5
|
+
import { useRuntimeEnv as Q } from "../../../composables/useRuntimeEnv.js";
|
|
6
|
+
import { useDpiUtils as X } from "../../composables/useDpiUtils.js";
|
|
7
|
+
import Y from "./Dropdown.vue.js";
|
|
8
8
|
import ee from "./ModalSimpleV3.vue.js";
|
|
9
9
|
import k from "./StateTag.vue.js";
|
|
10
10
|
import te from "./Toast.vue.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import ae from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
-
const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" },
|
|
13
|
+
const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescContainer" }, se = { class: "dpiV3_dsDesc" }, oe = { class: "dpiV3_TableRowStatus" }, ie = { class: "dpiV3_TableRowUpdated" }, re = { class: "dpiV3_TableRowStatus" }, ue = { class: "dpiV3_TableRowButtonWrap" }, de = {
|
|
14
14
|
__name: "TableRowV3",
|
|
15
15
|
props: {
|
|
16
16
|
text: {
|
|
@@ -58,17 +58,17 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["complete", "start"],
|
|
60
60
|
setup(w, { emit: _ }) {
|
|
61
|
-
const t = w, U = _, C =
|
|
62
|
-
|
|
63
|
-
const E = G(), c =
|
|
64
|
-
let
|
|
61
|
+
const t = w, U = _, C = J();
|
|
62
|
+
Z();
|
|
63
|
+
const E = G(), c = Q().api.hubUrl;
|
|
64
|
+
let o = p(!1), i = p(!1), v = p(!1), r = p({}), u = p({});
|
|
65
65
|
const D = R(() => {
|
|
66
66
|
var a;
|
|
67
67
|
return !!((a = E.query) != null && a.fromDraft);
|
|
68
68
|
}), f = R(() => {
|
|
69
69
|
var a, e;
|
|
70
70
|
return (e = (a = C.getters) == null ? void 0 : a["auth/getUserData"]) == null ? void 0 : e.authToken;
|
|
71
|
-
}), { toEditMode: A } =
|
|
71
|
+
}), { toEditMode: A } = X();
|
|
72
72
|
function P() {
|
|
73
73
|
const a = t.draft || D.value, e = t.catalogue, l = t.id || t.dataset.id || t.catalogue.id;
|
|
74
74
|
A({
|
|
@@ -87,7 +87,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
87
87
|
i.value = !1;
|
|
88
88
|
}, 2e3);
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
L(i, (a) => {
|
|
91
91
|
a && setTimeout(() => {
|
|
92
92
|
v.value || (i.value = !1);
|
|
93
93
|
}, 2e3);
|
|
@@ -139,7 +139,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
139
139
|
break;
|
|
140
140
|
case "deleteDataset":
|
|
141
141
|
if (e("start"), t.type === "projects") {
|
|
142
|
-
await
|
|
142
|
+
await O({
|
|
143
143
|
baseUrl: c,
|
|
144
144
|
id: t.id,
|
|
145
145
|
type: "project",
|
|
@@ -148,7 +148,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
148
148
|
}), e("complete");
|
|
149
149
|
break;
|
|
150
150
|
}
|
|
151
|
-
await
|
|
151
|
+
await W({
|
|
152
152
|
baseUrl: c,
|
|
153
153
|
id: t.id,
|
|
154
154
|
catalogId: t.catalogue,
|
|
@@ -206,23 +206,23 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
206
206
|
header: "Datensatz veröffentlichen",
|
|
207
207
|
text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
|
|
208
208
|
action: "publishDataset"
|
|
209
|
-
},
|
|
209
|
+
}, o.value = !0;
|
|
210
210
|
break;
|
|
211
211
|
case "Löschen":
|
|
212
212
|
r.value = {
|
|
213
|
-
button: "
|
|
213
|
+
button: "Löschen",
|
|
214
214
|
header: "Datensatz endgültig löschen",
|
|
215
215
|
text: "Möchten Sie diesen Datensatz wirklich endgültig löschen? Diese Aktion kann nicht rückgängig gemacht werden. Alle damit verbundenen Daten werden entfernt.",
|
|
216
216
|
action: "deleteDataset"
|
|
217
|
-
},
|
|
217
|
+
}, o.value = !0;
|
|
218
218
|
break;
|
|
219
219
|
case "Veröffentlichung aufheben":
|
|
220
220
|
r.value = {
|
|
221
|
-
button: "
|
|
221
|
+
button: "Zurücksetzen",
|
|
222
222
|
header: "Veröffentlichung aufheben",
|
|
223
223
|
text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
|
|
224
224
|
action: "setToDraft"
|
|
225
|
-
},
|
|
225
|
+
}, o.value = !0;
|
|
226
226
|
break;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
@@ -236,9 +236,9 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
236
236
|
function x(a) {
|
|
237
237
|
a.target.className != "dpiV3_more-button dpiV3_activeState" && (g.value = !1);
|
|
238
238
|
}
|
|
239
|
-
return (a, e) => (d(), F
|
|
240
|
-
|
|
241
|
-
class:
|
|
239
|
+
return (a, e) => (d(), q(F, null, [
|
|
240
|
+
s("button", {
|
|
241
|
+
class: H(["dpiV3_tableRowWrapper", {
|
|
242
242
|
dpiV3_pressedTableRow: n(g),
|
|
243
243
|
tRowInDraft: t.fromDraft
|
|
244
244
|
}]),
|
|
@@ -251,17 +251,17 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
251
251
|
e[6] || (e[6] = m((l) => x(l), ["enter"]))
|
|
252
252
|
]
|
|
253
253
|
}, [
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
s("div", le, [
|
|
255
|
+
s("div", {
|
|
256
256
|
class: "dpiV3_tableRowContent",
|
|
257
257
|
onMousedown: e[0] || (e[0] = y((l) => T(l, !0), ["prevent"])),
|
|
258
258
|
onMouseup: e[1] || (e[1] = y((l) => T(l, !1), ["prevent"])),
|
|
259
259
|
onClick: e[2] || (e[2] = (l) => S("Ansehen"))
|
|
260
260
|
}, [
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
s("div", ne, [
|
|
262
|
+
s("span", se, z(t.text), 1)
|
|
263
263
|
]),
|
|
264
|
-
|
|
264
|
+
s("div", oe, [
|
|
265
265
|
t.draft ? (d(), b(k, {
|
|
266
266
|
key: 1,
|
|
267
267
|
label: "Entwurf",
|
|
@@ -271,9 +271,9 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
271
271
|
label: "Freigegeben",
|
|
272
272
|
state: "published"
|
|
273
273
|
})),
|
|
274
|
-
|
|
274
|
+
s("span", ie, " Bearbeitet am: " + z(t.date), 1)
|
|
275
275
|
]),
|
|
276
|
-
|
|
276
|
+
s("div", re, [
|
|
277
277
|
w.visibility ? (d(), b(k, {
|
|
278
278
|
key: 0,
|
|
279
279
|
label: w.visibility,
|
|
@@ -282,8 +282,8 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
282
282
|
}, null, 8, ["label", "state"])) : h("", !0)
|
|
283
283
|
])
|
|
284
284
|
], 32),
|
|
285
|
-
|
|
286
|
-
D.value ? h("", !0) : (d(), b(
|
|
285
|
+
s("div", ue, [
|
|
286
|
+
D.value ? h("", !0) : (d(), b(Y, {
|
|
287
287
|
key: 0,
|
|
288
288
|
type: "moreButton",
|
|
289
289
|
"not-draft": !D.value,
|
|
@@ -297,13 +297,13 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
297
297
|
])
|
|
298
298
|
])
|
|
299
299
|
], 34),
|
|
300
|
-
n(
|
|
300
|
+
n(o) ? (d(), b(ee, {
|
|
301
301
|
key: 0,
|
|
302
302
|
buttons: n(r).button,
|
|
303
303
|
"header-text": n(r).header,
|
|
304
304
|
text: n(r).text,
|
|
305
305
|
action: n(r).action,
|
|
306
|
-
onClose: e[7] || (e[7] = (l) => B(
|
|
306
|
+
onClose: e[7] || (e[7] = (l) => B(o) ? o.value = !1 : o = !1),
|
|
307
307
|
onActionHandling: e[8] || (e[8] = (l) => K(l, U))
|
|
308
308
|
}, null, 8, ["buttons", "header-text", "text", "action"])) : h("", !0),
|
|
309
309
|
n(i) ? (d(), b(te, {
|
|
@@ -318,7 +318,7 @@ const le = { class: "dpiV3_tableRowInner" }, ne = { class: "dpiV3_TableRowDescCo
|
|
|
318
318
|
}, null, 8, ["type", "text", "button", "action"])) : h("", !0)
|
|
319
319
|
], 64));
|
|
320
320
|
}
|
|
321
|
-
}, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-
|
|
321
|
+
}, Te = /* @__PURE__ */ ae(de, [["__scopeId", "data-v-5c454e49"]]);
|
|
322
322
|
export {
|
|
323
323
|
Te as default
|
|
324
324
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./StepActionsSection.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-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-99116134"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getNode as
|
|
3
|
-
import { getValidationMessages as
|
|
4
|
-
import { PhExclamationMark as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { dpiStepperKey as
|
|
8
|
-
import
|
|
9
|
-
import { useEditModeInfo as
|
|
10
|
-
const
|
|
1
|
+
import { defineComponent as $, inject as K, ref as v, watch as R, computed as w, createElementBlock as r, openBlock as o, normalizeClass as O, createElementVNode as p, createBlock as g, createCommentVNode as E, createVNode as s, renderSlot as N, unref as B, normalizeStyle as U, withDirectives as h, vShow as y, Fragment as P, withCtx as x, renderList as Z, toDisplayString as q, nextTick as G } from "vue";
|
|
2
|
+
import { getNode as H, isNode as J } from "@formkit/core";
|
|
3
|
+
import { getValidationMessages as Q } from "@formkit/validation";
|
|
4
|
+
import { PhExclamationMark as X } from "@phosphor-icons/vue";
|
|
5
|
+
import u from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
6
|
+
import Y from "../HappyFlowComponents/ui/Card.vue.js";
|
|
7
|
+
import { dpiStepperKey as _ } from "../utils/injectionKeys.js";
|
|
8
|
+
import ee from "./TheCancelConfirmationDialog.vue.js";
|
|
9
|
+
import { useEditModeInfo as te } from "../composables/useDpiEditMode.js";
|
|
10
|
+
const ne = { class: "step-actions" }, ae = { class: "step-actions__prev-and-next" }, oe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "validation-errors"
|
|
13
|
-
},
|
|
13
|
+
}, ge = /* @__PURE__ */ $({
|
|
14
14
|
__name: "StepActionsSection",
|
|
15
15
|
props: {
|
|
16
16
|
hideCancel: { type: Boolean, default: !1 },
|
|
@@ -23,54 +23,58 @@ const te = { class: "step-actions" }, ne = { class: "step-actions__prev-and-next
|
|
|
23
23
|
nextVariant: { default: "primary" },
|
|
24
24
|
classList: {},
|
|
25
25
|
loading: { type: Boolean, default: !1 },
|
|
26
|
+
compact: { type: Boolean, default: !1 },
|
|
26
27
|
showDetailedErrorSummary: { type: Boolean, default: !1 }
|
|
27
28
|
},
|
|
28
29
|
emits: ["submit", "closeWithSaving"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
30
|
+
setup(z, { emit: L }) {
|
|
31
|
+
const l = z, C = L, t = K(_);
|
|
31
32
|
t || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
|
|
32
33
|
function S(e) {
|
|
33
34
|
return e !== void 0;
|
|
34
35
|
}
|
|
35
|
-
const f =
|
|
36
|
-
t &&
|
|
37
|
-
i.value.splice(0, i.value.length),
|
|
36
|
+
const f = v(!1), d = v(!1), i = v([]);
|
|
37
|
+
t && R(t.activeStep, () => {
|
|
38
|
+
i.value.splice(0, i.value.length), d.value = !1;
|
|
38
39
|
});
|
|
39
40
|
function b() {
|
|
40
41
|
f.value = !0;
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function m() {
|
|
43
44
|
t == null || t.goToPreviousStep();
|
|
44
45
|
}
|
|
45
46
|
async function k() {
|
|
46
47
|
var T, V;
|
|
47
48
|
if (!S(t))
|
|
48
49
|
return !1;
|
|
49
|
-
t.triggerValidationCurrentStep(), await
|
|
50
|
+
t.triggerValidationCurrentStep(), await G();
|
|
50
51
|
const e = t.activeStep.value;
|
|
51
52
|
if (!e)
|
|
52
53
|
return !1;
|
|
53
|
-
const n =
|
|
54
|
-
if (!
|
|
54
|
+
const n = H(e);
|
|
55
|
+
if (!J(n))
|
|
55
56
|
return console.error("Current step node is not a FormKitNode", n), !1;
|
|
56
57
|
n.clearErrors(!0);
|
|
57
|
-
const a =
|
|
58
|
-
return a && a.size > 0 || !
|
|
58
|
+
const a = Q(n), j = !!((V = (T = t.steps) == null ? void 0 : T[e]) != null && V.valid);
|
|
59
|
+
return a && a.size > 0 || !j ? (i.value = [...a.entries()].flatMap(([le, F]) => F.map((I) => String(I.value))), d.value = !0, !1) : (i.value.splice(0, i.value.length), d.value = !1, !0);
|
|
59
60
|
}
|
|
60
|
-
async function
|
|
61
|
+
async function c() {
|
|
61
62
|
!S(t) || !await k() || (t != null && t.isLast.value ? C("submit") : t == null || t.goToNextStep());
|
|
62
63
|
}
|
|
63
|
-
const { isEditMode:
|
|
64
|
-
async function
|
|
64
|
+
const { isEditMode: D } = te();
|
|
65
|
+
async function M() {
|
|
65
66
|
!t || !await k() || t == null || t.goToStep(Object.keys(t.steps).pop() || "");
|
|
66
67
|
}
|
|
67
|
-
const
|
|
68
|
+
const A = w(() => t ? t == null ? void 0 : t.isLast.value : !0), W = w(() => [
|
|
69
|
+
{ "step-actions-container--compact": l.compact },
|
|
70
|
+
l.classList
|
|
71
|
+
]);
|
|
68
72
|
return (e, n) => (o(), r("div", {
|
|
69
|
-
class:
|
|
73
|
+
class: O([W.value, "step-actions-container"])
|
|
70
74
|
}, [
|
|
71
|
-
p("div",
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
p("div", ne, [
|
|
76
|
+
B(D) ? (o(), r(P, { key: 1 }, [
|
|
77
|
+
A.value ? h((o(), g(u, {
|
|
74
78
|
key: 1,
|
|
75
79
|
class: "edit-save-button",
|
|
76
80
|
size: "large",
|
|
@@ -78,61 +82,61 @@ const te = { class: "step-actions" }, ne = { class: "step-actions__prev-and-next
|
|
|
78
82
|
type: "button",
|
|
79
83
|
"button-text": e.nextText,
|
|
80
84
|
"icon-end": e.nextText === "Als Entwurf Speichern" ? null : "CaretRight",
|
|
81
|
-
loading:
|
|
82
|
-
onClick:
|
|
85
|
+
loading: l.loading,
|
|
86
|
+
onClick: c
|
|
83
87
|
}, null, 8, ["variant", "button-text", "icon-end", "loading"])), [
|
|
84
88
|
[y, !e.hideNext]
|
|
85
|
-
]) : (o(), g(
|
|
89
|
+
]) : (o(), g(u, {
|
|
86
90
|
key: 0,
|
|
87
91
|
class: "edit-save-button",
|
|
88
92
|
size: "large",
|
|
89
93
|
variant: "primary",
|
|
90
94
|
type: "button",
|
|
91
95
|
"button-text": "Speichern",
|
|
92
|
-
onClick:
|
|
96
|
+
onClick: M
|
|
93
97
|
}))
|
|
94
|
-
], 64)) :
|
|
98
|
+
], 64)) : N(e.$slots, "default", {
|
|
95
99
|
key: 0,
|
|
96
100
|
handleCancel: b,
|
|
97
|
-
handlePrevious:
|
|
98
|
-
handleSubmit:
|
|
101
|
+
handlePrevious: m,
|
|
102
|
+
handleSubmit: c
|
|
99
103
|
}, () => [
|
|
100
|
-
|
|
101
|
-
style:
|
|
104
|
+
s(u, {
|
|
105
|
+
style: U({ opacity: e.hideCancel ? 0 : 1 }),
|
|
102
106
|
variant: "tertiary",
|
|
103
107
|
size: "large",
|
|
104
108
|
type: "button",
|
|
105
109
|
"button-text": e.cancelText,
|
|
106
110
|
onClick: b
|
|
107
111
|
}, null, 8, ["style", "button-text"]),
|
|
108
|
-
p("div",
|
|
109
|
-
|
|
112
|
+
p("div", ae, [
|
|
113
|
+
N(e.$slots, "prev-and-next", {
|
|
110
114
|
hidePrevious: e.hidePrevious,
|
|
111
115
|
hideNext: e.hideNext,
|
|
112
116
|
previousText: e.previousText,
|
|
113
117
|
nextText: e.nextText,
|
|
114
|
-
handlePrevious:
|
|
115
|
-
handleSubmit:
|
|
116
|
-
loading:
|
|
118
|
+
handlePrevious: m,
|
|
119
|
+
handleSubmit: c,
|
|
120
|
+
loading: l.loading
|
|
117
121
|
}, () => [
|
|
118
|
-
h(
|
|
122
|
+
h(s(u, {
|
|
119
123
|
variant: "secondary",
|
|
120
124
|
size: "large",
|
|
121
125
|
type: "button",
|
|
122
126
|
"button-text": e.previousText,
|
|
123
127
|
"icon-start": "CaretLeft",
|
|
124
|
-
onClick:
|
|
128
|
+
onClick: m
|
|
125
129
|
}, null, 8, ["button-text"]), [
|
|
126
130
|
[y, !e.hidePrevious]
|
|
127
131
|
]),
|
|
128
|
-
h(
|
|
132
|
+
h(s(u, {
|
|
129
133
|
size: "large",
|
|
130
134
|
variant: e.nextVariant,
|
|
131
135
|
type: "button",
|
|
132
136
|
"button-text": e.nextText,
|
|
133
137
|
"icon-end": e.nextText === "Als Entwurf Speichern" || e.nextText === "Projektanlage starten" ? null : "CaretRight",
|
|
134
|
-
loading:
|
|
135
|
-
onClick:
|
|
138
|
+
loading: l.loading,
|
|
139
|
+
onClick: c
|
|
136
140
|
}, null, 8, ["variant", "button-text", "icon-end", "loading"]), [
|
|
137
141
|
[y, !e.hideNext]
|
|
138
142
|
])
|
|
@@ -140,12 +144,12 @@ const te = { class: "step-actions" }, ne = { class: "step-actions__prev-and-next
|
|
|
140
144
|
])
|
|
141
145
|
], !0)
|
|
142
146
|
]),
|
|
143
|
-
|
|
147
|
+
d.value && i.value.length ? (o(), g(Y, {
|
|
144
148
|
key: 0,
|
|
145
149
|
variant: "error"
|
|
146
150
|
}, {
|
|
147
151
|
icon: x(() => [
|
|
148
|
-
|
|
152
|
+
s(B(X), {
|
|
149
153
|
size: 32,
|
|
150
154
|
color: "currentColor"
|
|
151
155
|
})
|
|
@@ -154,13 +158,13 @@ const te = { class: "step-actions" }, ne = { class: "step-actions__prev-and-next
|
|
|
154
158
|
p("p", { style: { margin: "0" } }, " Fehler ", -1)
|
|
155
159
|
])),
|
|
156
160
|
default: x(() => [
|
|
157
|
-
e.showDetailedErrorSummary ? (o(), r("ul",
|
|
158
|
-
(o(!0), r(
|
|
159
|
-
])) :
|
|
161
|
+
e.showDetailedErrorSummary ? (o(), r("ul", oe, [
|
|
162
|
+
(o(!0), r(P, null, Z(i.value, (a) => (o(), r("li", { key: a }, q(a), 1))), 128))
|
|
163
|
+
])) : E("", !0)
|
|
160
164
|
]),
|
|
161
165
|
_: 1
|
|
162
|
-
})) :
|
|
163
|
-
|
|
166
|
+
})) : E("", !0),
|
|
167
|
+
s(ee, {
|
|
164
168
|
modelValue: f.value,
|
|
165
169
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => f.value = a),
|
|
166
170
|
onCloseWithSaving: n[1] || (n[1] = (a) => C("closeWithSaving"))
|
|
@@ -169,5 +173,5 @@ const te = { class: "step-actions" }, ne = { class: "step-actions__prev-and-next
|
|
|
169
173
|
}
|
|
170
174
|
});
|
|
171
175
|
export {
|
|
172
|
-
|
|
176
|
+
ge as default
|
|
173
177
|
};
|