@piveau/dpi 0.2.0-alpha.40 → 0.2.0-alpha.42

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.
Files changed (42) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +84 -65
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +2 -2
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +97 -80
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +107 -90
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +1 -1
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +96 -80
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +96 -77
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +120 -109
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +60 -38
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +20 -14
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +16 -11
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +140 -121
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +2 -2
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +45 -49
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +1 -1
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +179 -184
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
  29. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  30. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +104 -92
  31. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitMessages.js +14 -0
  32. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitSummary.js +46 -0
  33. package/dist/packages/dpi/src/data-provider-interface/utils/useSteps.js +35 -29
  34. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +2 -2
  35. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
  36. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  37. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -19
  38. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  39. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -18
  40. package/dist/packages/dpi/src/utils/twinbyUtils.js +29 -4
  41. package/dist/styles/_dpi.scss +16 -0
  42. package/package.json +1 -1
@@ -1,33 +1,33 @@
1
- import { defineComponent as Ye, mergeModels as ce, useModel as en, unref as l, watch as N, ref as L, computed as w, createElementBlock as m, openBlock as d, createElementVNode as i, createCommentVNode as g, createVNode as r, Fragment as k, mergeProps as E, isRef as Z, withCtx as h, createTextVNode as nn, renderList as B, createBlock as y, withDirectives as tn, vModelCheckbox as ln } from "vue";
2
- import { PhLightbulb as on } from "@phosphor-icons/vue";
1
+ import { defineComponent as en, mergeModels as de, useModel as nn, unref as l, watch as N, ref as F, computed as b, createElementBlock as m, openBlock as d, createElementVNode as i, createCommentVNode as z, createVNode as s, Fragment as w, mergeProps as E, isRef as Z, withCtx as h, createTextVNode as tn, renderList as B, createBlock as S, withDirectives as ce, vModelCheckbox as ln, vShow as on } from "vue";
2
+ import { PhLightbulb as sn } from "@phosphor-icons/vue";
3
3
  import { toTypedSchema as me } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
4
4
  import { useForm as pe, useFieldArray as P } from "vee-validate";
5
- import * as s from "zod";
6
- import { generateIsRequiredMsg as b, URL_MSG as fe } from "../../../../utils/twinbyUtils.js";
7
- import { useTwinbyUser as sn } from "../../../composables/useTwinbyUser.js";
8
- import rn from "../Autocomplete/AutocompleteVocab.vue.js";
5
+ import * as r from "zod";
6
+ import { generateIsRequiredMsg as g, generateIsInvalidMsg as fe } from "../../../../utils/twinbyUtils.js";
7
+ import { useTwinbyUser as rn } from "../../../composables/useTwinbyUser.js";
8
+ import an from "../Autocomplete/AutocompleteVocab.vue.js";
9
9
  import p from "../ButtonV3.vue.js";
10
- import an from "../Card.vue.js";
11
- import un from "../Chip.vue.js";
10
+ import un from "../Card.vue.js";
11
+ import dn from "../Chip.vue.js";
12
12
  import V from "../InputField/InputFieldVeeValidate.vue.js";
13
13
  import he from "../ListBox/ListboxVeeValidate.vue.js";
14
- import dn from "../TextArea/TextAreaVeeValidate.vue.js";
15
- import cn from "../TextAreaV3.vue.js";
16
- import mn from "./FunctionalityForm.vue.js";
14
+ import cn from "../TextArea/TextAreaVeeValidate.vue.js";
15
+ import mn from "../TextAreaV3.vue.js";
16
+ import pn from "./FunctionalityForm.vue.js";
17
17
  import x from "./ProcessStepInputCard.vue.js";
