@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,33 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PhLightbulb as
|
|
3
|
-
import { toTypedSchema as
|
|
4
|
-
import { useForm as
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
1
|
+
import { defineComponent as tn, mergeModels as pe, useModel as ln, unref as l, watch as N, ref as Z, computed as w, createElementBlock as p, openBlock as c, createElementVNode as i, createCommentVNode as S, createVNode as o, Fragment as g, mergeProps as O, isRef as A, withCtx as v, createTextVNode as on, renderList as P, createBlock as V, withDirectives as fe, vModelCheckbox as sn, vShow as rn } from "vue";
|
|
2
|
+
import { PhLightbulb as an } from "@phosphor-icons/vue";
|
|
3
|
+
import { toTypedSchema as he } 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";
|
|
4
|
+
import { useForm as ve, useFieldArray as x } from "vee-validate";
|
|
5
|
+
import * as s from "zod";
|
|
6
|
+
import { useRuntimeEnv as un } from "../../../../composables/useRuntimeEnv.js";
|
|
7
|
+
import { generateIsRequiredMsg as k, generateIsInvalidMsg as be } from "../../../../utils/twinbyUtils.js";
|
|
8
|
+
import { useTwinbyUser as dn } from "../../../composables/useTwinbyUser.js";
|
|
9
|
+
import cn from "../Autocomplete/AutocompleteVocab.vue.js";
|
|
10
|
+
import f from "../ButtonV3.vue.js";
|
|
11
|
+
import mn from "../Card.vue.js";
|
|
12
|
+
import pn from "../Chip.vue.js";
|
|
13
|
+
import H from "../InputField/InputFieldVeeValidate.vue.js";
|
|
14
|
+
import we from "../ListBox/ListboxVeeValidate.vue.js";
|
|
15
|
+
import fn from "../TextArea/TextAreaVeeValidate.vue.js";
|
|
16
|
+
import hn from "../TextAreaV3.vue.js";
|
|
17
|
+
import vn from "./FunctionalityForm.vue.js";
|
|
18
|
+
import U from "./ProcessStepInputCard.vue.js";
|
|
19
|
+
import bn from "./RichOption.vue.js";
|
|
20
|
+
const wn = { class: "dpi-project-process-step V3-typography" }, gn = { class: "step-section" }, kn = { class: "step-section-actions" }, yn = ["href"], zn = { class: "step-section" }, Sn = { class: "step-section" }, Vn = { class: "step-section step-section--lg" }, Hn = { class: "step-section" }, Bn = {
|
|
20
21
|
key: 0,
|
|
21
22
|
class: "step-section-actions"
|
|
22
|
-
},
|
|
23
|
+
}, Pn = { class: "step-section" }, xn = {
|
|
23
24
|
key: 0,
|
|
24
25
|
class: "functionalities-container"
|
|
25
|
-
},
|
|
26
|
+
}, Un = ["id", "value"], In = { class: "step-section step-section--lg" }, $n = { style: { display: "flex", "justify-content": "flex-end" } }, Cn = { style: { display: "inline-flex", "justify-content": "flex-end" } }, Ln = { class: "step-section-actions" }, Dn = { class: "step-section" }, Fn = { class: "step-section-actions" }, Zn = { class: "step-section" }, An = { class: "step-section-actions" }, Wn = { class: "step-section" }, Rn = { class: "step-section-actions" }, _n = { class: "step-section-actions" }, Mn = {
|
|
26
27
|
key: 0,
|
|
27
28
|
class: "button-row"
|
|
28
|
-
},
|
|
29
|
+
}, W = 500, ut = /* @__PURE__ */ tn({
|
|
29
30
|
__name: "HardwareForm",
|
|
30
|
-
props: /* @__PURE__ */
|
|
31
|
+
props: /* @__PURE__ */ pe({
|
|
31
32
|
modelValue: {},
|
|
32
33
|
initializeWith: {},
|
|
33
34
|
exclude: { default: () => [] }
|
|
@@ -37,31 +38,31 @@ const hn = { class: "dpi-project-process-step V3-typography" }, vn = { class: "s
|
|
|
37
38
|
},
|
|
38
39
|
modelModifiers: {}
|
|
39
40
|
}),
|
|
40
|
-
emits: /* @__PURE__ */
|
|
41
|
-
setup(
|
|
42
|
-
var
|
|
43
|
-
const
|
|
44
|
-
lat:
|
|
45
|
-
lng:
|
|
46
|
-
}),
|
|
47
|
-
name:
|
|
48
|
-
url:
|
|
49
|
-
description:
|
|
41
|
+
emits: /* @__PURE__ */ pe(["submit", "patch", "close"], ["update:modelValue"]),
|
|
42
|
+
setup(T, { emit: ge }) {
|
|
43
|
+
var ee, ne, te, ie, le, oe, se, re, ae, ue;
|
|
44
|
+
const m = T, R = ge, ke = ln(T, "modelValue"), B = !!m.modelValue, ye = l(m.modelValue) || "", ze = s.object({
|
|
45
|
+
lat: s.string().min(1, k("Latitude / Breite")),
|
|
46
|
+
lng: s.string().min(1, k("Longitude / Länge"))
|
|
47
|
+
}), Se = s.array(ze), Ve = s.object({
|
|
48
|
+
name: s.string().min(1, k("Name")).default(""),
|
|
49
|
+
url: s.string().min(1, k("URL")).url(be("URL")).default(""),
|
|
50
|
+
description: s.string().default("")
|
|
50
51
|
});
|
|
51
|
-
function
|
|
52
|
+
function j(t) {
|
|
52
53
|
return Array.isArray(t) ? t : t != null ? [t] : [];
|
|
53
54
|
}
|
|
54
|
-
const
|
|
55
|
-
id:
|
|
56
|
-
description:
|
|
57
|
-
functionalities:
|
|
58
|
-
forProperty:
|
|
59
|
-
locations:
|
|
60
|
-
depictions:
|
|
61
|
-
references:
|
|
62
|
-
isHostedBy:
|
|
63
|
-
hosts:
|
|
64
|
-
}),
|
|
55
|
+
const He = s.object({
|
|
56
|
+
id: s.string(),
|
|
57
|
+
description: s.string().optional(),
|
|
58
|
+
functionalities: s.array(s.string()).min(1),
|
|
59
|
+
forProperty: s.array(s.string()),
|
|
60
|
+
locations: Se,
|
|
61
|
+
depictions: s.array(s.string().min(1, k("URL")).url(be("URL"))),
|
|
62
|
+
references: s.array(Ve),
|
|
63
|
+
isHostedBy: s.array(s.string().min(1, k("Host-Plattform"))),
|
|
64
|
+
hosts: s.array(s.string())
|
|
65
|
+
}), Be = [
|
|
65
66
|
...[
|
|
66
67
|
"Mast",
|
|
67
68
|
"Ampel",
|
|
@@ -75,53 +76,53 @@ const hn = { class: "dpi-project-process-step V3-typography" }, vn = { class: "s
|
|
|
75
76
|
"Parkhaus",
|
|
76
77
|
"Kanaldeckel",
|
|
77
78
|
"Grünfläche"
|
|
78
|
-
].sort((t,
|
|
79
|
+
].sort((t, e) => t.localeCompare(e)),
|
|
79
80
|
"Sonstiges"
|
|
80
|
-
],
|
|
81
|
-
validationSchema:
|
|
81
|
+
], b = ve({
|
|
82
|
+
validationSchema: he(He),
|
|
82
83
|
initialValues: {
|
|
83
|
-
id:
|
|
84
|
-
description: ((
|
|
85
|
-
functionalities: ((
|
|
86
|
-
forProperty: ((
|
|
87
|
-
locations: ((
|
|
88
|
-
depictions: ((
|
|
89
|
-
references: ((
|
|
90
|
-
isHostedBy:
|
|
91
|
-
hosts:
|
|
84
|
+
id: m.modelValue || "",
|
|
85
|
+
description: ((ee = m.initializeWith) == null ? void 0 : ee.description) || "",
|
|
86
|
+
functionalities: ((ne = m.initializeWith) == null ? void 0 : ne.functionalities) || [],
|
|
87
|
+
forProperty: ((te = m.initializeWith) == null ? void 0 : te.forProperty) || [],
|
|
88
|
+
locations: ((ie = m.initializeWith) == null ? void 0 : ie.locations) || [],
|
|
89
|
+
depictions: ((le = m.initializeWith) == null ? void 0 : le.depictions) || [],
|
|
90
|
+
references: ((oe = m.initializeWith) == null ? void 0 : oe.references) || [],
|
|
91
|
+
isHostedBy: j((se = m.initializeWith) == null ? void 0 : se.isHostedBy),
|
|
92
|
+
hosts: j((re = m.initializeWith) == null ? void 0 : re.hosts)
|
|
92
93
|
},
|
|
93
94
|
name: "hardwareForm"
|
|
94
95
|
}), {
|
|
95
|
-
defineField:
|
|
96
|
-
handleSubmit:
|
|
97
|
-
resetForm:
|
|
98
|
-
} =
|
|
99
|
-
remove:
|
|
100
|
-
push:
|
|
101
|
-
fields:
|
|
102
|
-
} =
|
|
103
|
-
remove:
|
|
104
|
-
push:
|
|
105
|
-
fields:
|
|
106
|
-
} =
|
|
107
|
-
remove:
|
|
108
|
-
push:
|
|
109
|
-
fields:
|
|
110
|
-
} =
|
|
111
|
-
remove:
|
|
112
|
-
push:
|
|
113
|
-
fields:
|
|
114
|
-
} =
|
|
115
|
-
remove:
|
|
116
|
-
push:
|
|
117
|
-
fields:
|
|
118
|
-
} =
|
|
119
|
-
N(
|
|
120
|
-
|
|
96
|
+
defineField: I,
|
|
97
|
+
handleSubmit: Pe,
|
|
98
|
+
resetForm: xe
|
|
99
|
+
} = b, [y, Ue] = I("id"), [z] = I("functionalities"), [h, Ie] = I("forProperty"), [$, $e] = I("description"), {
|
|
100
|
+
remove: Ce,
|
|
101
|
+
push: Le,
|
|
102
|
+
fields: De
|
|
103
|
+
} = x("locations"), {
|
|
104
|
+
remove: Fe,
|
|
105
|
+
push: Ze,
|
|
106
|
+
fields: Ae
|
|
107
|
+
} = x("depictions"), {
|
|
108
|
+
remove: We,
|
|
109
|
+
push: Re,
|
|
110
|
+
fields: _e
|
|
111
|
+
} = x("references"), {
|
|
112
|
+
remove: Me,
|
|
113
|
+
push: Ee,
|
|
114
|
+
fields: G
|
|
115
|
+
} = x("isHostedBy"), {
|
|
116
|
+
remove: En,
|
|
117
|
+
push: Nn,
|
|
118
|
+
fields: On
|
|
119
|
+
} = x("hosts");
|
|
120
|
+
N(y, (t) => {
|
|
121
|
+
ke.value = t || "";
|
|
121
122
|
}, { immediate: !0 });
|
|
122
|
-
const
|
|
123
|
-
function
|
|
124
|
-
const
|
|
123
|
+
const _ = Z(null);
|
|
124
|
+
function Ne(t) {
|
|
125
|
+
const e = {
|
|
125
126
|
id: String(t.id || ""),
|
|
126
127
|
name: typeof t.name == "string" ? t.name : "",
|
|
127
128
|
functionalities: Array.isArray(t.functionalities) ? t.functionalities : [],
|
|
@@ -131,66 +132,66 @@ const hn = { class: "dpi-project-process-step V3-typography" }, vn = { class: "s
|
|
|
131
132
|
version: t.version,
|
|
132
133
|
unavailable: t.unavailable
|
|
133
134
|
};
|
|
134
|
-
|
|
135
|
+
_.value = e;
|
|
135
136
|
}
|
|
136
|
-
const
|
|
137
|
+
const r = w(() => !!y.value), K = w(() => {
|
|
137
138
|
var t;
|
|
138
|
-
return (((t =
|
|
139
|
-
}),
|
|
139
|
+
return (((t = z.value) == null ? void 0 : t.length) ?? 0) > 0;
|
|
140
|
+
}), Oe = w(() => {
|
|
140
141
|
var t;
|
|
141
|
-
return ((t =
|
|
142
|
-
}),
|
|
142
|
+
return ((t = _.value) == null ? void 0 : t.functionalities) ?? [];
|
|
143
|
+
}), Te = w(() => {
|
|
143
144
|
var t;
|
|
144
|
-
return [...((t =
|
|
145
|
-
}),
|
|
146
|
-
zweckSelect:
|
|
147
|
-
zweckInput:
|
|
148
|
-
}).superRefine((t,
|
|
149
|
-
const
|
|
150
|
-
!
|
|
151
|
-
code:
|
|
152
|
-
message:
|
|
145
|
+
return [...((t = _.value) == null ? void 0 : t.forProperty) || []].sort((e, d) => e.localeCompare(d)) ?? [];
|
|
146
|
+
}), je = k("Zweck"), Ge = s.object({
|
|
147
|
+
zweckSelect: s.string().optional(),
|
|
148
|
+
zweckInput: s.string().optional()
|
|
149
|
+
}).superRefine((t, e) => {
|
|
150
|
+
const d = t.zweckSelect && t.zweckSelect.trim().length > 0, n = t.zweckInput && t.zweckInput.trim().length > 0;
|
|
151
|
+
!d && !n && e.addIssue({
|
|
152
|
+
code: s.ZodIssueCode.custom,
|
|
153
|
+
message: je,
|
|
153
154
|
path: ["zweckInput"]
|
|
154
155
|
});
|
|
155
|
-
}),
|
|
156
|
-
validationSchema:
|
|
156
|
+
}), M = ve({
|
|
157
|
+
validationSchema: he(Ge),
|
|
157
158
|
initialValues: {
|
|
158
159
|
zweckSelect: "",
|
|
159
160
|
zweckInput: ""
|
|
160
161
|
}
|
|
161
162
|
}), {
|
|
162
|
-
handleSubmit:
|
|
163
|
+
handleSubmit: Ke,
|
|
163
164
|
resetForm: C
|
|
164
|
-
} =
|
|
165
|
-
N(
|
|
166
|
-
!!
|
|
165
|
+
} = M;
|
|
166
|
+
N(y, (t, e) => {
|
|
167
|
+
!!e && !!t && t !== e && (z.value = [], C(), h.value = []);
|
|
167
168
|
});
|
|
168
|
-
const
|
|
169
|
-
function
|
|
170
|
-
|
|
169
|
+
const E = Z(""), q = Z(""), L = w(() => h.value && h.value.length > 0), D = Z(!!((ue = (ae = m.initializeWith) == null ? void 0 : ae.forProperty) != null && ue.length));
|
|
170
|
+
function qe() {
|
|
171
|
+
h.value = [];
|
|
171
172
|
}
|
|
172
|
-
const
|
|
173
|
-
const
|
|
173
|
+
const Q = Pe((t) => {
|
|
174
|
+
const e = {
|
|
174
175
|
id: t.id,
|
|
175
176
|
description: t.description || "",
|
|
176
|
-
functionalities: Array.from(
|
|
177
|
+
functionalities: Array.from(z.value || []).filter(Boolean),
|
|
177
178
|
forProperty: (t.forProperty || []).filter(Boolean),
|
|
178
179
|
locations: t.locations || [],
|
|
179
180
|
depictions: (t.depictions || []).filter(Boolean),
|
|
180
|
-
references: (t.references || []).map((
|
|
181
|
-
name: (
|
|
182
|
-
url: (
|
|
183
|
-
description: (
|
|
181
|
+
references: (t.references || []).map((d) => ({
|
|
182
|
+
name: (d == null ? void 0 : d.name) || "",
|
|
183
|
+
url: (d == null ? void 0 : d.url) || "",
|
|
184
|
+
description: (d == null ? void 0 : d.description) || ""
|
|
184
185
|
})),
|
|
185
186
|
isHostedBy: (t.isHostedBy || []).filter(Boolean),
|
|
186
187
|
hosts: (t.hosts || []).filter(Boolean)
|
|
187
188
|
};
|
|
188
|
-
|
|
189
|
-
id:
|
|
190
|
-
hardware:
|
|
191
|
-
}) :
|
|
189
|
+
B ? R("patch", {
|
|
190
|
+
id: ye,
|
|
191
|
+
hardware: e
|
|
192
|
+
}) : R("submit", e), C(), xe();
|
|
192
193
|
});
|
|
193
|
-
function
|
|
194
|
+
function Qe(t) {
|
|
194
195
|
return [
|
|
195
196
|
...t,
|
|
196
197
|
{
|
|
@@ -202,441 +203,447 @@ const hn = { class: "dpi-project-process-step V3-typography" }, vn = { class: "s
|
|
|
202
203
|
}
|
|
203
204
|
];
|
|
204
205
|
}
|
|
205
|
-
const
|
|
206
|
-
var
|
|
207
|
-
const
|
|
208
|
-
|
|
206
|
+
const J = Ke((t) => {
|
|
207
|
+
var d, n;
|
|
208
|
+
const e = t.zweckSelect || t.zweckInput;
|
|
209
|
+
e && e.trim().length > 0 && !((d = h.value) != null && d.includes(e)) && ((n = h.value) == null || n.push(e)), C();
|
|
209
210
|
});
|
|
210
|
-
function
|
|
211
|
-
C(),
|
|
211
|
+
function Je() {
|
|
212
|
+
C(), D.value = !1;
|
|
212
213
|
}
|
|
213
|
-
N(
|
|
214
|
-
const
|
|
214
|
+
N(E, () => J());
|
|
215
|
+
const Xe = w(() => {
|
|
215
216
|
var t;
|
|
216
|
-
return ((t =
|
|
217
|
+
return ((t = $.value) == null ? void 0 : t.length) || 0;
|
|
217
218
|
});
|
|
218
|
-
function
|
|
219
|
-
var
|
|
220
|
-
return ((
|
|
219
|
+
function Ye(t) {
|
|
220
|
+
var e;
|
|
221
|
+
return ((e = t.value.description) == null ? void 0 : e.length) ?? 0;
|
|
221
222
|
}
|
|
222
|
-
const { authToken:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
"setup-fn": (e) => {
|
|
239
|
-
var o, u, D, ae, ue, de;
|
|
240
|
-
return {
|
|
241
|
-
id: e == null ? void 0 : e.id,
|
|
242
|
-
name: ((o = e == null ? void 0 : e.name) == null ? void 0 : o.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en),
|
|
243
|
-
functionalities: (e == null ? void 0 : e.functionalities) || [],
|
|
244
|
-
forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
|
|
245
|
-
unavailable: c.exclude.includes(e == null ? void 0 : e.id),
|
|
246
|
-
manufacturer: (ae = (D = e == null ? void 0 : e.manufacturer) == null ? void 0 : D[0]) == null ? void 0 : ae.label,
|
|
247
|
-
description: ((ue = e == null ? void 0 : e.description) == null ? void 0 : ue.de) || ((de = e == null ? void 0 : e.description) == null ? void 0 : de.en),
|
|
248
|
-
version: e == null ? void 0 : e.version
|
|
249
|
-
};
|
|
250
|
-
},
|
|
251
|
-
"post-process-fn": Ke,
|
|
252
|
-
"auth-token": l(J),
|
|
253
|
-
onSelect: Me
|
|
254
|
-
}), {
|
|
255
|
-
option: h(({ option: e, active: o, selected: u, disabled: D }) => [
|
|
256
|
-
s(fn, {
|
|
257
|
-
name: e.name,
|
|
258
|
-
manufacturer: e.manufacturer,
|
|
259
|
-
description: e.description,
|
|
260
|
-
active: o,
|
|
261
|
-
selected: u,
|
|
262
|
-
disabled: D
|
|
263
|
-
}, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
|
|
264
|
-
]),
|
|
265
|
-
_: 1
|
|
266
|
-
}, 16, ["modelValue", "label", "setup-fn", "auth-token"]),
|
|
267
|
-
H ? z("", !0) : (d(), m(w, { key: 1 }, [
|
|
268
|
-
n[15] || (n[15] = i("h5", null, "oder", -1)),
|
|
269
|
-
n[16] || (n[16] = i("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)),
|
|
270
|
-
i("div", bn, [
|
|
271
|
-
i("a", {
|
|
272
|
-
href: Ye.value,
|
|
273
|
-
target: "_blank"
|
|
274
|
-
}, [
|
|
275
|
-
s(p, {
|
|
276
|
-
"button-text": "Zur Hardwarebeantragung",
|
|
277
|
-
size: "medium",
|
|
278
|
-
variant: "secondary"
|
|
279
|
-
})
|
|
280
|
-
], 8, wn)
|
|
281
|
-
])
|
|
282
|
-
], 64))
|
|
283
|
-
]),
|
|
284
|
-
i("section", gn, [
|
|
285
|
-
n[17] || (n[17] = i("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
|
|
286
|
-
n[18] || (n[18] = i("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)),
|
|
287
|
-
s(pn, {
|
|
288
|
-
modelValue: l(y),
|
|
289
|
-
"onUpdate:modelValue": n[1] || (n[1] = (e) => Z(y) ? y.value = e : null),
|
|
290
|
-
options: Ne.value,
|
|
291
|
-
disabled: !a.value
|
|
292
|
-
}, null, 8, ["modelValue", "options", "disabled"])
|
|
293
|
-
]),
|
|
294
|
-
i("section", kn, [
|
|
295
|
-
n[21] || (n[21] = i("h5", null, "Beschreibung der Nutzung (optional)", -1)),
|
|
296
|
-
i("div", yn, [
|
|
297
|
-
s(mn, E({
|
|
298
|
-
modelValue: l(I),
|
|
299
|
-
"onUpdate:modelValue": n[2] || (n[2] = (e) => Z(I) ? I.value = e : null),
|
|
300
|
-
label: "",
|
|
301
|
-
placeholder: "Beschreiben Sie in ein paar Sätzen, wie Sie die Hardware eingesetzt haben.",
|
|
302
|
-
"is-disabled": !a.value
|
|
223
|
+
const X = un(), { authToken: Y, username: en } = dn(), nn = w(() => {
|
|
224
|
+
var t;
|
|
225
|
+
return `${((t = X.typeform) == null ? void 0 : t.hardware) ?? "https://form.typeform.com/to/ayL37uiV"}#token=${Y.value}&account=${en.value}`;
|
|
226
|
+
});
|
|
227
|
+
return (t, e) => {
|
|
228
|
+
var d;
|
|
229
|
+
return c(), p("div", wn, [
|
|
230
|
+
i("section", gn, [
|
|
231
|
+
B ? S("", !0) : (c(), p(g, { key: 0 }, [
|
|
232
|
+
e[13] || (e[13] = i("h5", null, "Wählen Sie eine bestehende Hardware", -1)),
|
|
233
|
+
e[14] || (e[14] = i("p", null, " Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen. ", -1))
|
|
234
|
+
], 64)),
|
|
235
|
+
o(cn, O({
|
|
236
|
+
modelValue: l(y),
|
|
237
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => A(y) ? y.value = n : null),
|
|
238
|
+
label: B ? "Hardware auswählen" : ""
|
|
303
239
|
}, l(Ue), {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
"
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
key: e.key,
|
|
335
|
-
onDelete: (u) => l(Re)(o)
|
|
336
|
-
}, {
|
|
337
|
-
default: h(() => [
|
|
338
|
-
s(ve, {
|
|
339
|
-
modelValue: e.value,
|
|
340
|
-
"onUpdate:modelValue": (u) => e.value = u,
|
|
341
|
-
name: `isHostedBy[${o}]`,
|
|
342
|
-
options: Ve,
|
|
343
|
-
label: "Host-Plattform",
|
|
344
|
-
placeholder: "Wählen Sie eine Host-Plattform.",
|
|
345
|
-
disabled: !a.value,
|
|
346
|
-
form: l(v)
|
|
347
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "disabled", "form"])
|
|
348
|
-
]),
|
|
349
|
-
_: 2
|
|
350
|
-
}, 1032, ["onDelete"]))), 128)),
|
|
351
|
-
l(j).length === 0 ? (d(), m("div", Sn, [
|
|
352
|
-
s(p, {
|
|
353
|
-
"button-text": "Host-Plattform hinzufügen",
|
|
354
|
-
size: "medium",
|
|
355
|
-
variant: "tertiary",
|
|
356
|
-
"icon-start": "plus",
|
|
357
|
-
disabled: !a.value,
|
|
358
|
-
onClick: n[3] || (n[3] = (e) => a.value && l(_e)(""))
|
|
359
|
-
}, null, 8, ["disabled"])
|
|
360
|
-
])) : z("", !0)
|
|
361
|
-
]),
|
|
362
|
-
z("", !0),
|
|
363
|
-
i("section", Vn, [
|
|
364
|
-
n[27] || (n[27] = i("h5", null, "Zweck (optional)", -1)),
|
|
365
|
-
n[28] || (n[28] = i("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
|
|
366
|
-
$.value ? (d(), m("div", Hn, [
|
|
367
|
-
(d(!0), m(w, null, B(l(f), (e, o) => (d(), m("div", {
|
|
368
|
-
key: `zweck-${o}`,
|
|
369
|
-
class: "functionalities"
|
|
370
|
-
}, [
|
|
371
|
-
me(i("input", E({
|
|
372
|
-
id: `zweck-${e}`,
|
|
373
|
-
"onUpdate:modelValue": n[5] || (n[5] = (u) => Z(f) ? f.value = u : null),
|
|
374
|
-
hidden: "",
|
|
375
|
-
value: e,
|
|
376
|
-
name: "selectedForProperties",
|
|
377
|
-
type: "checkbox"
|
|
378
|
-
}, { ref_for: !0 }, l(xe)), null, 16, Bn), [
|
|
379
|
-
[ln, l(f)]
|
|
240
|
+
"base-url": ((d = l(X).api) == null ? void 0 : d.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
|
|
241
|
+
resource: "hardware",
|
|
242
|
+
placeholder: "Wählen Sie eine Hardware.",
|
|
243
|
+
name: "hardware",
|
|
244
|
+
"setup-fn": (n) => {
|
|
245
|
+
var u, a, F, de, ce, me;
|
|
246
|
+
return {
|
|
247
|
+
id: n == null ? void 0 : n.id,
|
|
248
|
+
name: ((u = n == null ? void 0 : n.name) == null ? void 0 : u.de) || ((a = n == null ? void 0 : n.name) == null ? void 0 : a.en),
|
|
249
|
+
functionalities: (n == null ? void 0 : n.functionalities) || [],
|
|
250
|
+
forProperties: (n == null ? void 0 : n.measured_actuated_properties) || [],
|
|
251
|
+
unavailable: m.exclude.includes(n == null ? void 0 : n.id),
|
|
252
|
+
manufacturer: (de = (F = n == null ? void 0 : n.manufacturer) == null ? void 0 : F[0]) == null ? void 0 : de.label,
|
|
253
|
+
description: ((ce = n == null ? void 0 : n.description) == null ? void 0 : ce.de) || ((me = n == null ? void 0 : n.description) == null ? void 0 : me.en),
|
|
254
|
+
version: n == null ? void 0 : n.version
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
"post-process-fn": Qe,
|
|
258
|
+
"auth-token": l(Y),
|
|
259
|
+
onSelect: Ne
|
|
260
|
+
}), {
|
|
261
|
+
option: v(({ option: n, active: u, selected: a, disabled: F }) => [
|
|
262
|
+
o(bn, {
|
|
263
|
+
name: n.name,
|
|
264
|
+
manufacturer: n.manufacturer,
|
|
265
|
+
description: n.description,
|
|
266
|
+
active: u,
|
|
267
|
+
selected: a,
|
|
268
|
+
disabled: F
|
|
269
|
+
}, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
|
|
380
270
|
]),
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
"
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
"select-value": !0
|
|
394
|
-
}, null, 8, ["for", "text", "data"])
|
|
395
|
-
]))), 128))
|
|
396
|
-
])) : z("", !0),
|
|
397
|
-
me(s(x, { onDelete: Ge }, {
|
|
398
|
-
actions: h(() => [
|
|
399
|
-
i("div", Pn, [
|
|
400
|
-
i("div", xn, [
|
|
401
|
-
s(p, {
|
|
402
|
-
"button-text": "Zweck hinzufügen",
|
|
271
|
+
_: 1
|
|
272
|
+
}, 16, ["modelValue", "label", "base-url", "setup-fn", "auth-token"]),
|
|
273
|
+
B ? S("", !0) : (c(), p(g, { key: 1 }, [
|
|
274
|
+
e[15] || (e[15] = i("h5", null, "oder", -1)),
|
|
275
|
+
e[16] || (e[16] = i("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
|
+
i("div", kn, [
|
|
277
|
+
i("a", {
|
|
278
|
+
href: nn.value,
|
|
279
|
+
target: "_blank"
|
|
280
|
+
}, [
|
|
281
|
+
o(f, {
|
|
282
|
+
"button-text": "Zur Hardwarebeantragung",
|
|
403
283
|
size: "medium",
|
|
404
|
-
variant: "
|
|
405
|
-
"icon-start": "plus",
|
|
406
|
-
disabled: !a.value,
|
|
407
|
-
onClick: l(Q)
|
|
408
|
-
}, null, 8, ["disabled", "onClick"])
|
|
409
|
-
]),
|
|
410
|
-
i("div", Un, [
|
|
411
|
-
s(p, {
|
|
412
|
-
"button-text": "Löschen",
|
|
413
|
-
size: "small",
|
|
414
|
-
variant: "tertiary",
|
|
415
|
-
"icon-start": "trash",
|
|
416
|
-
onClick: qe
|
|
284
|
+
variant: "secondary"
|
|
417
285
|
})
|
|
418
|
-
])
|
|
286
|
+
], 8, yn)
|
|
419
287
|
])
|
|
420
|
-
])
|
|
421
|
-
default: h(() => [
|
|
422
|
-
s(ve, {
|
|
423
|
-
modelValue: M.value,
|
|
424
|
-
"onUpdate:modelValue": n[6] || (n[6] = (e) => M.value = e),
|
|
425
|
-
name: "zweckSelect",
|
|
426
|
-
options: Ee.value,
|
|
427
|
-
label: "Zweck auswählen",
|
|
428
|
-
placeholder: "Wählen Sie einen Zweck.",
|
|
429
|
-
disabled: !a.value || $.value,
|
|
430
|
-
form: l(_)
|
|
431
|
-
}, null, 8, ["modelValue", "options", "disabled", "form"]),
|
|
432
|
-
n[26] || (n[26] = i("h5", null, "oder", -1)),
|
|
433
|
-
s(V, {
|
|
434
|
-
modelValue: K.value,
|
|
435
|
-
"onUpdate:modelValue": n[7] || (n[7] = (e) => K.value = e),
|
|
436
|
-
name: "zweckInput",
|
|
437
|
-
"add-on-text": !1,
|
|
438
|
-
"date-picker": !1,
|
|
439
|
-
"info-icon": !1,
|
|
440
|
-
"show-end-icon": !1,
|
|
441
|
-
"pre-icon": !1,
|
|
442
|
-
"is-disabled": !a.value || $.value,
|
|
443
|
-
label: "Zweck nennen",
|
|
444
|
-
placeholder: "Nennen Sie einen Zweck.",
|
|
445
|
-
"initial-hint-text": !1,
|
|
446
|
-
form: l(_)
|
|
447
|
-
}, null, 8, ["modelValue", "is-disabled", "form"])
|
|
448
|
-
]),
|
|
449
|
-
_: 1,
|
|
450
|
-
__: [26]
|
|
451
|
-
}, 512), [
|
|
452
|
-
[on, L.value && !$.value]
|
|
288
|
+
], 64))
|
|
453
289
|
]),
|
|
454
|
-
i("
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
disabled: !
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
"onUpdate:modelValue": (u) => e.value.lat = u,
|
|
477
|
-
name: `locations[${o}].lat`,
|
|
478
|
-
"add-on-text": !1,
|
|
479
|
-
"date-picker": !1,
|
|
480
|
-
"info-icon": !1,
|
|
481
|
-
"show-end-icon": !1,
|
|
482
|
-
"pre-icon": !1,
|
|
483
|
-
"is-disabled": !a.value,
|
|
484
|
-
label: "Latitude / Breite",
|
|
485
|
-
placeholder: "Geben Sie die Ortskoordinate Latitude an.",
|
|
486
|
-
form: l(v)
|
|
487
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
488
|
-
s(V, {
|
|
489
|
-
modelValue: e.value.lng,
|
|
490
|
-
"onUpdate:modelValue": (u) => e.value.lng = u,
|
|
491
|
-
name: `locations[${o}].lng`,
|
|
492
|
-
"add-on-text": !1,
|
|
493
|
-
"date-picker": !1,
|
|
494
|
-
"info-icon": !1,
|
|
495
|
-
"show-end-icon": !1,
|
|
496
|
-
"pre-icon": !1,
|
|
497
|
-
"is-disabled": !a.value,
|
|
498
|
-
label: "Longitude / Länge",
|
|
499
|
-
placeholder: "Geben Sie die Ortskoordinate Longitude an.",
|
|
500
|
-
form: l(v)
|
|
501
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"])
|
|
502
|
-
]),
|
|
503
|
-
_: 2
|
|
504
|
-
}, 1032, ["onDelete"]))), 128)),
|
|
505
|
-
i("div", $n, [
|
|
506
|
-
s(p, {
|
|
507
|
-
"button-text": "Standort hinzufügen",
|
|
508
|
-
size: "medium",
|
|
509
|
-
variant: "tertiary",
|
|
510
|
-
"icon-start": "plus",
|
|
511
|
-
disabled: !a.value,
|
|
512
|
-
onClick: n[9] || (n[9] = (e) => a.value && l(Ce)({ lat: "", lng: "" }))
|
|
513
|
-
}, null, 8, ["disabled"])
|
|
514
|
-
])
|
|
515
|
-
]),
|
|
516
|
-
i("section", Ln, [
|
|
517
|
-
n[31] || (n[31] = i("h5", null, "Darstellungen (optional)", -1)),
|
|
518
|
-
n[32] || (n[32] = i("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
|
|
519
|
-
(d(!0), m(w, null, B(l(Fe), (e, o) => (d(), S(x, {
|
|
520
|
-
key: e.key,
|
|
521
|
-
onDelete: (u) => l(Le)(o)
|
|
522
|
-
}, {
|
|
523
|
-
default: h(() => [
|
|
524
|
-
s(V, {
|
|
525
|
-
modelValue: e.value,
|
|
526
|
-
"onUpdate:modelValue": (u) => e.value = u,
|
|
527
|
-
name: `depictions[${o}]`,
|
|
528
|
-
"add-on-text": !1,
|
|
529
|
-
"date-picker": !1,
|
|
530
|
-
"info-icon": !1,
|
|
531
|
-
"show-end-icon": !1,
|
|
532
|
-
"pre-icon": !1,
|
|
533
|
-
"is-disabled": !a.value,
|
|
534
|
-
"input-type": "url",
|
|
535
|
-
label: "URL",
|
|
536
|
-
placeholder: "https://www.url.com",
|
|
537
|
-
form: l(v)
|
|
538
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"])
|
|
539
|
-
]),
|
|
540
|
-
_: 2
|
|
541
|
-
}, 1032, ["onDelete"]))), 128)),
|
|
542
|
-
i("div", Dn, [
|
|
543
|
-
s(p, {
|
|
544
|
-
"button-text": "Darstellung hinzufügen",
|
|
545
|
-
size: "medium",
|
|
546
|
-
variant: "tertiary",
|
|
547
|
-
"icon-start": "plus",
|
|
548
|
-
disabled: !a.value,
|
|
549
|
-
onClick: n[10] || (n[10] = (e) => a.value && l(De)(""))
|
|
550
|
-
}, null, 8, ["disabled"])
|
|
551
|
-
])
|
|
552
|
-
]),
|
|
553
|
-
i("section", Fn, [
|
|
554
|
-
n[33] || (n[33] = i("h5", null, "Weiterführende Links (optional)", -1)),
|
|
555
|
-
n[34] || (n[34] = i("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
|
|
556
|
-
(d(!0), m(w, null, B(l(We), (e, o) => (d(), S(x, {
|
|
557
|
-
key: e.key,
|
|
558
|
-
onDelete: (u) => l(Ze)(o)
|
|
559
|
-
}, {
|
|
560
|
-
default: h(() => [
|
|
561
|
-
s(V, {
|
|
562
|
-
modelValue: e.value.name,
|
|
563
|
-
"onUpdate:modelValue": (u) => e.value.name = u,
|
|
564
|
-
name: `references[${o}].name`,
|
|
565
|
-
"add-on-text": !1,
|
|
566
|
-
"date-picker": !1,
|
|
567
|
-
"info-icon": !1,
|
|
568
|
-
"show-end-icon": !1,
|
|
569
|
-
"pre-icon": !1,
|
|
570
|
-
"is-disabled": !a.value,
|
|
571
|
-
label: "Name",
|
|
572
|
-
placeholder: "Benennen Sie den Link.",
|
|
573
|
-
form: l(v)
|
|
574
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
575
|
-
s(V, {
|
|
576
|
-
modelValue: e.value.url,
|
|
577
|
-
"onUpdate:modelValue": (u) => e.value.url = u,
|
|
578
|
-
name: `references[${o}].url`,
|
|
579
|
-
"add-on-text": !1,
|
|
580
|
-
"date-picker": !1,
|
|
581
|
-
"info-icon": !1,
|
|
582
|
-
"show-end-icon": !1,
|
|
583
|
-
"pre-icon": !1,
|
|
584
|
-
"is-disabled": !a.value,
|
|
585
|
-
"input-type": "url",
|
|
586
|
-
label: "URL",
|
|
587
|
-
placeholder: "https://www.url.com",
|
|
588
|
-
form: l(v)
|
|
589
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
590
|
-
s(cn, {
|
|
591
|
-
modelValue: e.value.description,
|
|
592
|
-
"onUpdate:modelValue": (u) => e.value.description = u,
|
|
593
|
-
name: `references[${o}].description`,
|
|
594
|
-
label: "Beschreibung (optional)",
|
|
595
|
-
placeholder: "Beschreiben Sie Ihren weiterführenden Link in ein paar Sätzen.",
|
|
596
|
-
"is-disabled": !a.value,
|
|
597
|
-
max: A,
|
|
290
|
+
i("section", zn, [
|
|
291
|
+
e[17] || (e[17] = i("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
|
|
292
|
+
e[18] || (e[18] = i("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
|
+
o(vn, {
|
|
294
|
+
modelValue: l(z),
|
|
295
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => A(z) ? z.value = n : null),
|
|
296
|
+
options: Oe.value,
|
|
297
|
+
disabled: !r.value
|
|
298
|
+
}, null, 8, ["modelValue", "options", "disabled"])
|
|
299
|
+
]),
|
|
300
|
+
i("section", Sn, [
|
|
301
|
+
e[21] || (e[21] = i("h5", null, "Beschreibung der Nutzung (optional)", -1)),
|
|
302
|
+
i("div", Vn, [
|
|
303
|
+
o(hn, O({
|
|
304
|
+
modelValue: l($),
|
|
305
|
+
"onUpdate:modelValue": e[2] || (e[2] = (n) => A($) ? $.value = n : null),
|
|
306
|
+
label: "",
|
|
307
|
+
placeholder: "Beschreiben Sie in ein paar Sätzen, wie Sie die Hardware eingesetzt haben.",
|
|
308
|
+
"is-disabled": !r.value
|
|
309
|
+
}, l($e), {
|
|
310
|
+
max: W,
|
|
311
|
+
validation: "required|length:0,500",
|
|
598
312
|
hint: "true",
|
|
599
|
-
"hint-message": `${
|
|
600
|
-
"count-hint": !0
|
|
601
|
-
|
|
602
|
-
|
|
313
|
+
"hint-message": `${Xe.value} von ${W} Zeichen`,
|
|
314
|
+
"count-hint": !0
|
|
315
|
+
}), null, 16, ["modelValue", "is-disabled", "hint-message"]),
|
|
316
|
+
o(mn, { variant: "default" }, {
|
|
317
|
+
icon: v(() => [
|
|
318
|
+
o(l(an), {
|
|
319
|
+
size: 32,
|
|
320
|
+
color: "#009fe3"
|
|
321
|
+
})
|
|
322
|
+
]),
|
|
323
|
+
title: v(() => e[19] || (e[19] = [
|
|
324
|
+
on(" Beispiel ", -1)
|
|
325
|
+
])),
|
|
326
|
+
default: v(() => [
|
|
327
|
+
e[20] || (e[20] = i("div", { class: "copy-large-regular" }, [
|
|
328
|
+
i("p", null, " Der eingesetzte Pegelstandssensor misst kontinuierlich den Wasserstand der Elbe und überträgt die Daten für Prognoseberechnungen an das digitale Modell. ")
|
|
329
|
+
], -1))
|
|
330
|
+
]),
|
|
331
|
+
_: 1,
|
|
332
|
+
__: [20]
|
|
333
|
+
})
|
|
334
|
+
])
|
|
335
|
+
]),
|
|
336
|
+
i("section", Hn, [
|
|
337
|
+
e[22] || (e[22] = i("h5", null, "Host-Plattform (optional)", -1)),
|
|
338
|
+
e[23] || (e[23] = i("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)),
|
|
339
|
+
(c(!0), p(g, null, P(l(G), (n, u) => (c(), V(U, {
|
|
340
|
+
key: n.key,
|
|
341
|
+
onDelete: (a) => l(Me)(u)
|
|
342
|
+
}, {
|
|
343
|
+
default: v(() => [
|
|
344
|
+
o(we, {
|
|
345
|
+
modelValue: n.value,
|
|
346
|
+
"onUpdate:modelValue": (a) => n.value = a,
|
|
347
|
+
name: `isHostedBy[${u}]`,
|
|
348
|
+
options: Be,
|
|
349
|
+
label: "Host-Plattform",
|
|
350
|
+
placeholder: "Wählen Sie eine Host-Plattform.",
|
|
351
|
+
disabled: !r.value,
|
|
352
|
+
form: l(b)
|
|
353
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "disabled", "form"])
|
|
354
|
+
]),
|
|
355
|
+
_: 2
|
|
356
|
+
}, 1032, ["onDelete"]))), 128)),
|
|
357
|
+
l(G).length === 0 ? (c(), p("div", Bn, [
|
|
358
|
+
o(f, {
|
|
359
|
+
"button-text": "Host-Plattform hinzufügen",
|
|
360
|
+
size: "medium",
|
|
361
|
+
variant: "tertiary",
|
|
362
|
+
"icon-start": "plus",
|
|
363
|
+
disabled: !r.value,
|
|
364
|
+
onClick: e[3] || (e[3] = (n) => r.value && l(Ee)(""))
|
|
365
|
+
}, null, 8, ["disabled"])
|
|
366
|
+
])) : S("", !0)
|
|
367
|
+
]),
|
|
368
|
+
S("", !0),
|
|
369
|
+
i("section", Pn, [
|
|
370
|
+
e[27] || (e[27] = i("h5", null, "Zweck (optional)", -1)),
|
|
371
|
+
e[28] || (e[28] = i("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
|
|
372
|
+
L.value ? (c(), p("div", xn, [
|
|
373
|
+
(c(!0), p(g, null, P(l(h), (n, u) => (c(), p("div", {
|
|
374
|
+
key: `zweck-${u}`,
|
|
375
|
+
class: "functionalities"
|
|
376
|
+
}, [
|
|
377
|
+
fe(i("input", O({
|
|
378
|
+
id: `zweck-${n}`,
|
|
379
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => A(h) ? h.value = a : null),
|
|
380
|
+
hidden: "",
|
|
381
|
+
value: n,
|
|
382
|
+
name: "selectedForProperties",
|
|
383
|
+
type: "checkbox"
|
|
384
|
+
}, { ref_for: !0 }, l(Ie)), null, 16, Un), [
|
|
385
|
+
[sn, l(h)]
|
|
386
|
+
]),
|
|
387
|
+
o(pn, {
|
|
388
|
+
as: "label",
|
|
389
|
+
for: `zweck-${n}`,
|
|
390
|
+
text: n,
|
|
391
|
+
setup: {
|
|
392
|
+
"@type": "select",
|
|
393
|
+
"@icon": "suffix",
|
|
394
|
+
"@inTable": !1,
|
|
395
|
+
"@search": !1,
|
|
396
|
+
"@selected": !0
|
|
397
|
+
},
|
|
398
|
+
data: { "@value": n, URI: n },
|
|
399
|
+
"select-value": !0
|
|
400
|
+
}, null, 8, ["for", "text", "data"])
|
|
401
|
+
]))), 128))
|
|
402
|
+
])) : S("", !0),
|
|
403
|
+
fe(o(U, { onDelete: qe }, {
|
|
404
|
+
actions: v(() => [
|
|
405
|
+
i("div", In, [
|
|
406
|
+
i("div", $n, [
|
|
407
|
+
o(f, {
|
|
408
|
+
"button-text": "Zweck hinzufügen",
|
|
409
|
+
size: "medium",
|
|
410
|
+
variant: "tertiary",
|
|
411
|
+
"icon-start": "plus",
|
|
412
|
+
disabled: !r.value,
|
|
413
|
+
onClick: l(J)
|
|
414
|
+
}, null, 8, ["disabled", "onClick"])
|
|
415
|
+
]),
|
|
416
|
+
i("div", Cn, [
|
|
417
|
+
o(f, {
|
|
418
|
+
"button-text": "Löschen",
|
|
419
|
+
size: "small",
|
|
420
|
+
variant: "tertiary",
|
|
421
|
+
"icon-start": "trash",
|
|
422
|
+
onClick: Je
|
|
423
|
+
})
|
|
424
|
+
])
|
|
425
|
+
])
|
|
426
|
+
]),
|
|
427
|
+
default: v(() => [
|
|
428
|
+
o(we, {
|
|
429
|
+
modelValue: E.value,
|
|
430
|
+
"onUpdate:modelValue": e[6] || (e[6] = (n) => E.value = n),
|
|
431
|
+
name: "zweckSelect",
|
|
432
|
+
options: Te.value,
|
|
433
|
+
label: "Zweck auswählen",
|
|
434
|
+
placeholder: "Wählen Sie einen Zweck.",
|
|
435
|
+
disabled: !r.value || L.value,
|
|
436
|
+
form: l(M)
|
|
437
|
+
}, null, 8, ["modelValue", "options", "disabled", "form"]),
|
|
438
|
+
e[26] || (e[26] = i("h5", null, "oder", -1)),
|
|
439
|
+
o(H, {
|
|
440
|
+
modelValue: q.value,
|
|
441
|
+
"onUpdate:modelValue": e[7] || (e[7] = (n) => q.value = n),
|
|
442
|
+
name: "zweckInput",
|
|
443
|
+
"add-on-text": !1,
|
|
444
|
+
"date-picker": !1,
|
|
445
|
+
"info-icon": !1,
|
|
446
|
+
"show-end-icon": !1,
|
|
447
|
+
"pre-icon": !1,
|
|
448
|
+
"is-disabled": !r.value || L.value,
|
|
449
|
+
label: "Zweck nennen",
|
|
450
|
+
placeholder: "Nennen Sie einen Zweck.",
|
|
451
|
+
"initial-hint-text": !1,
|
|
452
|
+
form: l(M)
|
|
453
|
+
}, null, 8, ["modelValue", "is-disabled", "form"])
|
|
454
|
+
]),
|
|
455
|
+
_: 1,
|
|
456
|
+
__: [26]
|
|
457
|
+
}, 512), [
|
|
458
|
+
[rn, D.value && !L.value]
|
|
603
459
|
]),
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
460
|
+
i("div", Ln, [
|
|
461
|
+
D.value ? S("", !0) : (c(), V(f, {
|
|
462
|
+
key: 0,
|
|
463
|
+
"button-text": "Zweck hinzufügen",
|
|
464
|
+
size: "medium",
|
|
465
|
+
variant: "tertiary",
|
|
466
|
+
"icon-start": "plus",
|
|
467
|
+
disabled: !r.value,
|
|
468
|
+
onClick: e[8] || (e[8] = (n) => r.value && (D.value = !0))
|
|
469
|
+
}, null, 8, ["disabled"]))
|
|
470
|
+
])
|
|
471
|
+
]),
|
|
472
|
+
i("section", Dn, [
|
|
473
|
+
e[29] || (e[29] = i("h5", null, "Standort (optional)", -1)),
|
|
474
|
+
e[30] || (e[30] = i("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
|
|
475
|
+
(c(!0), p(g, null, P(l(De), (n, u) => (c(), V(U, {
|
|
476
|
+
key: n.key,
|
|
477
|
+
onDelete: (a) => l(Ce)(u)
|
|
478
|
+
}, {
|
|
479
|
+
default: v(() => [
|
|
480
|
+
o(H, {
|
|
481
|
+
modelValue: n.value.lat,
|
|
482
|
+
"onUpdate:modelValue": (a) => n.value.lat = a,
|
|
483
|
+
name: `locations[${u}].lat`,
|
|
484
|
+
"add-on-text": !1,
|
|
485
|
+
"date-picker": !1,
|
|
486
|
+
"info-icon": !1,
|
|
487
|
+
"show-end-icon": !1,
|
|
488
|
+
"pre-icon": !1,
|
|
489
|
+
"is-disabled": !r.value,
|
|
490
|
+
label: "Latitude / Breite",
|
|
491
|
+
placeholder: "Geben Sie die Ortskoordinate Latitude an.",
|
|
492
|
+
form: l(b)
|
|
493
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
494
|
+
o(H, {
|
|
495
|
+
modelValue: n.value.lng,
|
|
496
|
+
"onUpdate:modelValue": (a) => n.value.lng = a,
|
|
497
|
+
name: `locations[${u}].lng`,
|
|
498
|
+
"add-on-text": !1,
|
|
499
|
+
"date-picker": !1,
|
|
500
|
+
"info-icon": !1,
|
|
501
|
+
"show-end-icon": !1,
|
|
502
|
+
"pre-icon": !1,
|
|
503
|
+
"is-disabled": !r.value,
|
|
504
|
+
label: "Longitude / Länge",
|
|
505
|
+
placeholder: "Geben Sie die Ortskoordinate Longitude an.",
|
|
506
|
+
form: l(b)
|
|
507
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"])
|
|
508
|
+
]),
|
|
509
|
+
_: 2
|
|
510
|
+
}, 1032, ["onDelete"]))), 128)),
|
|
511
|
+
i("div", Fn, [
|
|
512
|
+
o(f, {
|
|
513
|
+
"button-text": "Standort hinzufügen",
|
|
514
|
+
size: "medium",
|
|
515
|
+
variant: "tertiary",
|
|
516
|
+
"icon-start": "plus",
|
|
517
|
+
disabled: !r.value,
|
|
518
|
+
onClick: e[9] || (e[9] = (n) => r.value && l(Le)({ lat: "", lng: "" }))
|
|
519
|
+
}, null, 8, ["disabled"])
|
|
520
|
+
])
|
|
521
|
+
]),
|
|
522
|
+
i("section", Zn, [
|
|
523
|
+
e[31] || (e[31] = i("h5", null, "Darstellungen (optional)", -1)),
|
|
524
|
+
e[32] || (e[32] = i("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
|
|
525
|
+
(c(!0), p(g, null, P(l(Ae), (n, u) => (c(), V(U, {
|
|
526
|
+
key: n.key,
|
|
527
|
+
onDelete: (a) => l(Fe)(u)
|
|
528
|
+
}, {
|
|
529
|
+
default: v(() => [
|
|
530
|
+
o(H, {
|
|
531
|
+
modelValue: n.value,
|
|
532
|
+
"onUpdate:modelValue": (a) => n.value = a,
|
|
533
|
+
name: `depictions[${u}]`,
|
|
534
|
+
"add-on-text": !1,
|
|
535
|
+
"date-picker": !1,
|
|
536
|
+
"info-icon": !1,
|
|
537
|
+
"show-end-icon": !1,
|
|
538
|
+
"pre-icon": !1,
|
|
539
|
+
"is-disabled": !r.value,
|
|
540
|
+
"input-type": "url",
|
|
541
|
+
label: "URL",
|
|
542
|
+
placeholder: "https://www.url.com",
|
|
543
|
+
form: l(b)
|
|
544
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"])
|
|
545
|
+
]),
|
|
546
|
+
_: 2
|
|
547
|
+
}, 1032, ["onDelete"]))), 128)),
|
|
548
|
+
i("div", An, [
|
|
549
|
+
o(f, {
|
|
550
|
+
"button-text": "Darstellung hinzufügen",
|
|
551
|
+
size: "medium",
|
|
552
|
+
variant: "tertiary",
|
|
553
|
+
"icon-start": "plus",
|
|
554
|
+
disabled: !r.value,
|
|
555
|
+
onClick: e[10] || (e[10] = (n) => r.value && l(Ze)(""))
|
|
556
|
+
}, null, 8, ["disabled"])
|
|
557
|
+
])
|
|
558
|
+
]),
|
|
559
|
+
i("section", Wn, [
|
|
560
|
+
e[33] || (e[33] = i("h5", null, "Weiterführende Links (optional)", -1)),
|
|
561
|
+
e[34] || (e[34] = i("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
|
|
562
|
+
(c(!0), p(g, null, P(l(_e), (n, u) => (c(), V(U, {
|
|
563
|
+
key: n.key,
|
|
564
|
+
onDelete: (a) => l(We)(u)
|
|
565
|
+
}, {
|
|
566
|
+
default: v(() => [
|
|
567
|
+
o(H, {
|
|
568
|
+
modelValue: n.value.name,
|
|
569
|
+
"onUpdate:modelValue": (a) => n.value.name = a,
|
|
570
|
+
name: `references[${u}].name`,
|
|
571
|
+
"add-on-text": !1,
|
|
572
|
+
"date-picker": !1,
|
|
573
|
+
"info-icon": !1,
|
|
574
|
+
"show-end-icon": !1,
|
|
575
|
+
"pre-icon": !1,
|
|
576
|
+
"is-disabled": !r.value,
|
|
577
|
+
label: "Name",
|
|
578
|
+
placeholder: "Benennen Sie den Link.",
|
|
579
|
+
form: l(b)
|
|
580
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
581
|
+
o(H, {
|
|
582
|
+
modelValue: n.value.url,
|
|
583
|
+
"onUpdate:modelValue": (a) => n.value.url = a,
|
|
584
|
+
name: `references[${u}].url`,
|
|
585
|
+
"add-on-text": !1,
|
|
586
|
+
"date-picker": !1,
|
|
587
|
+
"info-icon": !1,
|
|
588
|
+
"show-end-icon": !1,
|
|
589
|
+
"pre-icon": !1,
|
|
590
|
+
"is-disabled": !r.value,
|
|
591
|
+
"input-type": "url",
|
|
592
|
+
label: "URL",
|
|
593
|
+
placeholder: "https://www.url.com",
|
|
594
|
+
form: l(b)
|
|
595
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
|
|
596
|
+
o(fn, {
|
|
597
|
+
modelValue: n.value.description,
|
|
598
|
+
"onUpdate:modelValue": (a) => n.value.description = a,
|
|
599
|
+
name: `references[${u}].description`,
|
|
600
|
+
label: "Beschreibung (optional)",
|
|
601
|
+
placeholder: "Beschreiben Sie Ihren weiterführenden Link in ein paar Sätzen.",
|
|
602
|
+
"is-disabled": !r.value,
|
|
603
|
+
max: W,
|
|
604
|
+
hint: "true",
|
|
605
|
+
"hint-message": `${Ye(n)} von ${W} Zeichen`,
|
|
606
|
+
"count-hint": !0,
|
|
607
|
+
form: l(b)
|
|
608
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "hint-message", "form"])
|
|
609
|
+
]),
|
|
610
|
+
_: 2
|
|
611
|
+
}, 1032, ["onDelete"]))), 128)),
|
|
612
|
+
i("div", Rn, [
|
|
613
|
+
o(f, {
|
|
614
|
+
"button-text": "Link hinzufügen",
|
|
615
|
+
size: "medium",
|
|
616
|
+
variant: "tertiary",
|
|
617
|
+
"icon-start": "plus",
|
|
618
|
+
disabled: !r.value,
|
|
619
|
+
onClick: e[11] || (e[11] = (n) => r.value && l(Re)({ name: "", url: "", description: "" }))
|
|
620
|
+
}, null, 8, ["disabled"])
|
|
621
|
+
])
|
|
622
|
+
]),
|
|
623
|
+
i("section", _n, [
|
|
624
|
+
B ? (c(), p("div", Mn, [
|
|
625
|
+
o(f, {
|
|
626
|
+
"button-text": "Abbrechen",
|
|
627
|
+
variant: "tertiary",
|
|
628
|
+
onClick: e[12] || (e[12] = (n) => R("close"))
|
|
629
|
+
}),
|
|
630
|
+
o(f, {
|
|
631
|
+
"button-text": "Speichern",
|
|
632
|
+
disabled: !r.value || !K.value,
|
|
633
|
+
onClick: l(Q)
|
|
634
|
+
}, null, 8, ["disabled", "onClick"])
|
|
635
|
+
])) : (c(), V(f, {
|
|
636
|
+
key: 1,
|
|
637
|
+
"icon-start": "PlusSquare",
|
|
638
|
+
"button-text": "Hardware hinzufügen",
|
|
639
|
+
disabled: !r.value || !K.value,
|
|
640
|
+
onClick: l(Q)
|
|
641
|
+
}, null, 8, ["disabled", "onClick"]))
|
|
615
642
|
])
|
|
616
|
-
])
|
|
617
|
-
|
|
618
|
-
H ? (d(), m("div", Wn, [
|
|
619
|
-
s(p, {
|
|
620
|
-
"button-text": "Abbrechen",
|
|
621
|
-
variant: "tertiary",
|
|
622
|
-
onClick: n[12] || (n[12] = (e) => W("close"))
|
|
623
|
-
}),
|
|
624
|
-
s(p, {
|
|
625
|
-
"button-text": "Speichern",
|
|
626
|
-
disabled: !a.value || !G.value,
|
|
627
|
-
onClick: l(q)
|
|
628
|
-
}, null, 8, ["disabled", "onClick"])
|
|
629
|
-
])) : (d(), S(p, {
|
|
630
|
-
key: 1,
|
|
631
|
-
"icon-start": "PlusSquare",
|
|
632
|
-
"button-text": "Hardware hinzufügen",
|
|
633
|
-
disabled: !a.value || !G.value,
|
|
634
|
-
onClick: l(q)
|
|
635
|
-
}, null, 8, ["disabled", "onClick"]))
|
|
636
|
-
])
|
|
637
|
-
]));
|
|
643
|
+
]);
|
|
644
|
+
};
|
|
638
645
|
}
|
|
639
646
|
});
|
|
640
647
|
export {
|
|
641
|
-
|
|
648
|
+
ut as default
|
|
642
649
|
};
|