@piveau/dpi 0.2.0-alpha.67 → 0.2.0-alpha.71

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 (26) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/composables/useRuntimeEnv.js +3 -3
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +1 -1
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue2.js +80 -73
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +39 -39
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +1 -1
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +15 -10
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +90 -86
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +51 -49
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +549 -542
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +69 -67
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +152 -145
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +62 -60
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +559 -522
  22. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +2 -2
  23. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +69 -65
  24. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +29 -29
  25. package/dist/packages/dpi/src/data-provider-interface/plugins/userConfigShimPlugin.js +2 -3
  26. package/package.json +5 -1
@@ -1,7 +1,7 @@
1
1
  import o from "./HardwareStep.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f27470a"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cf4172e9"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,39 +1,41 @@
1
- import { defineComponent as Y, ref as x, computed as _, watch as ee, toRef as te, createBlock as d, openBlock as i, withCtx as u, createVNode as f, createElementBlock as o, createElementVNode as H, unref as S, isRef as ne, Fragment as v, renderList as y, createCommentVNode as p, createTextVNode as z, toDisplayString as m, nextTick as ie } from "vue";
2
- import { FormKit as U } from "@formkit/vue";
3
- import { defineHubSearch as le } from "@piveau/sdk-vue";
4
- import re from "zod";
5
- import oe from "../../../components/StepActionsSection.vue.js";
6
- import ae from "../ActionCard.vue.js";
7
- import ue from "../Card.vue.js";
8
- import se from "../Chip.vue.js";
9
- import de from "../DpiModalBase.vue.js";
1
+ import { defineComponent as te, ref as x, computed as _, watch as ne, toRef as ie, createBlock as d, openBlock as i, withCtx as u, createVNode as f, createElementBlock as o, createElementVNode as H, unref as S, isRef as le, Fragment as v, renderList as y, createCommentVNode as p, createTextVNode as z, toDisplayString as m, nextTick as re } from "vue";
2
+ import { FormKit as $ } from "@formkit/vue";
3
+ import { defineHubSearch as oe } from "@piveau/sdk-vue";
4
+ import ae from "zod";
5
+ import { useRuntimeEnv as ue } from "../../../../composables/useRuntimeEnv.js";
6
+ import se from "../../../components/StepActionsSection.vue.js";
7
+ import de from "../ActionCard.vue.js";
8
+ import me from "../Card.vue.js";
9
+ import pe from "../Chip.vue.js";
10
+ import ce from "../DpiModalBase.vue.js";
10
11
  import c from "../SummaryBox.vue.js";
11
- import me from "./AreYouSureToSkipCard.vue.js";
12
- import $ from "./HardwareForm.vue.js";
13
- import pe from "./ProcessStepBase.vue.js";
12
+ import fe from "./AreYouSureToSkipCard.vue.js";
13
+ import O from "./HardwareForm.vue.js";
14
+ import ve from "./ProcessStepBase.vue.js";
14
15
  /* empty css */
