@piveau/dpi 0.2.0-alpha.21 → 0.2.0-alpha.23

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,26 +1,26 @@
1
- import { defineComponent as wt, mergeModels as be, useModel as gt, unref as i, watch as O, ref as j, computed as w, createElementBlock as p, openBlock as d, createElementVNode as o, createCommentVNode as F, createVNode as u, mergeProps as g, isRef as z, withCtx as k, Fragment as y, renderList as V, withDirectives as we, vModelCheckbox as ge, createBlock as S } from "vue";
2
- 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";
3
- import { useForm as K, useFieldArray as x } from "vee-validate";
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
+ 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 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.", P = 500, un = /* @__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
25
  props: /* @__PURE__ */ be({
26
26
  modelValue: {},
@@ -34,11 +34,11 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
34
34
  }),
35
35
  emits: /* @__PURE__ */ be(["submit", "patch", "close"], ["update:modelValue"]),
36
36
  setup(Q, { emit: Ie }) {
37
- var le, oe, se, re, ae, ue, de, ce, pe, me;
38
- const m = Q, D = Ie, Fe = gt(Q, "modelValue"), B = !!m.modelValue, He = i(m.modelValue) || "", xe = s.object({
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("")
@@ -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
78
  } = K({
65
- validationSchema: q(Ue),
79
+ validationSchema: j(Ue),
66
80
  initialValues: {
67
- id: m.modelValue || "",
68
- description: ((le = m.initializeWith) == null ? void 0 : le.description) || "",
69
- functionalities: ((oe = m.initializeWith) == null ? void 0 : oe.functionalities) || [],
70
- forProperty: ((se = m.initializeWith) == null ? void 0 : se.forProperty) || [],
71
- locations: ((re = m.initializeWith) == null ? void 0 : re.locations) || [],
72
- depictions: ((ae = m.initializeWith) == null ? void 0 : ae.depictions) || [],
73
- references: ((ue = m.initializeWith) == null ? void 0 : ue.references) || [],
74
- isHostedBy: Y((de = m.initializeWith) == null ? void 0 : de.isHostedBy),
75
- hosts: Y((ce = m.initializeWith) == null ? void 0 : ce.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"), [Kt, 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 Z = j(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 : "",
@@ -111,18 +125,18 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
111
125
  version: n.version,
112
126
  unavailable: n.unavailable
113
127
  };
114
- Z.value = t;
128
+ L.value = t;
115
129
  }
116
- const r = w(() => !!I.value), J = 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
- return ((n = Z.value) == null ? void 0 : n.functionalities) ?? [];
122
- }), tt = w(() => {
135
+ return ((n = L.value) == null ? void 0 : n.functionalities) ?? [];
136
+ }), Xe = b(() => {
123
137
  var n;
124
- return ((n = Z.value) == null ? void 0 : n.forProperty) ?? [];
125
- }), nt = s.object({
138
+ return ((n = L.value) == null ? void 0 : n.forProperty) ?? [];
139
+ }), et = s.object({
126
140
  functionalitySelect: s.string().optional(),
127
141
  functionalityInput: s.string().optional()
128
142
  }).superRefine((n, t) => {
@@ -138,16 +152,16 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
138
152
  }));
139
153
  }), {
140
154
  defineField: X,
141
- handleSubmit: it,
142
- errors: L,
155
+ handleSubmit: tt,
156
+ errors: _,
143
157
  resetForm: W
144
158
  } = K({
145
- validationSchema: q(nt),
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) => {
@@ -163,24 +177,24 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
163
177
  }));
164
178
  }), {
165
179
  defineField: ee,
166
- handleSubmit: ot,
167
- errors: _,
168
- resetForm: G
180
+ handleSubmit: it,
181
+ errors: R,
182
+ resetForm: E
169
183
  } = K({
170
- validationSchema: q(lt),
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 && (W(), v.value = [], G(), h.value = []);
191
+ !!t && !!n && n !== t && (W(), v.value = [], E(), h.value = []);
178
192
  });