18
- import pn from "./RichOption.vue.js";
19
- const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "step-section" }, vn = { class: "step-section-actions" }, bn = ["href"], wn = { class: "step-section" }, gn = { class: "step-section" }, kn = { class: "step-section step-section--lg" }, yn = { class: "step-section" }, zn = {
18
+ import fn from "./RichOption.vue.js";
19
+ const hn = { class: "dpi-project-process-step V3-typography" }, vn = { class: "step-section" }, bn = { class: "step-section-actions" }, wn = ["href"], gn = { class: "step-section" }, kn = { class: "step-section" }, yn = { class: "step-section step-section--lg" }, zn = { class: "step-section" }, Sn = {
20
20
  key: 0,
21
21
  class: "step-section-actions"
22
- }, Sn = { class: "step-section" }, Vn = {
22
+ }, Vn = { class: "step-section" }, Hn = {
23
23
  key: 0,
24
24
  class: "functionalities-container"
25
- }, Hn = ["id", "value"], Bn = { class: "step-section step-section--lg" }, Pn = { style: { display: "flex", "justify-content": "flex-end" } }, xn = { style: { display: "inline-flex", "justify-content": "flex-end" } }, Cn = { class: "step-section-actions" }, In = { class: "step-section" }, Un = { class: "step-section-actions" }, $n = { class: "step-section" }, Dn = { class: "step-section-actions" }, Fn = { class: "step-section" }, Ln = { class: "step-section-actions" }, Zn = { class: "step-section-actions" }, An = {
25
+ }, Bn = ["id", "value"], Pn = { class: "step-section step-section--lg" }, xn = { style: { display: "flex", "justify-content": "flex-end" } }, Un = { style: { display: "inline-flex", "justify-content": "flex-end" } }, In = { class: "step-section-actions" }, Cn = { class: "step-section" }, $n = { class: "step-section-actions" }, Ln = { class: "step-section" }, Dn = { class: "step-section-actions" }, Fn = { class: "step-section" }, Zn = { class: "step-section-actions" }, An = { class: "step-section-actions" }, Wn = {
26
26
  key: 0,
27
27
  class: "button-row"
28
- }, A = 500, lt = /* @__PURE__ */ Ye({
28
+ }, A = 500, ot = /* @__PURE__ */ en({
29
29
  __name: "HardwareForm",
30
- props: /* @__PURE__ */ ce({
30
+ props: /* @__PURE__ */ de({
31
31
  modelValue: {},
32
32
  initializeWith: {},
33
33
  exclude: { default: () => [] }
@@ -37,30 +37,30 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
37
37
  },
38
38
  modelModifiers: {}
39
39
  }),
40
- emits: /* @__PURE__ */ ce(["submit", "patch", "close"], ["update:modelValue"]),
41
- setup(G, { emit: ve }) {
42
- var X, Y, ee, ne, te, ie, le, oe, se, re;
43
- const c = G, W = ve, be = en(G, "modelValue"), H = !!c.modelValue, we = l(c.modelValue) || "", ge = s.object({
44
- lat: s.string().min(1, b("Latitude / Breite")),
45
- lng: s.string().min(1, b("Longitude / Länge"))
46
- }), ke = s.array(ge), ye = s.object({
47
- name: s.string().min(1, b("Name")).default(""),
48
- url: s.string().min(1, b("URL")).url(fe).default(""),
49
- description: s.string().min(1, b("Beschreibung")).default("")
40
+ emits: /* @__PURE__ */ de(["submit", "patch", "close"], ["update:modelValue"]),
41
+ setup(O, { emit: ve }) {
42
+ var J, X, Y, ee, ne, te, ie, le, oe, se;
43
+ const c = O, W = ve, be = nn(O, "modelValue"), H = !!c.modelValue, we = l(c.modelValue) || "", ge = r.object({
44
+ lat: r.string().min(1, g("Latitude / Breite")),
45
+ lng: r.string().min(1, g("Longitude / Länge"))
46
+ }), ke = r.array(ge), ye = r.object({
47
+ name: r.string().min(1, g("Name")).default(""),
48
+ url: r.string().min(1, g("URL")).url(fe("URL")).default(""),
49
+ description: r.string().default("")
50
50
  });
51
- function O(t) {
51
+ function T(t) {
52
52
  return Array.isArray(t) ? t : t != null ? [t] : [];
53
53
  }
54
- const ze = s.object({
55
- id: s.string(),
56
- description: s.string().optional(),
57
- functionalities: s.array(s.string()).min(1),
58
- forProperty: s.array(s.string()),
54
+ const ze = r.object({
55
+ id: r.string(),
56
+ description: r.string().optional(),
57
+ functionalities: r.array(r.string()).min(1),
58
+ forProperty: r.array(r.string()),
59
59
  locations: ke,
60
- depictions: s.array(s.string().min(1, b("URL")).url(fe)),
61
- references: s.array(ye),
62
- isHostedBy: s.array(s.string().min(1, b("Host-Plattform"))),
63
- hosts: s.array(s.string())
60
+ depictions: r.array(r.string().min(1, g("URL")).url(fe("URL"))),
61
+ references: r.array(ye),
62
+ isHostedBy: r.array(r.string().min(1, g("Host-Plattform"))),
63
+ hosts: r.array(r.string())
64
64
  }), Se = [
65
65
  ...[
66
66
  "Mast",
@@ -81,45 +81,45 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
81
81
  validationSchema: me(ze),
82
82
  initialValues: {
83
83
  id: c.modelValue || "",
84
- description: ((X = c.initializeWith) == null ? void 0 : X.description) || "",
85
- functionalities: ((Y = c.initializeWith) == null ? void 0 : Y.functionalities) || [],
86
- forProperty: ((ee = c.initializeWith) == null ? void 0 : ee.forProperty) || [],
87
- locations: ((ne = c.initializeWith) == null ? void 0 : ne.locations) || [],
88
- depictions: ((te = c.initializeWith) == null ? void 0 : te.depictions) || [],
89
- references: ((ie = c.initializeWith) == null ? void 0 : ie.references) || [],
90
- isHostedBy: O((le = c.initializeWith) == null ? void 0 : le.isHostedBy),
91
- hosts: O((oe = c.initializeWith) == null ? void 0 : oe.hosts)
84
+ description: ((J = c.initializeWith) == null ? void 0 : J.description) || "",
85
+ functionalities: ((X = c.initializeWith) == null ? void 0 : X.functionalities) || [],
86
+ forProperty: ((Y = c.initializeWith) == null ? void 0 : Y.forProperty) || [],
87
+ locations: ((ee = c.initializeWith) == null ? void 0 : ee.locations) || [],
88
+ depictions: ((ne = c.initializeWith) == null ? void 0 : ne.depictions) || [],
89
+ references: ((te = c.initializeWith) == null ? void 0 : te.references) || [],
90
+ isHostedBy: T((ie = c.initializeWith) == null ? void 0 : ie.isHostedBy),
91
+ hosts: T((le = c.initializeWith) == null ? void 0 : le.hosts)
92
92
  },
93
93
  name: "hardwareForm"
94
94
  }), {
95
- defineField: C,
95
+ defineField: U,
96
96
  handleSubmit: Ve,
97
97
  resetForm: He
98
- } = v, [z, Be] = C("id"), [S] = C("functionalities"), [f, Pe] = C("forProperty"), [I, xe] = C("description"), {
99
- remove: Ce,
98
+ } = v, [k, Be] = U("id"), [y] = U("functionalities"), [f, Pe] = U("forProperty"), [I, xe] = U("description"), {
99
+ remove: Ue,
100
100
  push: Ie,
101
- fields: Ue
101
+ fields: Ce
102
102
  } = P("locations"), {
103
103
  remove: $e,
104
- push: De,
105
- fields: Fe
104
+ push: Le,
105
+ fields: De
106
106
  } = P("depictions"), {
107
- remove: Le,
107
+ remove: Fe,
108
108
  push: Ze,
109
109
  fields: Ae
110
110
  } = P("references"), {
111
111
  remove: We,
112
112
  push: Re,
113
- fields: T
113
+ fields: j
114
114
  } = P("isHostedBy"), {
115
- remove: Wn,
116
- push: Rn,
117
- fields: _n
115
+ remove: Rn,
116
+ push: _n,
117
+ fields: Mn
118
118
  } = P("hosts");
119
- N(z, (t) => {
119
+ N(k, (t) => {
120
120
  be.value = t || "";
121
121
  }, { immediate: !0 });
122
- const R = L(null);
122
+ const R = F(null);
123
123
  function _e(t) {
124
124
  const n = {
125
125
  id: String(t.id || ""),
@@ -133,51 +133,47 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
133
133
  };
134
134
  R.value = n;
135
135
  }
136
- const a = w(() => !!z.value), j = w(() => {
136
+ const a = b(() => !!k.value), G = b(() => {
137
137
  var t;
138
- return (((t = S.value) == null ? void 0 : t.length) ?? 0) > 0;
139
- }), Me = w(() => {
138
+ return (((t = y.value) == null ? void 0 : t.length) ?? 0) > 0;
139
+ }), Me = b(() => {
140
140
  var t;
141
141
  return ((t = R.value) == null ? void 0 : t.functionalities) ?? [];
142
- }), Ne = w(() => {
142
+ }), Ne = b(() => {
143
143
  var t;
144
144
  return [...((t = R.value) == null ? void 0 : t.forProperty) || []].sort((n, e) => n.localeCompare(e)) ?? [];
145
- }), K = b("Zweck"), Ee = s.object({
146
- zweckSelect: s.string().optional(),
147
- zweckInput: s.string().optional()
145
+ }), Ee = g("Zweck"), Oe = r.object({
146
+ zweckSelect: r.string().optional(),
147
+ zweckInput: r.string().optional()
148
148
  }).superRefine((t, n) => {
149
149
  const e = t.zweckSelect && t.zweckSelect.trim().length > 0, o = t.zweckInput && t.zweckInput.trim().length > 0;
150
- !e && !o && (n.addIssue({
151
- code: s.ZodIssueCode.custom,
152
- message: K,
153
- path: ["zweckSelect"]
154
- }), n.addIssue({
155
- code: s.ZodIssueCode.custom,
156
- message: K,
150
+ !e && !o && n.addIssue({
151
+ code: r.ZodIssueCode.custom,
152
+ message: Ee,
157
153
  path: ["zweckInput"]
158
- }));
154
+ });
159
155
  }), _ = pe({
160
- validationSchema: me(Ee),
156
+ validationSchema: me(Oe),
161
157
  initialValues: {
162
158
  zweckSelect: "",
163
159
  zweckInput: ""
164
160
  }
165
161
  }), {
166
- handleSubmit: Ge,
167
- resetForm: U
162
+ handleSubmit: Te,
163
+ resetForm: C
168
164
  } = _;
169
- N(z, (t, n) => {
170
- !!n && !!t && t !== n && (S.value = [], U(), f.value = []);
165
+ N(k, (t, n) => {
166
+ !!n && !!t && t !== n && (y.value = [], C(), f.value = []);
171
167
  });
172
- const M = L(""), q = L(""), $ = w(() => f.value && f.value.length > 0), D = L(!!((re = (se = c.initializeWith) == null ? void 0 : se.forProperty) != null && re.length));
173
- function Oe() {
168
+ const M = F(""), K = F(""), $ = b(() => f.value && f.value.length > 0), L = F(!!((se = (oe = c.initializeWith) == null ? void 0 : oe.forProperty) != null && se.length));
169
+ function je() {
174
170
  f.value = [];
175
171
  }
176
- const Q = Ve((t) => {
172
+ const q = Ve((t) => {
177
173
  const n = {
178
174
  id: t.id,
179
175
  description: t.description || "",
180
- functionalities: Array.from(S.value || []).filter(Boolean),
176
+ functionalities: Array.from(y.value || []).filter(Boolean),
181
177
  forProperty: (t.forProperty || []).filter(Boolean),
182
178
  locations: t.locations || [],
183
179
  depictions: (t.depictions || []).filter(Boolean),
@@ -192,9 +188,9 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
192
188
  H ? W("patch", {
193
189
  id: we,
194
190
  hardware: n
195
- }) : W("submit", n), U(), He();
191
+ }) : W("submit", n), C(), He();
196
192
  });
197
- function Te(t) {
193
+ function Ge(t) {
198
194
  return [
199
195
  ...t,
200
196
  {
@@ -206,33 +202,33 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
206
202
  }
207
203
  ];
208
204
  }
209
- const J = Ge((t) => {
205
+ const Q = Te((t) => {
210
206
  var e, o;
211
207
  const n = t.zweckSelect || t.zweckInput;
212
- n && n.trim().length > 0 && !((e = f.value) != null && e.includes(n)) && ((o = f.value) == null || o.push(n)), U();
208
+ n && n.trim().length > 0 && !((e = f.value) != null && e.includes(n)) && ((o = f.value) == null || o.push(n)), C();
213
209
  });
214
- function je() {
215
- U(), D.value = !1;
210
+ function Ke() {
211
+ C(), L.value = !1;
216
212
  }
217
- N(M, () => J());
218
- const Ke = w(() => {
213
+ N(M, () => Q());
214
+ const qe = b(() => {
219
215
  var t;
220
216
  return ((t = I.value) == null ? void 0 : t.length) || 0;
221
217
  });
222
- function qe(t) {
218
+ function Qe(t) {
223
219
  var n;
224
220
  return ((n = t.value.description) == null ? void 0 : n.length) ?? 0;
225
221
  }
226
- const { authToken: Qe, username: Je } = sn(), Xe = w(() => `https://form.typeform.com/to/ayL37uiV#token=${Qe.value}&account=${Je.value}`);
227
- return (t, n) => (d(), m("div", fn, [
228
- i("section", hn, [
229
- H ? g("", !0) : (d(), m(k, { key: 0 }, [
222
+ const { authToken: Je, username: Xe } = rn(), Ye = b(() => `https://form.typeform.com/to/ayL37uiV#token=${Je.value}&account=${Xe.value}`);
223
+ return (t, n) => (d(), m("div", hn, [
224
+ i("section", vn, [
225
+ H ? z("", !0) : (d(), m(w, { key: 0 }, [
230
226
  n[13] || (n[13] = i("h5", null, "Wählen Sie eine bestehende Hardware", -1)),
231
227
  n[14] || (n[14] = i("p", null, " Falls die Hardware bereits angelegt wurde, können Sie sie hier auswählen. ", -1))
232
228
  ], 64)),
233
- r(rn, E({
234
- modelValue: l(z),
235
- "onUpdate:modelValue": n[0] || (n[0] = (e) => Z(z) ? z.value = e : null),
229
+ s(an, E({
230
+ modelValue: l(k),
231
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => Z(k) ? k.value = e : null),
236
232
  label: H ? "Hardware auswählen" : ""
237
233
  }, l(Be), {
238
234
  "base-url": "https://twin.bydata.de/api/hub/search",
@@ -240,64 +236,64 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
240
236
  placeholder: "Wählen Sie eine Hardware.",
241
237
  name: "hardware",
242
238
  "setup-fn": (e) => {
243
- var o, u, F, ae, ue, de;
239
+ var o, u, D, re, ae, ue;
244
240
  return {
245
241
  id: e == null ? void 0 : e.id,
246
242
  name: ((o = e == null ? void 0 : e.name) == null ? void 0 : o.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en),
247
243
  functionalities: (e == null ? void 0 : e.functionalities) || [],
248
244
  forProperties: (e == null ? void 0 : e.measured_actuated_properties) || [],
249
245
  unavailable: c.exclude.includes(e == null ? void 0 : e.id),
250
- manufacturer: (ae = (F = e == null ? void 0 : e.manufacturer) == null ? void 0 : F[0]) == null ? void 0 : ae.label,
251
- description: ((ue = e == null ? void 0 : e.description) == null ? void 0 : ue.de) || ((de = e == null ? void 0 : e.description) == null ? void 0 : de.en),
246
+ manufacturer: (re = (D = e == null ? void 0 : e.manufacturer) == null ? void 0 : D[0]) == null ? void 0 : re.label,
247
+ description: ((ae = e == null ? void 0 : e.description) == null ? void 0 : ae.de) || ((ue = e == null ? void 0 : e.description) == null ? void 0 : ue.en),
252
248
  version: e == null ? void 0 : e.version
253
249
  };
254
250
  },
255
- "post-process-fn": Te,
251
+ "post-process-fn": Ge,
256
252
  onSelect: _e
257
253
  }), {
258
- option: h(({ option: e, active: o, selected: u, disabled: F }) => [
259
- r(pn, {
254
+ option: h(({ option: e, active: o, selected: u, disabled: D }) => [
255
+ s(fn, {
260
256
  name: e.name,
261
257
  manufacturer: e.manufacturer,
262
258
  description: e.description,
263
259
  active: o,
264
260
  selected: u,
265
- disabled: F
261
+ disabled: D
266
262
  }, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
267
263
  ]),
268
264
  _: 1
269
265
  }, 16, ["modelValue", "label", "setup-fn"]),
270
- H ? g("", !0) : (d(), m(k, { key: 1 }, [
266
+ H ? z("", !0) : (d(), m(w, { key: 1 }, [
271
267
  n[15] || (n[15] = i("h5", null, "oder", -1)),
272
268
  n[16] || (n[16] = i("p", null, " Sollte die verwendete Hardware noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
273
- i("div", vn, [
269
+ i("div", bn, [
274
270
  i("a", {
275
- href: Xe.value,
271
+ href: Ye.value,
276
272
  target: "_blank"
277
273
  }, [
278
- r(p, {
274
+ s(p, {
279
275
  "button-text": "Zur Hardwarebeantragung",
280
276
  size: "medium",
281
277
  variant: "secondary"
282
278
  })
283
- ], 8, bn)
279
+ ], 8, wn)
284
280
  ])
285
281
  ], 64))
286
282
  ]),
287
- i("section", wn, [
283
+ i("section", gn, [
288
284
  n[17] || (n[17] = i("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
289
285
  n[18] || (n[18] = i("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
290
- r(mn, {
291
- modelValue: l(S),
292
- "onUpdate:modelValue": n[1] || (n[1] = (e) => Z(S) ? S.value = e : null),
286
+ s(pn, {
287
+ modelValue: l(y),
288
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => Z(y) ? y.value = e : null),
293
289
  options: Me.value,
294
290
  disabled: !a.value
295
291
  }, null, 8, ["modelValue", "options", "disabled"])
296
292
  ]),
297
- i("section", gn, [
293
+ i("section", kn, [
298
294
  n[21] || (n[21] = i("h5", null, "Beschreibung der Nutzung (optional)", -1)),
299
- i("div", kn, [
300
- r(cn, E({
295
+ i("div", yn, [
296
+ s(mn, E({
301
297
  modelValue: l(I),
302
298
  "onUpdate:modelValue": n[2] || (n[2] = (e) => Z(I) ? I.value = e : null),
303
299
  label: "",
@@ -307,18 +303,18 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
307
303
  max: A,
308
304
  validation: "required|length:0,500",
309
305
  hint: "true",
310
- "hint-message": `${Ke.value} von ${A} Zeichen`,
306
+ "hint-message": `${qe.value} von ${A} Zeichen`,
311
307
  "count-hint": !0
312
308
  }), null, 16, ["modelValue", "is-disabled", "hint-message"]),
313
- r(an, { variant: "default" }, {
309
+ s(un, { variant: "default" }, {
314
310
  icon: h(() => [
315
- r(l(on), {
311
+ s(l(sn), {
316
312
  size: 32,
317
313
  color: "#009fe3"
318
314
  })
319
315
  ]),
320
316
  title: h(() => n[19] || (n[19] = [
321
- nn(" Beispiel ", -1)
317
+ tn(" Beispiel ", -1)
322
318
  ])),
323
319
  default: h(() => [
324
320
  n[20] || (n[20] = i("div", { class: "copy-large-regular" }, [
@@ -330,15 +326,15 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
330
326
  })
331
327
  ])
332
328
  ]),
333
- i("section", yn, [
329
+ i("section", zn, [
334
330
  n[22] || (n[22] = i("h5", null, "Host-Plattform (optional)", -1)),
335
331
  n[23] || (n[23] = i("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
336
- (d(!0), m(k, null, B(l(T), (e, o) => (d(), y(x, {
332
+ (d(!0), m(w, null, B(l(j), (e, o) => (d(), S(x, {
337
333
  key: e.key,
338
334
  onDelete: (u) => l(We)(o)
339
335
  }, {
340
336
  default: h(() => [
341
- r(he, {
337
+ s(he, {
342
338
  modelValue: e.value,
343
339
  "onUpdate:modelValue": (u) => e.value = u,
344
340
  name: `isHostedBy[${o}]`,
@@ -351,8 +347,8 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
351
347
  ]),
352
348
  _: 2
353
349
  }, 1032, ["onDelete"]))), 128)),
354
- l(T).length === 0 ? (d(), m("div", zn, [
355
- r(p, {
350
+ l(j).length === 0 ? (d(), m("div", Sn, [
351
+ s(p, {
356
352
  "button-text": "Host-Plattform hinzufügen",
357
353
  size: "medium",
358
354
  variant: "tertiary",
@@ -360,28 +356,28 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
360
356
  disabled: !a.value,
361
357
  onClick: n[3] || (n[3] = (e) => a.value && l(Re)(""))
362
358
  }, null, 8, ["disabled"])
363
- ])) : g("", !0)
359
+ ])) : z("", !0)
364
360
  ]),
365
- g("", !0),
366
- i("section", Sn, [
361
+ z("", !0),
362
+ i("section", Vn, [
367
363
  n[27] || (n[27] = i("h5", null, "Zweck (optional)", -1)),
368
364
  n[28] || (n[28] = i("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
369
- $.value ? (d(), m("div", Vn, [
370
- (d(!0), m(k, null, B(l(f), (e, o) => (d(), m("div", {
365
+ $.value ? (d(), m("div", Hn, [
366
+ (d(!0), m(w, null, B(l(f), (e, o) => (d(), m("div", {
371
367
  key: `zweck-${o}`,
372
368
  class: "functionalities"
373
369
  }, [
374
- tn(i("input", E({
370
+ ce(i("input", E({
375
371
  id: `zweck-${e}`,
376
372
  "onUpdate:modelValue": n[5] || (n[5] = (u) => Z(f) ? f.value = u : null),
377
373
  hidden: "",
378
374
  value: e,
379
375
  name: "selectedForProperties",
380
376
  type: "checkbox"
381
- }, { ref_for: !0 }, l(Pe)), null, 16, Hn), [
377
+ }, { ref_for: !0 }, l(Pe)), null, 16, Bn), [
382
378
  [ln, l(f)]
383
379
  ]),
384
- r(un, {
380
+ s(dn, {
385
381
  as: "label",
386
382
  for: `zweck-${e}`,
387
383
  text: e,
@@ -396,36 +392,33 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
396
392
  "select-value": !0
397
393
  }, null, 8, ["for", "text", "data"])
398
394
  ]))), 128))
399
- ])) : g("", !0),
400
- D.value && !$.value ? (d(), y(x, {
401
- key: 1,
402
- onDelete: Oe
403
- }, {
395
+ ])) : z("", !0),
396
+ ce(s(x, { onDelete: je }, {
404
397
  actions: h(() => [
405
- i("div", Bn, [
406
- i("div", Pn, [
407
- r(p, {
398
+ i("div", Pn, [
399
+ i("div", xn, [
400
+ s(p, {
408
401
  "button-text": "Zweck hinzufügen",
409
402
  size: "medium",
410
403
  variant: "tertiary",
411
404
  "icon-start": "plus",
412
405
  disabled: !a.value,
413
- onClick: l(J)
406
+ onClick: l(Q)
414
407
  }, null, 8, ["disabled", "onClick"])
415
408
  ]),
416
- i("div", xn, [
417
- r(p, {
409
+ i("div", Un, [
410
+ s(p, {
418
411
  "button-text": "Löschen",
419
412
  size: "small",
420
413
  variant: "tertiary",
421
414
  "icon-start": "trash",
422
- onClick: je
415
+ onClick: Ke
423
416
  })
424
417
  ])
425
418
  ])
426
419
  ]),
427
420
  default: h(() => [
428
- r(he, {
421
+ s(he, {
429
422
  modelValue: M.value,
430
423
  "onUpdate:modelValue": n[6] || (n[6] = (e) => M.value = e),
431
424
  name: "zweckSelect",
@@ -436,9 +429,9 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
436
429
  form: l(_)
437
430
  }, null, 8, ["modelValue", "options", "disabled", "form"]),
438
431
  n[26] || (n[26] = i("h5", null, "oder", -1)),
439
- r(V, {
440
- modelValue: q.value,
441
- "onUpdate:modelValue": n[7] || (n[7] = (e) => q.value = e),
432
+ s(V, {
433
+ modelValue: K.value,
434
+ "onUpdate:modelValue": n[7] || (n[7] = (e) => K.value = e),
442
435
  name: "zweckInput",
443
436
  "add-on-text": !1,
444
437
  "date-picker": !1,
@@ -454,28 +447,30 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
454
447
  ]),
455
448
  _: 1,
456
449
  __: [26]
457
- })) : g("", !0),
458
- i("div", Cn, [
459
- D.value ? g("", !0) : (d(), y(p, {
450
+ }, 512), [
451
+ [on, L.value && !$.value]
452
+ ]),
453
+ i("div", In, [
454
+ L.value ? z("", !0) : (d(), S(p, {
460
455
  key: 0,
461
456
  "button-text": "Zweck hinzufügen",
462
457
  size: "medium",
463
458
  variant: "tertiary",
464
459
  "icon-start": "plus",
465
460
  disabled: !a.value,
466
- onClick: n[8] || (n[8] = (e) => a.value && (D.value = !0))
461
+ onClick: n[8] || (n[8] = (e) => a.value && (L.value = !0))
467
462
  }, null, 8, ["disabled"]))
468
463
  ])
469
464
  ]),
470
- i("section", In, [
465
+ i("section", Cn, [
471
466
  n[29] || (n[29] = i("h5", null, "Standort (optional)", -1)),
472
467
  n[30] || (n[30] = i("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
473
- (d(!0), m(k, null, B(l(Ue), (e, o) => (d(), y(x, {
468
+ (d(!0), m(w, null, B(l(Ce), (e, o) => (d(), S(x, {
474
469
  key: e.key,
475
- onDelete: (u) => l(Ce)(o)
470
+ onDelete: (u) => l(Ue)(o)
476
471
  }, {
477
472
  default: h(() => [
478
- r(V, {
473
+ s(V, {
479
474
  modelValue: e.value.lat,
480
475
  "onUpdate:modelValue": (u) => e.value.lat = u,
481
476
  name: `locations[${o}].lat`,
@@ -489,7 +484,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
489
484
  placeholder: "Geben Sie die Ortskoordinate Latitude an.",
490
485
  form: l(v)
491
486
  }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
492
- r(V, {
487
+ s(V, {
493
488
  modelValue: e.value.lng,
494
489
  "onUpdate:modelValue": (u) => e.value.lng = u,
495
490
  name: `locations[${o}].lng`,
@@ -506,8 +501,8 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
506
501
  ]),
507
502
  _: 2
508
503
  }, 1032, ["onDelete"]))), 128)),
509
- i("div", Un, [
510
- r(p, {
504
+ i("div", $n, [
505
+ s(p, {
511
506
  "button-text": "Standort hinzufügen",
512
507
  size: "medium",
513
508
  variant: "tertiary",
@@ -517,15 +512,15 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
517
512
  }, null, 8, ["disabled"])
518
513
  ])
519
514
  ]),
520
- i("section", $n, [
515
+ i("section", Ln, [
521
516
  n[31] || (n[31] = i("h5", null, "Darstellungen (optional)", -1)),
522
517
  n[32] || (n[32] = i("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
523
- (d(!0), m(k, null, B(l(Fe), (e, o) => (d(), y(x, {
518
+ (d(!0), m(w, null, B(l(De), (e, o) => (d(), S(x, {
524
519
  key: e.key,
525
520
  onDelete: (u) => l($e)(o)
526
521
  }, {
527
522
  default: h(() => [
528
- r(V, {
523
+ s(V, {
529
524
  modelValue: e.value,
530
525
  "onUpdate:modelValue": (u) => e.value = u,
531
526
  name: `depictions[${o}]`,
@@ -544,25 +539,25 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
544
539
  _: 2
545
540
  }, 1032, ["onDelete"]))), 128)),
546
541
  i("div", Dn, [
547
- r(p, {
542
+ s(p, {
548
543
  "button-text": "Darstellung hinzufügen",
549
544
  size: "medium",
550
545
  variant: "tertiary",
551
546
  "icon-start": "plus",
552
547
  disabled: !a.value,
553
- onClick: n[10] || (n[10] = (e) => a.value && l(De)(""))
548
+ onClick: n[10] || (n[10] = (e) => a.value && l(Le)(""))
554
549
  }, null, 8, ["disabled"])
555
550
  ])
556
551
  ]),
557
552
  i("section", Fn, [
558
553
  n[33] || (n[33] = i("h5", null, "Weiterführende Links (optional)", -1)),
559
554
  n[34] || (n[34] = i("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
560
- (d(!0), m(k, null, B(l(Ae), (e, o) => (d(), y(x, {
555
+ (d(!0), m(w, null, B(l(Ae), (e, o) => (d(), S(x, {
561
556
  key: e.key,
562
- onDelete: (u) => l(Le)(o)
557
+ onDelete: (u) => l(Fe)(o)
563
558
  }, {
564
559
  default: h(() => [
565
- r(V, {
560
+ s(V, {
566
561
  modelValue: e.value.name,
567
562
  "onUpdate:modelValue": (u) => e.value.name = u,
568
563
  name: `references[${o}].name`,
@@ -576,7 +571,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
576
571
  placeholder: "Benennen Sie den Link.",
577
572
  form: l(v)
578
573
  }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
579
- r(V, {
574
+ s(V, {
580
575
  modelValue: e.value.url,
581
576
  "onUpdate:modelValue": (u) => e.value.url = u,
582
577
  name: `references[${o}].url`,
@@ -591,7 +586,7 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
591
586
  placeholder: "https://www.url.com",
592
587
  form: l(v)
593
588
  }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "form"]),
594
- r(dn, {
589
+ s(cn, {
595
590
  modelValue: e.value.description,
596
591
  "onUpdate:modelValue": (u) => e.value.description = u,
597
592
  name: `references[${o}].description`,
@@ -600,15 +595,15 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
600
595
  "is-disabled": !a.value,
601
596
  max: A,
602
597
  hint: "true",
603
- "hint-message": `${qe(e)} von ${A} Zeichen`,
598
+ "hint-message": `${Qe(e)} von ${A} Zeichen`,
604
599
  "count-hint": !0,
605
600
  form: l(v)
606
601
  }, null, 8, ["modelValue", "onUpdate:modelValue", "name", "is-disabled", "hint-message", "form"])
607
602
  ]),
608
603
  _: 2
609
604
  }, 1032, ["onDelete"]))), 128)),
610
- i("div", Ln, [
611
- r(p, {
605
+ i("div", Zn, [
606
+ s(p, {
612
607
  "button-text": "Link hinzufügen",
613
608
  size: "medium",
614
609
  variant: "tertiary",
@@ -618,29 +613,29 @@ const fn = { class: "dpi-project-process-step V3-typography" }, hn = { class: "s
618
613
  }, null, 8, ["disabled"])
619
614
  ])
620
615
  ]),
621
- i("section", Zn, [
622
- H ? (d(), m("div", An, [
623
- r(p, {
616
+ i("section", An, [
617
+ H ? (d(), m("div", Wn, [
618
+ s(p, {
624
619
  "button-text": "Abbrechen",
625
620
  variant: "tertiary",
626
621
  onClick: n[12] || (n[12] = (e) => W("close"))
627
622
  }),
628
- r(p, {
623
+ s(p, {
629
624
  "button-text": "Speichern",
630
- disabled: !a.value || !j.value,
631
- onClick: l(Q)
625
+ disabled: !a.value || !G.value,
626
+ onClick: l(q)
632
627
  }, null, 8, ["disabled", "onClick"])
633
- ])) : (d(), y(p, {
628
+ ])) : (d(), S(p, {
634
629
  key: 1,
635
630
  "icon-start": "PlusSquare",
636
631
  "button-text": "Hardware hinzufügen",
637
- disabled: !a.value || !j.value,
638
- onClick: l(Q)
632
+ disabled: !a.value || !G.value,
633
+ onClick: l(q)
639
634
  }, null, 8, ["disabled", "onClick"]))
640
635
  ])
641
636
  ]));
642
637
  }
643
638
  });
644
639
  export {
645
- lt as default
640
+ ot as default
646
641
  };