@piveau/dpi 0.2.0-alpha.11 → 0.2.0-alpha.13
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/services/dpiV3_apis.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +180 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +215 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +37 -29
- 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 +27 -27
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +4 -4
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +8 -8
- 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 +127 -118
- 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 +64 -57
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +21 -23
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +12 -12
- 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 +105 -96
- 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 +89 -80
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +6 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +6 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +6 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +388 -375
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js +4 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +35 -31
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +43 -35
- package/dist/packages/dpi/src/data-provider-interface/components/DistLicense.vue.js +224 -133
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +11 -11
- package/dist/packages/dpi/src/data-provider-interface/components/VisibilityPage.vue.js +106 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/input-definition.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/page-content-config.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +276 -251
- package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +131 -124
- package/dist/packages/dpi/src/form/inputDefinitions.js +15 -10
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { toTypedSchema as
|
|
3
|
-
import { useForm as
|
|
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
|
|
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" },
|
|
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(
|
|
28
|
-
const m =
|
|
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
|
-
}),
|
|
34
|
+
}), q = l.array(K), Q = l.object({
|
|
32
35
|
id: l.string(),
|
|
33
36
|
functionalities: l.array(l.string()).min(1),
|
|
34
|
-
locations:
|
|
37
|
+
locations: q
|
|
35
38
|
}), {
|
|
36
39
|
defineField: C,
|
|
37
|
-
handleSubmit:
|
|
38
|
-
resetForm:
|
|
39
|
-
errors:
|
|
40
|
-
} =
|
|
41
|
-
validationSchema:
|
|
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
|
-
}), [
|
|
49
|
-
remove:
|
|
50
|
-
push:
|
|
51
|
-
fields:
|
|
51
|
+
}), [d, H] = C("id"), [r, J] = C("functionalities"), {
|
|
52
|
+
remove: Be,
|
|
53
|
+
push: De,
|
|
54
|
+
fields: Ee
|
|
52
55
|
} = pe("locations");
|
|
53
|
-
R(
|
|
54
|
-
|
|
56
|
+
R(d, (n) => {
|
|
57
|
+
Z.value = n || "";
|
|
55
58
|
}, { immediate: !0 });
|
|
56
|
-
const B =
|
|
57
|
-
function
|
|
59
|
+
const B = ue(null);
|
|
60
|
+
function X(n) {
|
|
58
61
|
B.value = n;
|
|
59
62
|
}
|
|
60
|
-
const p =
|
|
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
|
-
}),
|
|
66
|
+
}), ee = y(() => {
|
|
64
67
|
var n;
|
|
65
68
|
return ((n = B.value) == null ? void 0 : n.functionalities) ?? [];
|
|
66
|
-
}),
|
|
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:
|
|
76
|
+
message: j,
|
|
74
77
|
path: ["functionalitySelect"]
|
|
75
78
|
}), t.addIssue({
|
|
76
79
|
code: l.ZodIssueCode.custom,
|
|
77
|
-
message:
|
|
80
|
+
message: j,
|
|
78
81
|
path: ["functionalityInput"]
|
|
79
82
|
}));
|
|
80
83
|
}), {
|
|
81
84
|
defineField: E,
|
|
82
|
-
handleSubmit:
|
|
83
|
-
errors:
|
|
84
|
-
resetForm:
|
|
85
|
-
} =
|
|
86
|
-
validationSchema:
|
|
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(
|
|
93
|
-
!!t && !!n && n !== t && (
|
|
95
|
+
R(d, (n, t) => {
|
|
96
|
+
!!t && !!n && n !== t && (V(), r.value = []);
|
|
94
97
|
});
|
|
95
|
-
const [
|
|
96
|
-
|
|
97
|
-
id:
|
|
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
|
-
}) :
|
|
105
|
+
}) : k("submit", {
|
|
103
106
|
id: n.id,
|
|
104
107
|
functionalities: Array.from(r.value || []).filter(Boolean)
|
|
105
|
-
}),
|
|
106
|
-
}),
|
|
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)),
|
|
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) => (
|
|
114
|
+
return (n, t) => (a(), c("div", ge, [
|
|
112
115
|
o("section", we, [
|
|
113
|
-
|
|
114
|
-
t[
|
|
115
|
-
t[
|
|
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
|
-
|
|
118
|
-
modelValue: i(
|
|
119
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
120
|
-
}, i(
|
|
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,
|
|
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) || ((
|
|
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 = (
|
|
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:
|
|
141
|
+
onSelect: X
|
|
139
142
|
}), {
|
|
140
|
-
option:
|
|
141
|
-
|
|
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:
|
|
147
|
-
"is-disabled":
|
|
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
|
-
|
|
153
|
-
t[
|
|
154
|
-
t[
|
|
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
|
-
|
|
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[
|
|
166
|
-
t[
|
|
167
|
-
L.value.length > 0 ? (
|
|
168
|
-
(
|
|
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
|
-
|
|
175
|
+
de(o("input", w({
|
|
173
176
|
id: e,
|
|
174
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
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(
|
|
180
|
-
[
|
|
182
|
+
}, { ref_for: !0 }, i(J)), null, 16, Ie), [
|
|
183
|
+
[fe, i(r)]
|
|
181
184
|
]),
|
|
182
|
-
|
|
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
|
-
])) :
|
|
198
|
-
|
|
199
|
-
modelValue: i(
|
|
200
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
201
|
-
options:
|
|
202
|
-
"error-message": i(
|
|
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(
|
|
207
|
-
t[
|
|
208
|
-
|
|
209
|
-
modelValue: i(
|
|
210
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) =>
|
|
211
|
-
"initial-hint-text": !!i(
|
|
212
|
-
error_message: i(
|
|
213
|
-
"show-error": !!i(
|
|
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(
|
|
225
|
+
}, i(oe)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
|
|
223
226
|
o("div", xe, [
|
|
224
|
-
|
|
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(
|
|
233
|
+
onClick: i(le)
|
|
231
234
|
}, null, 8, ["disabled", "onClick"])
|
|
232
235
|
])
|
|
233
236
|
]),
|
|
234
|
-
|
|
237
|
+
g("", !0),
|
|
235
238
|
o("section", ze, [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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
|
-
|
|
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
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe4ae526"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,126 +1,131 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { defineHubSearch as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
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
|
|
15
|
-
import { useProcessStepResources as
|
|
16
|
-
const
|
|
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
|
-
},
|
|
19
|
+
}, ue = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "software-step__card-list"
|
|
22
|
-
},
|
|
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(
|
|
29
|
-
const
|
|
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:
|
|
35
|
+
schema: Q.any()
|
|
34
36
|
}, (e) => {
|
|
35
|
-
var p,
|
|
36
|
-
const t = String((e == null ? void 0 : e.id) || ""), i = String(((p = e == null ? void 0 : e.name) == null ? void 0 : p.de) || ((
|
|
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 =
|
|
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:
|
|
51
|
+
functionalities: o.value[t].functionalities
|
|
50
52
|
};
|
|
51
|
-
}) : []),
|
|
53
|
+
}) : []), l = v(""), F = c(() => {
|
|
52
54
|
var e;
|
|
53
|
-
return [...((e =
|
|
55
|
+
return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
|
|
54
56
|
}), w = v(0);
|
|
55
|
-
|
|
57
|
+
W(a, (e, t) => {
|
|
56
58
|
!e && t && w.value++;
|
|
57
59
|
});
|
|
58
60
|
function H(e) {
|
|
59
|
-
return
|
|
61
|
+
return o.value.find((t) => t.id === e);
|
|
60
62
|
}
|
|
61
63
|
function V(e) {
|
|
62
|
-
return
|
|
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 &&
|
|
68
|
+
t !== -1 && o.value.splice(t, 1);
|
|
67
69
|
}
|
|
68
70
|
async function U(e) {
|
|
69
|
-
H(e) && (
|
|
71
|
+
H(e) && (l.value = e, w.value++, await q(), a.value = !0);
|
|
70
72
|
}
|
|
71
73
|
function k(e) {
|
|
72
|
-
|
|
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 && (
|
|
78
|
+
t !== -1 && (o.value.splice(t, 1), o.value.splice(t, 0, e.software), l.value = "", a.value = !1);
|
|
77
79
|
}
|
|
78
|
-
|
|
79
|
-
|
|
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:
|
|
84
|
-
|
|
88
|
+
default: s(({ confirm: i }) => [
|
|
89
|
+
d(m(I), {
|
|
85
90
|
modelValue: m(h),
|
|
86
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) =>
|
|
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(
|
|
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
|
-
|
|
97
|
-
modelValue:
|
|
98
|
-
"onUpdate:modelValue": t[1] || (t[1] = (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 ? (
|
|
105
|
-
(
|
|
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: (
|
|
109
|
-
onDelete: (
|
|
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":
|
|
112
|
-
|
|
116
|
+
"sub-title": s(() => t[5] || (t[5] = [
|
|
117
|
+
D(" Name ", -1)
|
|
113
118
|
])),
|
|
114
|
-
title:
|
|
115
|
-
|
|
119
|
+
title: s(() => [
|
|
120
|
+
D(j(n.name), 1)
|
|
116
121
|
]),
|
|
117
|
-
default:
|
|
118
|
-
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
-
(
|
|
122
|
-
key:
|
|
123
|
-
text:
|
|
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
|
-
])) : (
|
|
135
|
-
|
|
139
|
+
])) : (r(), S("section", le, [
|
|
140
|
+
d(Z, {
|
|
136
141
|
small: "",
|
|
137
142
|
class: "empty-card"
|
|
138
143
|
}, {
|
|
139
|
-
default:
|
|
140
|
-
|
|
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
|
-
|
|
147
|
-
exclude:
|
|
151
|
+
d(R, {
|
|
152
|
+
exclude: o.value.map((n) => n.id),
|
|
148
153
|
onSubmit: k
|
|
149
154
|
}, null, 8, ["exclude"]),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"next-text":
|
|
153
|
-
"next-variant":
|
|
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(
|
|
160
|
+
m($) === 0 ? (r(), f(oe, {
|
|
156
161
|
key: 0,
|
|
157
162
|
"resource-label": "Software"
|
|
158
|
-
})) :
|
|
163
|
+
})) : C("", !0)
|
|
159
164
|
]),
|
|
160
|
-
|
|
161
|
-
modelValue:
|
|
162
|
-
"onUpdate:modelValue": t[3] || (t[3] = (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:
|
|
165
|
-
|
|
172
|
+
default: s(() => [
|
|
173
|
+
l.value ? (r(), f(R, {
|
|
166
174
|
key: w.value,
|
|
167
|
-
modelValue:
|
|
168
|
-
"onUpdate:modelValue": t[2] || (t[2] = (n) =>
|
|
175
|
+
modelValue: l.value,
|
|
176
|
+
"onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
|
|
169
177
|
functionalities: F.value,
|
|
170
|
-
exclude:
|
|
178
|
+
exclude: o.value.map((n) => n.id),
|
|
171
179
|
onSubmit: k,
|
|
172
|
-
onPatch: A
|
|
173
|
-
|
|
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
|
-
|
|
192
|
+
Be as default
|
|
184
193
|
};
|