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

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 (29) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +94 -82
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +66 -0
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue2.js +4 -0
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +43 -0
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue2.js +4 -0
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +37 -37
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +7 -0
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +126 -0
  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 +362 -463
  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 +33 -33
  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 +110 -211
  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 +50 -49
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +37 -23
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1000 -983
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue.js +55 -0
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaVeeValidate.vue2.js +4 -0
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +1 -1
  26. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +73 -63
  28. package/dist/packages/dpi/src/utils/twinbyUtils.js +8 -0
  29. package/package.json +23 -17
@@ -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 d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dd57c95a"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3f27470a"]]);
5
5
  export {
6
- d as default
6
+ e as default
7
7
  };
@@ -1,36 +1,36 @@
1
- import { defineComponent as Q, ref as x, computed as _, watch as X, toRef as Y, createBlock as d, openBlock as i, withCtx as u, createVNode as f, createElementBlock as o, createElementVNode as H, unref as S, isRef as ee, Fragment as v, renderList as y, createCommentVNode as p, createTextVNode as z, toDisplayString as m, nextTick as te } from "vue";
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
2
  import { FormKit as U } from "@formkit/vue";
3
- import { defineHubSearch as ne } from "@piveau/sdk-vue";
4
- import ie from "zod";
5
- import le from "../../../components/StepActionsSection.vue.js";
6
- import re from "../ActionCard.vue.js";
7
- import oe from "../Card.vue.js";
8
- import ae from "../Chip.vue.js";
9
- import ue from "../DpiModalBase.vue.js";
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";
10
10
  import c from "../SummaryBox.vue.js";
11
- import se from "./AreYouSureToSkipCard.vue.js";
11
+ import me from "./AreYouSureToSkipCard.vue.js";
12
12
  import $ from "./HardwareForm.vue.js";
13
- import de from "./ProcessStepBase.vue.js";
13
+ import pe from "./ProcessStepBase.vue.js";
14
14
  /* empty css */
