@piveau/dpi 0.2.0-alpha.11 → 0.2.0-alpha.12

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 (34) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +7 -0
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +180 -0
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +7 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +215 -0
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +37 -29
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +27 -27
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +4 -4
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +8 -8
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +127 -118
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +64 -57
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +21 -23
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +12 -12
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +105 -96
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +89 -80
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +6 -5
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +4 -3
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +6 -5
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +6 -5
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +388 -375
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js +4 -3
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +35 -31
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +43 -35
  31. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  32. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +11 -11
  33. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +131 -124
  34. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { defineComponent as re, mergeModels as _, useModel as ue, unref as i, watch as R, ref as ae, computed as v, createElementBlock as f, openBlock as u, createElementVNode as o, createCommentVNode as y, createVNode as a, Fragment as x, mergeProps as g, isRef as w, withCtx as ce, renderList as de, withDirectives as fe, vModelCheckbox as me, createBlock as P } from "vue";
2
- import { toTypedSchema as T } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
- import { useForm as j, useFieldArray as pe } from "vee-validate";
1
+ import { defineComponent as se, mergeModels as _, useModel as re, unref as i, watch as R, ref as ue, computed as y, createElementBlock as c, openBlock as a, createElementVNode as o, createCommentVNode as g, createVNode as u, Fragment as z, mergeProps as w, isRef as F, withCtx as ae, renderList as ce, withDirectives as de, vModelCheckbox as fe, createBlock as me } from "vue";
2
+ import { toTypedSchema as P } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
+ import { useForm as T, useFieldArray as pe } from "vee-validate";
4
4
  import * as l from "zod";
5
5
  import he from "../Autocomplete/AutocompleteVocab.vue.js";
6
- import F from "../ButtonV3.vue.js";
6
+ import h from "../ButtonV3.vue.js";
7
7
  import Se from "../Chip.vue.js";
8
8
  import be from "../InputField.vue.js";
9
9
  import ve from "../ListBox/Listbox.vue.js";
@@ -11,7 +11,10 @@ import ye from "./RichOption.vue.js";
11
11
  const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "step-section" }, Fe = { class: "step-section-actions" }, ke = { class: "step-section" }, Ve = {
12
12
  key: 0,
13
13
  class: "functionalities-container"
14
- }, Ie = ["id", "value"], xe = { class: "step-section-actions" }, ze = { class: "step-section-actions" }, O = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Te = /* @__PURE__ */ re({
14
+ }, Ie = ["id", "value"], xe = { class: "step-section-actions" }, ze = { class: "step-section-actions" }, Ae = {
15
+ key: 0,
16
+ class: "button-row"
17
+ }, j = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", je = /* @__PURE__ */ se({
15
18
  __name: "SoftwareForm",
16
19
  props: /* @__PURE__ */ _({
17
20
  modelValue: {},
@@ -23,137 +26,137 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
23
26
  },
24
27
  modelModifiers: {}
25
28
  }),