15
- import { looseRenderable as h, useProcessStepResources as ce } from "./utils.js";
16
- const fe = {
16
+ import { looseRenderable as h, useProcessStepResources as ye } from "./utils.js";
17
+ const he = {
17
18
  key: 0,
18
19
  class: "software-step__card-list--empty"
19
- }, ve = {
20
+ }, we = {
20
21
  key: 1,
21
22
  class: "software-step__card-list"
22
- }, ye = { class: "step-section step-section--lg" }, he = { class: "functionalities" }, Ce = /* @__PURE__ */ Y({
23
+ }, ke = { class: "step-section step-section--lg" }, He = { class: "functionalities" }, Ge = /* @__PURE__ */ te({
23
24
  __name: "HardwareStep",
24
25
  props: {
25
26
  stepGroup: {},
26
27
  edit: { type: Boolean }
27
28
  },
28
- setup(O) {
29
- const I = O, w = x(!1), a = x([]), { useResources: F } = le({
30
- baseUrl: "https://twin.bydata.de/api/hub/search",
29
+ setup(F) {
30
+ var P;
31
+ const I = F, w = x(!1), a = x([]), A = ue(), { useResources: W } = oe({
32
+ baseUrl: ((P = A.api) == null ? void 0 : P.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
31
33
  index: "resource",
32
34
  indexDetails: "resources/hardware",
33
- schema: re.any()
35
+ schema: ae.any()
34
36
  }, (e) => {
35
- var P, T, C, E, N, G;
36
- const n = String((e == null ? void 0 : e.id) || ""), r = String(((P = e == null ? void 0 : e.name) == null ? void 0 : P.de) || ((T = e == null ? void 0 : e.name) == null ? void 0 : T.en) || ""), t = (e == null ? void 0 : e.functionalities) || [], B = String(((E = (C = e == null ? void 0 : e.manufacturer) == null ? void 0 : C[0]) == null ? void 0 : E.label) || ""), l = String(((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((G = e == null ? void 0 : e.description) == null ? void 0 : G.en) || ""), s = String((e == null ? void 0 : e.version) || "");
37
+ var T, C, E, N, U, G;
38
+ const n = String((e == null ? void 0 : e.id) || ""), r = String(((T = e == null ? void 0 : e.name) == null ? void 0 : T.de) || ((C = e == null ? void 0 : e.name) == null ? void 0 : C.en) || ""), t = (e == null ? void 0 : e.functionalities) || [], B = String(((N = (E = e == null ? void 0 : e.manufacturer) == null ? void 0 : E[0]) == null ? void 0 : N.label) || ""), l = String(((U = e == null ? void 0 : e.description) == null ? void 0 : U.de) || ((G = e == null ? void 0 : e.description) == null ? void 0 : G.en) || ""), s = String((e == null ? void 0 : e.version) || "");
37
39
  return {
38
40
  id: n,
39
41
  name: r,
@@ -42,11 +44,11 @@ const fe = {
42
44
  description: l,
43
45
  version: s
44
46
  };
45
- }), A = F(_(() => a.value.map((e) => ({
47
+ }), L = W(_(() => a.value.map((e) => ({
46
48
  resourceId: e.id
47
- })))), g = _(() => a.value.map((e, n) => {
49
+ })))), b = _(() => a.value.map((e, n) => {
48
50
  var t;
49
- const r = (t = A.value[n]) == null ? void 0 : t.resultEnhanced;
51
+ const r = (t = L.value[n]) == null ? void 0 : t.resultEnhanced;
50
52
  return {
51
53
  // The ones that come from API
52
54
  id: e.id || (r == null ? void 0 : r.id),
@@ -65,71 +67,71 @@ const fe = {
65
67
  isHostedByItems: h(e == null ? void 0 : e.isHostedBy),
66
68
  hosts: h(e == null ? void 0 : e.hosts)
67
69
  };
68
- })), k = x(""), W = _(() => a.value.find((e) => e.id === k.value)), b = x(0);
69
- ee(w, (e, n) => {
70
- !e && n && b.value++;
70
+ })), k = x(""), M = _(() => a.value.find((e) => e.id === k.value)), g = x(0);
71
+ ne(w, (e, n) => {
72
+ !e && n && g.value++;
71
73
  });
72
- function L(e) {
74
+ function q(e) {
73
75
  return a.value.find((n) => n.id === e);
74
76
  }
75
- function D(e) {
77
+ function R(e) {
76
78
  return a.value.findIndex((n) => n.id === e);
77
79
  }
78
- function M(e) {
79
- const n = D(e);
80
+ function K(e) {
81
+ const n = R(e);
80
82
  n !== -1 && a.value.splice(n, 1);
81
83
  }
82
- async function q(e) {
83
- L(e) && (k.value = e, b.value++, await ie(), w.value = !0);
84
+ async function Z(e) {
85
+ q(e) && (k.value = e, g.value++, await re(), w.value = !0);
84
86
  }
85
- function R(e) {
87
+ function D(e) {
86
88
  a.value.push(e), w.value = !1, k.value = "";
87
89
  }
88
- function K(e) {
89
- const n = D(e.id);
90
+ function j(e) {
91
+ const n = R(e.id);
90
92
  n !== -1 && (a.value.splice(n, 1), a.value.splice(n, 0, e.hardware), k.value = "", w.value = !1);
91
93
  }
92
- function Z() {
94
+ function J() {
93
95
  w.value = !1;
94
96
  }
95
- const j = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), J = _(() => "primary"), Q = te(I, "edit"), { count: V, ensureHasOneResource: X } = ce(I.stepGroup || "", Q);
96
- return (e, n) => (i(), d(pe, {
97
+ const Q = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), X = _(() => "primary"), Y = ie(I, "edit"), { count: V, ensureHasOneResource: ee } = ye(I.stepGroup || "", Y);
98
+ return (e, n) => (i(), d(ve, {
97
99
  title: "Geben Sie Informationen zur verwendeten Hardware an",
98
100
  subtitle: "Die Hardware wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Hardware Sie verwendet haben. Sobald Sie eine Hardware zugeordnet haben, geben Sie bitte an, wie die Hardware in diesem Schritt eingesetzt wurde."
99
101
  }, {
100
102
  default: u(({ confirm: r }) => [
101
- f(S(U), {
103
+ f(S($), {
102
104
  modelValue: S(V),
103
- "onUpdate:modelValue": n[0] || (n[0] = (t) => ne(V) ? V.value = t : null),
105
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => le(V) ? V.value = t : null),
104
106
  type: "hidden",
105
107
  name: "__resourceCount",
106
108
  hidden: "",
107
109
  "aria-hidden": "",
108
- "validation-rules": { ensureHasOneResource: S(X) },
110
+ "validation-rules": { ensureHasOneResource: S(ee) },
109
111
  validation: "+ensureHasOneResource",
110
112
  "validation-visibility": "live",
111
113
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
112
114
  }, null, 8, ["modelValue", "validation-rules"]),
113
- f(S(U), {
115
+ f(S($), {
114
116
  modelValue: a.value,
115
117
  "onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
116
118
  name: "selected",
117
119
  type: "list",
118
120
  hidden: ""
119
121
  }, null, 8, ["modelValue"]),
120
- g.value.length ? (i(), o("section", ve, [
121
- (i(!0), o(v, null, y(g.value, (t, B) => (i(), d(ae, {
122
+ b.value.length ? (i(), o("section", we, [
123
+ (i(!0), o(v, null, y(b.value, (t, B) => (i(), d(de, {
122
124
  key: B,
123
125
  spaced: "",
124
126
  class: "software-card",
125
- onEdit: (l) => q(t.id),
126
- onDelete: (l) => r({ id: t.id || "", resourceType: "Hardware", resource: t.name, callback: M })
127
+ onEdit: (l) => Z(t.id),
128
+ onDelete: (l) => r({ id: t.id || "", resourceType: "Hardware", resource: t.name, callback: K })
127
129
  }, {
128
130
  "standalone-name": u(() => n[5] || (n[5] = [
129
131
  z(" Hardware ", -1)
130
132
  ])),
131
133
  default: u(() => [
132
- H("div", ye, [
134
+ H("div", ke, [
133
135
  f(c, { title: "Name" }, {
134
136
  default: u(() => [
135
137
  z(m(t.name), 1)
@@ -138,8 +140,8 @@ const fe = {
138
140
  }, 1024),
139
141
  f(c, { title: "Genutzte Funktionalitäten" }, {
140
142
  default: u(() => [
141
- H("div", he, [
142
- (i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(se, {
143
+ H("div", He, [
144
+ (i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(pe, {
143
145
  key: l,
144
146
  "no-border": "",
145
147
  text: l,
@@ -224,8 +226,8 @@ const fe = {
224
226
  ]),
225
227
  _: 2
226
228
  }, 1032, ["onEdit", "onDelete"]))), 128))
227
- ])) : (i(), o("section", fe, [
228
- f(ue, {
229
+ ])) : (i(), o("section", he, [
230
+ f(me, {
229
231
  small: "",
230
232
  class: "empty-card"
231
233
  }, {
@@ -236,23 +238,23 @@ const fe = {
236
238
  __: [4]
237
239
  })
238
240
  ])),
239
- f($, {
241
+ f(O, {
240
242
  exclude: a.value.map((t) => t.id),
241
- onSubmit: R
243
+ onSubmit: D
242
244
  }, null, 8, ["exclude"]),
243
245
  H("section", null, [
244
- f(oe, {
246
+ f(se, {
245
247
  class: "software-step-actions",
246
- "next-text": j.value,
247
- "next-variant": J.value,
248
+ "next-text": Q.value,
249
+ "next-variant": X.value,
248
250
  "show-detailed-error-summary": ""
249
251
  }, null, 8, ["next-text", "next-variant"]),
250
- g.value.length === 0 ? (i(), d(me, {
252
+ b.value.length === 0 ? (i(), d(fe, {
251
253
  key: 0,
252
254
  "resource-label": "Hardware"
253
255
  })) : p("", !0)
254
256
  ]),
255
- f(de, {
257
+ f(ce, {
256
258
  modelValue: w.value,
257
259
  "onUpdate:modelValue": n[3] || (n[3] = (t) => w.value = t),
258
260
  "hide-close-btn": !0,
@@ -260,15 +262,15 @@ const fe = {
260
262
  title: "Hardware"
261
263
  }, {
262
264
  default: u(() => [
263
- k.value ? (i(), d($, {
264
- key: b.value,
265
+ k.value ? (i(), d(O, {
266
+ key: g.value,
265
267
  modelValue: k.value,
266
268
  "onUpdate:modelValue": n[2] || (n[2] = (t) => k.value = t),
267
- "initialize-with": W.value,
269
+ "initialize-with": M.value,
268
270
  exclude: a.value.map((t) => t.id),
269
- onSubmit: R,
270
- onPatch: K,
271
- onClose: Z
271
+ onSubmit: D,
272
+ onPatch: j,
273
+ onClose: J
272
274
  }, null, 8, ["modelValue", "initialize-with", "exclude"])) : p("", !0)
273
275
  ]),
274
276
  _: 1
@@ -279,5 +281,5 @@ const fe = {
279
281
  }
280
282
  });
281
283
  export {
282
- Ce as default
284
+ Ge as default
283
285
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SoftwareForm.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-af7247b3"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eb28de56"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -1,18 +1,19 @@
1
- import { defineComponent as R, mergeModels as P, useModel as H, unref as r, watch as D, ref as J, computed as b, createElementBlock as h, openBlock as d, createElementVNode as o, createCommentVNode as g, createVNode as a, Fragment as W, mergeProps as Q, isRef as I, withCtx as X, createBlock as Y } from "vue";
2
- import { toTypedSchema as ee } 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 ne, useFieldArray as te } from "vee-validate";
4
- import * as i from "zod";
5
- import { useTwinbyUser as oe } from "../../../composables/useTwinbyUser.js";
6
- import ie from "../Autocomplete/AutocompleteVocab.vue.js";
1
+ import { defineComponent as J, mergeModels as W, useModel as Q, unref as i, watch as E, ref as X, computed as b, createElementBlock as h, openBlock as m, createElementVNode as o, createCommentVNode as k, createVNode as a, Fragment as I, mergeProps as Y, isRef as M, withCtx as ee, createBlock as ne } from "vue";
2
+ import { toTypedSchema as te } 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 oe, useFieldArray as ie } from "vee-validate";
4
+ import * as s from "zod";
5
+ import { useRuntimeEnv as se } from "../../../../composables/useRuntimeEnv.js";
6
+ import { useTwinbyUser as re } from "../../../composables/useTwinbyUser.js";
7
+ import le from "../Autocomplete/AutocompleteVocab.vue.js";
7
8
  import S from "../ButtonV3.vue.js";
8
- import se from "./FunctionalityForm.vue.js";
9
- import re from "./RichOption.vue.js";
10
- const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "step-section" }, ue = { class: "step-section-actions" }, ce = ["href"], me = { class: "step-section" }, de = { class: "step-section-actions" }, fe = {
9
+ import ae from "./FunctionalityForm.vue.js";
10
+ import ue from "./RichOption.vue.js";
11
+ const ce = { class: "dpi-project-process-step V3-typography" }, me = { class: "step-section" }, de = { class: "step-section-actions" }, fe = ["href"], pe = { class: "step-section" }, be = { class: "step-section-actions" }, he = {
11
12
  key: 0,
12
13
  class: "button-row"
13
- }, Be = /* @__PURE__ */ R({
14
+ }, Pe = /* @__PURE__ */ J({
14
15
  __name: "SoftwareForm",
15
- props: /* @__PURE__ */ P({
16
+ props: /* @__PURE__ */ W({
16
17
  modelValue: {},
17
18
  functionalities: {},
18
19
  exclude: { default: () => [] }
@@ -22,65 +23,65 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
22
23
  },
23
24
  modelModifiers: {}
24
25
  }),
25
- emits: /* @__PURE__ */ P(["submit", "patch", "close"], ["update:modelValue"]),
26
- setup(k, { emit: M }) {
27
- const u = k, w = M, E = H(k, "modelValue"), c = !!u.modelValue, L = r(u.modelValue) || "", T = i.object({
28
- lat: i.string().min(1, "Geben Sie einen Wert für die Breite ein"),
29
- lng: i.string().min(1, "Geben Sie einen Wert für die Länge ein")
30
- }), U = i.array(T), j = i.object({
31
- id: i.string(),
32
- functionalities: i.array(i.string()).min(1),
33
- locations: U
26
+ emits: /* @__PURE__ */ W(["submit", "patch", "close"], ["update:modelValue"]),
27
+ setup(V, { emit: U }) {
28
+ const u = V, w = U, L = Q(V, "modelValue"), c = !!u.modelValue, T = i(u.modelValue) || "", $ = s.object({
29
+ lat: s.string().min(1, "Geben Sie einen Wert für die Breite ein"),
30
+ lng: s.string().min(1, "Geben Sie einen Wert für die Länge ein")
31
+ }), j = s.array($), N = s.object({
32
+ id: s.string(),
33
+ functionalities: s.array(s.string()).min(1),
34
+ locations: j
34
35
  }), {
35
- defineField: V,
36
- handleSubmit: N,
36
+ defineField: y,
37
+ handleSubmit: R,
37
38
  resetForm: Z,
38
- errors: pe
39
- } = ne({
40
- validationSchema: ee(j),
39
+ errors: Se
40
+ } = oe({
41
+ validationSchema: te(N),
41
42
  initialValues: {
42
43
  id: u.modelValue || "",
43
44
  functionalities: u.functionalities || [],
44
45
  locations: []
45
46
  },
46
47
  name: "softwareForm"
47
- }), [l, _] = V("id"), [s] = V("functionalities"), {
48
- remove: be,
49
- push: he,
50
- fields: Se
51
- } = te("locations");
52
- D(l, (t) => {
53
- E.value = t || "";
48
+ }), [l, _] = y("id"), [r] = y("functionalities"), {
49
+ remove: we,
50
+ push: ve,
51
+ fields: ge
52
+ } = ie("locations");
53
+ E(l, (n) => {
54
+ L.value = n || "";
54
55
  }, { immediate: !0 });
55
- const y = J(null);
56
- function $(t) {
57
- y.value = t;
56
+ const F = X(null);
57
+ function q(n) {
58
+ F.value = n;
58
59
  }
59
- const v = b(() => !!l.value), F = b(() => {
60
- var t;
61
- return (((t = s.value) == null ? void 0 : t.length) ?? 0) > 0;
62
- }), q = b(() => {
63
- var t;
64
- return ((t = y.value) == null ? void 0 : t.functionalities) ?? [];
60
+ const v = b(() => !!l.value), z = b(() => {
61
+ var n;
62
+ return (((n = r.value) == null ? void 0 : n.length) ?? 0) > 0;
63
+ }), G = b(() => {
64
+ var n;
65
+ return ((n = F.value) == null ? void 0 : n.functionalities) ?? [];
65
66
  });
66
- D(l, (t, n) => {
67
- !!n && !!t && t !== n && (s.value = []);
67
+ E(l, (n, t) => {
68
+ !!t && !!n && n !== t && (r.value = []);
68
69
  });
69
- const z = N((t) => {
70
+ const B = R((n) => {
70
71
  c ? w("patch", {
71
- id: L,
72
+ id: T,
72
73
  software: {
73
- id: t.id,
74
- functionalities: Array.from(s.value || []).filter(Boolean)
74
+ id: n.id,
75
+ functionalities: Array.from(r.value || []).filter(Boolean)
75
76
  }
76
77
  }) : w("submit", {
77
- id: t.id,
78
- functionalities: Array.from(s.value || []).filter(Boolean)
78
+ id: n.id,
79
+ functionalities: Array.from(r.value || []).filter(Boolean)
79
80
  }), Z();
80
81
  });
81
- function G(t) {
82
+ function K(n) {
82
83
  return [
83
- ...t,
84
+ ...n,
84
85
  {
85
86
  id: "--software-in-request--",
86
87
  name: "Software in Beantragung",
@@ -90,101 +91,107 @@ const le = { class: "dpi-project-process-step V3-typography" }, ae = { class: "s
90
91
  }
91
92
  ];
92
93
  }
93
- const { authToken: B, username: K } = oe(), O = b(() => `https://form.typeform.com/to/r9b1mAZL#token=${B.value}&account=${K.value}`);
94
- return (t, n) => (d(), h("div", le, [
95
- o("section", ae, [
96
- c ? g("", !0) : (d(), h(W, { key: 0 }, [
97
- n[4] || (n[4] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
98
- n[5] || (n[5] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
99
- ], 64)),
100
- a(ie, Q({
101
- modelValue: r(l),
102
- "onUpdate:modelValue": n[0] || (n[0] = (e) => I(l) ? l.value = e : null)
103
- }, r(_), {
104
- "base-url": "https://twin.bydata.de/api/hub/search",
105
- resource: "software",
106
- label: c ? "Software auswählen" : "",
107
- placeholder: "Wählen Sie eine Software.",
108
- name: "software",
109
- "setup-fn": (e) => {
110
- var m, f, p, x, A, C;
111
- return {
112
- id: e == null ? void 0 : e.id,
113
- name: ((m = e == null ? void 0 : e.name) == null ? void 0 : m.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
114
- functionalities: (e == null ? void 0 : e.functionalities) || [],
115
- unavailable: u.exclude.includes(e == null ? void 0 : e.id),
116
- manufacturer: (x = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : x.label,
117
- description: ((A = e == null ? void 0 : e.description) == null ? void 0 : A.de) || ((C = e == null ? void 0 : e.description) == null ? void 0 : C.en),
118
- version: e == null ? void 0 : e.version
119
- };
120
- },
121
- "post-process-fn": G,
122
- "auth-token": r(B),
123
- onSelect: $
124
- }), {
125
- option: X(({ option: e, active: m, selected: f, disabled: p }) => [
126
- a(re, {
127
- name: e.name,
128
- manufacturer: e.manufacturer,
129
- description: e.description,
130
- active: m,
131
- selected: f,
132
- "is-disabled": p
133
- }, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
134
- ]),
135
- _: 1
136
- }, 16, ["modelValue", "label", "setup-fn", "auth-token"]),
137
- c ? g("", !0) : (d(), h(W, { key: 1 }, [
138
- n[6] || (n[6] = o("h5", null, "oder", -1)),
139
- n[7] || (n[7] = o("p", null, " Sollte die verwendete Software 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 „Software in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Software-Datensatz ersetzen. ", -1)),
140
- o("div", ue, [
141
- o("a", {
142
- href: O.value,
143
- target: "_blank"
144
- }, [
145
- a(S, {
146
- "button-text": "Zur Softwarebeantragung",
147
- size: "medium",
148
- variant: "secondary"
149
- })
150
- ], 8, ce)
151
- ])
152
- ], 64))
153
- ]),
154
- o("section", me, [
155
- n[8] || (n[8] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
156
- n[9] || (n[9] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Software verwendet haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
157
- a(se, {
158
- modelValue: r(s),
159
- "onUpdate:modelValue": n[1] || (n[1] = (e) => I(s) ? s.value = e : null),
160
- options: q.value,
161
- disabled: !v.value
162
- }, null, 8, ["modelValue", "options", "disabled"])
163
- ]),
164
- g("", !0),
165
- o("section", de, [
166
- c ? (d(), h("div", fe, [
167
- a(S, {
168
- "button-text": "Abbrechen",
169
- variant: "tertiary",
170
- onClick: n[3] || (n[3] = (e) => w("close"))
171
- }),
172
- a(S, {
173
- "button-text": "Speichern",
174
- disabled: !v.value || !F.value,
175
- onClick: r(z)
176
- }, null, 8, ["disabled", "onClick"])
177
- ])) : (d(), Y(S, {
178
- key: 1,
179
- "icon-start": "PlusSquare",
180
- "button-text": "Software hinzufügen",
181
- disabled: !v.value || !F.value,
182
- onClick: r(z)
183
- }, null, 8, ["disabled", "onClick"]))
184
- ])
185
- ]));
94
+ const x = se(), { authToken: A, username: O } = re(), H = b(() => {
95
+ var n;
96
+ return `${((n = x.typeform) == null ? void 0 : n.software) ?? "https://form.typeform.com/to/r9b1mAZL"}#token=${A.value}&account=${O.value}`;
97
+ });
98
+ return (n, t) => {
99
+ var g;
100
+ return m(), h("div", ce, [
101
+ o("section", me, [
102
+ c ? k("", !0) : (m(), h(I, { key: 0 }, [
103
+ t[4] || (t[4] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
104
+ t[5] || (t[5] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
105
+ ], 64)),
106
+ a(le, Y({
107
+ modelValue: i(l),
108
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => M(l) ? l.value = e : null)
109
+ }, i(_), {
110
+ "base-url": ((g = i(x).api) == null ? void 0 : g.baseUrl) ?? "https://twin.bydata.de/api/hub/search",
111
+ resource: "software",
112
+ label: c ? "Software auswählen" : "",
113
+ placeholder: "Wählen Sie eine Software.",
114
+ name: "software",
115
+ "setup-fn": (e) => {
116
+ var d, f, p, C, P, D;
117
+ return {
118
+ id: e == null ? void 0 : e.id,
119
+ name: ((d = e == null ? void 0 : e.name) == null ? void 0 : d.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
120
+ functionalities: (e == null ? void 0 : e.functionalities) || [],
121
+ unavailable: u.exclude.includes(e == null ? void 0 : e.id),
122
+ manufacturer: (C = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : C.label,
123
+ description: ((P = e == null ? void 0 : e.description) == null ? void 0 : P.de) || ((D = e == null ? void 0 : e.description) == null ? void 0 : D.en),
124
+ version: e == null ? void 0 : e.version
125
+ };
126
+ },
127
+ "post-process-fn": K,
128
+ "auth-token": i(A),
129
+ onSelect: q
130
+ }), {
131
+ option: ee(({ option: e, active: d, selected: f, disabled: p }) => [
132
+ a(ue, {
133
+ name: e.name,
134
+ manufacturer: e.manufacturer,
135
+ description: e.description,
136
+ active: d,
137
+ selected: f,
138
+ "is-disabled": p
139
+ }, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
140
+ ]),
141
+ _: 1
142
+ }, 16, ["modelValue", "base-url", "label", "setup-fn", "auth-token"]),
143
+ c ? k("", !0) : (m(), h(I, { key: 1 }, [
144
+ t[6] || (t[6] = o("h5", null, "oder", -1)),
145
+ t[7] || (t[7] = o("p", null, " Sollte die verwendete Software 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 „Software in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Software-Datensatz ersetzen. ", -1)),
146
+ o("div", de, [
147
+ o("a", {
148
+ href: H.value,
149
+ target: "_blank"
150
+ }, [
151
+ a(S, {
152
+ "button-text": "Zur Softwarebeantragung",
153
+ size: "medium",
154
+ variant: "secondary"
155
+ })
156
+ ], 8, fe)
157
+ ])
158
+ ], 64))
159
+ ]),
160
+ o("section", pe, [
161
+ t[8] || (t[8] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
162
+ t[9] || (t[9] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Software verwendet haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
163
+ a(ae, {
164
+ modelValue: i(r),
165
+ "onUpdate:modelValue": t[1] || (t[1] = (e) => M(r) ? r.value = e : null),
166
+ options: G.value,
167
+ disabled: !v.value
168
+ }, null, 8, ["modelValue", "options", "disabled"])
169
+ ]),
170
+ k("", !0),
171
+ o("section", be, [
172
+ c ? (m(), h("div", he, [
173
+ a(S, {
174
+ "button-text": "Abbrechen",
175
+ variant: "tertiary",
176
+ onClick: t[3] || (t[3] = (e) => w("close"))
177
+ }),
178
+ a(S, {
179
+ "button-text": "Speichern",
180
+ disabled: !v.value || !z.value,
181
+ onClick: i(B)
182
+ }, null, 8, ["disabled", "onClick"])
183
+ ])) : (m(), ne(S, {
184
+ key: 1,
185
+ "icon-start": "PlusSquare",
186
+ "button-text": "Software hinzufügen",
187
+ disabled: !v.value || !z.value,
188
+ onClick: i(B)
189
+ }, null, 8, ["disabled", "onClick"]))
190
+ ])
191
+ ]);
192
+ };
186
193
  }
187
194
  });
188
195
  export {
189
- Be as default
196
+ Pe as default
190
197
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SoftwareStep.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6e65bae7"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-401969d4"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };