@piveau/dpi 0.2.0-alpha.5 → 0.2.0-alpha.6

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 (17) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +1 -1
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +31 -0
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue2.js +4 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +62 -55
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +76 -69
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +83 -94
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +27 -42
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue.js +1 -1
  14. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +52 -45
  16. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +250 -224
  17. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
- import { defineComponent as P, ref as m, computed as c, watch as $, toRef as M, createBlock as p, openBlock as r, withCtx as u, createElementVNode as v, createVNode as s, createElementBlock as S, unref as w, isRef as W, Fragment as _, renderList as z, createTextVNode as D, toDisplayString as K, createCommentVNode as L, nextTick as j } from "vue";
2
- import { FormKit as I } from "@formkit/vue";
1
+ import { defineComponent as $, ref as v, computed as c, watch as M, toRef as W, createBlock as m, openBlock as o, withCtx as u, createCommentVNode as x, createVNode as s, createElementBlock as S, createElementVNode as y, unref as f, isRef as K, Fragment as D, renderList as B, createTextVNode as I, toDisplayString as L, nextTick as j } from "vue";
2
+ import { FormKit as R } from "@formkit/vue";
3
+ import "@phosphor-icons/vue";
3
4
  import { defineHubSearch as q } from "@piveau/sdk-vue";
4
5
  import J from "zod";
5
6
  import Q from "../../../components/StepActionsSection.vue.js";
@@ -8,134 +9,118 @@ import Y from "../Card.vue.js";
8
9
  import Z from "../Chip.vue.js";
9
10
  import ee from "../DpiModalBase.vue.js";
10
11
  import te from "../SummaryBox.vue.js";
11
- import ne from "./ProcessStepBase.vue.js";
12
+ import ne from "./AreYouSureToSkipCard.vue.js";
13
+ import re from "./ProcessStepBase.vue.js";
12
14
  /* empty css */
13
- import B from "./SoftwareForm.vue.js";
14
- import { useProcessStepResources as ie, ensureHasOneResource as oe } from "./utils.js";
15
- const re = {
16
- key: 0,
17
- class: "software-step__card-list--empty"
18
- }, ae = {
15
+ import z from "./SoftwareForm.vue.js";
16
+ import { useProcessStepResources as oe, ensureHasOneResource as ie } from "./utils.js";
17
+ const ae = {
19
18
  key: 1,
19
+ class: "software-step__card-list--empty"
20
+ }, le = {
21
+ key: 2,
20
22
  class: "software-step__card-list"
21
- }, le = { class: "functionalities" }, ue = { class: "" }, ge = /* @__PURE__ */ P({
23
+ }, ue = { class: "functionalities" }, se = { class: "" }, De = /* @__PURE__ */ $({
22
24
  __name: "SoftwareStep",
23
25
  props: {
24
26
  stepGroup: {},
25
27
  edit: { type: Boolean }
26
28
  },
27
- setup(E) {
28
- const y = E, d = m(!1), i = m([]), { useResources: R } = q({
29
+ setup(T) {
30
+ const b = T, d = v(!1), r = v([]), { useResources: C } = q({
29
31
  baseUrl: "https://twin.bydata.de/api/hub/search",
30
32
  index: "resource",
31
33
  indexDetails: "resources/software",
32
34
  schema: J.any()
33
35
  }, (e) => {
34
- var f, l;
35
- const t = String((e == null ? void 0 : e.id) || ""), o = String(((f = e == null ? void 0 : e.name) == null ? void 0 : f.de) || ((l = e == null ? void 0 : e.name) == null ? void 0 : l.en) || "");
36
+ var p, l;
37
+ const t = String((e == null ? void 0 : e.id) || ""), i = String(((p = e == null ? void 0 : e.name) == null ? void 0 : p.de) || ((l = e == null ? void 0 : e.name) == null ? void 0 : l.en) || "");
36
38
  return {
37
39
  ...e,
38
40
  id: t,
39
- name: o
41
+ name: i
40
42
  };
41
- }), b = R(c(() => i.value.map((e) => ({
43
+ }), _ = C(c(() => r.value.map((e) => ({
42
44
  resourceId: e.id
43
- })))), T = c(() => b.value.every((e) => e.isSuccess)), k = c(() => T.value ? b.value.map((e, t) => {
44
- const o = e.resultEnhanced;
45
+ })))), E = c(() => _.value.every((e) => e.isSuccess)), V = c(() => E.value ? _.value.map((e, t) => {
46
+ const i = e.resultEnhanced;
45
47
  return {
46
- id: o.id,
47
- name: (o == null ? void 0 : o.name) || "",
48
- functionalities: i.value[t].functionalities
48
+ id: i.id,
49
+ name: (i == null ? void 0 : i.name) || "",
50
+ functionalities: r.value[t].functionalities
49
51
  };
50
- }) : []), a = m(""), C = c(() => {
52
+ }) : []), a = v(""), F = c(() => {
51
53
  var e;
52
- return [...((e = i.value.find((t) => t.id === a.value)) == null ? void 0 : e.functionalities) || []];
53
- }), h = m(0);
54
- $(d, (e, t) => {
55
- !e && t && h.value++;
54
+ return [...((e = r.value.find((t) => t.id === a.value)) == null ? void 0 : e.functionalities) || []];
55
+ }), w = v(0);
56
+ M(d, (e, t) => {
57
+ !e && t && w.value++;
56
58
  });
57
59
  function H(e) {
58
- return i.value.find((t) => t.id === e);
59
- }
60
- function g(e) {
61
- return i.value.findIndex((t) => t.id === e);
60
+ return r.value.find((t) => t.id === e);
62
61
  }
63
- function F(e) {
64
- const t = g(e);
65
- t !== -1 && i.value.splice(t, 1);
62
+ function k(e) {
63
+ return r.value.findIndex((t) => t.id === e);
66
64
  }
67
- async function N(e) {
68
- H(e) && (a.value = e, h.value++, await j(), d.value = !0);
65
+ function N(e) {
66
+ const t = k(e);
67
+ t !== -1 && r.value.splice(t, 1);
69
68
  }
70
- function V(e) {
71
- i.value.push(e), d.value = !1, a.value = "";
69
+ async function U(e) {
70
+ H(e) && (a.value = e, w.value++, await j(), d.value = !0);
72
71
  }
73
- function U(e) {
74
- const t = g(e.id);
75
- t !== -1 && (i.value.splice(t, 1), i.value.splice(t, 0, e.software), a.value = "", d.value = !1);
72
+ function g(e) {
73
+ r.value.push(e), d.value = !1, a.value = "";
76
74
  }
77
- function A() {
78
- const e = [
79
- {
80
- id: "9121b609-c2e1-4aa8-a602-f26869717c85",
81
- functionalities: [
82
- "Interaktive Dashboards"
83
- ]
84
- },
85
- {
86
- id: "78302e16-32b1-44ed-896c-b92da0d2029f",
87
- functionalities: [
88
- "Entscheidungsunterstuetzungswerkzeuge",
89
- "Benutzerdefinierte Ebenen",
90
- "Echtzeit-Integration von Sensordaten"
91
- ]
92
- }
93
- ];
94
- i.value = [...e];
75
+ function A(e) {
76
+ const t = k(e.id);
77
+ t !== -1 && (r.value.splice(t, 1), r.value.splice(t, 0, e.software), a.value = "", d.value = !1);
95
78
  }
96
- const G = c(() => i.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), O = c(() => i.value.length > 0 ? "primary" : "secondary"), { model: x } = ie(y.stepGroup || "", M(y.edit));
97
- return (e, t) => (r(), p(ne, {
79
+ const G = c(() => r.value.length > 0 ? "Weiter" : "Weiter ohne Software"), O = c(() => r.value.length > 0 ? "primary" : "secondary"), { count: h, realCount: P } = oe(b.stepGroup || "", W(b.edit));
80
+ return (e, t) => (o(), m(re, {
98
81
  title: "Geben Sie Informationen zur verwendeten Software an",
99
82
  subtitle: "Die Software wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Software Sie verwendet haben. Sobald Sie eine Software zugeordnet haben, geben Sie bitte an, welche Funktionalitäten der Software Sie für diesen Schritt benötigt haben."
100
83
  }, {
101
- default: u(({ confirm: o }) => [
102
- v("button", { onClick: A }, " Software hinzufügen "),
103
- s(w(I), {
104
- modelValue: w(x),
105
- "onUpdate:modelValue": t[0] || (t[0] = (n) => W(x) ? x.value = n : null),
106
- type: "group",
84
+ default: u(({ confirm: i }) => [
85
+ x("", !0),
86
+ s(f(R), {
87
+ modelValue: f(h),
88
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => K(h) ? h.value = n : null),
89
+ type: "hidden",
90
+ name: "__resourceCount",
91
+ hidden: "",
107
92
  "aria-hidden": "",
108
- "validation-rules": { ensureHasOneResource: w(oe) },
93
+ "validation-rules": { ensureHasOneResource: f(ie) },
109
94
  validation: "+ensureHasOneResource",
110
95
  "validation-visibility": "live",
111
96
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
112
97
  }, null, 8, ["modelValue", "validation-rules"]),
113
- s(w(I), {
114
- modelValue: i.value,
115
- "onUpdate:modelValue": t[1] || (t[1] = (n) => i.value = n),
98
+ s(f(R), {
99
+ modelValue: r.value,
100
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
116
101
  name: "selected",
117
102
  type: "list",
118
103
  hidden: "",
119
104
  "aria-hidden": ""
120
105
  }, null, 8, ["modelValue"]),
121
- k.value.length ? (r(), S("section", ae, [
122
- (r(!0), S(_, null, z(k.value, (n, f) => (r(), p(X, {
123
- key: f,
106
+ V.value.length ? (o(), S("section", le, [
107
+ (o(!0), S(D, null, B(V.value, (n, p) => (o(), m(X, {
108
+ key: p,
124
109
  class: "software-card",
125
- onEdit: (l) => N(n.id),
126
- onDelete: (l) => o({ id: n.id, resourceType: "Software", resource: n.name, callback: F })
110
+ onEdit: (l) => U(n.id),
111
+ onDelete: (l) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: N })
127
112
  }, {
128
113
  "sub-title": u(() => t[5] || (t[5] = [
129
- D(" Name ", -1)
114
+ I(" Name ", -1)
130
115
  ])),
131
116
  title: u(() => [
132
- D(K(n.name), 1)
117
+ I(L(n.name), 1)
133
118
  ]),
134
119
  default: u(() => [
135
120
  s(te, { title: "Genutzte Funktionalitäten" }, {
136
121
  default: u(() => [
137
- v("div", le, [
138
- (r(!0), S(_, null, z(n.functionalities, (l) => (r(), p(Z, {
122
+ y("div", ue, [
123
+ (o(!0), S(D, null, B(n.functionalities, (l) => (o(), m(Z, {
139
124
  key: l,
140
125
  text: l,
141
126
  data: { "@value": "", URI: "" },
@@ -148,42 +133,46 @@ const re = {
148
133
  ]),
149
134
  _: 2
150
135
  }, 1032, ["onEdit", "onDelete"]))), 128))
151
- ])) : (r(), S("section", re, [
136
+ ])) : (o(), S("section", ae, [
152
137
  s(Y, {
153
138
  small: "",
154
139
  class: "empty-card"
155
140
  }, {
156
141
  default: u(() => t[4] || (t[4] = [
157
- v("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
142
+ y("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
158
143
  ])),
159
144
  _: 1,
160
145
  __: [4]
161
146
  })
162
147
  ])),
163
- s(B, {
164
- exclude: i.value.map((n) => n.id),
165
- onSubmit: V
148
+ s(z, {
149
+ exclude: r.value.map((n) => n.id),
150
+ onSubmit: g
166
151
  }, null, 8, ["exclude"]),
167
- v("section", ue, [
152
+ y("section", se, [
168
153
  s(Q, {
169
154
  "next-text": G.value,
170
155
  "next-variant": O.value
171
- }, null, 8, ["next-text", "next-variant"])
156
+ }, null, 8, ["next-text", "next-variant"]),
157
+ f(P) === 0 ? (o(), m(ne, {
158
+ key: 0,
159
+ "resource-label": "Software"
160
+ })) : x("", !0)
172
161
  ]),
173
162
  s(ee, {
174
163
  modelValue: d.value,
175
164
  "onUpdate:modelValue": t[3] || (t[3] = (n) => d.value = n)
176
165
  }, {
177
166
  default: u(() => [
178
- a.value ? (r(), p(B, {
179
- key: h.value,
167
+ a.value ? (o(), m(z, {
168
+ key: w.value,
180
169
  modelValue: a.value,
181
170
  "onUpdate:modelValue": t[2] || (t[2] = (n) => a.value = n),
182
- functionalities: C.value,
183
- exclude: i.value.map((n) => n.id),
184
- onSubmit: V,
185
- onPatch: U
186
- }, null, 8, ["modelValue", "functionalities", "exclude"])) : L("", !0)
171
+ functionalities: F.value,
172
+ exclude: r.value.map((n) => n.id),
173
+ onSubmit: g,
174
+ onPatch: A
175
+ }, null, 8, ["modelValue", "functionalities", "exclude"])) : x("", !0)
187
176
  ]),
188
177
  _: 1
189
178
  }, 8, ["modelValue"])
@@ -193,5 +182,5 @@ const re = {
193
182
  }
194
183
  });
195
184
  export {
196
- ge as default
185
+ De as default
197
186
  };
@@ -1,49 +1,34 @@
1
- import { required as m } from "@formkit/rules";
2
- import { useFormKitNodeById as l } from "@formkit/vue";
3
- import { computed as a, toValue as p } from "vue";
4
- function b(e) {
1
+ import { useFormKitNodeById as u } from "@formkit/vue";
2
+ import { computed as o, toValue as m } from "vue";
3
+ const y = 999;
4
+ function h(e) {
5
5
  if (e != null && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && Object.keys(e).length === 0) && !(typeof e == "string" && e.trim() === ""))
6
6
  return e;
7
7
  }
8
- function v(e, c) {
9
- const n = l(`${e}/Software`), u = l(`${e}/Datensätze`), f = l(`${e}/Hardware`), i = a(() => {
10
- var t, r, o;
11
- return ((o = (r = (t = n.value) == null ? void 0 : t._value) == null ? void 0 : r.selected) == null ? void 0 : o.length) ?? 0;
12
- }), d = a(() => {
13
- var t, r, o;
14
- return ((o = (r = (t = u.value) == null ? void 0 : t._value) == null ? void 0 : r.selected) == null ? void 0 : o.length) ?? 0;
15
- }), h = a(() => {
16
- var t, r, o;
17
- return ((o = (r = (t = f.value) == null ? void 0 : t._value) == null ? void 0 : r.selected) == null ? void 0 : o.length) ?? 0;
18
- });
19
- return {
20
- model: a({
21
- get() {
22
- const t = p(c);
23
- return {
24
- Software: t ? i.value : 999,
25
- Datensätze: t ? d.value : 999,
26
- Hardware: t ? h.value : 999
27
- };
28
- },
29
- set() {
30
- }
31
- })
32
- };
33
- }
34
- function O(e) {
35
- const c = ["Software", "Datensätze", "Hardware"], n = e.at("$parent"), u = n == null ? void 0 : n.name, [f, i] = (u == null ? void 0 : u.split("/")) || [];
36
- if (c.filter((s) => s !== i).every((s) => {
8
+ function w(e, i) {
9
+ const l = u(`${e}/Software`), d = u(`${e}/Datensätze`), f = u(`${e}/Hardware`), n = (t) => Array.isArray(t) ? t.length : 0, s = o(() => {
10
+ var t, r;
11
+ return n((r = (t = l.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
12
+ }), c = o(() => {
37
13
  var t, r;
38
- return (t = e == null ? void 0 : e._value) != null && t[s] ? Number((r = e == null ? void 0 : e._value) == null ? void 0 : r[s]) === 0 : !0;
39
- })) {
40
- const s = e.at("$parent.selected");
41
- return s ? m(s) : !0;
42
- }
43
- return !0;
14
+ return n((r = (t = d.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
15
+ }), a = o(() => {
16
+ var t, r;
17
+ return n((r = (t = f.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
18
+ }), v = o({
19
+ get() {
20
+ return !m(i) ? String(y) : String(s.value + c.value + a.value);
21
+ },
22
+ set() {
23
+ }
24
+ }), S = o(() => s.value + c.value + a.value);
25
+ return { count: v, softwareSelected: s, datasetsSelected: c, hardwareSelected: a, realCount: S };
26
+ }
27
+ function A(e) {
28
+ return Number((e == null ? void 0 : e._value) ?? 0) > 0;
44
29
  }
45
30
  export {
46
- O as ensureHasOneResource,
47
- b as looseRenderable,
48
- v as useProcessStepResources
31
+ A as ensureHasOneResource,
32
+ h as looseRenderable,
33
+ w as useProcessStepResources
49
34
  };
@@ -42,7 +42,7 @@ const v = { class: "project-phasen-overview" }, m = { class: "project-phasen-ove
42
42
  ])
43
43
  ]));
44
44
  }
45
- }, w = /* @__PURE__ */ h(j, [["__scopeId", "data-v-3bfd4517"]]);
45
+ }, w = /* @__PURE__ */ h(j, [["__scopeId", "data-v-71eb4095"]]);
46
46
  export {
47
47
  w as default
48
48
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ProgressSteps.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-03c01e93"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-599e3d1c"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8b3e09cd"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-74ea6547"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,11 +1,12 @@
1
- import { defineComponent as B, inject as P, ref as h, watch as z, toRef as E, computed as F, createElementBlock as u, openBlock as i, createElementVNode as c, createBlock as _, createCommentVNode as I, renderSlot as g, createVNode as d, normalizeStyle as M, withDirectives as p, vShow as y, withCtx as x, Fragment as A, renderList as D, toDisplayString as L, createTextVNode as R, nextTick as $ } from "vue";
2
- import { getNode as K, isNode as W } from "@formkit/core";
3
- import { getValidationMessages as j } from "@formkit/validation";
4
- import { useFormValues as J } from "../composables/useDpiFormValues.js";
5
- import f from "../HappyFlowComponents/ui/ButtonV3.vue.js";
6
- import O from "../HappyFlowComponents/ui/Card.vue.js";
7
- import { dpiStepperKey as Z } from "../utils/injectionKeys.js";
8
- const q = { class: "step-actions-container" }, G = { class: "step-actions" }, H = { class: "step-actions__prev-and-next" }, Q = { class: "validation-errors" }, ie = /* @__PURE__ */ B({
1
+ import { defineComponent as P, inject as B, ref as p, watch as z, toRef as E, computed as F, createElementBlock as c, openBlock as r, createElementVNode as d, createBlock as M, createCommentVNode as _, renderSlot as g, createVNode as i, normalizeStyle as I, withDirectives as x, vShow as y, withCtx as f, Fragment as A, renderList as D, toDisplayString as L, createTextVNode as R, unref as $, nextTick as K } from "vue";
2
+ import { getNode as W, isNode as j } from "@formkit/core";
3
+ import { getValidationMessages as J } from "@formkit/validation";
4
+ import { PhExclamationMark as O } from "@phosphor-icons/vue";
5
+ import { useFormValues as Z } from "../composables/useDpiFormValues.js";
6
+ import v from "../HappyFlowComponents/ui/ButtonV3.vue.js";
7
+ import q from "../HappyFlowComponents/ui/Card.vue.js";
8
+ import { dpiStepperKey as G } from "../utils/injectionKeys.js";
9
+ const H = { class: "step-actions-container" }, Q = { class: "step-actions" }, U = { class: "step-actions__prev-and-next" }, X = { class: "validation-errors" }, le = /* @__PURE__ */ P({
9
10
  __name: "StepActionsSection",
10
11
  props: {
11
12
  hideCancel: { type: Boolean, default: !1 },
@@ -17,93 +18,93 @@ const q = { class: "step-actions-container" }, G = { class: "step-actions" }, H
17
18
  nextText: { default: "Weiter" },
18
19
  nextVariant: { default: "primary" }
19
20
  },
20
- setup(U) {
21
- const { formValues: C } = J(), e = P(Z);
21
+ setup(Y) {
22
+ const { formValues: C } = Z(), e = B(G);
22
23
  e || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
23
24
  function S(t) {
24
25
  return t !== void 0;
25
26
  }
26
- const r = h(!1), a = h([]);
27
+ const s = p(!1), a = p([]);
27
28
  function V(t) {
28
29
  if (!t)
29
30
  return;
30
- const n = j(t);
31
+ const n = J(t);
31
32
  !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, k]) => k.map((w) => String(w.value))));
32
33
  }
33
34
  e && z(e.activeStep, () => {
34
- a.value.splice(0, a.value.length), r.value = !1;
35
+ a.value.splice(0, a.value.length), s.value = !1;
35
36
  });
36
37
  const N = E(e == null ? void 0 : e.steps);
37
- function v(t) {
38
+ function m(t) {
38
39
  var o;
39
40
  const n = (o = N.value) == null ? void 0 : o[t];
40
41
  return n ? n.valid : !1;
41
42
  }
42
43
  function T() {
43
- v((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
44
+ m((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
44
45
  }
45
- function m() {
46
+ function h() {
46
47
  window.alert("WIP");
47
48
  }
48
- function s() {
49
+ function l() {
49
50
  e == null || e.goToPreviousStep();
50
51
  }
51
- const b = F(() => e != null && e.activeStep.value ? K(e == null ? void 0 : e.activeStep.value) : null);
52
- async function l() {
52
+ const b = F(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
53
+ async function u() {
53
54
  if (!S(e))
54
55
  return;
55
- e.triggerValidationCurrentStep(), await $();
56
+ e.triggerValidationCurrentStep(), await K();
56
57
  const t = b.value;
57
- if (t ? !v((e == null ? void 0 : e.activeStep.value) || "") : !1) {
58
- if (!W(t)) {
58
+ if (t ? !m((e == null ? void 0 : e.activeStep.value) || "") : !1) {
59
+ if (!j(t)) {
59
60
  console.error("Current step node is not a FormKitNode", t);
60
61
  return;
61
62
  }
62
- V(t), r.value = !0;
63
+ V(t), s.value = !0;
63
64
  }
64
65
  e != null && e.isLast.value ? window.alert(`Form submitted: ${JSON.stringify(C.value, null, 2)}`) : T();
65
66
  }
66
- return (t, n) => (i(), u("div", q, [
67
- c("div", G, [
67
+ return (t, n) => (r(), c("div", H, [
68
+ d("div", Q, [
68
69
  g(t.$slots, "default", {
69
- handleCancel: m,
70
- handlePrevious: s,
71
- handleSubmit: l
70
+ handleCancel: h,
71
+ handlePrevious: l,
72
+ handleSubmit: u
72
73
  }, () => [
73
- d(f, {
74
- style: M({ opacity: t.hideCancel ? 0 : 1 }),
74
+ i(v, {
75
+ style: I({ opacity: t.hideCancel ? 0 : 1 }),
75
76
  variant: "tertiary",
76
77
  size: "large",
77
78
  type: "button",
78
79
  "button-text": t.cancelText,
79
- onClick: m
80
+ onClick: h
80
81
  }, null, 8, ["style", "button-text"]),
81
- c("div", H, [
82
+ d("div", U, [
82
83
  g(t.$slots, "prev-and-next", {
83
84
  hidePrevious: t.hidePrevious,
84
85
  hideNext: t.hideNext,
85
86
  previousText: t.previousText,
86
87
  nextText: t.nextText,
87
- handlePrevious: s,
88
- handleSubmit: l
88
+ handlePrevious: l,
89
+ handleSubmit: u
89
90
  }, () => [
90
- p(d(f, {
91
+ x(i(v, {
91
92
  variant: "secondary",
92
93
  size: "large",
93
94
  type: "button",
94
95
  "button-text": t.previousText,
95
96
  "icon-start": "CaretLeft",
96
- onClick: s
97
+ onClick: l
97
98
  }, null, 8, ["button-text"]), [
98
99
  [y, !t.hidePrevious]
99
100
  ]),
100
- p(d(f, {
101
+ x(i(v, {
101
102
  size: "large",
102
103
  variant: t.nextVariant,
103
104
  type: "button",
104
105
  "button-text": t.nextText,
105
106
  "icon-end": "CaretRight",
106
- onClick: l
107
+ onClick: u
107
108
  }, null, 8, ["variant", "button-text"]), [
108
109
  [y, !t.hideNext]
109
110
  ])
@@ -111,23 +112,29 @@ const q = { class: "step-actions-container" }, G = { class: "step-actions" }, H
111
112
  ])
112
113
  ], !0)
113
114
  ]),
114
- r.value && a.value.length ? (i(), _(O, {
115
+ s.value && a.value.length ? (r(), M(q, {
115
116
  key: 0,
116
117
  variant: "error"
117
118
  }, {
118
- title: x(() => n[0] || (n[0] = [
119
+ icon: f(() => [
120
+ i($(O), {
121
+ size: 32,
122
+ color: "currentColor"
123
+ })
124
+ ]),
125
+ title: f(() => n[0] || (n[0] = [
119
126
  R(" Bitte korrigieren Sie die folgenden Fehler ", -1)
120
127
  ])),
121
- default: x(() => [
122
- c("ul", Q, [
123
- (i(!0), u(A, null, D(a.value, (o) => (i(), u("li", { key: o }, L(o), 1))), 128))
128
+ default: f(() => [
129
+ d("ul", X, [
130
+ (r(!0), c(A, null, D(a.value, (o) => (r(), c("li", { key: o }, L(o), 1))), 128))
124
131
  ])
125
132
  ]),
126
133
  _: 1
127
- })) : I("", !0)
134
+ })) : _("", !0)
128
135
  ]));
129
136
  }
130
137
  });
131
138
  export {
132
- ie as default
139
+ le as default
133
140
  };