@piveau/dpi 0.2.0-alpha.13 → 0.2.0-alpha.15

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 (90) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/DataProviderInterface.vue2.js +48 -47
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/AboutProject.vue.js +46 -48
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +48 -31
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/HomeTable.vue.js +101 -79
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +4 -94
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue2.js +128 -0
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/services/dpiV3_apis.js +36 -68
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +64 -52
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +14 -14
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +9 -6
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +26 -27
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +8 -8
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +19 -19
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +38 -39
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +72 -67
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +1 -1
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +84 -97
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +1 -1
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +103 -88
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +18 -17
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +1 -1
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +35 -28
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -10
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +4 -3
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +46 -40
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +144 -134
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +190 -156
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +44 -38
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +2 -2
  40. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +73 -71
  41. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +4 -4
  42. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  43. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +128 -123
  44. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  45. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +133 -131
  46. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  47. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +50 -45
  48. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  49. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +85 -83
  50. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +17 -17
  51. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +2 -2
  52. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +341 -341
  53. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +38 -71
  54. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue2.js +4 -0
  55. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +205 -143
  56. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue.js +7 -0
  57. package/dist/packages/dpi/src/data-provider-interface/components/Spatial.vue2.js +172 -0
  58. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue.js +7 -0
  59. package/dist/packages/dpi/src/data-provider-interface/components/SpatialPage.vue2.js +44 -0
  60. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  61. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +111 -91
  62. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +3 -3
  63. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +24 -19
  64. package/dist/packages/dpi/src/data-provider-interface/components/TheErrorDialog.vue.js +57 -46
  65. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +2 -2
  66. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +137 -94
  67. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +152 -135
  68. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +202 -167
  69. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiContext.js +9 -10
  70. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiEditMode.js +89 -65
  71. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +287 -281
  72. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiStepper.js +82 -82
  73. package/dist/packages/dpi/src/data-provider-interface/composables/useDpiUtils.js +18 -9
  74. package/dist/packages/dpi/src/data-provider-interface/composables/useProjectActions.js +95 -0
  75. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyHome.js +83 -0
  76. package/dist/packages/dpi/src/data-provider-interface/composables/useTwinbyUser.js +85 -0
  77. package/dist/packages/dpi/src/data-provider-interface/config/dcatapdeHappyFlow/converter.js +19 -19
  78. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +48 -45
  79. package/dist/packages/dpi/src/data-provider-interface/views/InputPage.vue.js +333 -308
  80. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +405 -409
  81. package/dist/packages/dpi/src/form/inputDefinitions.js +52 -53
  82. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  83. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +14 -14
  84. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  85. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +9 -8
  86. package/dist/packages/dpi/src/utils/schema/schemaProject.js +210 -0
  87. package/dist/packages/dpi/src/utils/schema/shared.js +23 -0
  88. package/package.json +5 -5
  89. package/dist/packages/dpi/src/data-provider-interface/components/PolGeoUriPage.vue.js +0 -124
  90. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +0 -281
@@ -1,4 +1,4 @@
1
- import { defineComponent as se, mergeModels as _, useModel as re, unref as i, watch as R, ref as ue, computed as y, createElementBlock as c, openBlock as a, createElementVNode as o, createCommentVNode as g, createVNode as u, Fragment as z, mergeProps as w, isRef as F, withCtx as ae, renderList as ce, withDirectives as de, vModelCheckbox as fe, createBlock as me } from "vue";
1
+ import { defineComponent as se, mergeModels as W, useModel as re, unref as i, watch as R, ref as ue, computed as y, createElementBlock as c, openBlock as a, createElementVNode as o, createCommentVNode as g, createVNode as u, Fragment as A, mergeProps as w, isRef as k, withCtx as ae, renderList as ce, withDirectives as de, vModelCheckbox as fe, createBlock as me } from "vue";
2
2
  import { toTypedSchema as P } 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
3
  import { useForm as T, useFieldArray as pe } from "vee-validate";
4
4
  import * as l from "zod";
@@ -8,15 +8,18 @@ import Se from "../Chip.vue.js";
8
8
  import be from "../InputField.vue.js";
9
9
  import ve from "../ListBox/Listbox.vue.js";