26
- emits: /* @__PURE__ */ _(["submit", "patch"], ["update:modelValue"]),
27
- setup(z, { emit: Z }) {
28
- const m = z, A = Z, G = ue(z, "modelValue"), h = !!m.modelValue, K = i(m.modelValue) || "", q = l.object({
29
+ emits: /* @__PURE__ */ _(["submit", "patch", "close"], ["update:modelValue"]),
30
+ setup(A, { emit: O }) {
31
+ const m = A, k = O, Z = re(A, "modelValue"), S = !!m.modelValue, G = i(m.modelValue) || "", K = l.object({
29
32
  lat: l.string().min(1, "Geben Sie einen Wert für die Breite ein"),
30
33
  lng: l.string().min(1, "Geben Sie einen Wert für die Länge ein")
31
- }), Q = l.array(q), Y = l.object({
34
+ }), q = l.array(K), Q = l.object({
32
35
  id: l.string(),
33
36
  functionalities: l.array(l.string()).min(1),
34
- locations: Q
37
+ locations: q
35
38
  }), {
36
39
  defineField: C,
37
- handleSubmit: H,
38
- resetForm: J,
39
- errors: Ae
40
- } = j({
41
- validationSchema: T(Y),
40
+ handleSubmit: Y,
41
+ resetForm: $,
42
+ errors: Ce
43
+ } = T({
44
+ validationSchema: P(Q),
42
45
  initialValues: {
43
46
  id: m.modelValue || "",
44
47
  functionalities: m.functionalities || [],
45
48
  locations: []
46
49
  },
47
50
  name: "softwareForm"
48
- }), [c, X] = C("id"), [r, $] = C("functionalities"), {
49
- remove: Ce,
50
- push: Be,
51
- fields: De
51
+ }), [d, H] = C("id"), [r, J] = C("functionalities"), {
52
+ remove: Be,
53
+ push: De,
54
+ fields: Ee
52
55
  } = pe("locations");
53
- R(c, (n) => {
54
- G.value = n || "";
56
+ R(d, (n) => {
57
+ Z.value = n || "";
55
58
  }, { immediate: !0 });
56
- const B = ae(null);
57
- function ee(n) {
59
+ const B = ue(null);
60
+ function X(n) {
58
61
  B.value = n;
59
62
  }
60
- const p = v(() => !!c.value), D = v(() => {
63
+ const p = y(() => !!d.value), D = y(() => {
61
64
  var n;
62
65
  return (((n = r.value) == null ? void 0 : n.length) ?? 0) > 0;
63
- }), te = v(() => {
66
+ }), ee = y(() => {
64
67
  var n;
65
68
  return ((n = B.value) == null ? void 0 : n.functionalities) ?? [];
66
- }), ne = l.object({
69
+ }), te = l.object({
67
70
  functionalitySelect: l.string().optional(),
68
71
  functionalityInput: l.string().optional()
69
72
  }).superRefine((n, t) => {
70
73
  const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, s = n.functionalityInput && n.functionalityInput.trim().length > 0;
71
74
  !e && !s && (t.addIssue({
72
75
  code: l.ZodIssueCode.custom,
73
- message: O,
76
+ message: j,
74
77
  path: ["functionalitySelect"]
75
78
  }), t.addIssue({
76
79
  code: l.ZodIssueCode.custom,
77
- message: O,
80
+ message: j,
78
81
  path: ["functionalityInput"]
79
82
  }));
80
83
  }), {
81
84
  defineField: E,
82
- handleSubmit: ie,
83
- errors: S,
84
- resetForm: k
85
- } = j({
86
- validationSchema: T(ne),
85
+ handleSubmit: ne,
86
+ errors: b,
87
+ resetForm: V
88
+ } = T({
89
+ validationSchema: P(te),
87
90
  initialValues: {
88
91
  functionalitySelect: "",
89
92
  functionalityInput: ""
90
93
  }
91
94
  });
92
- R(c, (n, t) => {
93
- !!t && !!n && n !== t && (k(), r.value = []);
95
+ R(d, (n, t) => {
96
+ !!t && !!n && n !== t && (V(), r.value = []);
94
97
  });
95
- const [V, oe] = E("functionalitySelect"), [I, le] = E("functionalityInput"), L = v(() => Array.from(r.value || [])), M = H((n) => {
96
- h ? A("patch", {
97
- id: K,
98
+ const [I, ie] = E("functionalitySelect"), [x, oe] = E("functionalityInput"), L = y(() => Array.from(r.value || [])), M = Y((n) => {
99
+ S ? k("patch", {
100
+ id: G,
98
101
  software: {
99
102
  id: n.id,
100
103
  functionalities: Array.from(r.value || []).filter(Boolean)
101
104
  }
102
- }) : A("submit", {
105
+ }) : k("submit", {
103
106
  id: n.id,
104
107
  functionalities: Array.from(r.value || []).filter(Boolean)
105
- }), k(), J();
106
- }), se = ie((n) => {
108
+ }), V(), $();
109
+ }), le = ne((n) => {
107
110
  var e, s;
108
111
  const t = n.functionalitySelect || n.functionalityInput;
109
- t && t.trim().length > 0 && !((e = r.value) != null && e.includes(t)) && ((s = r.value) == null || s.push(t)), k();
112
+ t && t.trim().length > 0 && !((e = r.value) != null && e.includes(t)) && ((s = r.value) == null || s.push(t)), V();
110
113
  });
111
- return (n, t) => (u(), f("div", ge, [
114
+ return (n, t) => (a(), c("div", ge, [
112
115
  o("section", we, [
113
- h ? y("", !0) : (u(), f(x, { key: 0 }, [
114
- t[5] || (t[5] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
115
- t[6] || (t[6] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
116
+ S ? g("", !0) : (a(), c(z, { key: 0 }, [
117
+ t[6] || (t[6] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
118
+ t[7] || (t[7] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
116
119
  ], 64)),
117
- a(he, g({
118
- modelValue: i(c),
119
- "onUpdate:modelValue": t[0] || (t[0] = (e) => w(c) ? c.value = e : null)
120
- }, i(X), {
120
+ u(he, w({
121
+ modelValue: i(d),
122
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => F(d) ? d.value = e : null)
123
+ }, i(H), {
121
124
  "base-url": "https://twin.bydata.de/api/hub/search",
122
125
  resource: "software",
123
126
  label: "",
124
127
  placeholder: "Software...",
125
128
  name: "software",
126
129
  "setup-fn": (e) => {
127
- var s, d, b, N, U, W;
130
+ var s, f, v, N, U, W;
128
131
  return {
129
132
  id: e == null ? void 0 : e.id,
130
- name: ((s = e == null ? void 0 : e.name) == null ? void 0 : s.de) || ((d = e == null ? void 0 : e.name) == null ? void 0 : d.en),
133
+ name: ((s = e == null ? void 0 : e.name) == null ? void 0 : s.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
131
134
  functionalities: (e == null ? void 0 : e.functionalities) || [],
132
135
  unavailable: m.exclude.includes(e == null ? void 0 : e.id),
133
- manufacturer: (N = (b = e == null ? void 0 : e.manufacturer) == null ? void 0 : b[0]) == null ? void 0 : N.label,
136
+ manufacturer: (N = (v = e == null ? void 0 : e.manufacturer) == null ? void 0 : v[0]) == null ? void 0 : N.label,
134
137
  description: ((U = e == null ? void 0 : e.description) == null ? void 0 : U.de) || ((W = e == null ? void 0 : e.description) == null ? void 0 : W.en),
135
138
  version: e == null ? void 0 : e.version
136
139
  };
137
140
  },
138
- onSelect: ee
141
+ onSelect: X
139
142
  }), {
140
- option: ce(({ option: e, active: s, selected: d, disabled: b }) => [
141
- a(ye, {
143
+ option: ae(({ option: e, active: s, selected: f, disabled: v }) => [
144
+ u(ye, {
142
145
  name: e.name,
143
146
  manufacturer: e.manufacturer,
144
147
  description: e.description,
145
148
  active: s,
146
- selected: d,
147
- "is-disabled": b
149
+ selected: f,
150
+ "is-disabled": v
148
151
  }, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
149
152
  ]),
150
153
  _: 1
151
154
  }, 16, ["modelValue", "setup-fn"]),
152
- h ? y("", !0) : (u(), f(x, { key: 1 }, [
153
- t[7] || (t[7] = o("h5", null, "oder", -1)),
154
- t[8] || (t[8] = o("p", null, " Sollte die verwendete Software noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Software in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Software-Datensatz ersetzen. ", -1)),
155
+ S ? g("", !0) : (a(), c(z, { key: 1 }, [
156
+ t[8] || (t[8] = o("h5", null, "oder", -1)),
157
+ t[9] || (t[9] = o("p", null, " Sollte die verwendete Software noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Software in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Software-Datensatz ersetzen. ", -1)),
155
158
  o("div", Fe, [
156
- a(F, {
159
+ u(h, {
157
160
  "button-text": "Zur Softwarebeantragung",
158
161
  size: "medium",
159
162
  variant: "secondary"
@@ -162,24 +165,24 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
162
165
  ], 64))
163
166
  ]),
164
167
  o("section", ke, [
165
- t[9] || (t[9] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
166
- t[10] || (t[10] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Software verwendet haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
167
- L.value.length > 0 ? (u(), f("div", Ve, [
168
- (u(!0), f(x, null, de(L.value, (e, s) => (u(), f("div", {
168
+ t[10] || (t[10] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
169
+ t[11] || (t[11] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Software verwendet haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
170
+ L.value.length > 0 ? (a(), c("div", Ve, [
171
+ (a(!0), c(z, null, ce(L.value, (e, s) => (a(), c("div", {
169
172
  key: s,
170
173
  class: "functionalities"
171
174
  }, [
172
- fe(o("input", g({
175
+ de(o("input", w({
173
176
  id: e,
174
- "onUpdate:modelValue": t[1] || (t[1] = (d) => w(r) ? r.value = d : null),
177
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => F(r) ? r.value = f : null),
175
178
  hidden: "",
176
179
  value: e,
177
180
  name: "selectedFunctionalities",
178
181
  type: "checkbox"
179
- }, { ref_for: !0 }, i($)), null, 16, Ie), [
180
- [me, i(r)]
182
+ }, { ref_for: !0 }, i(J)), null, 16, Ie), [
183
+ [fe, i(r)]
181
184
  ]),
182
- a(Se, {
185
+ u(Se, {
183
186
  as: "label",
184
187
  for: e,
185
188
  text: e,
@@ -194,23 +197,23 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
194
197
  "select-value": !0
195
198
  }, null, 8, ["for", "text", "data"])
196
199
  ]))), 128))
197
- ])) : y("", !0),
198
- a(ve, g({
199
- modelValue: i(V),
200
- "onUpdate:modelValue": t[2] || (t[2] = (e) => w(V) ? V.value = e : null),
201
- options: te.value,
202
- "error-message": i(S).functionalitySelect,
200
+ ])) : g("", !0),
201
+ u(ve, w({
202
+ modelValue: i(I),
203
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => F(I) ? I.value = e : null),
204
+ options: ee.value,
205
+ "error-message": i(b).functionalitySelect,
203
206
  label: "Funktionalitäten auswählen",
204
207
  placeholder: "Wählen Sie eine Funktionalität.",
205
208
  disabled: !p.value
206
- }, i(oe)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
207
- t[11] || (t[11] = o("h5", null, " oder ", -1)),
208
- a(be, g({
209
- modelValue: i(I),
210
- "onUpdate:modelValue": t[3] || (t[3] = (e) => w(I) ? I.value = e : null),
211
- "initial-hint-text": !!i(S).functionalityInput,
212
- error_message: i(S).functionalityInput,
213
- "show-error": !!i(S).functionalityInput,
209
+ }, i(ie)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
210
+ t[12] || (t[12] = o("h5", null, " oder ", -1)),
211
+ u(be, w({
212
+ modelValue: i(x),
213
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => F(x) ? x.value = e : null),
214
+ "initial-hint-text": !!i(b).functionalityInput,
215
+ error_message: i(b).functionalityInput,
216
+ "show-error": !!i(b).functionalityInput,
214
217
  "add-on-text": !1,
215
218
  "date-picker": !1,
216
219
  "info-icon": !1,
@@ -219,26 +222,32 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
219
222
  "is-disabled": !p.value,
220
223
  label: "Funktionalitäten nennen",
221
224
  placeholder: "Nennen Sie eine Funktionalität"
222
- }, i(le)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
225
+ }, i(oe)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
223
226
  o("div", xe, [
224
- a(F, {
227
+ u(h, {
225
228
  "button-text": "Funktionalität hinzufügen",
226
229
  size: "medium",
227
230
  variant: "tertiary",
228
231
  "icon-start": "plus",
229
232
  disabled: !p.value,
230
- onClick: i(se)
233
+ onClick: i(le)
231
234
  }, null, 8, ["disabled", "onClick"])
232
235
  ])
233
236
  ]),
234
- y("", !0),
237
+ g("", !0),
235
238
  o("section", ze, [
236
- h ? (u(), P(F, {
237
- key: 0,
238
- "button-text": "Speichern",
239
- disabled: !p.value || !D.value,
240
- onClick: i(M)
241
- }, null, 8, ["disabled", "onClick"])) : (u(), P(F, {
239
+ S ? (a(), c("div", Ae, [
240
+ u(h, {
241
+ "button-text": "Abbrechen",
242
+ variant: "tertiary",
243
+ onClick: t[5] || (t[5] = (e) => k("close"))
244
+ }),
245
+ u(h, {
246
+ "button-text": "Speichern",
247
+ disabled: !p.value || !D.value,
248
+ onClick: i(M)
249
+ }, null, 8, ["disabled", "onClick"])
250
+ ])) : (a(), me(h, {
242
251
  key: 1,
243
252
  "icon-start": "PlusSquare",
244
253
  "button-text": "Software hinzufügen",
@@ -250,5 +259,5 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
250
259
  }
251
260
  });
252
261
  export {
253
- Te as default
262
+ je as default
254
263
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SoftwareStep.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-d658cd16"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe4ae526"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,126 +1,131 @@
1
- import { defineComponent as $, ref as v, computed as c, watch as M, toRef as W, createBlock as f, openBlock as o, withCtx as u, createVNode as s, createElementBlock as S, createElementVNode as x, unref as m, isRef as K, Fragment as g, renderList as D, createTextVNode as B, toDisplayString as L, createCommentVNode as I, nextTick as j } from "vue";
2
- import { FormKit as R } from "@formkit/vue";
3
- import { defineHubSearch as q } from "@piveau/sdk-vue";
4
- import J from "zod";
5
- import Q from "../../../components/StepActionsSection.vue.js";
6
- import X from "../ActionCard.vue.js";
7
- import Y from "../Card.vue.js";
8
- import Z from "../Chip.vue.js";
9
- import ee from "../DpiModalBase.vue.js";
10
- import te from "../SummaryBox.vue.js";
11
- import ne from "./AreYouSureToSkipCard.vue.js";
1
+ import { defineComponent as M, ref as v, computed as c, watch as W, toRef as K, createBlock as f, openBlock as r, withCtx as s, createVNode as d, createElementBlock as S, createElementVNode as y, unref as m, isRef as L, Fragment as g, renderList as B, createTextVNode as D, toDisplayString as j, createCommentVNode as C, nextTick as q } from "vue";
2
+ import { FormKit as I } from "@formkit/vue";
3
+ import { defineHubSearch as J } from "@piveau/sdk-vue";
4
+ import Q from "zod";
5
+ import X from "../../../components/StepActionsSection.vue.js";
6
+ import Y from "../ActionCard.vue.js";
7
+ import Z from "../Card.vue.js";
8
+ import ee from "../Chip.vue.js";
9
+ import te from "../DpiModalBase.vue.js";
10
+ import ne from "../SummaryBox.vue.js";
11
+ import oe from "./AreYouSureToSkipCard.vue.js";
12
12
  import re from "./ProcessStepBase.vue.js";
13
13
  /* empty css */
14
- import z from "./SoftwareForm.vue.js";
15
- import { useProcessStepResources as oe, ensureHasOneResource as ie } from "./utils.js";
16
- const ae = {
14
+ import R from "./SoftwareForm.vue.js";
15
+ import { useProcessStepResources as ie, ensureHasOneResource as ae } from "./utils.js";
16
+ const le = {
17
17
  key: 0,
18
18
  class: "software-step__card-list--empty"
19
- }, le = {
19
+ }, ue = {
20
20
  key: 1,
21
21
  class: "software-step__card-list"
22
- }, ue = { class: "functionalities" }, se = { class: "" }, ge = /* @__PURE__ */ $({
22
+ }, se = { class: "functionalities" }, de = { class: "" }, Be = /* @__PURE__ */ M({
23
23
  __name: "SoftwareStep",
24
24
  props: {
25
25
  stepGroup: {},
26
- edit: { type: Boolean }
26
+ edit: { type: Boolean },
27
+ hideCloseBtn: { type: Boolean },
28
+ title: {}
27
29
  },
28
- setup(T) {
29
- const y = T, d = v(!1), r = v([]), { useResources: C } = q({
30
+ setup(z) {
31
+ const x = z, a = v(!1), o = v([]), { useResources: T } = J({
30
32
  baseUrl: "https://twin.bydata.de/api/hub/search",
31
33
  index: "resource",
32
34
  indexDetails: "resources/software",
33
- schema: J.any()
35
+ schema: Q.any()
34
36
  }, (e) => {
35
- var p, l;
36
- 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) || "");
37
+ var p, u;
38
+ const t = String((e == null ? void 0 : e.id) || ""), i = String(((p = e == null ? void 0 : e.name) == null ? void 0 : p.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en) || "");
37
39
  return {
38
40
  ...e,
39
41
  id: t,
40
42
  name: i
41
43
  };
42
- }), b = C(c(() => r.value.map((e) => ({
44
+ }), b = T(c(() => o.value.map((e) => ({
43
45
  resourceId: e.id
44
46
  })))), E = c(() => b.value.every((e) => e.isSuccess)), _ = c(() => E.value ? b.value.map((e, t) => {
45
47
  const i = e.resultEnhanced;
46
48
  return {
47
49
  id: i.id,
48
50
  name: (i == null ? void 0 : i.name) || "",
49
- functionalities: r.value[t].functionalities
51
+ functionalities: o.value[t].functionalities
50
52
  };
51
- }) : []), a = v(""), F = c(() => {
53
+ }) : []), l = v(""), F = c(() => {
52
54
  var e;
53
- return [...((e = r.value.find((t) => t.id === a.value)) == null ? void 0 : e.functionalities) || []];
55
+ return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
54
56
  }), w = v(0);
55
- M(d, (e, t) => {
57
+ W(a, (e, t) => {
56
58
  !e && t && w.value++;
57
59
  });
58
60
  function H(e) {
59
- return r.value.find((t) => t.id === e);
61
+ return o.value.find((t) => t.id === e);
60
62
  }
61
63
  function V(e) {
62
- return r.value.findIndex((t) => t.id === e);
64
+ return o.value.findIndex((t) => t.id === e);
63
65
  }
64
66
  function N(e) {
65
67
  const t = V(e);
66
- t !== -1 && r.value.splice(t, 1);
68
+ t !== -1 && o.value.splice(t, 1);
67
69
  }
68
70
  async function U(e) {
69
- H(e) && (a.value = e, w.value++, await j(), d.value = !0);
71
+ H(e) && (l.value = e, w.value++, await q(), a.value = !0);
70
72
  }
71
73
  function k(e) {
72
- r.value.push(e), d.value = !1, a.value = "";
74
+ o.value.push(e), a.value = !1, l.value = "";
73
75
  }
74
76
  function A(e) {
75
77
  const t = V(e.id);
76
- t !== -1 && (r.value.splice(t, 1), r.value.splice(t, 0, e.software), a.value = "", d.value = !1);
78
+ t !== -1 && (o.value.splice(t, 1), o.value.splice(t, 0, e.software), l.value = "", a.value = !1);
77
79
  }
78
- const G = c(() => r.value.length > 0 ? "Weiter" : "Weiter ohne Software"), O = c(() => r.value.length > 0 ? "primary" : "secondary"), { count: h, realCount: P } = oe(y.stepGroup || "", W(y.edit));
79
- return (e, t) => (o(), f(re, {
80
+ function G() {
81
+ a.value = !1;
82
+ }
83
+ const O = c(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = c(() => o.value.length > 0 ? "primary" : "secondary"), { count: h, realCount: $ } = ie(x.stepGroup || "", K(x.edit));
84
+ return (e, t) => (r(), f(re, {
80
85
  title: "Geben Sie Informationen zur verwendeten Software an",
81
86
  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."
82
87
  }, {
83
- default: u(({ confirm: i }) => [
84
- s(m(R), {
88
+ default: s(({ confirm: i }) => [
89
+ d(m(I), {
85
90
  modelValue: m(h),
86
- "onUpdate:modelValue": t[0] || (t[0] = (n) => K(h) ? h.value = n : null),
91
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => L(h) ? h.value = n : null),
87
92
  type: "hidden",
88
93
  name: "__resourceCount",
89
94
  hidden: "",
90
95
  "aria-hidden": "",
91
- "validation-rules": { ensureHasOneResource: m(ie) },
96
+ "validation-rules": { ensureHasOneResource: m(ae) },
92
97
  validation: "+ensureHasOneResource",
93
98
  "validation-visibility": "live",
94
99
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
95
100
  }, null, 8, ["modelValue", "validation-rules"]),
96
- s(m(R), {
97
- modelValue: r.value,
98
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
101
+ d(m(I), {
102
+ modelValue: o.value,
103
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n),
99
104
  name: "selected",
100
105
  type: "list",
101
106
  hidden: "",
102
107
  "aria-hidden": ""
103
108
  }, null, 8, ["modelValue"]),
104
- _.value.length ? (o(), S("section", le, [
105
- (o(!0), S(g, null, D(_.value, (n, p) => (o(), f(X, {
109
+ _.value.length ? (r(), S("section", ue, [
110
+ (r(!0), S(g, null, B(_.value, (n, p) => (r(), f(Y, {
106
111
  key: p,
107
112
  class: "software-card",
108
- onEdit: (l) => U(n.id),
109
- onDelete: (l) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: N })
113
+ onEdit: (u) => U(n.id),
114
+ onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: N })
110
115
  }, {
111
- "sub-title": u(() => t[5] || (t[5] = [
112
- B(" Name ", -1)
116
+ "sub-title": s(() => t[5] || (t[5] = [
117
+ D(" Name ", -1)
113
118
  ])),
114
- title: u(() => [
115
- B(L(n.name), 1)
119
+ title: s(() => [
120
+ D(j(n.name), 1)
116
121
  ]),
117
- default: u(() => [
118
- s(te, { title: "Genutzte Funktionalitäten" }, {
119
- default: u(() => [
120
- x("div", ue, [
121
- (o(!0), S(g, null, D(n.functionalities, (l) => (o(), f(Z, {
122
- key: l,
123
- text: l,
122
+ default: s(() => [
123
+ d(ne, { title: "Genutzte Funktionalitäten" }, {
124
+ default: s(() => [
125
+ y("div", se, [
126
+ (r(!0), S(g, null, B(n.functionalities, (u) => (r(), f(ee, {
127
+ key: u,
128
+ text: u,
124
129
  data: { "@value": "", URI: "" },
125
130
  setup: { "@type": "selected", "@search": !1, "@inTable": !1, "@findability": !0, "@static": !0 }
126
131
  }, null, 8, ["text"]))), 128))
@@ -131,46 +136,50 @@ const ae = {
131
136
  ]),
132
137
  _: 2
133
138
  }, 1032, ["onEdit", "onDelete"]))), 128))
134
- ])) : (o(), S("section", ae, [
135
- s(Y, {
139
+ ])) : (r(), S("section", le, [
140
+ d(Z, {
136
141
  small: "",
137
142
  class: "empty-card"
138
143
  }, {
139
- default: u(() => t[4] || (t[4] = [
140
- x("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
144
+ default: s(() => t[4] || (t[4] = [
145
+ y("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
141
146
  ])),
142
147
  _: 1,
143
148
  __: [4]
144
149
  })
145
150
  ])),
146
- s(z, {
147
- exclude: r.value.map((n) => n.id),
151
+ d(R, {
152
+ exclude: o.value.map((n) => n.id),
148
153
  onSubmit: k
149
154
  }, null, 8, ["exclude"]),
150
- x("section", se, [
151
- s(Q, {
152
- "next-text": G.value,
153
- "next-variant": O.value
155
+ y("section", de, [
156
+ d(X, {
157
+ "next-text": O.value,
158
+ "next-variant": P.value
154
159
  }, null, 8, ["next-text", "next-variant"]),
155
- m(P) === 0 ? (o(), f(ne, {
160
+ m($) === 0 ? (r(), f(oe, {
156
161
  key: 0,
157
162
  "resource-label": "Software"
158
- })) : I("", !0)
163
+ })) : C("", !0)
159
164
  ]),
160
- s(ee, {
161
- modelValue: d.value,
162
- "onUpdate:modelValue": t[3] || (t[3] = (n) => d.value = n)
165
+ d(te, {
166
+ modelValue: a.value,
167
+ "onUpdate:modelValue": t[3] || (t[3] = (n) => a.value = n),
168
+ "hide-close-btn": !0,
169
+ "compact-layout": !0,
170
+ title: "Software"
163
171
  }, {
164
- default: u(() => [
165
- a.value ? (o(), f(z, {
172
+ default: s(() => [
173
+ l.value ? (r(), f(R, {
166
174
  key: w.value,
167
- modelValue: a.value,
168
- "onUpdate:modelValue": t[2] || (t[2] = (n) => a.value = n),
175
+ modelValue: l.value,
176
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
169
177
  functionalities: F.value,
170
- exclude: r.value.map((n) => n.id),
178
+ exclude: o.value.map((n) => n.id),
171
179
  onSubmit: k,
172
- onPatch: A
173
- }, null, 8, ["modelValue", "functionalities", "exclude"])) : I("", !0)
180
+ onPatch: A,
181
+ onClose: G
182
+ }, null, 8, ["modelValue", "functionalities", "exclude"])) : C("", !0)
174
183
  ]),
175
184
  _: 1
176
185
  }, 8, ["modelValue"])
@@ -180,5 +189,5 @@ const ae = {
180
189
  }
181
190
  });
182
191
  export {
183
- ge as default
192
+ Be as default
184
193
  };