179
- const [U, st] = X("functionalitySelect"), [R, rt] = X("functionalityInput"), te = w(() => Array.from(v.value || [])), [E, at] = ee("zweckSelect"), [N, ut] = ee("zweckInput"), A = w(() => h.value && h.value.length > 0), T = j(!!((me = (pe = m.initializeWith) == null ? void 0 : pe.forProperty) != null && me.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 ne = 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 ? D("patch", {
213
+ $ ? Z("patch", {
200
214
  id: He,
201
215
  hardware: t
202
- }) : D("submit", t), W(), G(), Ce();
203
- }), ie = 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
220
  t && t.trim().length > 0 && !((e = v.value) != null && e.includes(t)) && ((l = v.value) == null || l.push(t)), W();
207
221
  });
208
- O(U, (n) => {
222
+ O(A, (n) => {
209
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,24 +234,27 @@ 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)), G();
227
- }), M = j(""), mt = w(() => M.value.length);
228
- function ft(n) {
240
+ t && t.trim().length > 0 && !((e = h.value) != null && e.includes(t)) && ((l = h.value) == null || l.push(t)), E();
241
+ }), ct = b(() => {
242
+ var n;
243
+ return ((n = U.value) == null ? void 0 : n.length) || 0;
244
+ });
245
+ function mt(n) {
229
246
  var t;
230
247
  return ((t = n.value.description) == null ? void 0 : t.length) ?? 0;
231
248
  }
