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