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