232
- const { authToken: ht, username: vt } = kt(), bt = w(() => `https://form.typeform.com/to/ayL37uiV#token=${ht.value}&account=${vt.value}`);
233
- return (n, t) => (d(), p("div", zt, [
234
- o("section", Vt, [
235
- B ? F("", !0) : (d(), p("h5", It, "Wählen Sie eine bestehende Hardware")),
236
- 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({
237
254
  modelValue: i(I),
238
- "onUpdate:modelValue": t[0] || (t[0] = (e) => z(I) ? I.value = e : null),
255
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => g(I) ? I.value = e : null),
239
256
  label: "Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen."
240
- }, i(Pe), {
257
+ }, i(De), {
241
258
  "base-url": "https://twin.bydata.de/api/hub/search",
242
259
  resource: "hardware",
243
260
  placeholder: "Hardware...",
@@ -249,17 +266,17 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
249
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),
250
267
  functionalities: (e == null ? void 0 : e.functionalities) || [],
251
268
  forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
252
- unavailable: m.exclude.includes(e == null ? void 0 : e.id),
269
+ unavailable: p.exclude.includes(e == null ? void 0 : e.id),
253
270
  manufacturer: (fe = (C = e == null ? void 0 : e.manufacturer) == null ? void 0 : C[0]) == null ? void 0 : fe.label,
254
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),
255
272
  version: e == null ? void 0 : e.version
256
273
  };
257
274
  },
258
- "post-process-fn": ct,
259
- onSelect: Xe
275
+ "post-process-fn": ut,
276
+ onSelect: Ye
260
277
  }), {
261
- option: k(({ option: e, active: l, selected: a, disabled: C }) => [
262
- u(St, {
278
+ option: y(({ option: e, active: l, selected: a, disabled: C }) => [
279
+ u(kt, {
263
280
  name: e.name,
264
281
  manufacturer: e.manufacturer,
265
282
  description: e.description,
@@ -270,12 +287,12 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
270
287
  ]),
271
288
  _: 1
272
289
  }, 16, ["modelValue", "setup-fn"]),
273
- B ? F("", !0) : (d(), p(y, { key: 1 }, [
290
+ $ ? k("", !0) : (d(), m(S, { key: 1 }, [
274
291
  t[15] || (t[15] = o("h5", null, "oder", -1)),
275
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)),
276
- o("div", Ft, [
293
+ o("div", Vt, [
277
294
  o("a", {
278
- href: bt.value,
295
+ href: ht.value,
279
296
  target: "_blank"
280
297
  }, [
281
298
  u(f, {
@@ -283,29 +300,29 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
283
300
  size: "medium",
284
301
  variant: "secondary"
285
302
  })
286
- ], 8, Ht)
303
+ ], 8, It)
287
304
  ])
288
305
  ], 64))
289
306
  ]),
290
- o("section", xt, [
307
+ o("section", Ft, [
291
308
  t[17] || (t[17] = o("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
292
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)),
293
- te.value.length > 0 ? (d(), p("div", Bt, [
294
- (d(!0), p(y, null, V(te.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", {
295
312
  key: l,
296
313
  class: "functionalities"
297
314
  }, [
298
- we(o("input", g({
315
+ ge(o("input", w({
299
316
  id: e,
300
- "onUpdate:modelValue": t[1] || (t[1] = (a) => z(v) ? v.value = a : null),
317
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => g(v) ? v.value = a : null),
301
318
  hidden: "",
302
319
  value: e,
303
320
  name: "selectedFunctionalities",
304
321
  type: "checkbox"
305
- }, { ref_for: !0 }, i(De)), null, 16, $t), [
306
- [ge, i(v)]
322
+ }, { ref_for: !0 }, i(Ze)), null, 16, Bt), [
323
+ [ke, i(v)]
307
324
  ]),
308
- u(ke, {
325
+ u(ye, {
309
326
  as: "label",
310
327
  for: e,
311
328
  text: e,
@@ -320,22 +337,22 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
320
337
  "select-value": !0
321
338
  }, null, 8, ["for", "text", "data"])
322
339
  ]))), 128))
323
- ])) : F("", !0),
324
- u(ye, g({
325
- modelValue: i(U),
326
- "onUpdate:modelValue": t[2] || (t[2] = (e) => z(U) ? U.value = e : null),
327
- options: et.value,
328
- "error-message": i(L).functionalitySelect,
340
+ ])) : k("", !0),
341
+ u(q, w({
342
+ modelValue: i(A),
343
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => g(A) ? A.value = e : null),
344
+ options: Je.value,
345
+ "error-message": i(_).functionalitySelect,
329
346
  label: "Funktionalitäten auswählen",
330
347
  placeholder: "Wählen Sie eine Funktionalität.",
331
348
  disabled: !r.value
332
- }, i(st)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
349
+ }, i(lt)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
333
350
  t[19] || (t[19] = o("h5", null, " oder ", -1)),
334
- u(b, g({
335
- modelValue: i(R),
336
- "onUpdate:modelValue": t[3] || (t[3] = (e) => z(R) ? R.value = e : null),
337
- error_message: i(L).functionalityInput,
338
- "show-error": !!i(L).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,
339
356
  "add-on-text": !1,
340
357
  "date-picker": !1,
341
358
  "info-icon": !1,
@@ -345,8 +362,8 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
345
362
  label: "Funktionalitäten nennen",
346
363
  placeholder: "Nennen Sie eine Funktionalität",
347
364
  "initial-hint-text": !1
348
- }, i(rt)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
349
- o("div", Ut, [
365
+ }, i(ot)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
366
+ o("div", $t, [
350
367
  u(f, {
351
368
  "button-text": "Funktionalität hinzufügen",
352
369
  size: "medium",
@@ -357,49 +374,43 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
357
374
  }, null, 8, ["disabled", "onClick"])
358
375
  ])
359
376
  ]),
360
- o("section", At, [
377
+ o("section", xt, [
361
378
  t[20] || (t[20] = o("h5", null, "Beschreibung der Nutzung (optional)", -1)),
362
379
  t[21] || (t[21] = o("p", null, "Beschreiben Sie die ausgewählte Hardware.", -1)),
363
- u(Se, g({
364
- modelValue: M.value,
365
- "onUpdate:modelValue": t[4] || (t[4] = (e) => M.value = e),
380
+ u(Se, w({
381
+ modelValue: i(U),
382
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => g(U) ? U.value = e : null),
366
383
  label: "Beschreibung",
367
384
  placeholder: "Beschreiben Sie die Hardware",
368
385
  "is-disabled": !r.value
369
- }, i(Le), {
370
- max: P,
386
+ }, i(_e), {
387
+ max: D,
371
388
  validation: "required|length:0,500",
372
389
  hint: "true",
373
- "hint-message": `${mt.value} von ${P} Zeichen`,
390
+ "hint-message": `${ct.value} von ${D} Zeichen`,
374
391
  "count-hint": !0
375
392
  }), null, 16, ["modelValue", "is-disabled", "hint-message"])
376
393
  ]),
377
- o("section", Ct, [
394
+ o("section", Ut, [
378
395
  t[22] || (t[22] = o("h5", null, "Host-Plattform (optional)", -1)),
379
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)),
380
- (d(!0), p(y, null, V(i(Ke), (e, l) => (d(), S(H, {
397
+ (d(!0), m(S, null, F(i(Qe), (e, l) => (d(), z(B, {
381
398
  key: e.key,
382
- onDelete: (a) => i(je)(l)
399
+ onDelete: (a) => i(Ke)(l)
383
400
  }, {
384
- default: k(() => [
385
- u(b, {
401
+ default: y(() => [
402
+ u(q, {
386
403
  modelValue: e.value,
387
404
  "onUpdate:modelValue": (a) => e.value = a,
388
- "add-on-text": !1,
389
- "date-picker": !1,
390
- "info-icon": !1,
391
- "show-end-icon": !1,
392
- "pre-icon": !1,
393
- "is-disabled": !r.value,
394
- "input-type": "text",
405
+ options: Ae,
395
406
  label: "Host-Plattform",
396
- placeholder: "Wählen Sie ein gehostetes Gerät.",
397
- "initial-hint-text": !1
398
- }, 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"])
399
410
  ]),
400
411
  _: 2
401
412
  }, 1032, ["onDelete"]))), 128)),
402
- o("div", Pt, [
413
+ o("div", At, [
403
414
  u(f, {
404
415
  "button-text": "Host-Plattform hinzufügen",
405
416
  size: "medium",
@@ -410,61 +421,26 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
410
421
  }, null, 8, ["disabled"])
411
422
  ])
412
423
  ]),
413
- o("section", Dt, [
414
- t[24] || (t[24] = o("h5", null, "Gehostete Geräte (optional)", -1)),
415
- t[25] || (t[25] = o("p", null, "Falls die von Ihnen verwendete Hardware eine Plattform ist, geben Sie hier die Sensoren oder Aktuatoren an, die von dieser Plattform gehostet werden.", -1)),
416
- (d(!0), p(y, null, V(i(Je), (e, l) => (d(), S(H, {
417
- key: e.key,
418
- onDelete: (a) => i(Qe)(l)
419
- }, {
420
- default: k(() => [
421
- u(b, {
422
- modelValue: e.value,
423
- "onUpdate:modelValue": (a) => e.value = a,
424
- "add-on-text": !1,
425
- "date-picker": !1,
426
- "info-icon": !1,
427
- "show-end-icon": !1,
428
- "pre-icon": !1,
429
- "is-disabled": !r.value,
430
- "input-type": "text",
431
- label: "Gehostetes Gerät",
432
- placeholder: "Wählen Sie ein gehostetes Gerät.",
433
- "initial-hint-text": !1
434
- }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled"])
435
- ]),
436
- _: 2
437
- }, 1032, ["onDelete"]))), 128)),
438
- o("div", Zt, [
439
- u(f, {
440
- "button-text": "Gehostetes Gerät hinzufügen",
441
- size: "medium",
442
- variant: "tertiary",
443
- "icon-start": "plus",
444
- disabled: !r.value,
445
- onClick: t[6] || (t[6] = (e) => r.value && i(Ye)(""))
446
- }, null, 8, ["disabled"])
447
- ])
448
- ]),
449
- o("section", Lt, [
424
+ k("", !0),
425
+ o("section", Pt, [
450
426
  t[27] || (t[27] = o("h5", null, "Zweck (optional)", -1)),
451
427
  t[28] || (t[28] = o("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
452
- A.value ? (d(), p("div", Wt, [
453
- (d(!0), p(y, 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", {
454
430
  key: `zweck-${l}`,
455
431
  class: "functionalities"
456
432
  }, [
457
- we(o("input", g({
433
+ ge(o("input", w({
458
434
  id: `zweck-${e}`,
459
- "onUpdate:modelValue": t[7] || (t[7] = (a) => z(h) ? h.value = a : null),
435
+ "onUpdate:modelValue": t[7] || (t[7] = (a) => g(h) ? h.value = a : null),
460
436
  hidden: "",
461
437
  value: e,
462
438
  name: "selectedForProperties",
463
439
  type: "checkbox"
464
- }, { ref_for: !0 }, i(Ze)), null, 16, _t), [
465
- [ge, i(h)]
440
+ }, { ref_for: !0 }, i(Le)), null, 16, Dt), [
441
+ [ke, i(h)]
466
442
  ]),
467
- u(ke, {
443
+ u(ye, {
468
444
  as: "label",
469
445
  for: `zweck-${e}`,
470
446
  text: e,
@@ -479,72 +455,72 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
479
455
  "select-value": !0
480
456
  }, null, 8, ["for", "text", "data"])
481
457
  ]))), 128))
482
- ])) : F("", !0),
483
- T.value && !A.value ? (d(), S(H, {
458
+ ])) : k("", !0),
459
+ M.value && !P.value ? (d(), z(B, {
484
460
  key: 1,
485
- onDelete: dt
461
+ onDelete: at
486
462
  }, {
487
- actions: k(() => [
463
+ actions: y(() => [
488
464
  u(f, {
489
465
  "button-text": "Zweck hinzufügen",
490
466
  size: "medium",
491
467
  variant: "tertiary",
492
468
  "icon-start": "plus",
493
469
  disabled: !r.value,
494
- onClick: i(pt)
470
+ onClick: i(dt)
495
471
  }, null, 8, ["disabled", "onClick"])
496
472
  ]),
497
- default: k(() => [
498
- u(ye, g({
499
- modelValue: i(E),
500
- "onUpdate:modelValue": t[8] || (t[8] = (e) => z(E) ? E.value = e : null),
501
- options: tt.value,
502
- "error-message": i(_).zweckSelect,
473
+ default: y(() => [
474
+ u(q, w({
475
+ modelValue: i(N),
476
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => g(N) ? N.value = e : null),
477
+ options: Xe.value,
478
+ "error-message": i(R).zweckSelect,
503
479
  label: "Zweck auswählen",
504
480
  placeholder: "Wählen Sie einen Zweck.",
505
- disabled: !r.value || A.value
506
- }, 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"]),
507
483
  t[26] || (t[26] = o("h5", null, "oder", -1)),
508
- u(b, g({
509
- modelValue: i(N),
510
- "onUpdate:modelValue": t[9] || (t[9] = (e) => z(N) ? N.value = e : null),
511
- error_message: i(_).zweckInput,
512
- "show-error": !!i(_).zweckInput,
484
+ u(V, w({
485
+ modelValue: i(T),
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,
513
489
  "add-on-text": !1,
514
490
  "date-picker": !1,
515
491
  "info-icon": !1,
516
492
  "show-end-icon": !1,
517
493
  "pre-icon": !1,
518
- "is-disabled": !r.value || A.value,
494
+ "is-disabled": !r.value || P.value,
519
495
  label: "Zweck nennen",
520
496
  placeholder: "Nennen Sie einen Zweck",
521
497
  "initial-hint-text": !1
522
- }, i(ut)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"])
498
+ }, i(rt)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"])
523
499
  ]),
524
500
  _: 1,
525
501
  __: [26]
526
- })) : F("", !0),
527
- o("div", Gt, [
528
- T.value ? F("", !0) : (d(), S(f, {
502
+ })) : k("", !0),
503
+ o("div", Zt, [
504
+ M.value ? k("", !0) : (d(), z(f, {
529
505
  key: 0,
530
506
  "button-text": "Zweck hinzufügen",
531
507
  size: "medium",
532
508
  variant: "tertiary",
533
509
  "icon-start": "plus",
534
510
  disabled: !r.value,
535
- onClick: t[10] || (t[10] = (e) => r.value && (T.value = !0))
511
+ onClick: t[10] || (t[10] = (e) => r.value && (M.value = !0))
536
512
  }, null, 8, ["disabled"]))
537
513
  ])
538
514
  ]),
539
- o("section", Rt, [
515
+ o("section", Lt, [
540
516
  t[29] || (t[29] = o("h5", null, "Standort (optional)", -1)),
541
517
  t[30] || (t[30] = o("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
542
- (d(!0), p(y, null, V(i(Ge), (e, l) => (d(), S(H, {
518
+ (d(!0), m(S, null, F(i(Ee), (e, l) => (d(), z(B, {
543
519
  key: e.key,
544
520
  onDelete: (a) => i(We)(l)
545
521
  }, {
546
- default: k(() => [
547
- u(b, {
522
+ default: y(() => [
523
+ u(V, {
548
524
  modelValue: e.value.lat,
549
525
  "onUpdate:modelValue": (a) => e.value.lat = a,
550
526
  "add-on-text": !1,
@@ -559,7 +535,7 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
559
535
  "show-error": !!i(c)[`locations[${l}].lat`],
560
536
  error_message: i(c)[`locations[${l}].lat`]
561
537
  }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "initial-hint-text", "show-error", "error_message"]),
562
- u(b, {
538
+ u(V, {
563
539
  modelValue: e.value.lng,
564
540
  "onUpdate:modelValue": (a) => e.value.lng = a,
565
541
  "add-on-text": !1,
@@ -577,26 +553,26 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
577
553
  ]),
578
554
  _: 2
579
555
  }, 1032, ["onDelete"]))), 128)),
580
- o("div", Et, [
556
+ o("div", _t, [
581
557
  u(f, {
582
558
  "button-text": "Hinzufügen",
583
559
  size: "medium",
584
560
  variant: "tertiary",
585
561
  "icon-start": "plus",
586
562
  disabled: !r.value,
587
- 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: "" }))
588
564
  }, null, 8, ["disabled"])
589
565
  ])
590
566
  ]),
591
- o("section", Nt, [
567
+ o("section", Wt, [
592
568
  t[31] || (t[31] = o("h5", null, "Darstellungen (optional)", -1)),
593
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)),
594
- (d(!0), p(y, null, V(i(Ne), (e, l) => (d(), S(H, {
570
+ (d(!0), m(S, null, F(i(Te), (e, l) => (d(), z(B, {
595
571
  key: e.key,
596
- onDelete: (a) => i(Re)(l)
572
+ onDelete: (a) => i(Ge)(l)
597
573
  }, {
598
- default: k(() => [
599
- u(b, {
574
+ default: y(() => [
575
+ u(V, {
600
576
  modelValue: e.value,
601
577
  "onUpdate:modelValue": (a) => e.value = a,
602
578
  "add-on-text": !1,
@@ -613,26 +589,26 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
613
589
  ]),
614
590
  _: 2
615
591
  }, 1032, ["onDelete"]))), 128)),
616
- o("div", Tt, [
592
+ o("div", Rt, [
617
593
  u(f, {
618
594
  "button-text": "Darstellung hinzufügen",
619
595
  size: "medium",
620
596
  variant: "tertiary",
621
597
  "icon-start": "plus",
622
598
  disabled: !r.value,
623
- onClick: t[12] || (t[12] = (e) => r.value && i(Ee)(""))
599
+ onClick: t[12] || (t[12] = (e) => r.value && i(Ne)(""))
624
600
  }, null, 8, ["disabled"])
625
601
  ])
626
602
  ]),
627
- o("section", Mt, [
603
+ o("section", Et, [
628
604
  t[33] || (t[33] = o("h5", null, "Weiterführende Links (optional)", -1)),
629
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)),
630
- (d(!0), p(y, null, V(i(Oe), (e, l) => (d(), S(H, {
606
+ (d(!0), m(S, null, F(i(je), (e, l) => (d(), z(B, {
631
607
  key: e.key,
632
- onDelete: (a) => i(Te)(l)
608
+ onDelete: (a) => i(Me)(l)
633
609
  }, {
634
- default: k(() => [
635
- u(b, {
610
+ default: y(() => [
611
+ u(V, {
636
612
  modelValue: e.value.name,
637
613
  "onUpdate:modelValue": (a) => e.value.name = a,
638
614
  "add-on-text": !1,
@@ -647,7 +623,7 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
647
623
  "show-error": !!i(c)[`references[${l}].name`],
648
624
  "initial-hint-text": !!i(c)[`references[${l}].name`]
649
625
  }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "error_message", "show-error", "initial-hint-text"]),
650
- u(b, {
626
+ u(V, {
651
627
  modelValue: e.value.url,
652
628
  "onUpdate:modelValue": (a) => e.value.url = a,
653
629
  "add-on-text": !1,
@@ -672,39 +648,39 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
672
648
  "show-error": !!i(c)[`references[${l}].description`],
673
649
  "initial-hint-text": !!i(c)[`references[${l}].description`],
674
650
  "is-disabled": !r.value,
675
- max: P,
651
+ max: D,
676
652
  validation: "required|length:0,500",
677
653
  hint: "true",
678
- "hint-message": `${ft(e)} von ${P} Zeichen`,
654
+ "hint-message": `${mt(e)} von ${D} Zeichen`,
679
655
  "count-hint": !0
680
656
  }, null, 8, ["modelValue", "onUpdate:modelValue", "error_message", "show-error", "initial-hint-text", "is-disabled", "hint-message"])
681
657
  ]),
682
658
  _: 2
683
659
  }, 1032, ["onDelete"]))), 128)),
684
- o("div", Ot, [
660
+ o("div", Gt, [
685
661
  u(f, {
686
662
  "button-text": "Link hinzufügen",
687
663
  size: "medium",
688
664
  variant: "tertiary",
689
665
  "icon-start": "plus",
690
666
  disabled: !r.value,
691
- 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: "" }))
692
668
  }, null, 8, ["disabled"])
693
669
  ])
694
670
  ]),
695
- o("section", jt, [
696
- B ? (d(), p("div", qt, [
671
+ o("section", Nt, [
672
+ $ ? (d(), m("div", Tt, [
697
673
  u(f, {
698
674
  "button-text": "Abbrechen",
699
675
  variant: "tertiary",
700
- onClick: t[14] || (t[14] = (e) => D("close"))
676
+ onClick: t[14] || (t[14] = (e) => Z("close"))
701
677
  }),
702
678
  u(f, {
703
679
  "button-text": "Speichern",
704
680
  disabled: !r.value || !J.value,
705
681
  onClick: i(ne)
706
682
  }, null, 8, ["disabled", "onClick"])
707
- ])) : (d(), S(f, {
683
+ ])) : (d(), z(f, {
708
684
  key: 1,
709
685
  "icon-start": "PlusSquare",
710
686
  "button-text": "Hardware hinzufügen",
@@ -716,5 +692,5 @@ const zt = { class: "dpi-project-process-step V3-typography" }, Vt = { class: "s
716
692
  }
717
693
  });
718
694
  export {
719
- un as default
695
+ rn as default
720
696
  };