@piveau/dpi 0.2.0-alpha.22 → 0.2.0-alpha.24

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