15
- import { looseRenderable as h, useProcessStepResources as me, ensureHasOneResource as pe } from "./utils.js";
16
- const ce = {
15
+ import { looseRenderable as h, useProcessStepResources as ce } from "./utils.js";
16
+ const fe = {
17
17
  key: 0,
18
18
  class: "software-step__card-list--empty"
19
- }, fe = {
19
+ }, ve = {
20
20
  key: 1,
21
21
  class: "software-step__card-list"
22
- }, ve = { class: "step-section step-section--lg" }, ye = { class: "functionalities" }, Te = /* @__PURE__ */ Q({
22
+ }, ye = { class: "step-section step-section--lg" }, he = { class: "functionalities" }, Ce = /* @__PURE__ */ Y({
23
23
  __name: "HardwareStep",
24
24
  props: {
25
25
  stepGroup: {},
26
26
  edit: { type: Boolean }
27
27
  },
28
28
  setup(O) {
29
- const I = O, w = x(!1), a = x([]), { useResources: F } = ne({
29
+ const I = O, w = x(!1), a = x([]), { useResources: F } = le({
30
30
  baseUrl: "https://twin.bydata.de/api/hub/search",
31
31
  index: "resource",
32
32
  indexDetails: "resources/hardware",
33
- schema: ie.any()
33
+ schema: re.any()
34
34
  }, (e) => {
35
35
  var P, T, C, E, N, G;
36
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) || "");
@@ -66,7 +66,7 @@ const ce = {
66
66
  hosts: h(e == null ? void 0 : e.hosts)
67
67
  };
68
68
  })), k = x(""), W = _(() => a.value.find((e) => e.id === k.value)), b = x(0);
69
- X(w, (e, n) => {
69
+ ee(w, (e, n) => {
70
70
  !e && n && b.value++;
71
71
  });
72
72
  function L(e) {
@@ -80,7 +80,7 @@ const ce = {
80
80
  n !== -1 && a.value.splice(n, 1);
81
81
  }
82
82
  async function q(e) {
83
- L(e) && (k.value = e, b.value++, await te(), w.value = !0);
83
+ L(e) && (k.value = e, b.value++, await ie(), w.value = !0);
84
84
  }
85
85
  function R(e) {
86
86
  a.value.push(e), w.value = !1, k.value = "";
@@ -92,20 +92,20 @@ const ce = {
92
92
  function Z() {
93
93
  w.value = !1;
94
94
  }
95
- const j = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), J = _(() => "primary"), { count: V } = me(I.stepGroup || "", Y(I.edit));
96
- return (e, n) => (i(), d(de, {
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
97
  title: "Geben Sie Informationen zur verwendeten Hardware an",
98
98
  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
99
  }, {
100
100
  default: u(({ confirm: r }) => [
101
101
  f(S(U), {
102
102
  modelValue: S(V),
103
- "onUpdate:modelValue": n[0] || (n[0] = (t) => ee(V) ? V.value = t : null),
103
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => ne(V) ? V.value = t : null),
104
104
  type: "hidden",
105
105
  name: "__resourceCount",
106
106
  hidden: "",
107
107
  "aria-hidden": "",
108
- "validation-rules": { ensureHasOneResource: S(pe) },
108
+ "validation-rules": { ensureHasOneResource: S(X) },
109
109
  validation: "+ensureHasOneResource",
110
110
  "validation-visibility": "live",
111
111
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
@@ -117,8 +117,8 @@ const ce = {
117
117
  type: "list",
118
118
  hidden: ""
119
119
  }, null, 8, ["modelValue"]),
120
- g.value.length ? (i(), o("section", fe, [
121
- (i(!0), o(v, null, y(g.value, (t, B) => (i(), d(re, {
120
+ g.value.length ? (i(), o("section", ve, [
121
+ (i(!0), o(v, null, y(g.value, (t, B) => (i(), d(ae, {
122
122
  key: B,
123
123
  spaced: "",
124
124
  class: "software-card",
@@ -129,7 +129,7 @@ const ce = {
129
129
  z(" Hardware ", -1)
130
130
  ])),
131
131
  default: u(() => [
132
- H("div", ve, [
132
+ H("div", ye, [
133
133
  f(c, { title: "Name" }, {
134
134
  default: u(() => [
135
135
  z(m(t.name), 1)
@@ -138,8 +138,8 @@ const ce = {
138
138
  }, 1024),
139
139
  f(c, { title: "Genutzte Funktionalitäten" }, {
140
140
  default: u(() => [
141
- H("div", ye, [
142
- (i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(ae, {
141
+ H("div", he, [
142
+ (i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(se, {
143
143
  key: l,
144
144
  "no-border": "",
145
145
  text: l,
@@ -224,8 +224,8 @@ const ce = {
224
224
  ]),
225
225
  _: 2
226
226
  }, 1032, ["onEdit", "onDelete"]))), 128))
227
- ])) : (i(), o("section", ce, [
228
- f(oe, {
227
+ ])) : (i(), o("section", fe, [
228
+ f(ue, {
229
229
  small: "",
230
230
  class: "empty-card"
231
231
  }, {
@@ -241,18 +241,18 @@ const ce = {
241
241
  onSubmit: R
242
242
  }, null, 8, ["exclude"]),
243
243
  H("section", null, [
244
- f(le, {
244
+ f(oe, {
245
245
  class: "software-step-actions",
246
246
  "next-text": j.value,
247
247
  "next-variant": J.value,
248
248
  "show-detailed-error-summary": ""
249
249
  }, null, 8, ["next-text", "next-variant"]),
250
- g.value.length === 0 ? (i(), d(se, {
250
+ g.value.length === 0 ? (i(), d(me, {
251
251
  key: 0,
252
252
  "resource-label": "Hardware"
253
253
  })) : p("", !0)
254
254
  ]),
255
- f(ue, {
255
+ f(de, {
256
256
  modelValue: w.value,
257
257
  "onUpdate:modelValue": n[3] || (n[3] = (t) => w.value = t),
258
258
  "hide-close-btn": !0,
@@ -279,5 +279,5 @@ const ce = {
279
279
  }
280
280
  });
281
281
  export {
282
- Te as default
282
+ Ce as default
283
283
  };
@@ -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 f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6a54c794"]]);
4
+ const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c85992f4"]]);
5
5
  export {
6
- f as default
6
+ a as default
7
7
  };
@@ -1,23 +1,18 @@
1
- import { defineComponent as de, mergeModels as R, useModel as fe, unref as o, watch as C, ref as me, computed as m, createElementBlock as d, openBlock as c, createElementVNode as l, createCommentVNode as w, createVNode as a, Fragment as B, mergeProps as F, isRef as k, withCtx as pe, renderList as he, withDirectives as Se, vModelCheckbox as be, createBlock as ve } from "vue";
2
- import { toTypedSchema as j } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
- import { useForm as Z, useFieldArray as ye } from "vee-validate";
4
- import * as s from "zod";
5
- import { useTwinbyUser as ge } from "../../../composables/useTwinbyUser.js";
6
- import we from "../Autocomplete/AutocompleteVocab.vue.js";
7
- import b from "../ButtonV3.vue.js";
8
- import Fe from "../Chip.vue.js";
9
- import ke from "../InputField.vue.js";
10
- import Ie from "../ListBox/Listbox.vue.js";
11
- import Ve from "./RichOption.vue.js";
12
- const xe = { class: "dpi-project-process-step V3-typography" }, ze = { class: "step-section" }, Ae = { class: "step-section-actions" }, Ce = ["href"], Be = { class: "step-section" }, _e = {
13
- key: 0,
14
- class: "functionalities-container"
15
- }, De = ["id", "value"], Ue = { class: "step-section-actions" }, Le = { class: "step-section-actions" }, Te = {
1
+ import { defineComponent as R, mergeModels as C, useModel as H, unref as l, watch as P, ref as J, computed as b, createElementBlock as S, openBlock as d, createElementVNode as o, createCommentVNode as g, createVNode as a, Fragment as D, mergeProps as Q, isRef as W, 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";
7
+ import h 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 = {
16
11
  key: 0,
17
12
  class: "button-row"
18
- }, O = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Ye = /* @__PURE__ */ de({
13
+ }, Be = /* @__PURE__ */ R({
19
14
  __name: "SoftwareForm",
20
- props: /* @__PURE__ */ R({
15
+ props: /* @__PURE__ */ C({
21
16
  modelValue: {},
22
17
  functionalities: {},
23
18
  exclude: { default: () => [] }
@@ -27,101 +22,65 @@ const xe = { class: "dpi-project-process-step V3-typography" }, ze = { class: "s
27
22
  },
28
23
  modelModifiers: {}
29
24
  }),
30
- emits: /* @__PURE__ */ R(["submit", "patch", "close"], ["update:modelValue"]),
31
- setup(_, { emit: G }) {
32
- const p = _, I = G, $ = fe(_, "modelValue"), h = !!p.modelValue, q = o(p.modelValue) || "", K = s.object({
33
- lat: s.string().min(1, "Geben Sie einen Wert für die Breite ein"),
34
- lng: s.string().min(1, "Geben Sie einen Wert für die Länge ein")
35
- }), Q = s.array(K), Y = s.object({
36
- id: s.string(),
37
- functionalities: s.array(s.string()).min(1),
38
- locations: Q
25
+ emits: /* @__PURE__ */ C(["submit", "patch", "close"], ["update:modelValue"]),
26
+ setup(V, { emit: I }) {
27
+ const u = V, w = I, M = H(V, "modelValue"), c = !!u.modelValue, E = l(u.modelValue) || "", L = 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
+ }), T = i.array(L), U = i.object({
31
+ id: i.string(),
32
+ functionalities: i.array(i.string()).min(1),
33
+ locations: T
39
34
  }), {
40
- defineField: D,
41
- handleSubmit: H,
42
- resetForm: J,
43
- errors: We
44
- } = Z({
45
- validationSchema: j(Y),
35
+ defineField: k,
36
+ handleSubmit: j,
37
+ resetForm: N,
38
+ errors: pe
39
+ } = ne({
40
+ validationSchema: ee(U),
46
41
  initialValues: {
47
- id: p.modelValue || "",
48
- functionalities: p.functionalities || [],
42
+ id: u.modelValue || "",
43
+ functionalities: u.functionalities || [],
49
44
  locations: []
50
45
  },
51
46
  name: "softwareForm"
52
- }), [f, X] = D("id"), [r, ee] = D("functionalities"), {
53
- remove: Ee,
54
- push: Me,
55
- fields: Ne
56
- } = ye("locations");
57
- C(f, (n) => {
58
- $.value = n || "";
47
+ }), [r, Z] = k("id"), [s] = k("functionalities"), {
48
+ remove: be,
49
+ push: Se,
50
+ fields: he
51
+ } = te("locations");
52
+ P(r, (t) => {
53
+ M.value = t || "";
59
54
  }, { immediate: !0 });
60
- const U = me(null);
61
- function te(n) {
62
- U.value = n;
55
+ const y = J(null);
56
+ function _(t) {
57
+ y.value = t;
63
58
  }
64
- const S = m(() => !!f.value), L = m(() => {
65
- var n;
66
- return (((n = r.value) == null ? void 0 : n.length) ?? 0) > 0;
67
- }), V = m(() => {
68
- var n;
69
- return ((n = U.value) == null ? void 0 : n.functionalities) ?? [];
70
- }), ne = s.object({
71
- functionalitySelect: s.string().optional(),
72
- functionalityInput: s.string().optional()
73
- }).superRefine((n, t) => {
74
- const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, i = n.functionalityInput && n.functionalityInput.trim().length > 0;
75
- !e && !i && (t.addIssue({
76
- code: s.ZodIssueCode.custom,
77
- message: O,
78
- path: ["functionalitySelect"]
79
- }), t.addIssue({
80
- code: s.ZodIssueCode.custom,
81
- message: O,
82
- path: ["functionalityInput"]
83
- }));
84
- }), {
85
- defineField: T,
86
- handleSubmit: ie,
87
- errors: v,
88
- resetForm: x
89
- } = Z({
90
- validationSchema: j(ne),
91
- initialValues: {
92
- functionalitySelect: "",
93
- functionalityInput: ""
94
- }
59
+ const v = b(() => !!r.value), F = b(() => {
60
+ var t;
61
+ return (((t = s.value) == null ? void 0 : t.length) ?? 0) > 0;
62
+ }), $ = b(() => {
63
+ var t;
64
+ return ((t = y.value) == null ? void 0 : t.functionalities) ?? [];
95
65
  });
96
- C(f, (n, t) => {
97
- !!t && !!n && n !== t && (x(), r.value = []);
66
+ P(r, (t, n) => {
67
+ !!n && !!t && t !== n && (s.value = []);
98
68
  });
99
- const [y, oe] = T("functionalitySelect"), [z, le] = T("functionalityInput"), A = m(() => Array.from(r.value || [])), se = m(() => {
100
- var t, e;
101
- const n = A.value.join(" ");
102
- return (e = (t = V == null ? void 0 : V.value) == null ? void 0 : t.filter((i) => !n.includes(i))) == null ? void 0 : e.sort((i, u) => i.localeCompare(u));
103
- }), W = H((n) => {
104
- h ? I("patch", {
105
- id: q,
69
+ const z = j((t) => {
70
+ c ? w("patch", {
71
+ id: E,
106
72
  software: {
107
- id: n.id,
108
- functionalities: Array.from(r.value || []).filter(Boolean)
73
+ id: t.id,
74
+ functionalities: Array.from(s.value || []).filter(Boolean)
109
75
  }
110
- }) : I("submit", {
111
- id: n.id,
112
- functionalities: Array.from(r.value || []).filter(Boolean)
113
- }), x(), J();
114
- }), E = ie((n) => {
115
- var e, i;
116
- const t = n.functionalitySelect || n.functionalityInput;
117
- t && t.trim().length > 0 && !((e = r.value) != null && e.includes(t)) && ((i = r.value) == null || i.push(t)), x();
76
+ }) : w("submit", {
77
+ id: t.id,
78
+ functionalities: Array.from(s.value || []).filter(Boolean)
79
+ }), N();
118
80
  });
119
- C(y, (n) => {
120
- n && n.trim().length > 0 && E();
121
- });
122
- function re(n) {
81
+ function q(t) {
123
82
  return [
124
- ...n,
83
+ ...t,
125
84
  {
126
85
  id: "--software-in-request--",
127
86
  name: "Software in Beantragung",
@@ -131,160 +90,100 @@ const xe = { class: "dpi-project-process-step V3-typography" }, ze = { class: "s
131
90
  }
132
91
  ];
133
92
  }
134
- const { authToken: ae, username: ue } = ge(), ce = m(() => `https://form.typeform.com/to/r9b1mAZL#token=${ae.value}&account=${ue.value}`);
135
- return (n, t) => (c(), d("div", xe, [
136
- l("section", ze, [
137
- h ? w("", !0) : (c(), d(B, { key: 0 }, [
138
- t[6] || (t[6] = l("h5", null, "Wählen Sie eine bestehende Software", -1)),
139
- t[7] || (t[7] = l("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
93
+ const { authToken: G, username: K } = oe(), O = b(() => `https://form.typeform.com/to/r9b1mAZL#token=${G.value}&account=${K.value}`);
94
+ return (t, n) => (d(), S("div", le, [
95
+ o("section", ae, [
96
+ c ? g("", !0) : (d(), S(D, { 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))
140
99
  ], 64)),
141
- a(we, F({
142
- modelValue: o(f),
143
- "onUpdate:modelValue": t[0] || (t[0] = (e) => k(f) ? f.value = e : null)
144
- }, o(X), {
100
+ a(ie, Q({
101
+ modelValue: l(r),
102
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => W(r) ? r.value = e : null)
103
+ }, l(Z), {
145
104
  "base-url": "https://twin.bydata.de/api/hub/search",
146
105
  resource: "software",
147
- label: h ? "Software auswählen" : "",
106
+ label: c ? "Software auswählen" : "",
148
107
  placeholder: "Wählen Sie eine Software.",
149
108
  name: "software",
150
109
  "setup-fn": (e) => {
151
- var i, u, g, M, N, P;
110
+ var m, f, p, B, x, A;
152
111
  return {
153
112
  id: e == null ? void 0 : e.id,
154
- name: ((i = e == null ? void 0 : e.name) == null ? void 0 : i.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en),
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),
155
114
  functionalities: (e == null ? void 0 : e.functionalities) || [],
156
- unavailable: p.exclude.includes(e == null ? void 0 : e.id),
157
- manufacturer: (M = (g = e == null ? void 0 : e.manufacturer) == null ? void 0 : g[0]) == null ? void 0 : M.label,
158
- description: ((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((P = e == null ? void 0 : e.description) == null ? void 0 : P.en),
115
+ unavailable: u.exclude.includes(e == null ? void 0 : e.id),
116
+ manufacturer: (B = (p = e == null ? void 0 : e.manufacturer) == null ? void 0 : p[0]) == null ? void 0 : B.label,
117
+ description: ((x = e == null ? void 0 : e.description) == null ? void 0 : x.de) || ((A = e == null ? void 0 : e.description) == null ? void 0 : A.en),
159
118
  version: e == null ? void 0 : e.version
160
119
  };
161
120
  },
162
- "post-process-fn": re,
163
- onSelect: te
121
+ "post-process-fn": q,
122
+ onSelect: _
164
123
  }), {
165
- option: pe(({ option: e, active: i, selected: u, disabled: g }) => [
166
- a(Ve, {
124
+ option: X(({ option: e, active: m, selected: f, disabled: p }) => [
125
+ a(re, {
167
126
  name: e.name,
168
127
  manufacturer: e.manufacturer,
169
128
  description: e.description,
170
- active: i,
171
- selected: u,
172
- "is-disabled": g
129
+ active: m,
130
+ selected: f,
131
+ "is-disabled": p
173
132
  }, null, 8, ["name", "manufacturer", "description", "active", "selected", "is-disabled"])
174
133
  ]),
175
134
  _: 1
176
135
  }, 16, ["modelValue", "label", "setup-fn"]),
177
- h ? w("", !0) : (c(), d(B, { key: 1 }, [
178
- t[8] || (t[8] = l("h5", null, "oder", -1)),
179
- t[9] || (t[9] = l("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)),
180
- l("div", Ae, [
181
- l("a", {
182
- href: ce.value,
136
+ c ? g("", !0) : (d(), S(D, { key: 1 }, [
137
+ n[6] || (n[6] = o("h5", null, "oder", -1)),
138
+ 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)),
139
+ o("div", ue, [
140
+ o("a", {
141
+ href: O.value,
183
142
  target: "_blank"
184
143
  }, [
185
- a(b, {
144
+ a(h, {
186
145
  "button-text": "Zur Softwarebeantragung",
187
146
  size: "medium",
188
147
  variant: "secondary"
189
148
  })
190
- ], 8, Ce)
149
+ ], 8, ce)
191
150
  ])
192
151
  ], 64))
193
152
  ]),
194
- l("section", Be, [
195
- t[10] || (t[10] = l("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
196
- t[11] || (t[11] = l("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)),
197
- A.value.length > 0 ? (c(), d("div", _e, [
198
- (c(!0), d(B, null, he(A.value, (e, i) => (c(), d("div", {
199
- key: i,
200
- class: "functionalities"
201
- }, [
202
- Se(l("input", F({
203
- id: e,
204
- "onUpdate:modelValue": t[1] || (t[1] = (u) => k(r) ? r.value = u : null),
205
- hidden: "",
206
- value: e,
207
- name: "selectedFunctionalities",
208
- type: "checkbox"
209
- }, { ref_for: !0 }, o(ee)), null, 16, De), [
210
- [be, o(r)]
211
- ]),
212
- a(Fe, {
213
- as: "label",
214
- for: e,
215
- text: e,
216
- setup: {
217
- "@type": "select",
218
- "@icon": "suffix",
219
- "@inTable": !1,
220
- "@search": !1,
221
- "@selected": !0
222
- },
223
- data: { "@value": e, URI: e },
224
- "select-value": !0
225
- }, null, 8, ["for", "text", "data"])
226
- ]))), 128))
227
- ])) : w("", !0),
228
- a(Ie, F({
229
- modelValue: o(y),
230
- "onUpdate:modelValue": t[2] || (t[2] = (e) => k(y) ? y.value = e : null),
231
- options: se.value,
232
- "error-message": o(v).functionalitySelect,
233
- label: "Funktionalitäten auswählen",
234
- placeholder: "Wählen Sie eine Funktionalität.",
235
- disabled: !S.value
236
- }, o(oe)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
237
- t[12] || (t[12] = l("h5", null, " oder ", -1)),
238
- a(ke, F({
239
- modelValue: o(z),
240
- "onUpdate:modelValue": t[3] || (t[3] = (e) => k(z) ? z.value = e : null),
241
- "initial-hint-text": !!o(v).functionalityInput,
242
- error_message: o(v).functionalityInput,
243
- "show-error": !!o(v).functionalityInput,
244
- "add-on-text": !1,
245
- "date-picker": !1,
246
- "info-icon": !1,
247
- "show-end-icon": !1,
248
- "pre-icon": !1,
249
- "is-disabled": !S.value,
250
- label: "Funktionalitäten nennen",
251
- placeholder: "Nennen Sie eine Funktionalität."
252
- }, o(le)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
253
- l("div", Ue, [
254
- a(b, {
255
- "button-text": "Funktionalität hinzufügen",
256
- size: "medium",
257
- variant: "tertiary",
258
- "icon-start": "plus",
259
- disabled: !S.value,
260
- onClick: o(E)
261
- }, null, 8, ["disabled", "onClick"])
262
- ])
153
+ o("section", me, [
154
+ n[8] || (n[8] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
155
+ 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)),
156
+ a(se, {
157
+ modelValue: l(s),
158
+ "onUpdate:modelValue": n[1] || (n[1] = (e) => W(s) ? s.value = e : null),
159
+ options: $.value,
160
+ disabled: !v.value
161
+ }, null, 8, ["modelValue", "options", "disabled"])
263
162
  ]),
264
- w("", !0),
265
- l("section", Le, [
266
- h ? (c(), d("div", Te, [
267
- a(b, {
163
+ g("", !0),
164
+ o("section", de, [
165
+ c ? (d(), S("div", fe, [
166
+ a(h, {
268
167
  "button-text": "Abbrechen",
269
168
  variant: "tertiary",
270
- onClick: t[5] || (t[5] = (e) => I("close"))
169
+ onClick: n[3] || (n[3] = (e) => w("close"))
271
170
  }),
272
- a(b, {
171
+ a(h, {
273
172
  "button-text": "Speichern",
274
- disabled: !S.value || !L.value,
275
- onClick: o(W)
173
+ disabled: !v.value || !F.value,
174
+ onClick: l(z)
276
175
  }, null, 8, ["disabled", "onClick"])
277
- ])) : (c(), ve(b, {
176
+ ])) : (d(), Y(h, {
278
177
  key: 1,
279
178
  "icon-start": "PlusSquare",
280
179
  "button-text": "Software hinzufügen",
281
- disabled: !S.value || !L.value,
282
- onClick: o(W)
180
+ disabled: !v.value || !F.value,
181
+ onClick: l(z)
283
182
  }, null, 8, ["disabled", "onClick"]))
284
183
  ])
285
184
  ]));
286
185
  }
287
186
  });
288
187
  export {
289
- Ye as default
188
+ Be as default
290
189
  };
@@ -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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d23df924"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6e65bae7"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };