@piveau/dpi 0.2.0-alpha.37 → 0.2.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +94 -82
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +66 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +43 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +37 -37
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +7 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +126 -0
- 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 +362 -463
- 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 +33 -33
- 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 +110 -211
- 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 +50 -49
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +37 -23
- 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 +1000 -983
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue.js +55 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue2.js +4 -0
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +1 -1
- 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 +73 -63
- package/dist/packages/dpi/src/utils/twinbyUtils.js +8 -0
- package/package.json +23 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HardwareStep.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f27470a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Y, ref as x, computed as _, watch as ee, toRef as te, createBlock as d, openBlock as i, withCtx as u, createVNode as f, createElementBlock as o, createElementVNode as H, unref as S, isRef as ne, Fragment as v, renderList as y, createCommentVNode as p, createTextVNode as z, toDisplayString as m, nextTick as ie } from "vue";
|
|
2
2
|
import { FormKit as U } from "@formkit/vue";
|
|
3
|
-
import { defineHubSearch as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
3
|
+
import { defineHubSearch as le } from "@piveau/sdk-vue";
|
|
4
|
+
import re from "zod";
|
|
5
|
+
import oe from "../../../components/StepActionsSection.vue.js";
|
|
6
|
+
import ae from "../ActionCard.vue.js";
|
|
7
|
+
import ue from "../Card.vue.js";
|
|
8
|
+
import se from "../Chip.vue.js";
|
|
9
|
+
import de from "../DpiModalBase.vue.js";
|
|
10
10
|
import c from "../SummaryBox.vue.js";
|
|
11
|
-
import
|
|
11
|
+
import me from "./AreYouSureToSkipCard.vue.js";
|
|
12
12
|
import $ from "./HardwareForm.vue.js";
|
|
13
|
-
import
|
|
13
|
+
import pe from "./ProcessStepBase.vue.js";
|
|
14
14
|
/* empty css */
|
|
15
|
-
import { looseRenderable as h, useProcessStepResources as
|
|
16
|
-
const
|
|
15
|
+
import { looseRenderable as h, useProcessStepResources as ce } from "./utils.js";
|
|
16
|
+
const fe = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "software-step__card-list--empty"
|
|
19
|
-
},
|
|
19
|
+
}, ve = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "software-step__card-list"
|
|
22
|
-
},
|
|
22
|
+
}, ye = { class: "step-section step-section--lg" }, he = { class: "functionalities" }, Ce = /* @__PURE__ */ Y({
|
|
23
23
|
__name: "HardwareStep",
|
|
24
24
|
props: {
|
|
25
25
|
stepGroup: {},
|
|
26
26
|
edit: { type: Boolean }
|
|
27
27
|
},
|
|
28
28
|
setup(O) {
|
|
29
|
-
const I = O, w = x(!1), a = x([]), { useResources: F } =
|
|
29
|
+
const I = O, w = x(!1), a = x([]), { useResources: F } = le({
|
|
30
30
|
baseUrl: "https://twin.bydata.de/api/hub/search",
|
|
31
31
|
index: "resource",
|
|
32
32
|
indexDetails: "resources/hardware",
|
|
33
|
-
schema:
|
|
33
|
+
schema: re.any()
|
|
34
34
|
}, (e) => {
|
|
35
35
|
var P, T, C, E, N, G;
|
|
36
36
|
const n = String((e == null ? void 0 : e.id) || ""), r = String(((P = e == null ? void 0 : e.name) == null ? void 0 : P.de) || ((T = e == null ? void 0 : e.name) == null ? void 0 : T.en) || ""), t = (e == null ? void 0 : e.functionalities) || [], B = String(((E = (C = e == null ? void 0 : e.manufacturer) == null ? void 0 : C[0]) == null ? void 0 : E.label) || ""), l = String(((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((G = e == null ? void 0 : e.description) == null ? void 0 : G.en) || ""), s = String((e == null ? void 0 : e.version) || "");
|
|
@@ -66,7 +66,7 @@ const ce = {
|
|
|
66
66
|
hosts: h(e == null ? void 0 : e.hosts)
|
|
67
67
|
};
|
|
68
68
|
})), k = x(""), W = _(() => a.value.find((e) => e.id === k.value)), b = x(0);
|
|
69
|
-
|
|
69
|
+
ee(w, (e, n) => {
|
|
70
70
|
!e && n && b.value++;
|
|
71
71
|
});
|
|
72
72
|
function L(e) {
|
|
@@ -80,7 +80,7 @@ const ce = {
|
|
|
80
80
|
n !== -1 && a.value.splice(n, 1);
|
|
81
81
|
}
|
|
82
82
|
async function q(e) {
|
|
83
|
-
L(e) && (k.value = e, b.value++, await
|
|
83
|
+
L(e) && (k.value = e, b.value++, await ie(), w.value = !0);
|
|
84
84
|
}
|
|
85
85
|
function R(e) {
|
|
86
86
|
a.value.push(e), w.value = !1, k.value = "";
|
|
@@ -92,20 +92,20 @@ const ce = {
|
|
|
92
92
|
function Z() {
|
|
93
93
|
w.value = !1;
|
|
94
94
|
}
|
|
95
|
-
const j = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), J = _(() => "primary"), { count: V } =
|
|
96
|
-
return (e, n) => (i(), d(
|
|
95
|
+
const j = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), J = _(() => "primary"), Q = te(I, "edit"), { count: V, ensureHasOneResource: X } = ce(I.stepGroup || "", Q);
|
|
96
|
+
return (e, n) => (i(), d(pe, {
|
|
97
97
|
title: "Geben Sie Informationen zur verwendeten Hardware an",
|
|
98
98
|
subtitle: "Die Hardware wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Hardware Sie verwendet haben. Sobald Sie eine Hardware zugeordnet haben, geben Sie bitte an, wie die Hardware in diesem Schritt eingesetzt wurde."
|
|
99
99
|
}, {
|
|
100
100
|
default: u(({ confirm: r }) => [
|
|
101
101
|
f(S(U), {
|
|
102
102
|
modelValue: S(V),
|
|
103
|
-
"onUpdate:modelValue": n[0] || (n[0] = (t) =>
|
|
103
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => ne(V) ? V.value = t : null),
|
|
104
104
|
type: "hidden",
|
|
105
105
|
name: "__resourceCount",
|
|
106
106
|
hidden: "",
|
|
107
107
|
"aria-hidden": "",
|
|
108
|
-
"validation-rules": { ensureHasOneResource: S(
|
|
108
|
+
"validation-rules": { ensureHasOneResource: S(X) },
|
|
109
109
|
validation: "+ensureHasOneResource",
|
|
110
110
|
"validation-visibility": "live",
|
|
111
111
|
"validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
|
|
@@ -117,8 +117,8 @@ const ce = {
|
|
|
117
117
|
type: "list",
|
|
118
118
|
hidden: ""
|
|
119
119
|
}, null, 8, ["modelValue"]),
|
|
120
|
-
g.value.length ? (i(), o("section",
|
|
121
|
-
(i(!0), o(v, null, y(g.value, (t, B) => (i(), d(
|
|
120
|
+
g.value.length ? (i(), o("section", ve, [
|
|
121
|
+
(i(!0), o(v, null, y(g.value, (t, B) => (i(), d(ae, {
|
|
122
122
|
key: B,
|
|
123
123
|
spaced: "",
|
|
124
124
|
class: "software-card",
|
|
@@ -129,7 +129,7 @@ const ce = {
|
|
|
129
129
|
z(" Hardware ", -1)
|
|
130
130
|
])),
|
|
131
131
|
default: u(() => [
|
|
132
|
-
H("div",
|
|
132
|
+
H("div", ye, [
|
|
133
133
|
f(c, { title: "Name" }, {
|
|
134
134
|
default: u(() => [
|
|
135
135
|
z(m(t.name), 1)
|
|
@@ -138,8 +138,8 @@ const ce = {
|
|
|
138
138
|
}, 1024),
|
|
139
139
|
f(c, { title: "Genutzte Funktionalitäten" }, {
|
|
140
140
|
default: u(() => [
|
|
141
|
-
H("div",
|
|
142
|
-
(i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(
|
|
141
|
+
H("div", he, [
|
|
142
|
+
(i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(se, {
|
|
143
143
|
key: l,
|
|
144
144
|
"no-border": "",
|
|
145
145
|
text: l,
|
|
@@ -224,8 +224,8 @@ const ce = {
|
|
|
224
224
|
]),
|
|
225
225
|
_: 2
|
|
226
226
|
}, 1032, ["onEdit", "onDelete"]))), 128))
|
|
227
|
-
])) : (i(), o("section",
|
|
228
|
-
f(
|
|
227
|
+
])) : (i(), o("section", fe, [
|
|
228
|
+
f(ue, {
|
|
229
229
|
small: "",
|
|
230
230
|
class: "empty-card"
|
|
231
231
|
}, {
|
|
@@ -241,18 +241,18 @@ const ce = {
|
|
|
241
241
|
onSubmit: R
|
|
242
242
|
}, null, 8, ["exclude"]),
|
|
243
243
|
H("section", null, [
|
|
244
|
-
f(
|
|
244
|
+
f(oe, {
|
|
245
245
|
class: "software-step-actions",
|
|
246
246
|
"next-text": j.value,
|
|
247
247
|
"next-variant": J.value,
|
|
248
248
|
"show-detailed-error-summary": ""
|
|
249
249
|
}, null, 8, ["next-text", "next-variant"]),
|
|
250
|
-
g.value.length === 0 ? (i(), d(
|
|
250
|
+
g.value.length === 0 ? (i(), d(me, {
|
|
251
251
|
key: 0,
|
|
252
252
|
"resource-label": "Hardware"
|
|
253
253
|
})) : p("", !0)
|
|
254
254
|
]),
|
|
255
|
-
f(
|
|
255
|
+
f(de, {
|
|
256
256
|
modelValue: w.value,
|
|
257
257
|
"onUpdate:modelValue": n[3] || (n[3] = (t) => w.value = t),
|
|
258
258
|
"hide-close-btn": !0,
|
|
@@ -279,5 +279,5 @@ const ce = {
|
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
281
|
export {
|
|
282
|
-
|
|
282
|
+
Ce as default
|
|
283
283
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SoftwareForm.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c85992f4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { toTypedSchema as
|
|
3
|
-
import { useForm as
|
|
4
|
-
import * as
|
|
5
|
-
import { useTwinbyUser as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
import Ve from "./RichOption.vue.js";
|
|
12
|
-
const xe = { class: "dpi-project-process-step V3-typography" }, ze = { class: "step-section" }, Ae = { class: "step-section-actions" }, Ce = ["href"], Be = { class: "step-section" }, _e = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "functionalities-container"
|
|
15
|
-
}, De = ["id", "value"], Ue = { class: "step-section-actions" }, Le = { class: "step-section-actions" }, Te = {
|
|
1
|
+
import { defineComponent as R, mergeModels as C, useModel as H, unref as l, watch as P, ref as J, computed as b, createElementBlock as S, openBlock as d, createElementVNode as o, createCommentVNode as g, createVNode as a, Fragment as D, mergeProps as Q, isRef as W, withCtx as X, createBlock as Y } from "vue";
|
|
2
|
+
import { toTypedSchema as ee } 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 ne, useFieldArray as te } from "vee-validate";
|
|
4
|
+
import * as i from "zod";
|
|
5
|
+
import { useTwinbyUser as oe } from "../../../composables/useTwinbyUser.js";
|
|
6
|
+
import ie from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
7
|
+
import h from "../ButtonV3.vue.js";
|
|
8
|
+
import se from "./FunctionalityForm.vue.js";
|
|
9
|
+
import re from "./RichOption.vue.js";
|
|
10
|
+
const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "step-section" }, ue = { class: "step-section-actions" }, ce = ["href"], me = { class: "step-section" }, de = { class: "step-section-actions" }, fe = {
|
|
16
11
|
key: 0,
|
|
17
12
|
class: "button-row"
|
|
18
|
-
},
|
|
13
|
+
}, Be = /* @__PURE__ */ R({
|
|
19
14
|
__name: "SoftwareForm",
|
|
20
|
-
props: /* @__PURE__ */
|
|
15
|
+
props: /* @__PURE__ */ C({
|
|
21
16
|
modelValue: {},
|
|
22
17
|
functionalities: {},
|
|
23
18
|
exclude: { default: () => [] }
|
|
@@ -27,101 +22,65 @@ const xe = { class: "dpi-project-process-step V3-typography" }, ze = { class: "s
|
|
|
27
22
|
},
|
|
28
23
|
modelModifiers: {}
|
|
29
24
|
}),
|
|
30
|
-
emits: /* @__PURE__ */
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
33
|
-
lat:
|
|
34
|
-
lng:
|
|
35
|
-
}),
|
|
36
|
-
id:
|
|
37
|
-
functionalities:
|
|
38
|
-
locations:
|
|
25
|
+
emits: /* @__PURE__ */ C(["submit", "patch", "close"], ["update:modelValue"]),
|
|
26
|
+
setup(V, { emit: I }) {
|
|
27
|
+
const u = V, w = I, M = H(V, "modelValue"), c = !!u.modelValue, E = l(u.modelValue) || "", L = i.object({
|
|
28
|
+
lat: i.string().min(1, "Geben Sie einen Wert für die Breite ein"),
|
|
29
|
+
lng: i.string().min(1, "Geben Sie einen Wert für die Länge ein")
|
|
30
|
+
}), T = i.array(L), U = i.object({
|
|
31
|
+
id: i.string(),
|
|
32
|
+
functionalities: i.array(i.string()).min(1),
|
|
33
|
+
locations: T
|
|
39
34
|
}), {
|
|
40
|
-
defineField:
|
|
41
|
-
handleSubmit:
|
|
42
|
-
resetForm:
|
|
43
|
-
errors:
|
|
44
|
-
} =
|
|
45
|
-
validationSchema:
|
|
35
|
+
defineField: k,
|
|
36
|
+
handleSubmit: j,
|
|
37
|
+
resetForm: N,
|
|
38
|
+
errors: pe
|
|
39
|
+
} = ne({
|
|
40
|
+
validationSchema: ee(U),
|
|
46
41
|
initialValues: {
|
|
47
|
-
id:
|
|
48
|
-
functionalities:
|
|
42
|
+
id: u.modelValue || "",
|
|
43
|
+
functionalities: u.functionalities || [],
|
|
49
44
|
locations: []
|
|
50
45
|
},
|
|
51
46
|
name: "softwareForm"
|
|
52
|
-
}), [
|
|
53
|
-
remove:
|
|
54
|
-
push:
|
|
55
|
-
fields:
|
|
56
|
-
} =
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
}), [r, Z] = k("id"), [s] = k("functionalities"), {
|
|
48
|
+
remove: be,
|
|
49
|
+
push: Se,
|
|
50
|
+
fields: he
|
|
51
|
+
} = te("locations");
|
|
52
|
+
P(r, (t) => {
|
|
53
|
+
M.value = t || "";
|
|
59
54
|
}, { immediate: !0 });
|
|
60
|
-
const
|
|
61
|
-
function
|
|
62
|
-
|
|
55
|
+
const y = J(null);
|
|
56
|
+
function _(t) {
|
|
57
|
+
y.value = t;
|
|
63
58
|
}
|
|
64
|
-
const
|
|
65
|
-
var
|
|
66
|
-
return (((
|
|
67
|
-
}),
|
|
68
|
-
var
|
|
69
|
-
return ((
|
|
70
|
-
}), ne = s.object({
|
|
71
|
-
functionalitySelect: s.string().optional(),
|
|
72
|
-
functionalityInput: s.string().optional()
|
|
73
|
-
}).superRefine((n, t) => {
|
|
74
|
-
const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, i = n.functionalityInput && n.functionalityInput.trim().length > 0;
|
|
75
|
-
!e && !i && (t.addIssue({
|
|
76
|
-
code: s.ZodIssueCode.custom,
|
|
77
|
-
message: O,
|
|
78
|
-
path: ["functionalitySelect"]
|
|
79
|
-
}), t.addIssue({
|
|
80
|
-
code: s.ZodIssueCode.custom,
|
|
81
|
-
message: O,
|
|
82
|
-
path: ["functionalityInput"]
|
|
83
|
-
}));
|
|
84
|
-
}), {
|
|
85
|
-
defineField: T,
|
|
86
|
-
handleSubmit: ie,
|
|
87
|
-
errors: v,
|
|
88
|
-
resetForm: x
|
|
89
|
-
} = Z({
|
|
90
|
-
validationSchema: j(ne),
|
|
91
|
-
initialValues: {
|
|
92
|
-
functionalitySelect: "",
|
|
93
|
-
functionalityInput: ""
|
|
94
|
-
}
|
|
59
|
+
const v = b(() => !!r.value), F = b(() => {
|
|
60
|
+
var t;
|
|
61
|
+
return (((t = s.value) == null ? void 0 : t.length) ?? 0) > 0;
|
|
62
|
+
}), $ = b(() => {
|
|
63
|
+
var t;
|
|
64
|
+
return ((t = y.value) == null ? void 0 : t.functionalities) ?? [];
|
|
95
65
|
});
|
|
96
|
-
|
|
97
|
-
!!
|
|
66
|
+
P(r, (t, n) => {
|
|
67
|
+
!!n && !!t && t !== n && (s.value = []);
|
|
98
68
|
});
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return (e = (t = V == null ? void 0 : V.value) == null ? void 0 : t.filter((i) => !n.includes(i))) == null ? void 0 : e.sort((i, u) => i.localeCompare(u));
|
|
103
|
-
}), W = H((n) => {
|
|
104
|
-
h ? I("patch", {
|
|
105
|
-
id: q,
|
|
69
|
+
const z = j((t) => {
|
|
70
|
+
c ? w("patch", {
|
|
71
|
+
id: E,
|
|
106
72
|
software: {
|
|
107
|
-
id:
|
|
108
|
-
functionalities: Array.from(
|
|
73
|
+
id: t.id,
|
|
74
|
+
functionalities: Array.from(s.value || []).filter(Boolean)
|
|
109
75
|
}
|
|
110
|
-
}) :
|
|
111
|
-
id:
|
|
112
|
-
functionalities: Array.from(
|
|
113
|
-
}),
|
|
114
|
-
}), E = ie((n) => {
|
|
115
|
-
var e, i;
|
|
116
|
-
const t = n.functionalitySelect || n.functionalityInput;
|
|
117
|
-
t && t.trim().length > 0 && !((e = r.value) != null && e.includes(t)) && ((i = r.value) == null || i.push(t)), x();
|
|
76
|
+
}) : w("submit", {
|
|
77
|
+
id: t.id,
|
|
78
|
+
functionalities: Array.from(s.value || []).filter(Boolean)
|
|
79
|
+
}), N();
|
|
118
80
|
});
|
|
119
|
-
|
|
120
|
-
n && n.trim().length > 0 && E();
|
|
121
|
-
});
|
|
122
|
-
function re(n) {
|
|
81
|
+
function q(t) {
|
|
123
82
|
return [
|
|
124
|
-
...
|
|
83
|
+
...t,
|
|
125
84
|
{
|
|
126
85
|
id: "--software-in-request--",
|
|
127
86
|
name: "Software in Beantragung",
|
|
@@ -131,160 +90,100 @@ const xe = { class: "dpi-project-process-step V3-typography" }, ze = { class: "s
|
|
|
131
90
|
}
|
|
132
91
|
];
|
|
133
92
|
}
|
|
134
|
-
const { authToken:
|
|
135
|
-
return (
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
93
|
+
const { authToken: G, username: K } = oe(), O = b(() => `https://form.typeform.com/to/r9b1mAZL#token=${G.value}&account=${K.value}`);
|
|
94
|
+
return (t, n) => (d(), S("div", le, [
|
|
95
|
+
o("section", ae, [
|
|
96
|
+
c ? g("", !0) : (d(), S(D, { key: 0 }, [
|
|
97
|
+
n[4] || (n[4] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
|
|
98
|
+
n[5] || (n[5] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
|
|
140
99
|
], 64)),
|
|
141
|
-
a(
|
|
142
|
-
modelValue:
|
|
143
|
-
"onUpdate:modelValue":
|
|
144
|
-
},
|
|
100
|
+
a(ie, Q({
|
|
101
|
+
modelValue: l(r),
|
|
102
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => W(r) ? r.value = e : null)
|
|
103
|
+
}, l(Z), {
|
|
145
104
|
"base-url": "https://twin.bydata.de/api/hub/search",
|
|
146
105
|
resource: "software",
|
|
147
|
-
label:
|
|
106
|
+
label: c ? "Software auswählen" : "",
|
|
148
107
|
placeholder: "Wählen Sie eine Software.",
|
|
149
108
|
name: "software",
|
|
150
109
|
"setup-fn": (e) => {
|
|
151
|
-
var
|
|
110
|
+
var m, f, p, B, x, A;
|
|
152
111
|
return {
|
|
153
112
|
id: e == null ? void 0 : e.id,
|
|
154
|
-
name: ((
|
|
113
|
+
name: ((m = e == null ? void 0 : e.name) == null ? void 0 : m.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
|
|
155
114
|
functionalities: (e == null ? void 0 : e.functionalities) || [],
|
|
156
|
-
unavailable:
|
|
157
|
-
manufacturer: (
|
|
158
|
-
description: ((
|
|
115
|
+
unavailable: u.exclude.includes(e == null ? void 0 : e.id),
|
|
116
|
+
manufacturer: (B = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : B.label,
|
|
117
|
+
description: ((x = e == null ? void 0 : e.description) == null ? void 0 : x.de) || ((A = e == null ? void 0 : e.description) == null ? void 0 : A.en),
|
|
159
118
|
version: e == null ? void 0 : e.version
|
|
160
119
|
};
|
|
161
120
|
},
|
|
162
|
-
"post-process-fn":
|
|
163
|
-
onSelect:
|
|
121
|
+
"post-process-fn": q,
|
|
122
|
+
onSelect: _
|
|
164
123
|
}), {
|
|
165
|
-
option:
|
|
166
|
-
a(
|
|
124
|
+
option: X(({ option: e, active: m, selected: f, disabled: p }) => [
|
|
125
|
+
a(re, {
|
|
167
126
|
name: e.name,
|
|
168
127
|
manufacturer: e.manufacturer,
|
|
169
128
|
description: e.description,
|
|
170
|
-
active:
|
|
171
|
-
selected:
|
|
172
|
-
"is-disabled":
|
|
129
|
+
active: m,
|
|
130
|
+
selected: f,
|
|
131
|
+
"is-disabled": p
|
|
173
132
|
}, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
|
|
174
133
|
]),
|
|
175
134
|
_: 1
|
|
176
135
|
}, 16, ["modelValue", "label", "setup-fn"]),
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
href:
|
|
136
|
+
c ? g("", !0) : (d(), S(D, { key: 1 }, [
|
|
137
|
+
n[6] || (n[6] = o("h5", null, "oder", -1)),
|
|
138
|
+
n[7] || (n[7] = 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)),
|
|
139
|
+
o("div", ue, [
|
|
140
|
+
o("a", {
|
|
141
|
+
href: O.value,
|
|
183
142
|
target: "_blank"
|
|
184
143
|
}, [
|
|
185
|
-
a(
|
|
144
|
+
a(h, {
|
|
186
145
|
"button-text": "Zur Softwarebeantragung",
|
|
187
146
|
size: "medium",
|
|
188
147
|
variant: "secondary"
|
|
189
148
|
})
|
|
190
|
-
], 8,
|
|
149
|
+
], 8, ce)
|
|
191
150
|
])
|
|
192
151
|
], 64))
|
|
193
152
|
]),
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
id: e,
|
|
204
|
-
"onUpdate:modelValue": t[1] || (t[1] = (u) => k(r) ? r.value = u : null),
|
|
205
|
-
hidden: "",
|
|
206
|
-
value: e,
|
|
207
|
-
name: "selectedFunctionalities",
|
|
208
|
-
type: "checkbox"
|
|
209
|
-
}, { ref_for: !0 }, o(ee)), null, 16, De), [
|
|
210
|
-
[be, o(r)]
|
|
211
|
-
]),
|
|
212
|
-
a(Fe, {
|
|
213
|
-
as: "label",
|
|
214
|
-
for: e,
|
|
215
|
-
text: e,
|
|
216
|
-
setup: {
|
|
217
|
-
"@type": "select",
|
|
218
|
-
"@icon": "suffix",
|
|
219
|
-
"@inTable": !1,
|
|
220
|
-
"@search": !1,
|
|
221
|
-
"@selected": !0
|
|
222
|
-
},
|
|
223
|
-
data: { "@value": e, URI: e },
|
|
224
|
-
"select-value": !0
|
|
225
|
-
}, null, 8, ["for", "text", "data"])
|
|
226
|
-
]))), 128))
|
|
227
|
-
])) : w("", !0),
|
|
228
|
-
a(Ie, F({
|
|
229
|
-
modelValue: o(y),
|
|
230
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => k(y) ? y.value = e : null),
|
|
231
|
-
options: se.value,
|
|
232
|
-
"error-message": o(v).functionalitySelect,
|
|
233
|
-
label: "Funktionalitäten auswählen",
|
|
234
|
-
placeholder: "Wählen Sie eine Funktionalität.",
|
|
235
|
-
disabled: !S.value
|
|
236
|
-
}, o(oe)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
|
|
237
|
-
t[12] || (t[12] = l("h5", null, " oder ", -1)),
|
|
238
|
-
a(ke, F({
|
|
239
|
-
modelValue: o(z),
|
|
240
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => k(z) ? z.value = e : null),
|
|
241
|
-
"initial-hint-text": !!o(v).functionalityInput,
|
|
242
|
-
error_message: o(v).functionalityInput,
|
|
243
|
-
"show-error": !!o(v).functionalityInput,
|
|
244
|
-
"add-on-text": !1,
|
|
245
|
-
"date-picker": !1,
|
|
246
|
-
"info-icon": !1,
|
|
247
|
-
"show-end-icon": !1,
|
|
248
|
-
"pre-icon": !1,
|
|
249
|
-
"is-disabled": !S.value,
|
|
250
|
-
label: "Funktionalitäten nennen",
|
|
251
|
-
placeholder: "Nennen Sie eine Funktionalität."
|
|
252
|
-
}, o(le)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
|
|
253
|
-
l("div", Ue, [
|
|
254
|
-
a(b, {
|
|
255
|
-
"button-text": "Funktionalität hinzufügen",
|
|
256
|
-
size: "medium",
|
|
257
|
-
variant: "tertiary",
|
|
258
|
-
"icon-start": "plus",
|
|
259
|
-
disabled: !S.value,
|
|
260
|
-
onClick: o(E)
|
|
261
|
-
}, null, 8, ["disabled", "onClick"])
|
|
262
|
-
])
|
|
153
|
+
o("section", me, [
|
|
154
|
+
n[8] || (n[8] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
|
|
155
|
+
n[9] || (n[9] = 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)),
|
|
156
|
+
a(se, {
|
|
157
|
+
modelValue: l(s),
|
|
158
|
+
"onUpdate:modelValue": n[1] || (n[1] = (e) => W(s) ? s.value = e : null),
|
|
159
|
+
options: $.value,
|
|
160
|
+
disabled: !v.value
|
|
161
|
+
}, null, 8, ["modelValue", "options", "disabled"])
|
|
263
162
|
]),
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
a(
|
|
163
|
+
g("", !0),
|
|
164
|
+
o("section", de, [
|
|
165
|
+
c ? (d(), S("div", fe, [
|
|
166
|
+
a(h, {
|
|
268
167
|
"button-text": "Abbrechen",
|
|
269
168
|
variant: "tertiary",
|
|
270
|
-
onClick:
|
|
169
|
+
onClick: n[3] || (n[3] = (e) => w("close"))
|
|
271
170
|
}),
|
|
272
|
-
a(
|
|
171
|
+
a(h, {
|
|
273
172
|
"button-text": "Speichern",
|
|
274
|
-
disabled: !
|
|
275
|
-
onClick:
|
|
173
|
+
disabled: !v.value || !F.value,
|
|
174
|
+
onClick: l(z)
|
|
276
175
|
}, null, 8, ["disabled", "onClick"])
|
|
277
|
-
])) : (
|
|
176
|
+
])) : (d(), Y(h, {
|
|
278
177
|
key: 1,
|
|
279
178
|
"icon-start": "PlusSquare",
|
|
280
179
|
"button-text": "Software hinzufügen",
|
|
281
|
-
disabled: !
|
|
282
|
-
onClick:
|
|
180
|
+
disabled: !v.value || !F.value,
|
|
181
|
+
onClick: l(z)
|
|
283
182
|
}, null, 8, ["disabled", "onClick"]))
|
|
284
183
|
])
|
|
285
184
|
]));
|
|
286
185
|
}
|
|
287
186
|
});
|
|
288
187
|
export {
|
|
289
|
-
|
|
188
|
+
Be as default
|
|
290
189
|
};
|
|
@@ -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 p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6e65bae7"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|