@piveau/dpi 0.2.0-alpha.67 → 0.2.0-alpha.71
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/composables/useRuntimeEnv.js +3 -3
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +80 -73
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +39 -39
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +15 -10
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +90 -86
- 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 +51 -49
- 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 +549 -542
- 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 +69 -67
- 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 +152 -145
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +62 -60
- 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 +559 -522
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +69 -65
- package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +29 -29
- package/dist/packages/dpi/src/data-provider-interface/plugins/userConfigShimPlugin.js +2 -3
- package/package.json +5 -1
|
@@ -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 p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cf4172e9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import { defineHubSearch as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { defineComponent as te, ref as x, computed as _, watch as ne, toRef as ie, createBlock as d, openBlock as i, withCtx as u, createVNode as f, createElementBlock as o, createElementVNode as H, unref as S, isRef as le, Fragment as v, renderList as y, createCommentVNode as p, createTextVNode as z, toDisplayString as m, nextTick as re } from "vue";
|
|
2
|
+
import { FormKit as $ } from "@formkit/vue";
|
|
3
|
+
import { defineHubSearch as oe } from "@piveau/sdk-vue";
|
|
4
|
+
import ae from "zod";
|
|
5
|
+
import { useRuntimeEnv as ue } from "../../../../composables/useRuntimeEnv.js";
|
|
6
|
+
import se from "../../../components/StepActionsSection.vue.js";
|
|
7
|
+
import de from "../ActionCard.vue.js";
|
|
8
|
+
import me from "../Card.vue.js";
|
|
9
|
+
import pe from "../Chip.vue.js";
|
|
10
|
+
import ce from "../DpiModalBase.vue.js";
|
|
10
11
|
import c from "../SummaryBox.vue.js";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
12
|
+
import fe from "./AreYouSureToSkipCard.vue.js";
|
|
13
|
+
import O from "./HardwareForm.vue.js";
|
|
14
|
+
import ve from "./ProcessStepBase.vue.js";
|
|
14
15
|
/* empty css */
|
|
15
|
-
import { looseRenderable as h, useProcessStepResources as
|
|
16
|
-
const
|
|
16
|
+
import { looseRenderable as h, useProcessStepResources as ye } from "./utils.js";
|
|
17
|
+
const he = {
|
|
17
18
|
key: 0,
|
|
18
19
|
class: "software-step__card-list--empty"
|
|
19
|
-
},
|
|
20
|
+
}, we = {
|
|
20
21
|
key: 1,
|
|
21
22
|
class: "software-step__card-list"
|
|
22
|
-
},
|
|
23
|
+
}, ke = { class: "step-section step-section--lg" }, He = { class: "functionalities" }, Ge = /* @__PURE__ */ te({
|
|
23
24
|
__name: "HardwareStep",
|
|
24
25
|
props: {
|
|
25
26
|
stepGroup: {},
|
|
26
27
|
edit: { type: Boolean }
|
|
27
28
|
},
|
|
28
|
-
setup(
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
setup(F) {
|
|
30
|
+
var P;
|
|
31
|
+
const I = F, w = x(!1), a = x([]), A = ue(), { useResources: W } = oe({
|
|
32
|
+
baseUrl: ((P = A.api) == null ? void 0 : P.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
|
|
31
33
|
index: "resource",
|
|
32
34
|
indexDetails: "resources/hardware",
|
|
33
|
-
schema:
|
|
35
|
+
schema: ae.any()
|
|
34
36
|
}, (e) => {
|
|
35
|
-
var
|
|
36
|
-
const n = String((e == null ? void 0 : e.id) || ""), r = String(((
|
|
37
|
+
var T, C, E, N, U, G;
|
|
38
|
+
const n = String((e == null ? void 0 : e.id) || ""), r = String(((T = e == null ? void 0 : e.name) == null ? void 0 : T.de) || ((C = e == null ? void 0 : e.name) == null ? void 0 : C.en) || ""), t = (e == null ? void 0 : e.functionalities) || [], B = String(((N = (E = e == null ? void 0 : e.manufacturer) == null ? void 0 : E[0]) == null ? void 0 : N.label) || ""), l = String(((U = e == null ? void 0 : e.description) == null ? void 0 : U.de) || ((G = e == null ? void 0 : e.description) == null ? void 0 : G.en) || ""), s = String((e == null ? void 0 : e.version) || "");
|
|
37
39
|
return {
|
|
38
40
|
id: n,
|
|
39
41
|
name: r,
|
|
@@ -42,11 +44,11 @@ const fe = {
|
|
|
42
44
|
description: l,
|
|
43
45
|
version: s
|
|
44
46
|
};
|
|
45
|
-
}),
|
|
47
|
+
}), L = W(_(() => a.value.map((e) => ({
|
|
46
48
|
resourceId: e.id
|
|
47
|
-
})))),
|
|
49
|
+
})))), b = _(() => a.value.map((e, n) => {
|
|
48
50
|
var t;
|
|
49
|
-
const r = (t =
|
|
51
|
+
const r = (t = L.value[n]) == null ? void 0 : t.resultEnhanced;
|
|
50
52
|
return {
|
|
51
53
|
// The ones that come from API
|
|
52
54
|
id: e.id || (r == null ? void 0 : r.id),
|
|
@@ -65,71 +67,71 @@ const fe = {
|
|
|
65
67
|
isHostedByItems: h(e == null ? void 0 : e.isHostedBy),
|
|
66
68
|
hosts: h(e == null ? void 0 : e.hosts)
|
|
67
69
|
};
|
|
68
|
-
})), k = x(""),
|
|
69
|
-
|
|
70
|
-
!e && n &&
|
|
70
|
+
})), k = x(""), M = _(() => a.value.find((e) => e.id === k.value)), g = x(0);
|
|
71
|
+
ne(w, (e, n) => {
|
|
72
|
+
!e && n && g.value++;
|
|
71
73
|
});
|
|
72
|
-
function
|
|
74
|
+
function q(e) {
|
|
73
75
|
return a.value.find((n) => n.id === e);
|
|
74
76
|
}
|
|
75
|
-
function
|
|
77
|
+
function R(e) {
|
|
76
78
|
return a.value.findIndex((n) => n.id === e);
|
|
77
79
|
}
|
|
78
|
-
function
|
|
79
|
-
const n =
|
|
80
|
+
function K(e) {
|
|
81
|
+
const n = R(e);
|
|
80
82
|
n !== -1 && a.value.splice(n, 1);
|
|
81
83
|
}
|
|
82
|
-
async function
|
|
83
|
-
|
|
84
|
+
async function Z(e) {
|
|
85
|
+
q(e) && (k.value = e, g.value++, await re(), w.value = !0);
|
|
84
86
|
}
|
|
85
|
-
function
|
|
87
|
+
function D(e) {
|
|
86
88
|
a.value.push(e), w.value = !1, k.value = "";
|
|
87
89
|
}
|
|
88
|
-
function
|
|
89
|
-
const n =
|
|
90
|
+
function j(e) {
|
|
91
|
+
const n = R(e.id);
|
|
90
92
|
n !== -1 && (a.value.splice(n, 1), a.value.splice(n, 0, e.hardware), k.value = "", w.value = !1);
|
|
91
93
|
}
|
|
92
|
-
function
|
|
94
|
+
function J() {
|
|
93
95
|
w.value = !1;
|
|
94
96
|
}
|
|
95
|
-
const
|
|
96
|
-
return (e, n) => (i(), d(
|
|
97
|
+
const Q = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), X = _(() => "primary"), Y = ie(I, "edit"), { count: V, ensureHasOneResource: ee } = ye(I.stepGroup || "", Y);
|
|
98
|
+
return (e, n) => (i(), d(ve, {
|
|
97
99
|
title: "Geben Sie Informationen zur verwendeten Hardware an",
|
|
98
100
|
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
101
|
}, {
|
|
100
102
|
default: u(({ confirm: r }) => [
|
|
101
|
-
f(S(
|
|
103
|
+
f(S($), {
|
|
102
104
|
modelValue: S(V),
|
|
103
|
-
"onUpdate:modelValue": n[0] || (n[0] = (t) =>
|
|
105
|
+
"onUpdate:modelValue": n[0] || (n[0] = (t) => le(V) ? V.value = t : null),
|
|
104
106
|
type: "hidden",
|
|
105
107
|
name: "__resourceCount",
|
|
106
108
|
hidden: "",
|
|
107
109
|
"aria-hidden": "",
|
|
108
|
-
"validation-rules": { ensureHasOneResource: S(
|
|
110
|
+
"validation-rules": { ensureHasOneResource: S(ee) },
|
|
109
111
|
validation: "+ensureHasOneResource",
|
|
110
112
|
"validation-visibility": "live",
|
|
111
113
|
"validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
|
|
112
114
|
}, null, 8, ["modelValue", "validation-rules"]),
|
|
113
|
-
f(S(
|
|
115
|
+
f(S($), {
|
|
114
116
|
modelValue: a.value,
|
|
115
117
|
"onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
|
|
116
118
|
name: "selected",
|
|
117
119
|
type: "list",
|
|
118
120
|
hidden: ""
|
|
119
121
|
}, null, 8, ["modelValue"]),
|
|
120
|
-
|
|
121
|
-
(i(!0), o(v, null, y(
|
|
122
|
+
b.value.length ? (i(), o("section", we, [
|
|
123
|
+
(i(!0), o(v, null, y(b.value, (t, B) => (i(), d(de, {
|
|
122
124
|
key: B,
|
|
123
125
|
spaced: "",
|
|
124
126
|
class: "software-card",
|
|
125
|
-
onEdit: (l) =>
|
|
126
|
-
onDelete: (l) => r({ id: t.id || "", resourceType: "Hardware", resource: t.name, callback:
|
|
127
|
+
onEdit: (l) => Z(t.id),
|
|
128
|
+
onDelete: (l) => r({ id: t.id || "", resourceType: "Hardware", resource: t.name, callback: K })
|
|
127
129
|
}, {
|
|
128
130
|
"standalone-name": u(() => n[5] || (n[5] = [
|
|
129
131
|
z(" Hardware ", -1)
|
|
130
132
|
])),
|
|
131
133
|
default: u(() => [
|
|
132
|
-
H("div",
|
|
134
|
+
H("div", ke, [
|
|
133
135
|
f(c, { title: "Name" }, {
|
|
134
136
|
default: u(() => [
|
|
135
137
|
z(m(t.name), 1)
|
|
@@ -138,8 +140,8 @@ const fe = {
|
|
|
138
140
|
}, 1024),
|
|
139
141
|
f(c, { title: "Genutzte Funktionalitäten" }, {
|
|
140
142
|
default: u(() => [
|
|
141
|
-
H("div",
|
|
142
|
-
(i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(
|
|
143
|
+
H("div", He, [
|
|
144
|
+
(i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(pe, {
|
|
143
145
|
key: l,
|
|
144
146
|
"no-border": "",
|
|
145
147
|
text: l,
|
|
@@ -224,8 +226,8 @@ const fe = {
|
|
|
224
226
|
]),
|
|
225
227
|
_: 2
|
|
226
228
|
}, 1032, ["onEdit", "onDelete"]))), 128))
|
|
227
|
-
])) : (i(), o("section",
|
|
228
|
-
f(
|
|
229
|
+
])) : (i(), o("section", he, [
|
|
230
|
+
f(me, {
|
|
229
231
|
small: "",
|
|
230
232
|
class: "empty-card"
|
|
231
233
|
}, {
|
|
@@ -236,23 +238,23 @@ const fe = {
|
|
|
236
238
|
__: [4]
|
|
237
239
|
})
|
|
238
240
|
])),
|
|
239
|
-
f(
|
|
241
|
+
f(O, {
|
|
240
242
|
exclude: a.value.map((t) => t.id),
|
|
241
|
-
onSubmit:
|
|
243
|
+
onSubmit: D
|
|
242
244
|
}, null, 8, ["exclude"]),
|
|
243
245
|
H("section", null, [
|
|
244
|
-
f(
|
|
246
|
+
f(se, {
|
|
245
247
|
class: "software-step-actions",
|
|
246
|
-
"next-text":
|
|
247
|
-
"next-variant":
|
|
248
|
+
"next-text": Q.value,
|
|
249
|
+
"next-variant": X.value,
|
|
248
250
|
"show-detailed-error-summary": ""
|
|
249
251
|
}, null, 8, ["next-text", "next-variant"]),
|
|
250
|
-
|
|
252
|
+
b.value.length === 0 ? (i(), d(fe, {
|
|
251
253
|
key: 0,
|
|
252
254
|
"resource-label": "Hardware"
|
|
253
255
|
})) : p("", !0)
|
|
254
256
|
]),
|
|
255
|
-
f(
|
|
257
|
+
f(ce, {
|
|
256
258
|
modelValue: w.value,
|
|
257
259
|
"onUpdate:modelValue": n[3] || (n[3] = (t) => w.value = t),
|
|
258
260
|
"hide-close-btn": !0,
|
|
@@ -260,15 +262,15 @@ const fe = {
|
|
|
260
262
|
title: "Hardware"
|
|
261
263
|
}, {
|
|
262
264
|
default: u(() => [
|
|
263
|
-
k.value ? (i(), d(
|
|
264
|
-
key:
|
|
265
|
+
k.value ? (i(), d(O, {
|
|
266
|
+
key: g.value,
|
|
265
267
|
modelValue: k.value,
|
|
266
268
|
"onUpdate:modelValue": n[2] || (n[2] = (t) => k.value = t),
|
|
267
|
-
"initialize-with":
|
|
269
|
+
"initialize-with": M.value,
|
|
268
270
|
exclude: a.value.map((t) => t.id),
|
|
269
|
-
onSubmit:
|
|
270
|
-
onPatch:
|
|
271
|
-
onClose:
|
|
271
|
+
onSubmit: D,
|
|
272
|
+
onPatch: j,
|
|
273
|
+
onClose: J
|
|
272
274
|
}, null, 8, ["modelValue", "initialize-with", "exclude"])) : p("", !0)
|
|
273
275
|
]),
|
|
274
276
|
_: 1
|
|
@@ -279,5 +281,5 @@ const fe = {
|
|
|
279
281
|
}
|
|
280
282
|
});
|
|
281
283
|
export {
|
|
282
|
-
|
|
284
|
+
Ge as default
|
|
283
285
|
};
|
|
@@ -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-eb28de56"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { toTypedSchema as
|
|
3
|
-
import { useForm as
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as J, mergeModels as W, useModel as Q, unref as i, watch as E, ref as X, computed as b, createElementBlock as h, openBlock as m, createElementVNode as o, createCommentVNode as k, createVNode as a, Fragment as I, mergeProps as Y, isRef as M, withCtx as ee, createBlock as ne } from "vue";
|
|
2
|
+
import { toTypedSchema as te } 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 oe, useFieldArray as ie } from "vee-validate";
|
|
4
|
+
import * as s from "zod";
|
|
5
|
+
import { useRuntimeEnv as se } from "../../../../composables/useRuntimeEnv.js";
|
|
6
|
+
import { useTwinbyUser as re } from "../../../composables/useTwinbyUser.js";
|
|
7
|
+
import le from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
7
8
|
import S from "../ButtonV3.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import ae from "./FunctionalityForm.vue.js";
|
|
10
|
+
import ue from "./RichOption.vue.js";
|
|
11
|
+
const ce = { class: "dpi-project-process-step V3-typography" }, me = { class: "step-section" }, de = { class: "step-section-actions" }, fe = ["href"], pe = { class: "step-section" }, be = { class: "step-section-actions" }, he = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "button-row"
|
|
13
|
-
},
|
|
14
|
+
}, Pe = /* @__PURE__ */ J({
|
|
14
15
|
__name: "SoftwareForm",
|
|
15
|
-
props: /* @__PURE__ */
|
|
16
|
+
props: /* @__PURE__ */ W({
|
|
16
17
|
modelValue: {},
|
|
17
18
|
functionalities: {},
|
|
18
19
|
exclude: { default: () => [] }
|
|
@@ -22,65 +23,65 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
|
|
|
22
23
|
},
|
|
23
24
|
modelModifiers: {}
|
|
24
25
|
}),
|
|
25
|
-
emits: /* @__PURE__ */
|
|
26
|
-
setup(
|
|
27
|
-
const u =
|
|
28
|
-
lat:
|
|
29
|
-
lng:
|
|
30
|
-
}),
|
|
31
|
-
id:
|
|
32
|
-
functionalities:
|
|
33
|
-
locations:
|
|
26
|
+
emits: /* @__PURE__ */ W(["submit", "patch", "close"], ["update:modelValue"]),
|
|
27
|
+
setup(V, { emit: U }) {
|
|
28
|
+
const u = V, w = U, L = Q(V, "modelValue"), c = !!u.modelValue, T = i(u.modelValue) || "", $ = s.object({
|
|
29
|
+
lat: s.string().min(1, "Geben Sie einen Wert für die Breite ein"),
|
|
30
|
+
lng: s.string().min(1, "Geben Sie einen Wert für die Länge ein")
|
|
31
|
+
}), j = s.array($), N = s.object({
|
|
32
|
+
id: s.string(),
|
|
33
|
+
functionalities: s.array(s.string()).min(1),
|
|
34
|
+
locations: j
|
|
34
35
|
}), {
|
|
35
|
-
defineField:
|
|
36
|
-
handleSubmit:
|
|
36
|
+
defineField: y,
|
|
37
|
+
handleSubmit: R,
|
|
37
38
|
resetForm: Z,
|
|
38
|
-
errors:
|
|
39
|
-
} =
|
|
40
|
-
validationSchema:
|
|
39
|
+
errors: Se
|
|
40
|
+
} = oe({
|
|
41
|
+
validationSchema: te(N),
|
|
41
42
|
initialValues: {
|
|
42
43
|
id: u.modelValue || "",
|
|
43
44
|
functionalities: u.functionalities || [],
|
|
44
45
|
locations: []
|
|
45
46
|
},
|
|
46
47
|
name: "softwareForm"
|
|
47
|
-
}), [l, _] =
|
|
48
|
-
remove:
|
|
49
|
-
push:
|
|
50
|
-
fields:
|
|
51
|
-
} =
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
}), [l, _] = y("id"), [r] = y("functionalities"), {
|
|
49
|
+
remove: we,
|
|
50
|
+
push: ve,
|
|
51
|
+
fields: ge
|
|
52
|
+
} = ie("locations");
|
|
53
|
+
E(l, (n) => {
|
|
54
|
+
L.value = n || "";
|
|
54
55
|
}, { immediate: !0 });
|
|
55
|
-
const
|
|
56
|
-
function
|
|
57
|
-
|
|
56
|
+
const F = X(null);
|
|
57
|
+
function q(n) {
|
|
58
|
+
F.value = n;
|
|
58
59
|
}
|
|
59
|
-
const v = b(() => !!l.value),
|
|
60
|
-
var
|
|
61
|
-
return (((
|
|
62
|
-
}),
|
|
63
|
-
var
|
|
64
|
-
return ((
|
|
60
|
+
const v = b(() => !!l.value), z = b(() => {
|
|
61
|
+
var n;
|
|
62
|
+
return (((n = r.value) == null ? void 0 : n.length) ?? 0) > 0;
|
|
63
|
+
}), G = b(() => {
|
|
64
|
+
var n;
|
|
65
|
+
return ((n = F.value) == null ? void 0 : n.functionalities) ?? [];
|
|
65
66
|
});
|
|
66
|
-
|
|
67
|
-
!!
|
|
67
|
+
E(l, (n, t) => {
|
|
68
|
+
!!t && !!n && n !== t && (r.value = []);
|
|
68
69
|
});
|
|
69
|
-
const
|
|
70
|
+
const B = R((n) => {
|
|
70
71
|
c ? w("patch", {
|
|
71
|
-
id:
|
|
72
|
+
id: T,
|
|
72
73
|
software: {
|
|
73
|
-
id:
|
|
74
|
-
functionalities: Array.from(
|
|
74
|
+
id: n.id,
|
|
75
|
+
functionalities: Array.from(r.value || []).filter(Boolean)
|
|
75
76
|
}
|
|
76
77
|
}) : w("submit", {
|
|
77
|
-
id:
|
|
78
|
-
functionalities: Array.from(
|
|
78
|
+
id: n.id,
|
|
79
|
+
functionalities: Array.from(r.value || []).filter(Boolean)
|
|
79
80
|
}), Z();
|
|
80
81
|
});
|
|
81
|
-
function
|
|
82
|
+
function K(n) {
|
|
82
83
|
return [
|
|
83
|
-
...
|
|
84
|
+
...n,
|
|
84
85
|
{
|
|
85
86
|
id: "--software-in-request--",
|
|
86
87
|
name: "Software in Beantragung",
|
|
@@ -90,101 +91,107 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
|
|
|
90
91
|
}
|
|
91
92
|
];
|
|
92
93
|
}
|
|
93
|
-
const { authToken:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
94
|
+
const x = se(), { authToken: A, username: O } = re(), H = b(() => {
|
|
95
|
+
var n;
|
|
96
|
+
return `${((n = x.typeform) == null ? void 0 : n.software) ?? "https://form.typeform.com/to/r9b1mAZL"}#token=${A.value}&account=${O.value}`;
|
|
97
|
+
});
|
|
98
|
+
return (n, t) => {
|
|
99
|
+
var g;
|
|
100
|
+
return m(), h("div", ce, [
|
|
101
|
+
o("section", me, [
|
|
102
|
+
c ? k("", !0) : (m(), h(I, { key: 0 }, [
|
|
103
|
+
t[4] || (t[4] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
|
|
104
|
+
t[5] || (t[5] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
|
|
105
|
+
], 64)),
|
|
106
|
+
a(le, Y({
|
|
107
|
+
modelValue: i(l),
|
|
108
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => M(l) ? l.value = e : null)
|
|
109
|
+
}, i(_), {
|
|
110
|
+
"base-url": ((g = i(x).api) == null ? void 0 : g.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
|
|
111
|
+
resource: "software",
|
|
112
|
+
label: c ? "Software auswählen" : "",
|
|
113
|
+
placeholder: "Wählen Sie eine Software.",
|
|
114
|
+
name: "software",
|
|
115
|
+
"setup-fn": (e) => {
|
|
116
|
+
var d, f, p, C, P, D;
|
|
117
|
+
return {
|
|
118
|
+
id: e == null ? void 0 : e.id,
|
|
119
|
+
name: ((d = e == null ? void 0 : e.name) == null ? void 0 : d.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
|
|
120
|
+
functionalities: (e == null ? void 0 : e.functionalities) || [],
|
|
121
|
+
unavailable: u.exclude.includes(e == null ? void 0 : e.id),
|
|
122
|
+
manufacturer: (C = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : C.label,
|
|
123
|
+
description: ((P = e == null ? void 0 : e.description) == null ? void 0 : P.de) || ((D = e == null ? void 0 : e.description) == null ? void 0 : D.en),
|
|
124
|
+
version: e == null ? void 0 : e.version
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
"post-process-fn": K,
|
|
128
|
+
"auth-token": i(A),
|
|
129
|
+
onSelect: q
|
|
130
|
+
}), {
|
|
131
|
+
option: ee(({ option: e, active: d, selected: f, disabled: p }) => [
|
|
132
|
+
a(ue, {
|
|
133
|
+
name: e.name,
|
|
134
|
+
manufacturer: e.manufacturer,
|
|
135
|
+
description: e.description,
|
|
136
|
+
active: d,
|
|
137
|
+
selected: f,
|
|
138
|
+
"is-disabled": p
|
|
139
|
+
}, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 16, ["modelValue", "base-url", "label", "setup-fn", "auth-token"]),
|
|
143
|
+
c ? k("", !0) : (m(), h(I, { key: 1 }, [
|
|
144
|
+
t[6] || (t[6] = o("h5", null, "oder", -1)),
|
|
145
|
+
t[7] || (t[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)),
|
|
146
|
+
o("div", de, [
|
|
147
|
+
o("a", {
|
|
148
|
+
href: H.value,
|
|
149
|
+
target: "_blank"
|
|
150
|
+
}, [
|
|
151
|
+
a(S, {
|
|
152
|
+
"button-text": "Zur Softwarebeantragung",
|
|
153
|
+
size: "medium",
|
|
154
|
+
variant: "secondary"
|
|
155
|
+
})
|
|
156
|
+
], 8, fe)
|
|
157
|
+
])
|
|
158
|
+
], 64))
|
|
159
|
+
]),
|
|
160
|
+
o("section", pe, [
|
|
161
|
+
t[8] || (t[8] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
|
|
162
|
+
t[9] || (t[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)),
|
|
163
|
+
a(ae, {
|
|
164
|
+
modelValue: i(r),
|
|
165
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => M(r) ? r.value = e : null),
|
|
166
|
+
options: G.value,
|
|
167
|
+
disabled: !v.value
|
|
168
|
+
}, null, 8, ["modelValue", "options", "disabled"])
|
|
169
|
+
]),
|
|
170
|
+
k("", !0),
|
|
171
|
+
o("section", be, [
|
|
172
|
+
c ? (m(), h("div", he, [
|
|
173
|
+
a(S, {
|
|
174
|
+
"button-text": "Abbrechen",
|
|
175
|
+
variant: "tertiary",
|
|
176
|
+
onClick: t[3] || (t[3] = (e) => w("close"))
|
|
177
|
+
}),
|
|
178
|
+
a(S, {
|
|
179
|
+
"button-text": "Speichern",
|
|
180
|
+
disabled: !v.value || !z.value,
|
|
181
|
+
onClick: i(B)
|
|
182
|
+
}, null, 8, ["disabled", "onClick"])
|
|
183
|
+
])) : (m(), ne(S, {
|
|
184
|
+
key: 1,
|
|
185
|
+
"icon-start": "PlusSquare",
|
|
186
|
+
"button-text": "Software hinzufügen",
|
|
187
|
+
disabled: !v.value || !z.value,
|
|
188
|
+
onClick: i(B)
|
|
189
|
+
}, null, 8, ["disabled", "onClick"]))
|
|
190
|
+
])
|
|
191
|
+
]);
|
|
192
|
+
};
|
|
186
193
|
}
|
|
187
194
|
});
|
|
188
195
|
export {
|
|
189
|
-
|
|
196
|
+
Pe as default
|
|
190
197
|
};
|
|
@@ -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 e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-401969d4"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|