10
10
  import ye from "./RichOption.vue.js";
11
- const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "step-section" }, Fe = { class: "step-section-actions" }, ke = { class: "step-section" }, Ve = {
11
+ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "step-section" }, ke = { class: "step-section-actions" }, Fe = {
12
+ href: "https://form.typeform.com/to/r9b1mAZL#token=xxxxx&account=xxxxx",
13
+ target: "_blank"
14
+ }, Ve = { class: "step-section" }, Ie = {
12
15
  key: 0,
13
16
  class: "functionalities-container"
14
- }, Ie = ["id", "value"], xe = { class: "step-section-actions" }, ze = { class: "step-section-actions" }, Ae = {
17
+ }, xe = ["id", "value"], Ae = { class: "step-section-actions" }, ze = { class: "step-section-actions" }, Ce = {
15
18
  key: 0,
16
19
  class: "button-row"
17
- }, j = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", je = /* @__PURE__ */ se({
20
+ }, Z = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", je = /* @__PURE__ */ se({
18
21
  __name: "SoftwareForm",
19
- props: /* @__PURE__ */ _({
22
+ props: /* @__PURE__ */ W({
20
23
  modelValue: {},
21
24
  functionalities: {},
22
25
  exclude: { default: () => [] }
@@ -26,9 +29,9 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
26
29
  },
27
30
  modelModifiers: {}
28
31
  }),
29
- emits: /* @__PURE__ */ _(["submit", "patch", "close"], ["update:modelValue"]),
30
- setup(A, { emit: O }) {
31
- const m = A, k = O, Z = re(A, "modelValue"), S = !!m.modelValue, G = i(m.modelValue) || "", K = l.object({
32
+ emits: /* @__PURE__ */ W(["submit", "patch", "close"], ["update:modelValue"]),
33
+ setup(z, { emit: j }) {
34
+ const m = z, F = j, O = re(z, "modelValue"), S = !!m.modelValue, G = i(m.modelValue) || "", K = l.object({
32
35
  lat: l.string().min(1, "Geben Sie einen Wert für die Breite ein"),
33
36
  lng: l.string().min(1, "Geben Sie einen Wert für die Länge ein")
34
37
  }), q = l.array(K), Q = l.object({
@@ -39,7 +42,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
39
42
  defineField: C,
40
43
  handleSubmit: Y,
41
44
  resetForm: $,
42
- errors: Ce
45
+ errors: Be
43
46
  } = T({
44
47
  validationSchema: P(Q),
45
48
  initialValues: {
@@ -49,18 +52,18 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
49
52
  },
50
53
  name: "softwareForm"
51
54
  }), [d, H] = C("id"), [r, J] = C("functionalities"), {
52
- remove: Be,
55
+ remove: _e,
53
56
  push: De,
54
- fields: Ee
57
+ fields: Le
55
58
  } = pe("locations");
56
59
  R(d, (n) => {
57
- Z.value = n || "";
60
+ O.value = n || "";
58
61
  }, { immediate: !0 });
59
62
  const B = ue(null);
60
63
  function X(n) {
61
64
  B.value = n;
62
65
  }
63
- const p = y(() => !!d.value), D = y(() => {
66
+ const p = y(() => !!d.value), _ = y(() => {
64
67
  var n;
65
68
  return (((n = r.value) == null ? void 0 : n.length) ?? 0) > 0;
66
69
  }), ee = y(() => {
@@ -73,15 +76,15 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
73
76
  const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, s = n.functionalityInput && n.functionalityInput.trim().length > 0;
74
77
  !e && !s && (t.addIssue({
75
78
  code: l.ZodIssueCode.custom,
76
- message: j,
79
+ message: Z,
77
80
  path: ["functionalitySelect"]
78
81
  }), t.addIssue({
79
82
  code: l.ZodIssueCode.custom,
80
- message: j,
83
+ message: Z,
81
84
  path: ["functionalityInput"]
82
85
  }));
83
86
  }), {
84
- defineField: E,
87
+ defineField: D,
85
88
  handleSubmit: ne,
86
89
  errors: b,
87
90
  resetForm: V
@@ -95,14 +98,14 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
95
98
  R(d, (n, t) => {
96
99
  !!t && !!n && n !== t && (V(), r.value = []);
97
100
  });
98
- const [I, ie] = E("functionalitySelect"), [x, oe] = E("functionalityInput"), L = y(() => Array.from(r.value || [])), M = Y((n) => {
99
- S ? k("patch", {
101
+ const [I, ie] = D("functionalitySelect"), [x, oe] = D("functionalityInput"), L = y(() => Array.from(r.value || [])), E = Y((n) => {
102
+ S ? F("patch", {
100
103
  id: G,
101
104
  software: {
102
105
  id: n.id,
103
106
  functionalities: Array.from(r.value || []).filter(Boolean)
104
107
  }
105
- }) : k("submit", {
108
+ }) : F("submit", {
106
109
  id: n.id,
107
110
  functionalities: Array.from(r.value || []).filter(Boolean)
108
111
  }), V(), $();
@@ -113,13 +116,13 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
113
116
  });
114
117
  return (n, t) => (a(), c("div", ge, [
115
118
  o("section", we, [
116
- S ? g("", !0) : (a(), c(z, { key: 0 }, [
119
+ S ? g("", !0) : (a(), c(A, { key: 0 }, [
117
120
  t[6] || (t[6] = o("h5", null, "Wählen Sie eine bestehende Software", -1)),
118
121
  t[7] || (t[7] = o("p", null, "Falls die Software bereits angelegt wurde, können Sie sie hier auswählen.", -1))
119
122
  ], 64)),
120
123
  u(he, w({
121
124
  modelValue: i(d),
122
- "onUpdate:modelValue": t[0] || (t[0] = (e) => F(d) ? d.value = e : null)
125
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => k(d) ? d.value = e : null)
123
126
  }, i(H), {
124
127
  "base-url": "https://twin.bydata.de/api/hub/search",
125
128
  resource: "software",
@@ -127,14 +130,14 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
127
130
  placeholder: "Software...",
128
131
  name: "software",
129
132
  "setup-fn": (e) => {
130
- var s, f, v, N, U, W;
133
+ var s, f, v, M, N, U;
131
134
  return {
132
135
  id: e == null ? void 0 : e.id,
133
136
  name: ((s = e == null ? void 0 : e.name) == null ? void 0 : s.de) || ((f = e == null ? void 0 : e.name) == null ? void 0 : f.en),
134
137
  functionalities: (e == null ? void 0 : e.functionalities) || [],
135
138
  unavailable: m.exclude.includes(e == null ? void 0 : e.id),
136
- manufacturer: (N = (v = e == null ? void 0 : e.manufacturer) == null ? void 0 : v[0]) == null ? void 0 : N.label,
137
- description: ((U = e == null ? void 0 : e.description) == null ? void 0 : U.de) || ((W = e == null ? void 0 : e.description) == null ? void 0 : W.en),
139
+ manufacturer: (M = (v = e == null ? void 0 : e.manufacturer) == null ? void 0 : v[0]) == null ? void 0 : M.label,
140
+ description: ((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((U = e == null ? void 0 : e.description) == null ? void 0 : U.en),
138
141
  version: e == null ? void 0 : e.version
139
142
  };
140
143
  },
@@ -152,34 +155,36 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
152
155
  ]),
153
156
  _: 1
154
157
  }, 16, ["modelValue", "setup-fn"]),
155
- S ? g("", !0) : (a(), c(z, { key: 1 }, [
158
+ S ? g("", !0) : (a(), c(A, { key: 1 }, [
156
159
  t[8] || (t[8] = o("h5", null, "oder", -1)),
157
160
  t[9] || (t[9] = 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)),
158
- o("div", Fe, [
159
- u(h, {
160
- "button-text": "Zur Softwarebeantragung",
161
- size: "medium",
162
- variant: "secondary"
163
- })
161
+ o("div", ke, [
162
+ o("a", Fe, [
163
+ u(h, {
164
+ "button-text": "Zur Softwarebeantragung",
165
+ size: "medium",
166
+ variant: "secondary"
167
+ })
168
+ ])
164
169
  ])
165
170
  ], 64))
166
171
  ]),
167
- o("section", ke, [
172
+ o("section", Ve, [
168
173
  t[10] || (t[10] = o("h5", null, " Wie haben Sie die Software verwendet? ", -1)),
169
174
  t[11] || (t[11] = 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)),
170
- L.value.length > 0 ? (a(), c("div", Ve, [
171
- (a(!0), c(z, null, ce(L.value, (e, s) => (a(), c("div", {
175
+ L.value.length > 0 ? (a(), c("div", Ie, [
176
+ (a(!0), c(A, null, ce(L.value, (e, s) => (a(), c("div", {
172
177
  key: s,
173
178
  class: "functionalities"
174
179
  }, [
175
180
  de(o("input", w({
176
181
  id: e,
177
- "onUpdate:modelValue": t[1] || (t[1] = (f) => F(r) ? r.value = f : null),
182
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => k(r) ? r.value = f : null),
178
183
  hidden: "",
179
184
  value: e,
180
185
  name: "selectedFunctionalities",
181
186
  type: "checkbox"
182
- }, { ref_for: !0 }, i(J)), null, 16, Ie), [
187
+ }, { ref_for: !0 }, i(J)), null, 16, xe), [
183
188
  [fe, i(r)]
184
189
  ]),
185
190
  u(Se, {
@@ -200,7 +205,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
200
205
  ])) : g("", !0),
201
206
  u(ve, w({
202
207
  modelValue: i(I),
203
- "onUpdate:modelValue": t[2] || (t[2] = (e) => F(I) ? I.value = e : null),
208
+ "onUpdate:modelValue": t[2] || (t[2] = (e) => k(I) ? I.value = e : null),
204
209
  options: ee.value,
205
210
  "error-message": i(b).functionalitySelect,
206
211
  label: "Funktionalitäten auswählen",
@@ -210,7 +215,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
210
215
  t[12] || (t[12] = o("h5", null, " oder ", -1)),
211
216
  u(be, w({
212
217
  modelValue: i(x),
213
- "onUpdate:modelValue": t[3] || (t[3] = (e) => F(x) ? x.value = e : null),
218
+ "onUpdate:modelValue": t[3] || (t[3] = (e) => k(x) ? x.value = e : null),
214
219
  "initial-hint-text": !!i(b).functionalityInput,
215
220
  error_message: i(b).functionalityInput,
216
221
  "show-error": !!i(b).functionalityInput,
@@ -223,7 +228,7 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
223
228
  label: "Funktionalitäten nennen",
224
229
  placeholder: "Nennen Sie eine Funktionalität"
225
230
  }, i(oe)), null, 16, ["modelValue", "initial-hint-text", "error_message", "show-error", "is-disabled"]),
226
- o("div", xe, [
231
+ o("div", Ae, [
227
232
  u(h, {
228
233
  "button-text": "Funktionalität hinzufügen",
229
234
  size: "medium",
@@ -236,23 +241,23 @@ const ge = { class: "dpi-project-process-step V3-typography" }, we = { class: "s
236
241
  ]),
237
242
  g("", !0),
238
243
  o("section", ze, [
239
- S ? (a(), c("div", Ae, [
244
+ S ? (a(), c("div", Ce, [
240
245
  u(h, {
241
246
  "button-text": "Abbrechen",
242
247
  variant: "tertiary",
243
- onClick: t[5] || (t[5] = (e) => k("close"))
248
+ onClick: t[5] || (t[5] = (e) => F("close"))
244
249
  }),
245
250
  u(h, {
246
251
  "button-text": "Speichern",
247
- disabled: !p.value || !D.value,
248
- onClick: i(M)
252
+ disabled: !p.value || !_.value,
253
+ onClick: i(E)
249
254
  }, null, 8, ["disabled", "onClick"])
250
255
  ])) : (a(), me(h, {
251
256
  key: 1,
252
257
  "icon-start": "PlusSquare",
253
258
  "button-text": "Software hinzufügen",
254
- disabled: !p.value || !D.value,
255
- onClick: i(M)
259
+ disabled: !p.value || !_.value,
260
+ onClick: i(E)
256
261
  }, null, 8, ["disabled", "onClick"]))
257
262
  ])
258
263
  ]));
@@ -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 f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe4ae526"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8bdca471"]]);
5
5
  export {
6
- f as default
6
+ e as default
7
7
  };
@@ -1,25 +1,25 @@
1
- import { defineComponent as M, ref as v, computed as c, watch as W, toRef as K, createBlock as f, openBlock as r, withCtx as s, createVNode as d, createElementBlock as S, createElementVNode as y, unref as m, isRef as L, Fragment as g, renderList as B, createTextVNode as D, toDisplayString as j, createCommentVNode as C, nextTick as q } from "vue";
2
- import { FormKit as I } from "@formkit/vue";
3
- import { defineHubSearch as J } from "@piveau/sdk-vue";
4
- import Q from "zod";
5
- import X from "../../../components/StepActionsSection.vue.js";
6
- import Y from "../ActionCard.vue.js";
7
- import Z from "../Card.vue.js";
8
- import ee from "../Chip.vue.js";
9
- import te from "../DpiModalBase.vue.js";
10
- import ne from "../SummaryBox.vue.js";
11
- import oe from "./AreYouSureToSkipCard.vue.js";
12
- import re from "./ProcessStepBase.vue.js";
1
+ import { defineComponent as A, ref as v, computed as m, watch as M, toRef as W, createBlock as f, openBlock as i, withCtx as d, createVNode as c, createElementBlock as S, createElementVNode as h, unref as p, isRef as K, Fragment as k, renderList as g, createTextVNode as B, toDisplayString as L, createCommentVNode as D, nextTick as j } from "vue";
2
+ import { FormKit as C } from "@formkit/vue";
3
+ import { defineHubSearch as q } from "@piveau/sdk-vue";
4
+ import J from "zod";
5
+ import Q from "../../../components/StepActionsSection.vue.js";
6
+ import X from "../ActionCard.vue.js";
7
+ import Y from "../Card.vue.js";
8
+ import Z from "../Chip.vue.js";
9
+ import ee from "../DpiModalBase.vue.js";
10
+ import te from "../SummaryBox.vue.js";
11
+ import ne from "./AreYouSureToSkipCard.vue.js";
12
+ import oe from "./ProcessStepBase.vue.js";
13
13
  /* empty css */
14
- import R from "./SoftwareForm.vue.js";
15
- import { useProcessStepResources as ie, ensureHasOneResource as ae } from "./utils.js";
16
- const le = {
14
+ import I from "./SoftwareForm.vue.js";
15
+ import { useProcessStepResources as re, ensureHasOneResource as ie } from "./utils.js";
16
+ const ae = {
17
17
  key: 0,
18
18
  class: "software-step__card-list--empty"
19
- }, ue = {
19
+ }, le = {
20
20
  key: 1,
21
21
  class: "software-step__card-list"
22
- }, se = { class: "functionalities" }, de = { class: "" }, Be = /* @__PURE__ */ M({
22
+ }, ue = { class: "functionalities" }, se = { class: "" }, ge = /* @__PURE__ */ A({
23
23
  __name: "SoftwareStep",
24
24
  props: {
25
25
  stepGroup: {},
@@ -27,78 +27,79 @@ const le = {
27
27
  hideCloseBtn: { type: Boolean },
28
28
  title: {}
29
29
  },
30
- setup(z) {
31
- const x = z, a = v(!1), o = v([]), { useResources: T } = J({
30
+ setup(R) {
31
+ const x = R, a = v(!1), o = v([]), { useResources: z } = q({
32
32
  baseUrl: "https://twin.bydata.de/api/hub/search",
33
33
  index: "resource",
34
34
  indexDetails: "resources/software",
35
- schema: Q.any()
35
+ schema: J.any()
36
36
  }, (e) => {
37
- var p, u;
38
- const t = String((e == null ? void 0 : e.id) || ""), i = String(((p = e == null ? void 0 : e.name) == null ? void 0 : p.de) || ((u = e == null ? void 0 : e.name) == null ? void 0 : u.en) || "");
37
+ var u, s;
38
+ const t = String((e == null ? void 0 : e.id) || ""), r = String(((u = e == null ? void 0 : e.name) == null ? void 0 : u.de) || ((s = e == null ? void 0 : e.name) == null ? void 0 : s.en) || "");
39
39
  return {
40
40
  ...e,
41
41
  id: t,
42
- name: i
42
+ name: r
43
43
  };
44
- }), b = T(c(() => o.value.map((e) => ({
44
+ }), T = z(m(() => o.value.map((e) => ({
45
45
  resourceId: e.id
46
- })))), E = c(() => b.value.every((e) => e.isSuccess)), _ = c(() => E.value ? b.value.map((e, t) => {
47
- const i = e.resultEnhanced;
46
+ })))), b = m(() => o.value.map((e, t) => {
47
+ var n, u;
48
+ const r = (u = (n = T.value) == null ? void 0 : n[t]) == null ? void 0 : u.resultEnhanced;
48
49
  return {
49
- id: i.id,
50
- name: (i == null ? void 0 : i.name) || "",
51
- functionalities: o.value[t].functionalities
50
+ id: e.id || (r == null ? void 0 : r.id),
51
+ name: (r == null ? void 0 : r.name) || e.id,
52
+ functionalities: e.functionalities
52
53
  };
53
- }) : []), l = v(""), F = c(() => {
54
+ })), l = v(""), E = m(() => {
54
55
  var e;
55
56
  return [...((e = o.value.find((t) => t.id === l.value)) == null ? void 0 : e.functionalities) || []];
56
57
  }), w = v(0);
57
- W(a, (e, t) => {
58
+ M(a, (e, t) => {
58
59
  !e && t && w.value++;
59
60
  });
60
- function H(e) {
61
+ function F(e) {
61
62
  return o.value.find((t) => t.id === e);
62
63
  }
63
- function V(e) {
64
+ function _(e) {
64
65
  return o.value.findIndex((t) => t.id === e);
65
66
  }
66
- function N(e) {
67
- const t = V(e);
67
+ function H(e) {
68
+ const t = _(e);
68
69
  t !== -1 && o.value.splice(t, 1);
69
70
  }
70
- async function U(e) {
71
- H(e) && (l.value = e, w.value++, await q(), a.value = !0);
71
+ async function N(e) {
72
+ F(e) && (l.value = e, w.value++, await j(), a.value = !0);
72
73
  }
73
- function k(e) {
74
+ function V(e) {
74
75
  o.value.push(e), a.value = !1, l.value = "";
75
76
  }
76
- function A(e) {
77
- const t = V(e.id);
77
+ function U(e) {
78
+ const t = _(e.id);
78
79
  t !== -1 && (o.value.splice(t, 1), o.value.splice(t, 0, e.software), l.value = "", a.value = !1);
79
80
  }
80
81
  function G() {
81
82
  a.value = !1;
82
83
  }
83
- const O = c(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = c(() => o.value.length > 0 ? "primary" : "secondary"), { count: h, realCount: $ } = ie(x.stepGroup || "", K(x.edit));
84
- return (e, t) => (r(), f(re, {
84
+ const O = m(() => o.value.length > 0 ? "Weiter" : "Weiter ohne Software"), P = m(() => o.value.length > 0 ? "primary" : "secondary"), { count: y, realCount: $ } = re(x.stepGroup || "", W(x.edit));
85
+ return (e, t) => (i(), f(oe, {
85
86
  title: "Geben Sie Informationen zur verwendeten Software an",
86
87
  subtitle: "Die Software wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Software Sie verwendet haben. Sobald Sie eine Software zugeordnet haben, geben Sie bitte an, welche Funktionalitäten der Software Sie für diesen Schritt benötigt haben."
87
88
  }, {
88
- default: s(({ confirm: i }) => [
89
- d(m(I), {
90
- modelValue: m(h),
91
- "onUpdate:modelValue": t[0] || (t[0] = (n) => L(h) ? h.value = n : null),
89
+ default: d(({ confirm: r }) => [
90
+ c(p(C), {
91
+ modelValue: p(y),
92
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => K(y) ? y.value = n : null),
92
93
  type: "hidden",
93
94
  name: "__resourceCount",
94
95
  hidden: "",
95
96
  "aria-hidden": "",
96
- "validation-rules": { ensureHasOneResource: m(ae) },
97
+ "validation-rules": { ensureHasOneResource: p(ie) },
97
98
  validation: "+ensureHasOneResource",
98
99
  "validation-visibility": "live",
99
100
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
100
101
  }, null, 8, ["modelValue", "validation-rules"]),
101
- d(m(I), {
102
+ c(p(C), {
102
103
  modelValue: o.value,
103
104
  "onUpdate:modelValue": t[1] || (t[1] = (n) => o.value = n),
104
105
  name: "selected",
@@ -106,26 +107,26 @@ const le = {
106
107
  hidden: "",
107
108
  "aria-hidden": ""
108
109
  }, null, 8, ["modelValue"]),
109
- _.value.length ? (r(), S("section", ue, [
110
- (r(!0), S(g, null, B(_.value, (n, p) => (r(), f(Y, {
111
- key: p,
110
+ b.value.length ? (i(), S("section", le, [
111
+ (i(!0), S(k, null, g(b.value, (n, u) => (i(), f(X, {
112
+ key: u,
112
113
  class: "software-card",
113
- onEdit: (u) => U(n.id),
114
- onDelete: (u) => i({ id: n.id, resourceType: "Software", resource: n.name, callback: N })
114
+ onEdit: (s) => N(n.id),
115
+ onDelete: (s) => r({ id: n.id, resourceType: "Software", resource: n.name, callback: H })
115
116
  }, {
116
- "sub-title": s(() => t[5] || (t[5] = [
117
- D(" Name ", -1)
117
+ "sub-title": d(() => t[5] || (t[5] = [
118
+ B(" Name ", -1)
118
119
  ])),
119
- title: s(() => [
120
- D(j(n.name), 1)
120
+ title: d(() => [
121
+ B(L(n.name), 1)
121
122
  ]),
122
- default: s(() => [
123
- d(ne, { title: "Genutzte Funktionalitäten" }, {
124
- default: s(() => [
125
- y("div", se, [
126
- (r(!0), S(g, null, B(n.functionalities, (u) => (r(), f(ee, {
127
- key: u,
128
- text: u,
123
+ default: d(() => [
124
+ c(te, { title: "Genutzte Funktionalitäten" }, {
125
+ default: d(() => [
126
+ h("div", ue, [
127
+ (i(!0), S(k, null, g(n.functionalities, (s) => (i(), f(Z, {
128
+ key: s,
129
+ text: s,
129
130
  data: { "@value": "", URI: "" },
130
131
  setup: { "@type": "selected", "@search": !1, "@inTable": !1, "@findability": !0, "@static": !0 }
131
132
  }, null, 8, ["text"]))), 128))
@@ -136,50 +137,51 @@ const le = {
136
137
  ]),
137
138
  _: 2
138
139
  }, 1032, ["onEdit", "onDelete"]))), 128))
139
- ])) : (r(), S("section", le, [
140
- d(Z, {
140
+ ])) : (i(), S("section", ae, [
141
+ c(Y, {
141
142
  small: "",
142
143
  class: "empty-card"
143
144
  }, {
144
- default: s(() => t[4] || (t[4] = [
145
- y("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
145
+ default: d(() => t[4] || (t[4] = [
146
+ h("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keine Software im Prozessschritt hinterlegt. ", -1)
146
147
  ])),
147
148
  _: 1,
148
149
  __: [4]
149
150
  })
150
151
  ])),
151
- d(R, {
152
+ c(I, {
152
153
  exclude: o.value.map((n) => n.id),
153
- onSubmit: k
154
+ onSubmit: V
154
155
  }, null, 8, ["exclude"]),
155
- y("section", de, [
156
- d(X, {
156
+ h("section", se, [
157
+ c(Q, {
157
158
  "next-text": O.value,
158
- "next-variant": P.value
159
+ "next-variant": P.value,
160
+ "show-detailed-error-summary": ""
159
161
  }, null, 8, ["next-text", "next-variant"]),
160
- m($) === 0 ? (r(), f(oe, {
162
+ p($) === 0 ? (i(), f(ne, {
161
163
  key: 0,
162
164
  "resource-label": "Software"
163
- })) : C("", !0)
165
+ })) : D("", !0)
164
166
  ]),
165
- d(te, {
167
+ c(ee, {
166
168
  modelValue: a.value,
167
169
  "onUpdate:modelValue": t[3] || (t[3] = (n) => a.value = n),
168
170
  "hide-close-btn": !0,
169
171
  "compact-layout": !0,
170
172
  title: "Software"
171
173
  }, {
172
- default: s(() => [
173
- l.value ? (r(), f(R, {
174
+ default: d(() => [
175
+ l.value ? (i(), f(I, {
174
176
  key: w.value,
175
177
  modelValue: l.value,
176
178
  "onUpdate:modelValue": t[2] || (t[2] = (n) => l.value = n),
177
- functionalities: F.value,
179
+ functionalities: E.value,
178
180
  exclude: o.value.map((n) => n.id),
179
- onSubmit: k,
180
- onPatch: A,
181
+ onSubmit: V,
182
+ onPatch: U,
181
183
  onClose: G
182
- }, null, 8, ["modelValue", "functionalities", "exclude"])) : C("", !0)
184
+ }, null, 8, ["modelValue", "functionalities", "exclude"])) : D("", !0)
183
185
  ]),
184
186
  _: 1
185
187
  }, 8, ["modelValue"])
@@ -189,5 +191,5 @@ const le = {
189
191
  }
190
192
  });
191
193
  export {
192
- Be as default
194
+ ge as default
193
195
  };
@@ -1,34 +1,34 @@
1
- import { useFormKitNodeById as u } from "@formkit/vue";
2
- import { computed as o, toValue as m } from "vue";
3
- const y = 999;
4
- function h(e) {
1
+ import { useFormKitNodeById as a } from "@formkit/vue";
2
+ import { computed as o, toValue as y } from "vue";
3
+ const g = 999;
4
+ function w(e) {
5
5
  if (e != null && !(Array.isArray(e) && e.length === 0) && !(typeof e == "object" && Object.keys(e).length === 0) && !(typeof e == "string" && e.trim() === ""))
6
6
  return e;
7
7
  }
8
- function w(e, i) {
9
- const l = u(`${e}/Software`), d = u(`${e}/Datensätze`), f = u(`${e}/Hardware`), n = (t) => Array.isArray(t) ? t.length : 0, s = o(() => {
8
+ function A(e, d) {
9
+ const i = a(`${e}/Software`), l = a(`${e}/Datensätze`), f = a(`${e}/Hardware`), n = (t) => Array.isArray(t) ? t.length : 0, s = o(() => {
10
10
  var t, r;
11
- return n((r = (t = l.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
11
+ return n((r = (t = i.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
12
12
  }), c = o(() => {
13
13
  var t, r;
14
- return n((r = (t = d.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
15
- }), a = o(() => {
14
+ return n((r = (t = l.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
15
+ }), u = o(() => {
16
16
  var t, r;
17
17
  return n((r = (t = f.value) == null ? void 0 : t._value) == null ? void 0 : r.selected);
18
18
  }), v = o({
19
19
  get() {
20
- return !m(i) ? String(y) : String(s.value + c.value + a.value);
20
+ return !y(d) ? String(g) : String(s.value + c.value + u.value);
21
21
  },
22
22
  set() {
23
23
  }
24
- }), S = o(() => s.value + c.value + a.value);
25
- return { count: v, softwareSelected: s, datasetsSelected: c, hardwareSelected: a, realCount: S };
24
+ }), S = o(() => s.value + c.value + u.value);
25
+ return { count: v, softwareSelected: s, datasetsSelected: c, hardwareSelected: u, realCount: S };
26
26
  }
27
- function A(e) {
28
- return Number((e == null ? void 0 : e._value) ?? 0) > 0;
27
+ function N(e) {
28
+ return !0;
29
29
  }
30
30
  export {
31
- A as ensureHasOneResource,
32
- h as looseRenderable,
33
- w as useProcessStepResources
31
+ N as ensureHasOneResource,
32
+ w as looseRenderable,
33
+ A as useProcessStepResources
34
34
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ReviewStep.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-a5b664b5"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6d00c4cc"]]);
5
5
  export {
6
- a as default
6
+ r as default
7
7
  };