@piveau/dpi 0.2.0-alpha.21 → 0.2.0-alpha.22
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/ProcessSteps/HardwareForm.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +108 -105
- package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +38 -38
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HardwareForm.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-6990414c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as wt, mergeModels as
|
|
2
|
-
import { toTypedSchema as
|
|
3
|
-
import { useForm as
|
|
1
|
+
import { defineComponent as wt, mergeModels as ve, useModel as gt, unref as i, watch as O, ref as be, computed as w, createElementBlock as p, openBlock as d, createElementVNode as o, createCommentVNode as F, createVNode as u, mergeProps as g, isRef as k, withCtx as y, Fragment as S, renderList as V, withDirectives as we, vModelCheckbox as ge, createBlock as z } from "vue";
|
|
2
|
+
import { toTypedSchema as j } 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 q, useFieldArray as x } from "vee-validate";
|
|
4
4
|
import * as s from "zod";
|
|
5
5
|
import { useTwinbyUser as kt } from "../../../composables/useTwinbyUser.js";
|
|
6
6
|
import yt from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
@@ -20,9 +20,9 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
20
20
|
}, _t = ["id", "value"], Gt = { class: "step-section-actions" }, Rt = { class: "step-section" }, Et = { class: "step-section-actions" }, Nt = { class: "step-section" }, Tt = { class: "step-section-actions" }, Mt = { class: "step-section" }, Ot = { class: "step-section-actions" }, jt = { class: "step-section-actions" }, qt = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "button-row"
|
|
23
|
-
}, ze = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Ve = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.",
|
|
23
|
+
}, ze = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Ve = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.", D = 500, an = /* @__PURE__ */ wt({
|
|
24
24
|
__name: "HardwareForm",
|
|
25
|
-
props: /* @__PURE__ */
|
|
25
|
+
props: /* @__PURE__ */ ve({
|
|
26
26
|
modelValue: {},
|
|
27
27
|
initializeWith: {},
|
|
28
28
|
exclude: { default: () => [] }
|
|
@@ -32,10 +32,10 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
32
32
|
},
|
|
33
33
|
modelModifiers: {}
|
|
34
34
|
}),
|
|
35
|
-
emits: /* @__PURE__ */
|
|
36
|
-
setup(
|
|
37
|
-
var le, oe, se, re, ae, ue, de, ce, pe
|
|
38
|
-
const m =
|
|
35
|
+
emits: /* @__PURE__ */ ve(["submit", "patch", "close"], ["update:modelValue"]),
|
|
36
|
+
setup(K, { emit: Ie }) {
|
|
37
|
+
var ie, le, oe, se, re, ae, ue, de, ce, pe;
|
|
38
|
+
const m = K, Z = Ie, Fe = gt(K, "modelValue"), B = !!m.modelValue, He = i(m.modelValue) || "", xe = s.object({
|
|
39
39
|
lat: s.string().min(1, "Geben Sie einen Wert für die Breite ein"),
|
|
40
40
|
lng: s.string().min(1, "Geben Sie einen Wert für die Länge ein")
|
|
41
41
|
}), Be = s.array(xe), $e = s.object({
|
|
@@ -43,7 +43,7 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
43
43
|
url: s.string().min(1, "Geben Sie eine URL ein").default(""),
|
|
44
44
|
description: s.string().min(1, "Geben Sie eine Beschreibung ein").default("")
|
|
45
45
|
});
|
|
46
|
-
function
|
|
46
|
+
function Q(n) {
|
|
47
47
|
return Array.isArray(n) ? n : n != null ? [n] : [];
|
|
48
48
|
}
|
|
49
49
|
const Ue = s.object({
|
|
@@ -61,21 +61,21 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
61
61
|
handleSubmit: Ae,
|
|
62
62
|
resetForm: Ce,
|
|
63
63
|
errors: c
|
|
64
|
-
} =
|
|
65
|
-
validationSchema:
|
|
64
|
+
} = q({
|
|
65
|
+
validationSchema: j(Ue),
|
|
66
66
|
initialValues: {
|
|
67
67
|
id: m.modelValue || "",
|
|
68
|
-
description: ((
|
|
69
|
-
functionalities: ((
|
|
70
|
-
forProperty: ((
|
|
71
|
-
locations: ((
|
|
72
|
-
depictions: ((
|
|
73
|
-
references: ((
|
|
74
|
-
isHostedBy:
|
|
75
|
-
hosts:
|
|
68
|
+
description: ((ie = m.initializeWith) == null ? void 0 : ie.description) || "",
|
|
69
|
+
functionalities: ((le = m.initializeWith) == null ? void 0 : le.functionalities) || [],
|
|
70
|
+
forProperty: ((oe = m.initializeWith) == null ? void 0 : oe.forProperty) || [],
|
|
71
|
+
locations: ((se = m.initializeWith) == null ? void 0 : se.locations) || [],
|
|
72
|
+
depictions: ((re = m.initializeWith) == null ? void 0 : re.depictions) || [],
|
|
73
|
+
references: ((ae = m.initializeWith) == null ? void 0 : ae.references) || [],
|
|
74
|
+
isHostedBy: Q((ue = m.initializeWith) == null ? void 0 : ue.isHostedBy),
|
|
75
|
+
hosts: Q((de = m.initializeWith) == null ? void 0 : de.hosts)
|
|
76
76
|
},
|
|
77
77
|
name: "hardwareForm"
|
|
78
|
-
}), [I, Pe] = $("id"), [v, De] = $("functionalities"), [h, Ze] = $("forProperty"), [
|
|
78
|
+
}), [I, Pe] = $("id"), [v, De] = $("functionalities"), [h, Ze] = $("forProperty"), [U, Le] = $("description"), {
|
|
79
79
|
remove: We,
|
|
80
80
|
push: _e,
|
|
81
81
|
fields: Ge
|
|
@@ -99,7 +99,7 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
99
99
|
O(I, (n) => {
|
|
100
100
|
Fe.value = n || "";
|
|
101
101
|
}, { immediate: !0 });
|
|
102
|
-
const
|
|
102
|
+
const L = be(null);
|
|
103
103
|
function Xe(n) {
|
|
104
104
|
const t = {
|
|
105
105
|
id: String(n.id || ""),
|
|
@@ -111,17 +111,17 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
111
111
|
version: n.version,
|
|
112
112
|
unavailable: n.unavailable
|
|
113
113
|
};
|
|
114
|
-
|
|
114
|
+
L.value = t;
|
|
115
115
|
}
|
|
116
|
-
const r = w(() => !!I.value),
|
|
116
|
+
const r = w(() => !!I.value), Y = w(() => {
|
|
117
117
|
var n;
|
|
118
118
|
return (((n = v.value) == null ? void 0 : n.length) ?? 0) > 0;
|
|
119
119
|
}), et = w(() => {
|
|
120
120
|
var n;
|
|
121
|
-
return ((n =
|
|
121
|
+
return ((n = L.value) == null ? void 0 : n.functionalities) ?? [];
|
|
122
122
|
}), tt = w(() => {
|
|
123
123
|
var n;
|
|
124
|
-
return ((n =
|
|
124
|
+
return ((n = L.value) == null ? void 0 : n.forProperty) ?? [];
|
|
125
125
|
}), nt = s.object({
|
|
126
126
|
functionalitySelect: s.string().optional(),
|
|
127
127
|
functionalityInput: s.string().optional()
|
|
@@ -137,12 +137,12 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
137
137
|
path: ["functionalityInput"]
|
|
138
138
|
}));
|
|
139
139
|
}), {
|
|
140
|
-
defineField:
|
|
140
|
+
defineField: J,
|
|
141
141
|
handleSubmit: it,
|
|
142
|
-
errors:
|
|
143
|
-
resetForm:
|
|
144
|
-
} =
|
|
145
|
-
validationSchema:
|
|
142
|
+
errors: W,
|
|
143
|
+
resetForm: _
|
|
144
|
+
} = q({
|
|
145
|
+
validationSchema: j(nt),
|
|
146
146
|
initialValues: {
|
|
147
147
|
functionalitySelect: "",
|
|
148
148
|
functionalityInput: ""
|
|
@@ -162,25 +162,25 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
162
162
|
path: ["zweckInput"]
|
|
163
163
|
}));
|
|
164
164
|
}), {
|
|
165
|
-
defineField:
|
|
165
|
+
defineField: X,
|
|
166
166
|
handleSubmit: ot,
|
|
167
|
-
errors:
|
|
168
|
-
resetForm:
|
|
169
|
-
} =
|
|
170
|
-
validationSchema:
|
|
167
|
+
errors: G,
|
|
168
|
+
resetForm: R
|
|
169
|
+
} = q({
|
|
170
|
+
validationSchema: j(lt),
|
|
171
171
|
initialValues: {
|
|
172
172
|
zweckSelect: "",
|
|
173
173
|
zweckInput: ""
|
|
174
174
|
}
|
|
175
175
|
});
|
|
176
176
|
O(I, (n, t) => {
|
|
177
|
-
!!t && !!n && n !== t && (
|
|
177
|
+
!!t && !!n && n !== t && (_(), v.value = [], R(), h.value = []);
|
|
178
178
|
});
|
|
179
|
-
const [
|
|
179
|
+
const [A, st] = J("functionalitySelect"), [E, rt] = J("functionalityInput"), ee = w(() => Array.from(v.value || [])), [N, at] = X("zweckSelect"), [T, ut] = X("zweckInput"), C = w(() => h.value && h.value.length > 0), M = be(!!((pe = (ce = m.initializeWith) == null ? void 0 : ce.forProperty) != null && pe.length));
|
|
180
180
|
function dt() {
|
|
181
181
|
h.value = [];
|
|
182
182
|
}
|
|
183
|
-
const
|
|
183
|
+
const te = Ae((n) => {
|
|
184
184
|
const t = {
|
|
185
185
|
id: n.id,
|
|
186
186
|
description: n.description || "",
|
|
@@ -196,17 +196,17 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
196
196
|
isHostedBy: (n.isHostedBy || []).filter(Boolean),
|
|
197
197
|
hosts: (n.hosts || []).filter(Boolean)
|
|
198
198
|
};
|
|
199
|
-
B ?
|
|
199
|
+
B ? Z("patch", {
|
|
200
200
|
id: He,
|
|
201
201
|
hardware: t
|
|
202
|
-
}) :
|
|
203
|
-
}),
|
|
202
|
+
}) : Z("submit", t), _(), R(), Ce();
|
|
203
|
+
}), ne = it((n) => {
|
|
204
204
|
var e, l;
|
|
205
205
|
const t = n.functionalitySelect || n.functionalityInput;
|
|
206
|
-
t && t.trim().length > 0 && !((e = v.value) != null && e.includes(t)) && ((l = v.value) == null || l.push(t)),
|
|
206
|
+
t && t.trim().length > 0 && !((e = v.value) != null && e.includes(t)) && ((l = v.value) == null || l.push(t)), _();
|
|
207
207
|
});
|
|
208
|
-
O(
|
|
209
|
-
n && n.trim().length > 0 &&
|
|
208
|
+
O(A, (n) => {
|
|
209
|
+
n && n.trim().length > 0 && ne();
|
|
210
210
|
});
|
|
211
211
|
function ct(n) {
|
|
212
212
|
return [
|
|
@@ -223,8 +223,11 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
223
223
|
const pt = ot((n) => {
|
|
224
224
|
var e, l;
|
|
225
225
|
const t = n.zweckSelect || n.zweckInput;
|
|
226
|
-
t && t.trim().length > 0 && !((e = h.value) != null && e.includes(t)) && ((l = h.value) == null || l.push(t)),
|
|
227
|
-
}),
|
|
226
|
+
t && t.trim().length > 0 && !((e = h.value) != null && e.includes(t)) && ((l = h.value) == null || l.push(t)), R();
|
|
227
|
+
}), mt = w(() => {
|
|
228
|
+
var n;
|
|
229
|
+
return ((n = U.value) == null ? void 0 : n.length) || 0;
|
|
230
|
+
});
|
|
228
231
|
function ft(n) {
|
|
229
232
|
var t;
|
|
230
233
|
return ((t = n.value.description) == null ? void 0 : t.length) ?? 0;
|
|
@@ -235,7 +238,7 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
235
238
|
B ? F("", !0) : (d(), p("h5", It, "Wählen Sie eine bestehende Hardware")),
|
|
236
239
|
u(yt, g({
|
|
237
240
|
modelValue: i(I),
|
|
238
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) =>
|
|
241
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => k(I) ? I.value = e : null),
|
|
239
242
|
label: "Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen."
|
|
240
243
|
}, i(Pe), {
|
|
241
244
|
"base-url": "https://twin.bydata.de/api/hub/search",
|
|
@@ -243,34 +246,34 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
243
246
|
placeholder: "Hardware...",
|
|
244
247
|
name: "hardware",
|
|
245
248
|
"setup-fn": (e) => {
|
|
246
|
-
var l, a,
|
|
249
|
+
var l, a, P, me, fe, he;
|
|
247
250
|
return {
|
|
248
251
|
id: e == null ? void 0 : e.id,
|
|
249
252
|
name: ((l = e == null ? void 0 : e.name) == null ? void 0 : l.de) || ((a = e == null ? void 0 : e.name) == null ? void 0 : a.en),
|
|
250
253
|
functionalities: (e == null ? void 0 : e.functionalities) || [],
|
|
251
254
|
forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
|
|
252
255
|
unavailable: m.exclude.includes(e == null ? void 0 : e.id),
|
|
253
|
-
manufacturer: (
|
|
254
|
-
description: ((
|
|
256
|
+
manufacturer: (me = (P = e == null ? void 0 : e.manufacturer) == null ? void 0 : P[0]) == null ? void 0 : me.label,
|
|
257
|
+
description: ((fe = e == null ? void 0 : e.description) == null ? void 0 : fe.de) || ((he = e == null ? void 0 : e.description) == null ? void 0 : he.en),
|
|
255
258
|
version: e == null ? void 0 : e.version
|
|
256
259
|
};
|
|
257
260
|
},
|
|
258
261
|
"post-process-fn": ct,
|
|
259
262
|
onSelect: Xe
|
|
260
263
|
}), {
|
|
261
|
-
option:
|
|
264
|
+
option: y(({ option: e, active: l, selected: a, disabled: P }) => [
|
|
262
265
|
u(St, {
|
|
263
266
|
name: e.name,
|
|
264
267
|
manufacturer: e.manufacturer,
|
|
265
268
|
description: e.description,
|
|
266
269
|
active: l,
|
|
267
270
|
selected: a,
|
|
268
|
-
disabled:
|
|
271
|
+
disabled: P
|
|
269
272
|
}, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
|
|
270
273
|
]),
|
|
271
274
|
_: 1
|
|
272
275
|
}, 16, ["modelValue", "setup-fn"]),
|
|
273
|
-
B ? F("", !0) : (d(), p(
|
|
276
|
+
B ? F("", !0) : (d(), p(S, { key: 1 }, [
|
|
274
277
|
t[15] || (t[15] = o("h5", null, "oder", -1)),
|
|
275
278
|
t[16] || (t[16] = o("p", null, " Sollte die verwendete Hardware 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 „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
|
|
276
279
|
o("div", Ft, [
|
|
@@ -290,14 +293,14 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
290
293
|
o("section", xt, [
|
|
291
294
|
t[17] || (t[17] = o("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
|
|
292
295
|
t[18] || (t[18] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
|
|
293
|
-
|
|
294
|
-
(d(!0), p(
|
|
296
|
+
ee.value.length > 0 ? (d(), p("div", Bt, [
|
|
297
|
+
(d(!0), p(S, null, V(ee.value, (e, l) => (d(), p("div", {
|
|
295
298
|
key: l,
|
|
296
299
|
class: "functionalities"
|
|
297
300
|
}, [
|
|
298
301
|
we(o("input", g({
|
|
299
302
|
id: e,
|
|
300
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) =>
|
|
303
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => k(v) ? v.value = a : null),
|
|
301
304
|
hidden: "",
|
|
302
305
|
value: e,
|
|
303
306
|
name: "selectedFunctionalities",
|
|
@@ -322,20 +325,20 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
322
325
|
]))), 128))
|
|
323
326
|
])) : F("", !0),
|
|
324
327
|
u(ye, g({
|
|
325
|
-
modelValue: i(
|
|
326
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) =>
|
|
328
|
+
modelValue: i(A),
|
|
329
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => k(A) ? A.value = e : null),
|
|
327
330
|
options: et.value,
|
|
328
|
-
"error-message": i(
|
|
331
|
+
"error-message": i(W).functionalitySelect,
|
|
329
332
|
label: "Funktionalitäten auswählen",
|
|
330
333
|
placeholder: "Wählen Sie eine Funktionalität.",
|
|
331
334
|
disabled: !r.value
|
|
332
335
|
}, i(st)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
|
|
333
336
|
t[19] || (t[19] = o("h5", null, " oder ", -1)),
|
|
334
337
|
u(b, g({
|
|
335
|
-
modelValue: i(
|
|
336
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) =>
|
|
337
|
-
error_message: i(
|
|
338
|
-
"show-error": !!i(
|
|
338
|
+
modelValue: i(E),
|
|
339
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => k(E) ? E.value = e : null),
|
|
340
|
+
error_message: i(W).functionalityInput,
|
|
341
|
+
"show-error": !!i(W).functionalityInput,
|
|
339
342
|
"add-on-text": !1,
|
|
340
343
|
"date-picker": !1,
|
|
341
344
|
"info-icon": !1,
|
|
@@ -353,7 +356,7 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
353
356
|
variant: "tertiary",
|
|
354
357
|
"icon-start": "plus",
|
|
355
358
|
disabled: !r.value,
|
|
356
|
-
onClick: i(
|
|
359
|
+
onClick: i(ne)
|
|
357
360
|
}, null, 8, ["disabled", "onClick"])
|
|
358
361
|
])
|
|
359
362
|
]),
|
|
@@ -361,27 +364,27 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
361
364
|
t[20] || (t[20] = o("h5", null, "Beschreibung der Nutzung (optional)", -1)),
|
|
362
365
|
t[21] || (t[21] = o("p", null, "Beschreiben Sie die ausgewählte Hardware.", -1)),
|
|
363
366
|
u(Se, g({
|
|
364
|
-
modelValue:
|
|
365
|
-
"onUpdate:modelValue": t[4] || (t[4] = (e) =>
|
|
367
|
+
modelValue: i(U),
|
|
368
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => k(U) ? U.value = e : null),
|
|
366
369
|
label: "Beschreibung",
|
|
367
370
|
placeholder: "Beschreiben Sie die Hardware",
|
|
368
371
|
"is-disabled": !r.value
|
|
369
372
|
}, i(Le), {
|
|
370
|
-
max:
|
|
373
|
+
max: D,
|
|
371
374
|
validation: "required|length:0,500",
|
|
372
375
|
hint: "true",
|
|
373
|
-
"hint-message": `${mt.value} von ${
|
|
376
|
+
"hint-message": `${mt.value} von ${D} Zeichen`,
|
|
374
377
|
"count-hint": !0
|
|
375
378
|
}), null, 16, ["modelValue", "is-disabled", "hint-message"])
|
|
376
379
|
]),
|
|
377
380
|
o("section", Ct, [
|
|
378
381
|
t[22] || (t[22] = o("h5", null, "Host-Plattform (optional)", -1)),
|
|
379
382
|
t[23] || (t[23] = o("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
|
|
380
|
-
(d(!0), p(
|
|
383
|
+
(d(!0), p(S, null, V(i(Ke), (e, l) => (d(), z(H, {
|
|
381
384
|
key: e.key,
|
|
382
385
|
onDelete: (a) => i(je)(l)
|
|
383
386
|
}, {
|
|
384
|
-
default:
|
|
387
|
+
default: y(() => [
|
|
385
388
|
u(b, {
|
|
386
389
|
modelValue: e.value,
|
|
387
390
|
"onUpdate:modelValue": (a) => e.value = a,
|
|
@@ -413,11 +416,11 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
413
416
|
o("section", Dt, [
|
|
414
417
|
t[24] || (t[24] = o("h5", null, "Gehostete Geräte (optional)", -1)),
|
|
415
418
|
t[25] || (t[25] = o("p", null, "Falls die von Ihnen verwendete Hardware eine Plattform ist, geben Sie hier die Sensoren oder Aktuatoren an, die von dieser Plattform gehostet werden.", -1)),
|
|
416
|
-
(d(!0), p(
|
|
419
|
+
(d(!0), p(S, null, V(i(Je), (e, l) => (d(), z(H, {
|
|
417
420
|
key: e.key,
|
|
418
421
|
onDelete: (a) => i(Qe)(l)
|
|
419
422
|
}, {
|
|
420
|
-
default:
|
|
423
|
+
default: y(() => [
|
|
421
424
|
u(b, {
|
|
422
425
|
modelValue: e.value,
|
|
423
426
|
"onUpdate:modelValue": (a) => e.value = a,
|
|
@@ -449,14 +452,14 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
449
452
|
o("section", Lt, [
|
|
450
453
|
t[27] || (t[27] = o("h5", null, "Zweck (optional)", -1)),
|
|
451
454
|
t[28] || (t[28] = o("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
|
|
452
|
-
|
|
453
|
-
(d(!0), p(
|
|
455
|
+
C.value ? (d(), p("div", Wt, [
|
|
456
|
+
(d(!0), p(S, null, V(i(h), (e, l) => (d(), p("div", {
|
|
454
457
|
key: `zweck-${l}`,
|
|
455
458
|
class: "functionalities"
|
|
456
459
|
}, [
|
|
457
460
|
we(o("input", g({
|
|
458
461
|
id: `zweck-${e}`,
|
|
459
|
-
"onUpdate:modelValue": t[7] || (t[7] = (a) =>
|
|
462
|
+
"onUpdate:modelValue": t[7] || (t[7] = (a) => k(h) ? h.value = a : null),
|
|
460
463
|
hidden: "",
|
|
461
464
|
value: e,
|
|
462
465
|
name: "selectedForProperties",
|
|
@@ -480,11 +483,11 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
480
483
|
}, null, 8, ["for", "text", "data"])
|
|
481
484
|
]))), 128))
|
|
482
485
|
])) : F("", !0),
|
|
483
|
-
|
|
486
|
+
M.value && !C.value ? (d(), z(H, {
|
|
484
487
|
key: 1,
|
|
485
488
|
onDelete: dt
|
|
486
489
|
}, {
|
|
487
|
-
actions:
|
|
490
|
+
actions: y(() => [
|
|
488
491
|
u(f, {
|
|
489
492
|
"button-text": "Zweck hinzufügen",
|
|
490
493
|
size: "medium",
|
|
@@ -494,28 +497,28 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
494
497
|
onClick: i(pt)
|
|
495
498
|
}, null, 8, ["disabled", "onClick"])
|
|
496
499
|
]),
|
|
497
|
-
default:
|
|
500
|
+
default: y(() => [
|
|
498
501
|
u(ye, g({
|
|
499
|
-
modelValue: i(
|
|
500
|
-
"onUpdate:modelValue": t[8] || (t[8] = (e) =>
|
|
502
|
+
modelValue: i(N),
|
|
503
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => k(N) ? N.value = e : null),
|
|
501
504
|
options: tt.value,
|
|
502
|
-
"error-message": i(
|
|
505
|
+
"error-message": i(G).zweckSelect,
|
|
503
506
|
label: "Zweck auswählen",
|
|
504
507
|
placeholder: "Wählen Sie einen Zweck.",
|
|
505
|
-
disabled: !r.value ||
|
|
508
|
+
disabled: !r.value || C.value
|
|
506
509
|
}, i(at)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
|
|
507
510
|
t[26] || (t[26] = o("h5", null, "oder", -1)),
|
|
508
511
|
u(b, g({
|
|
509
|
-
modelValue: i(
|
|
510
|
-
"onUpdate:modelValue": t[9] || (t[9] = (e) =>
|
|
511
|
-
error_message: i(
|
|
512
|
-
"show-error": !!i(
|
|
512
|
+
modelValue: i(T),
|
|
513
|
+
"onUpdate:modelValue": t[9] || (t[9] = (e) => k(T) ? T.value = e : null),
|
|
514
|
+
error_message: i(G).zweckInput,
|
|
515
|
+
"show-error": !!i(G).zweckInput,
|
|
513
516
|
"add-on-text": !1,
|
|
514
517
|
"date-picker": !1,
|
|
515
518
|
"info-icon": !1,
|
|
516
519
|
"show-end-icon": !1,
|
|
517
520
|
"pre-icon": !1,
|
|
518
|
-
"is-disabled": !r.value ||
|
|
521
|
+
"is-disabled": !r.value || C.value,
|
|
519
522
|
label: "Zweck nennen",
|
|
520
523
|
placeholder: "Nennen Sie einen Zweck",
|
|
521
524
|
"initial-hint-text": !1
|
|
@@ -525,25 +528,25 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
525
528
|
__: [26]
|
|
526
529
|
})) : F("", !0),
|
|
527
530
|
o("div", Gt, [
|
|
528
|
-
|
|
531
|
+
M.value ? F("", !0) : (d(), z(f, {
|
|
529
532
|
key: 0,
|
|
530
533
|
"button-text": "Zweck hinzufügen",
|
|
531
534
|
size: "medium",
|
|
532
535
|
variant: "tertiary",
|
|
533
536
|
"icon-start": "plus",
|
|
534
537
|
disabled: !r.value,
|
|
535
|
-
onClick: t[10] || (t[10] = (e) => r.value && (
|
|
538
|
+
onClick: t[10] || (t[10] = (e) => r.value && (M.value = !0))
|
|
536
539
|
}, null, 8, ["disabled"]))
|
|
537
540
|
])
|
|
538
541
|
]),
|
|
539
542
|
o("section", Rt, [
|
|
540
543
|
t[29] || (t[29] = o("h5", null, "Standort (optional)", -1)),
|
|
541
544
|
t[30] || (t[30] = o("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
|
|
542
|
-
(d(!0), p(
|
|
545
|
+
(d(!0), p(S, null, V(i(Ge), (e, l) => (d(), z(H, {
|
|
543
546
|
key: e.key,
|
|
544
547
|
onDelete: (a) => i(We)(l)
|
|
545
548
|
}, {
|
|
546
|
-
default:
|
|
549
|
+
default: y(() => [
|
|
547
550
|
u(b, {
|
|
548
551
|
modelValue: e.value.lat,
|
|
549
552
|
"onUpdate:modelValue": (a) => e.value.lat = a,
|
|
@@ -591,11 +594,11 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
591
594
|
o("section", Nt, [
|
|
592
595
|
t[31] || (t[31] = o("h5", null, "Darstellungen (optional)", -1)),
|
|
593
596
|
t[32] || (t[32] = o("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
|
|
594
|
-
(d(!0), p(
|
|
597
|
+
(d(!0), p(S, null, V(i(Ne), (e, l) => (d(), z(H, {
|
|
595
598
|
key: e.key,
|
|
596
599
|
onDelete: (a) => i(Re)(l)
|
|
597
600
|
}, {
|
|
598
|
-
default:
|
|
601
|
+
default: y(() => [
|
|
599
602
|
u(b, {
|
|
600
603
|
modelValue: e.value,
|
|
601
604
|
"onUpdate:modelValue": (a) => e.value = a,
|
|
@@ -627,11 +630,11 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
627
630
|
o("section", Mt, [
|
|
628
631
|
t[33] || (t[33] = o("h5", null, "Weiterführende Links (optional)", -1)),
|
|
629
632
|
t[34] || (t[34] = o("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
|
|
630
|
-
(d(!0), p(
|
|
633
|
+
(d(!0), p(S, null, V(i(Oe), (e, l) => (d(), z(H, {
|
|
631
634
|
key: e.key,
|
|
632
635
|
onDelete: (a) => i(Te)(l)
|
|
633
636
|
}, {
|
|
634
|
-
default:
|
|
637
|
+
default: y(() => [
|
|
635
638
|
u(b, {
|
|
636
639
|
modelValue: e.value.name,
|
|
637
640
|
"onUpdate:modelValue": (a) => e.value.name = a,
|
|
@@ -672,10 +675,10 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
672
675
|
"show-error": !!i(c)[`references[${l}].description`],
|
|
673
676
|
"initial-hint-text": !!i(c)[`references[${l}].description`],
|
|
674
677
|
"is-disabled": !r.value,
|
|
675
|
-
max:
|
|
678
|
+
max: D,
|
|
676
679
|
validation: "required|length:0,500",
|
|
677
680
|
hint: "true",
|
|
678
|
-
"hint-message": `${ft(e)} von ${
|
|
681
|
+
"hint-message": `${ft(e)} von ${D} Zeichen`,
|
|
679
682
|
"count-hint": !0
|
|
680
683
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "error_message", "show-error", "initial-hint-text", "is-disabled", "hint-message"])
|
|
681
684
|
]),
|
|
@@ -697,24 +700,24 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
|
|
|
697
700
|
u(f, {
|
|
698
701
|
"button-text": "Abbrechen",
|
|
699
702
|
variant: "tertiary",
|
|
700
|
-
onClick: t[14] || (t[14] = (e) =>
|
|
703
|
+
onClick: t[14] || (t[14] = (e) => Z("close"))
|
|
701
704
|
}),
|
|
702
705
|
u(f, {
|
|
703
706
|
"button-text": "Speichern",
|
|
704
|
-
disabled: !r.value || !
|
|
705
|
-
onClick: i(
|
|
707
|
+
disabled: !r.value || !Y.value,
|
|
708
|
+
onClick: i(te)
|
|
706
709
|
}, null, 8, ["disabled", "onClick"])
|
|
707
|
-
])) : (d(),
|
|
710
|
+
])) : (d(), z(f, {
|
|
708
711
|
key: 1,
|
|
709
712
|
"icon-start": "PlusSquare",
|
|
710
713
|
"button-text": "Hardware hinzufügen",
|
|
711
|
-
disabled: !r.value || !
|
|
712
|
-
onClick: i(
|
|
714
|
+
disabled: !r.value || !Y.value,
|
|
715
|
+
onClick: i(te)
|
|
713
716
|
}, null, 8, ["disabled", "onClick"]))
|
|
714
717
|
])
|
|
715
718
|
]));
|
|
716
719
|
}
|
|
717
720
|
});
|
|
718
721
|
export {
|
|
719
|
-
|
|
722
|
+
an as default
|
|
720
723
|
};
|