@piveau/dpi 0.2.0-alpha.31 → 0.2.0-alpha.32

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,4 +1,4 @@
1
- import { defineComponent as gt, mergeModels as we, useModel as wt, unref as i, watch as K, ref as ke, computed as g, createElementBlock as p, openBlock as d, createElementVNode as s, createCommentVNode as w, createVNode as a, Fragment as k, mergeProps as y, isRef as S, withCtx as v, renderList as F, withDirectives as ye, vModelCheckbox as Se, createTextVNode as kt, createBlock as z } from "vue";
1
+ import { defineComponent as gt, mergeModels as ke, useModel as wt, unref as i, watch as Z, ref as ye, computed as g, createElementBlock as p, openBlock as d, createElementVNode as s, createCommentVNode as w, createVNode as a, Fragment as k, mergeProps as y, isRef as S, withCtx as v, renderList as F, withDirectives as Se, vModelCheckbox as ze, createTextVNode as kt, createBlock as z } from "vue";
2
2
  import { PhLightbulb as yt } from "@phosphor-icons/vue";
3
3
  import { toTypedSchema as q } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
4
4
  import { useForm as Q, useFieldArray as x } from "vee-validate";
@@ -7,10 +7,10 @@ import { useTwinbyUser as St } from "../../../composables/useTwinbyUser.js";
7
7
  import zt from "../Autocomplete/AutocompleteVocab.vue.js";
8
8
  import f from "../ButtonV3.vue.js";
9
9
  import Vt from "../Card.vue.js";
10
- import ze from "../Chip.vue.js";
10
+ import Ve from "../Chip.vue.js";
11
11
  import V from "../InputField.vue.js";
12
12
  import Y from "../ListBox/Listbox.vue.js";
13
- import Ve from "../TextAreaV3.vue.js";
13
+ import Ie from "../TextAreaV3.vue.js";
14
14
  import B from "./ProcessStepInputCard.vue.js";
15
15
  import It from "./RichOption.vue.js";
16
16
  const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "step-section" }, xt = { class: "step-section-actions" }, Bt = ["href"], Ct = { class: "step-section" }, $t = {
@@ -25,9 +25,9 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
25
25
  }, Rt = ["id", "value"], Et = { class: "step-section step-section--lg" }, Nt = { style: { display: "flex", "justify-content": "flex-end" } }, Gt = { style: { display: "inline-flex", "justify-content": "flex-end" } }, Tt = { class: "step-section-actions" }, Mt = { class: "step-section" }, Ot = { class: "step-section-actions" }, jt = { class: "step-section" }, Kt = { class: "step-section-actions" }, qt = { class: "step-section" }, Qt = { class: "step-section-actions" }, Yt = { class: "step-section-actions" }, Jt = {
26
26
  key: 0,
27
27
  class: "button-row"
28
- }, Ie = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Fe = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.", L = 500, bn = /* @__PURE__ */ gt({
28
+ }, Fe = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", He = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.", W = 500, bn = /* @__PURE__ */ gt({
29
29
  __name: "HardwareForm",
30
- props: /* @__PURE__ */ we({
30
+ props: /* @__PURE__ */ ke({
31
31
  modelValue: {},
32
32
  initializeWith: {},
33
33
  exclude: { default: () => [] }
@@ -37,13 +37,13 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
37
37
  },
38
38
  modelModifiers: {}
39
39
  }),
40
- emits: /* @__PURE__ */ we(["submit", "patch", "close"], ["update:modelValue"]),
41
- setup(J, { emit: He }) {
42
- var oe, re, ae, ue, de, ce, pe, me, fe, he;
43
- const m = J, Z = He, xe = wt(J, "modelValue"), H = !!m.modelValue, Be = i(m.modelValue) || "", Ce = o.object({
40
+ emits: /* @__PURE__ */ ke(["submit", "patch", "close"], ["update:modelValue"]),
41
+ setup(J, { emit: xe }) {
42
+ var re, ae, ue, de, ce, pe, me, fe, he, ve;
43
+ const m = J, R = xe, Be = wt(J, "modelValue"), H = !!m.modelValue, Ce = i(m.modelValue) || "", $e = o.object({
44
44
  lat: o.string().min(1, "Geben Sie einen Wert für die Breite ein"),
45
45
  lng: o.string().min(1, "Geben Sie einen Wert für die Länge ein")
46
- }), $e = o.array(Ce), Pe = o.object({
46
+ }), Pe = o.array($e), Ue = o.object({
47
47
  name: o.string().min(1, "Geben Sie einen Namen ein").default(""),
48
48
  url: o.string().min(1, "Geben Sie eine URL ein").default(""),
49
49
  description: o.string().min(1, "Geben Sie eine Beschreibung ein").default("")
@@ -51,17 +51,17 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
51
51
  function X(n) {
52
52
  return Array.isArray(n) ? n : n != null ? [n] : [];
53
53
  }
54
- const Ue = o.object({
54
+ const Ae = o.object({
55
55
  id: o.string(),
56
56
  description: o.string().optional(),
57
57
  functionalities: o.array(o.string()).min(1),
58
58
  forProperty: o.array(o.string()),
59
- locations: $e,
59
+ locations: Pe,
60
60
  depictions: o.array(o.string()),
61
- references: o.array(Pe),
61
+ references: o.array(Ue),
62
62
  isHostedBy: o.array(o.string()),
63
63
  hosts: o.array(o.string())
64
- }), Ae = [
64
+ }), De = [
65
65
  ...[
66
66
  "Mast",
67
67
  "Ampel",
@@ -79,49 +79,49 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
79
79
  "Sonstiges"
80
80
  ], {
81
81
  defineField: C,
82
- handleSubmit: De,
83
- resetForm: _e,
82
+ handleSubmit: _e,
83
+ resetForm: Le,
84
84
  errors: c
85
85
  } = Q({
86
- validationSchema: q(Ue),
86
+ validationSchema: q(Ae),
87
87
  initialValues: {
88
88
  id: m.modelValue || "",
89
- description: ((oe = m.initializeWith) == null ? void 0 : oe.description) || "",
90
- functionalities: ((re = m.initializeWith) == null ? void 0 : re.functionalities) || [],
91
- forProperty: ((ae = m.initializeWith) == null ? void 0 : ae.forProperty) || [],
92
- locations: ((ue = m.initializeWith) == null ? void 0 : ue.locations) || [],
93
- depictions: ((de = m.initializeWith) == null ? void 0 : de.depictions) || [],
94
- references: ((ce = m.initializeWith) == null ? void 0 : ce.references) || [],
95
- isHostedBy: X((pe = m.initializeWith) == null ? void 0 : pe.isHostedBy),
96
- hosts: X((me = m.initializeWith) == null ? void 0 : me.hosts)
89
+ description: ((re = m.initializeWith) == null ? void 0 : re.description) || "",
90
+ functionalities: ((ae = m.initializeWith) == null ? void 0 : ae.functionalities) || [],
91
+ forProperty: ((ue = m.initializeWith) == null ? void 0 : ue.forProperty) || [],
92
+ locations: ((de = m.initializeWith) == null ? void 0 : de.locations) || [],
93
+ depictions: ((ce = m.initializeWith) == null ? void 0 : ce.depictions) || [],
94
+ references: ((pe = m.initializeWith) == null ? void 0 : pe.references) || [],
95
+ isHostedBy: X((me = m.initializeWith) == null ? void 0 : me.isHostedBy),
96
+ hosts: X((fe = m.initializeWith) == null ? void 0 : fe.hosts)
97
97
  },
98
98
  name: "hardwareForm"
99
- }), [I, Le] = C("id"), [b, Ze] = C("functionalities"), [h, We] = C("forProperty"), [$, Re] = C("description"), {
100
- remove: Ee,
101
- push: Ne,
102
- fields: Ge
99
+ }), [I, Ze] = C("id"), [b, We] = C("functionalities"), [h, Re] = C("forProperty"), [$, Ee] = C("description"), {
100
+ remove: Ne,
101
+ push: Ge,
102
+ fields: Te
103
103
  } = x("locations"), {
104
- remove: Te,
105
- push: Me,
106
- fields: Oe
104
+ remove: Me,
105
+ push: Oe,
106
+ fields: je
107
107
  } = x("depictions"), {
108
- remove: je,
109
- push: Ke,
110
- fields: qe
108
+ remove: Ke,
109
+ push: qe,
110
+ fields: Qe
111
111
  } = x("references"), {
112
- remove: Qe,
113
- push: Ye,
112
+ remove: Ye,
113
+ push: Je,
114
114
  fields: ee
115
115
  } = x("isHostedBy"), {
116
116
  remove: Xt,
117
117
  push: en,
118
118
  fields: tn
119
119
  } = x("hosts");
120
- K(I, (n) => {
121
- xe.value = n || "";
120
+ Z(I, (n) => {
121
+ Be.value = n || "";
122
122
  }, { immediate: !0 });
123
- const W = ke(null);
124
- function Je(n) {
123
+ const E = ye(null);
124
+ function Xe(n) {
125
125
  const t = {
126
126
  id: String(n.id || ""),
127
127
  name: typeof n.name == "string" ? n.name : "",
@@ -132,80 +132,80 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
132
132
  version: n.version,
133
133
  unavailable: n.unavailable
134
134
  };
135
- W.value = t;
135
+ E.value = t;
136
136
  }
137
137
  const u = g(() => !!I.value), te = g(() => {
138
138
  var n;
139
139
  return (((n = b.value) == null ? void 0 : n.length) ?? 0) > 0;
140
- }), R = g(() => {
140
+ }), N = g(() => {
141
141
  var n;
142
- return ((n = W.value) == null ? void 0 : n.functionalities) ?? [];
143
- }), Xe = g(() => {
142
+ return ((n = E.value) == null ? void 0 : n.functionalities) ?? [];
143
+ }), et = g(() => {
144
144
  var n;
145
- return [...((n = W.value) == null ? void 0 : n.forProperty) || []].sort((t, e) => t.localeCompare(e)) ?? [];
146
- }), et = o.object({
145
+ return [...((n = E.value) == null ? void 0 : n.forProperty) || []].sort((t, e) => t.localeCompare(e)) ?? [];
146
+ }), tt = o.object({
147
147
  functionalitySelect: o.string().optional(),
148
148
  functionalityInput: o.string().optional()
149
149
  }).superRefine((n, t) => {
150
150
  const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, l = n.functionalityInput && n.functionalityInput.trim().length > 0;
151
151
  !e && !l && (t.addIssue({
152
152
  code: o.ZodIssueCode.custom,
153
- message: Ie,
153
+ message: Fe,
154
154
  path: ["functionalitySelect"]
155
155
  }), t.addIssue({
156
156
  code: o.ZodIssueCode.custom,
157
- message: Ie,
157
+ message: Fe,
158
158
  path: ["functionalityInput"]
159
159
  }));
160
160
  }), {
161
161
  defineField: ne,
162
- handleSubmit: tt,
163
- errors: E,
164
- resetForm: N
162
+ handleSubmit: nt,
163
+ errors: G,
164
+ resetForm: T
165
165
  } = Q({
166
- validationSchema: q(et),
166
+ validationSchema: q(tt),
167
167
  initialValues: {
168
168
  functionalitySelect: "",
169
169
  functionalityInput: ""
170
170
  }
171
- }), nt = o.object({
171
+ }), it = o.object({
172
172
  zweckSelect: o.string().optional(),
173
173
  zweckInput: o.string().optional()
174
174
  }).superRefine((n, t) => {
175
175
  const e = n.zweckSelect && n.zweckSelect.trim().length > 0, l = n.zweckInput && n.zweckInput.trim().length > 0;
176
176
  !e && !l && (t.addIssue({
177
177
  code: o.ZodIssueCode.custom,
178
- message: Fe,
178
+ message: He,
179
179
  path: ["zweckSelect"]
180
180
  }), t.addIssue({
181
181
  code: o.ZodIssueCode.custom,
182
- message: Fe,
182
+ message: He,
183
183
  path: ["zweckInput"]
184
184
  }));
185
185
  }), {
186
186
  defineField: ie,
187
- handleSubmit: it,
188
- errors: G,
187
+ handleSubmit: lt,
188
+ errors: M,
189
189
  resetForm: P
190
190
  } = Q({
191
- validationSchema: q(nt),
191
+ validationSchema: q(it),
192
192
  initialValues: {
193
193
  zweckSelect: "",
194
194
  zweckInput: ""
195
195
  }
196
196
  });
197
- K(I, (n, t) => {
198
- !!t && !!n && n !== t && (N(), b.value = [], P(), h.value = []);
197
+ Z(I, (n, t) => {
198
+ !!t && !!n && n !== t && (T(), b.value = [], P(), h.value = []);
199
199
  });
200
- const [U, lt] = ne("functionalitySelect"), [T, st] = ne("functionalityInput"), M = g(() => Array.from(b.value || [])), ot = g(() => {
200
+ const [U, st] = ne("functionalitySelect"), [O, ot] = ne("functionalityInput"), j = g(() => Array.from(b.value || [])), rt = g(() => {
201
201
  var t, e;
202
- const n = M.value.join(" ");
203
- return (e = (t = R == null ? void 0 : R.value) == null ? void 0 : t.filter((l) => !n.includes(l))) == null ? void 0 : e.sort((l, r) => l.localeCompare(r));
204
- }), [O, rt] = ie("zweckSelect"), [j, at] = ie("zweckInput"), A = g(() => h.value && h.value.length > 0), D = ke(!!((he = (fe = m.initializeWith) == null ? void 0 : fe.forProperty) != null && he.length));
205
- function ut() {
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
206
  h.value = [];
207
207
  }
208
- const le = De((n) => {
208
+ const le = _e((n) => {
209
209
  const t = {
210
210
  id: n.id,
211
211
  description: n.description || "",
@@ -221,19 +221,19 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
221
221
  isHostedBy: (n.isHostedBy || []).filter(Boolean),
222
222
  hosts: (n.hosts || []).filter(Boolean)
223
223
  };
224
- H ? Z("patch", {
225
- id: Be,
224
+ H ? R("patch", {
225
+ id: Ce,
226
226
  hardware: t
227
- }) : Z("submit", t), N(), P(), _e();
228
- }), se = tt((n) => {
227
+ }) : R("submit", t), T(), P(), Le();
228
+ }), se = nt((n) => {
229
229
  var e, l;
230
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)), N();
231
+ t && t.trim().length > 0 && !((e = b.value) != null && e.includes(t)) && ((l = b.value) == null || l.push(t)), T();
232
232
  });
233
- K(U, (n) => {
233
+ Z(U, (n) => {
234
234
  n && n.trim().length > 0 && se();
235
235
  });
236
- function dt(n) {
236
+ function ct(n) {
237
237
  return [
238
238
  ...n,
239
239
  {
@@ -245,14 +245,15 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
245
245
  }
246
246
  ];
247
247
  }
248
- const ct = it((n) => {
248
+ const oe = lt((n) => {
249
249
  var e, l;
250
250
  const t = n.zweckSelect || n.zweckInput;
251
251
  t && t.trim().length > 0 && !((e = h.value) != null && e.includes(t)) && ((l = h.value) == null || l.push(t)), P();
252
252
  });
253
253
  function pt() {
254
- P(), D.value = !1;
254
+ P(), _.value = !1;
255
255
  }
256
+ Z(A, () => oe());
256
257
  const mt = g(() => {
257
258
  var n;
258
259
  return ((n = $.value) == null ? void 0 : n.length) || 0;
@@ -272,35 +273,35 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
272
273
  modelValue: i(I),
273
274
  "onUpdate:modelValue": t[0] || (t[0] = (e) => S(I) ? I.value = e : null),
274
275
  label: H ? "Hardware auswählen" : ""
275
- }, i(Le), {
276
+ }, i(Ze), {
276
277
  "base-url": "https://twin.bydata.de/api/hub/search",
277
278
  resource: "hardware",
278
279
  placeholder: "Wählen Sie eine Hardware.",
279
280
  name: "hardware",
280
281
  "setup-fn": (e) => {
281
- var l, r, _, ve, be, ge;
282
+ var l, r, L, be, ge, we;
282
283
  return {
283
284
  id: e == null ? void 0 : e.id,
284
285
  name: ((l = e == null ? void 0 : e.name) == null ? void 0 : l.de) || ((r = e == null ? void 0 : e.name) == null ? void 0 : r.en),
285
286
  functionalities: (e == null ? void 0 : e.functionalities) || [],
286
287
  forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
287
288
  unavailable: m.exclude.includes(e == null ? void 0 : e.id),
288
- manufacturer: (ve = (_ = e == null ? void 0 : e.manufacturer) == null ? void 0 : _[0]) == null ? void 0 : ve.label,
289
- description: ((be = e == null ? void 0 : e.description) == null ? void 0 : be.de) || ((ge = e == null ? void 0 : e.description) == null ? void 0 : ge.en),
289
+ manufacturer: (be = (L = e == null ? void 0 : e.manufacturer) == null ? void 0 : L[0]) == null ? void 0 : be.label,
290
+ description: ((ge = e == null ? void 0 : e.description) == null ? void 0 : ge.de) || ((we = e == null ? void 0 : e.description) == null ? void 0 : we.en),
290
291
  version: e == null ? void 0 : e.version
291
292
  };
292
293
  },
293
- "post-process-fn": dt,
294
- onSelect: Je
294
+ "post-process-fn": ct,
295
+ onSelect: Xe
295
296
  }), {
296
- option: v(({ option: e, active: l, selected: r, disabled: _ }) => [
297
+ option: v(({ option: e, active: l, selected: r, disabled: L }) => [
297
298
  a(It, {
298
299
  name: e.name,
299
300
  manufacturer: e.manufacturer,
300
301
  description: e.description,
301
302
  active: l,
302
303
  selected: r,
303
- disabled: _
304
+ disabled: L
304
305
  }, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
305
306
  ]),
306
307
  _: 1
@@ -325,22 +326,22 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
325
326
  s("section", Ct, [
326
327
  t[19] || (t[19] = s("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
327
328
  t[20] || (t[20] = s("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
328
- M.value.length > 0 ? (d(), p("div", $t, [
329
- (d(!0), p(k, null, F(M.value, (e, l) => (d(), p("div", {
329
+ j.value.length > 0 ? (d(), p("div", $t, [
330
+ (d(!0), p(k, null, F(j.value, (e, l) => (d(), p("div", {
330
331
  key: l,
331
332
  class: "functionalities"
332
333
  }, [
333
- ye(s("input", y({
334
+ Se(s("input", y({
334
335
  id: e,
335
336
  "onUpdate:modelValue": t[1] || (t[1] = (r) => S(b) ? b.value = r : null),
336
337
  hidden: "",
337
338
  value: e,
338
339
  name: "selectedFunctionalities",
339
340
  type: "checkbox"
340
- }, { ref_for: !0 }, i(Ze)), null, 16, Pt), [
341
- [Se, i(b)]
341
+ }, { ref_for: !0 }, i(We)), null, 16, Pt), [
342
+ [ze, i(b)]
342
343
  ]),
343
- a(ze, {
344
+ a(Ve, {
344
345
  as: "label",
345
346
  for: e,
346
347
  text: e,
@@ -359,18 +360,18 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
359
360
  a(Y, y({
360
361
  modelValue: i(U),
361
362
  "onUpdate:modelValue": t[2] || (t[2] = (e) => S(U) ? U.value = e : null),
362
- options: ot.value,
363
- "error-message": i(E).functionalitySelect,
363
+ options: rt.value,
364
+ "error-message": i(G).functionalitySelect,
364
365
  label: "Funktionalitäten auswählen",
365
366
  placeholder: "Wählen Sie eine Funktionalität.",
366
367
  disabled: !u.value
367
- }, i(lt)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
368
+ }, i(st)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
368
369
  t[21] || (t[21] = s("h5", null, " oder ", -1)),
369
370
  a(V, y({
370
- modelValue: i(T),
371
- "onUpdate:modelValue": t[3] || (t[3] = (e) => S(T) ? T.value = e : null),
372
- error_message: i(E).functionalityInput,
373
- "show-error": !!i(E).functionalityInput,
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,
374
375
  "add-on-text": !1,
375
376
  "date-picker": !1,
376
377
  "info-icon": !1,
@@ -380,7 +381,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
380
381
  label: "Funktionalitäten nennen",
381
382
  placeholder: "Nennen Sie eine Funktionalität.",
382
383
  "initial-hint-text": !1
383
- }, i(st)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
384
+ }, i(ot)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
384
385
  s("div", Ut, [
385
386
  a(f, {
386
387
  "button-text": "Funktionalität hinzufügen",
@@ -395,17 +396,17 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
395
396
  s("section", At, [
396
397
  t[24] || (t[24] = s("h5", null, "Beschreibung der Nutzung (optional)", -1)),
397
398
  s("div", Dt, [
398
- a(Ve, y({
399
+ a(Ie, y({
399
400
  modelValue: i($),
400
401
  "onUpdate:modelValue": t[4] || (t[4] = (e) => S($) ? $.value = e : null),
401
402
  label: "",
402
403
  placeholder: "Beschreiben Sie in ein paar Sätzen, wie Sie die Hardware eingesetzt haben.",
403
404
  "is-disabled": !u.value
404
- }, i(Re), {
405
- max: L,
405
+ }, i(Ee), {
406
+ max: W,
406
407
  validation: "required|length:0,500",
407
408
  hint: "true",
408
- "hint-message": `${mt.value} von ${L} Zeichen`,
409
+ "hint-message": `${mt.value} von ${W} Zeichen`,
409
410
  "count-hint": !0
410
411
  }), null, 16, ["modelValue", "is-disabled", "hint-message"]),
411
412
  a(Vt, { variant: "default" }, {
@@ -433,13 +434,13 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
433
434
  t[26] || (t[26] = s("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
434
435
  (d(!0), p(k, null, F(i(ee), (e, l) => (d(), z(B, {
435
436
  key: e.key,
436
- onDelete: (r) => i(Qe)(l)
437
+ onDelete: (r) => i(Ye)(l)
437
438
  }, {
438
439
  default: v(() => [
439
440
  a(Y, {
440
441
  modelValue: e.value,
441
442
  "onUpdate:modelValue": (r) => e.value = r,
442
- options: Ae,
443
+ options: De,
443
444
  label: "Host-Plattform",
444
445
  placeholder: "Wählen Sie eine Host-Plattform.",
445
446
  disabled: !u.value
@@ -454,7 +455,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
454
455
  variant: "tertiary",
455
456
  "icon-start": "plus",
456
457
  disabled: !u.value,
457
- onClick: t[5] || (t[5] = (e) => u.value && i(Ye)(""))
458
+ onClick: t[5] || (t[5] = (e) => u.value && i(Je)(""))
458
459
  }, null, 8, ["disabled"])
459
460
  ])) : w("", !0)
460
461
  ]),
@@ -462,22 +463,22 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
462
463
  s("section", Zt, [
463
464
  t[30] || (t[30] = s("h5", null, "Zweck (optional)", -1)),
464
465
  t[31] || (t[31] = s("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
465
- A.value ? (d(), p("div", Wt, [
466
+ D.value ? (d(), p("div", Wt, [
466
467
  (d(!0), p(k, null, F(i(h), (e, l) => (d(), p("div", {
467
468
  key: `zweck-${l}`,
468
469
  class: "functionalities"
469
470
  }, [
470
- ye(s("input", y({
471
+ Se(s("input", y({
471
472
  id: `zweck-${e}`,
472
473
  "onUpdate:modelValue": t[7] || (t[7] = (r) => S(h) ? h.value = r : null),
473
474
  hidden: "",
474
475
  value: e,
475
476
  name: "selectedForProperties",
476
477
  type: "checkbox"
477
- }, { ref_for: !0 }, i(We)), null, 16, Rt), [
478
- [Se, i(h)]
478
+ }, { ref_for: !0 }, i(Re)), null, 16, Rt), [
479
+ [ze, i(h)]
479
480
  ]),
480
- a(ze, {
481
+ a(Ve, {
481
482
  as: "label",
482
483
  for: `zweck-${e}`,
483
484
  text: e,
@@ -493,9 +494,9 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
493
494
  }, null, 8, ["for", "text", "data"])
494
495
  ]))), 128))
495
496
  ])) : w("", !0),
496
- D.value && !A.value ? (d(), z(B, {
497
+ _.value && !D.value ? (d(), z(B, {
497
498
  key: 1,
498
- onDelete: ut
499
+ onDelete: dt
499
500
  }, {
500
501
  actions: v(() => [
501
502
  s("div", Et, [
@@ -506,7 +507,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
506
507
  variant: "tertiary",
507
508
  "icon-start": "plus",
508
509
  disabled: !u.value,
509
- onClick: i(ct)
510
+ onClick: i(oe)
510
511
  }, null, 8, ["disabled", "onClick"])
511
512
  ]),
512
513
  s("div", Gt, [
@@ -522,52 +523,52 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
522
523
  ]),
523
524
  default: v(() => [
524
525
  a(Y, y({
525
- modelValue: i(O),
526
- "onUpdate:modelValue": t[8] || (t[8] = (e) => S(O) ? O.value = e : null),
527
- options: Xe.value,
528
- "error-message": i(G).zweckSelect,
526
+ modelValue: i(A),
527
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => S(A) ? A.value = e : null),
528
+ options: et.value,
529
+ "error-message": i(M).zweckSelect,
529
530
  label: "Zweck auswählen",
530
531
  placeholder: "Wählen Sie einen Zweck.",
531
- disabled: !u.value || A.value
532
- }, i(rt)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
532
+ disabled: !u.value || D.value
533
+ }, i(at)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
533
534
  t[29] || (t[29] = s("h5", null, "oder", -1)),
534
535
  a(V, y({
535
- modelValue: i(j),
536
- "onUpdate:modelValue": t[9] || (t[9] = (e) => S(j) ? j.value = e : null),
537
- error_message: i(G).zweckInput,
538
- "show-error": !!i(G).zweckInput,
536
+ modelValue: i(K),
537
+ "onUpdate:modelValue": t[9] || (t[9] = (e) => S(K) ? K.value = e : null),
538
+ error_message: i(M).zweckInput,
539
+ "show-error": !!i(M).zweckInput,
539
540
  "add-on-text": !1,
540
541
  "date-picker": !1,
541
542
  "info-icon": !1,
542
543
  "show-end-icon": !1,
543
544
  "pre-icon": !1,
544
- "is-disabled": !u.value || A.value,
545
+ "is-disabled": !u.value || D.value,
545
546
  label: "Zweck nennen",
546
547
  placeholder: "Nennen Sie einen Zweck.",
547
548
  "initial-hint-text": !1
548
- }, i(at)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"])
549
+ }, i(ut)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"])
549
550
  ]),
550
551
  _: 1,
551
552
  __: [29]
552
553
  })) : w("", !0),
553
554
  s("div", Tt, [
554
- D.value ? w("", !0) : (d(), z(f, {
555
+ _.value ? w("", !0) : (d(), z(f, {
555
556
  key: 0,
556
557
  "button-text": "Zweck hinzufügen",
557
558
  size: "medium",
558
559
  variant: "tertiary",
559
560
  "icon-start": "plus",
560
561
  disabled: !u.value,
561
- onClick: t[10] || (t[10] = (e) => u.value && (D.value = !0))
562
+ onClick: t[10] || (t[10] = (e) => u.value && (_.value = !0))
562
563
  }, null, 8, ["disabled"]))
563
564
  ])
564
565
  ]),
565
566
  s("section", Mt, [
566
567
  t[32] || (t[32] = s("h5", null, "Standort (optional)", -1)),
567
568
  t[33] || (t[33] = s("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
568
- (d(!0), p(k, null, F(i(Ge), (e, l) => (d(), z(B, {
569
+ (d(!0), p(k, null, F(i(Te), (e, l) => (d(), z(B, {
569
570
  key: e.key,
570
- onDelete: (r) => i(Ee)(l)
571
+ onDelete: (r) => i(Ne)(l)
571
572
  }, {
572
573
  default: v(() => [
573
574
  a(V, {
@@ -610,16 +611,16 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
610
611
  variant: "tertiary",
611
612
  "icon-start": "plus",
612
613
  disabled: !u.value,
613
- onClick: t[11] || (t[11] = (e) => u.value && i(Ne)({ lat: "", lng: "" }))
614
+ onClick: t[11] || (t[11] = (e) => u.value && i(Ge)({ lat: "", lng: "" }))
614
615
  }, null, 8, ["disabled"])
615
616
  ])
616
617
  ]),
617
618
  s("section", jt, [
618
619
  t[34] || (t[34] = s("h5", null, "Darstellungen (optional)", -1)),
619
620
  t[35] || (t[35] = s("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
620
- (d(!0), p(k, null, F(i(Oe), (e, l) => (d(), z(B, {
621
+ (d(!0), p(k, null, F(i(je), (e, l) => (d(), z(B, {
621
622
  key: e.key,
622
- onDelete: (r) => i(Te)(l)
623
+ onDelete: (r) => i(Me)(l)
623
624
  }, {
624
625
  default: v(() => [
625
626
  a(V, {
@@ -646,16 +647,16 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
646
647
  variant: "tertiary",
647
648
  "icon-start": "plus",
648
649
  disabled: !u.value,
649
- onClick: t[12] || (t[12] = (e) => u.value && i(Me)(""))
650
+ onClick: t[12] || (t[12] = (e) => u.value && i(Oe)(""))
650
651
  }, null, 8, ["disabled"])
651
652
  ])
652
653
  ]),
653
654
  s("section", qt, [
654
655
  t[36] || (t[36] = s("h5", null, "Weiterführende Links (optional)", -1)),
655
656
  t[37] || (t[37] = s("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
656
- (d(!0), p(k, null, F(i(qe), (e, l) => (d(), z(B, {
657
+ (d(!0), p(k, null, F(i(Qe), (e, l) => (d(), z(B, {
657
658
  key: e.key,
658
- onDelete: (r) => i(je)(l)
659
+ onDelete: (r) => i(Ke)(l)
659
660
  }, {
660
661
  default: v(() => [
661
662
  a(V, {
@@ -689,7 +690,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
689
690
  "show-error": !!i(c)[`references[${l}].url`],
690
691
  "initial-hint-text": !!i(c)[`references[${l}].url`]
691
692
  }, null, 8, ["modelValue", "onUpdate:modelValue", "is-disabled", "error_message", "show-error", "initial-hint-text"]),
692
- a(Ve, {
693
+ a(Ie, {
693
694
  modelValue: e.value.description,
694
695
  "onUpdate:modelValue": (r) => e.value.description = r,
695
696
  label: "Beschreibung",
@@ -698,10 +699,10 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
698
699
  "show-error": !!i(c)[`references[${l}].description`],
699
700
  "initial-hint-text": !!i(c)[`references[${l}].description`],
700
701
  "is-disabled": !u.value,
701
- max: L,
702
+ max: W,
702
703
  validation: "required|length:0,500",
703
704
  hint: "true",
704
- "hint-message": `${ft(e)} von ${L} Zeichen`,
705
+ "hint-message": `${ft(e)} von ${W} Zeichen`,
705
706
  "count-hint": !0
706
707
  }, null, 8, ["modelValue", "onUpdate:modelValue", "error_message", "show-error", "initial-hint-text", "is-disabled", "hint-message"])
707
708
  ]),
@@ -714,7 +715,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
714
715
  variant: "tertiary",
715
716
  "icon-start": "plus",
716
717
  disabled: !u.value,
717
- onClick: t[13] || (t[13] = (e) => u.value && i(Ke)({ name: "", url: "", description: "" }))
718
+ onClick: t[13] || (t[13] = (e) => u.value && i(qe)({ name: "", url: "", description: "" }))
718
719
  }, null, 8, ["disabled"])
719
720
  ])
720
721
  ]),
@@ -723,7 +724,7 @@ const Ft = { class: "dpi-project-process-step V3-typography" }, Ht = { class: "s
723
724
  a(f, {
724
725
  "button-text": "Abbrechen",
725
726
  variant: "tertiary",
726
- onClick: t[14] || (t[14] = (e) => Z("close"))
727
+ onClick: t[14] || (t[14] = (e) => R("close"))
727
728
  }),
728
729
  a(f, {
729
730
  "button-text": "Speichern",