@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,25 +1,28 @@
1
- import { defineComponent as ft, mergeModels as he, useModel as ht, unref as i, watch as ve, ref as T, computed as S, createElementBlock as p, openBlock as d, createElementVNode as s, createCommentVNode as F, createVNode as u, mergeProps as w, isRef as V, withCtx as g, Fragment as k, renderList as z, withDirectives as be, vModelCheckbox as we, createBlock as y } from "vue";
1
+ import { defineComponent as ft, mergeModels as he, useModel as ht, unref as i, watch as ve, ref as T, computed as S, createElementBlock as p, openBlock as d, createElementVNode as o, createCommentVNode as x, createVNode as u, mergeProps as w, isRef as V, withCtx as g, Fragment as k, renderList as z, withDirectives as be, vModelCheckbox as we, createBlock as y } from "vue";
2
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 K, useFieldArray as x } from "vee-validate";
4
- import * as o from "zod";
3
+ import { useForm as K, useFieldArray as H } from "vee-validate";
4
+ import * as s from "zod";
5
5
  import vt from "../Autocomplete/AutocompleteVocab.vue.js";
6
6
  import f from "../ButtonV3.vue.js";
7
7
  import ge from "../Chip.vue.js";
8
8
  import b from "../InputField.vue.js";
9
9
  import ke from "../ListBox/Listbox.vue.js";
10
10
  import ye from "../TextAreaV3.vue.js";
11
- import H from "./ProcessStepInputCard.vue.js";
11
+ import F from "./ProcessStepInputCard.vue.js";
12
12
  import bt from "./RichOption.vue.js";
13
- const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "step-section" }, kt = { key: 0 }, yt = { class: "step-section-actions" }, St = { class: "step-section" }, Vt = {
13
+ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "step-section" }, kt = { key: 0 }, yt = { class: "step-section-actions" }, St = {
14
+ href: "https://form.typeform.com/to/ayL37uiV#token=xxxxx&account=xxxxx",
15
+ target: "_blank"
16
+ }, Vt = { class: "step-section" }, zt = {
14
17
  key: 0,
15
18
  class: "functionalities-container"
16
- }, zt = ["id", "value"], It = { class: "step-section-actions" }, Ft = { class: "step-section" }, Ht = { class: "step-section" }, xt = { class: "step-section-actions" }, Bt = { class: "step-section" }, $t = { class: "step-section-actions" }, Ut = { class: "step-section" }, At = {
19
+ }, It = ["id", "value"], xt = { class: "step-section-actions" }, Ft = { class: "step-section" }, Ht = { class: "step-section" }, Bt = { class: "step-section-actions" }, $t = { class: "step-section" }, Ut = { class: "step-section-actions" }, At = { class: "step-section" }, Ct = {
17
20
  key: 0,
18
21
  class: "functionalities-container"
19
- }, Ct = ["id", "value"], Dt = { class: "step-section-actions" }, Pt = { class: "step-section" }, Zt = { class: "step-section-actions" }, Wt = { class: "step-section" }, Lt = { class: "step-section-actions" }, _t = { class: "step-section" }, Gt = { class: "step-section-actions" }, Rt = { class: "step-section-actions" }, Et = {
22
+ }, Dt = ["id", "value"], Pt = { class: "step-section-actions" }, Zt = { class: "step-section" }, Lt = { class: "step-section-actions" }, Wt = { class: "step-section" }, _t = { class: "step-section-actions" }, Gt = { class: "step-section" }, Rt = { class: "step-section-actions" }, Et = { class: "step-section-actions" }, Nt = {
20
23
  key: 0,
21
24
  class: "button-row"
22
- }, Se = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Ve = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.", C = 500, tn = /* @__PURE__ */ ft({
25
+ }, Se = "Wählen Sie eine Funktionalität aus oder nennen Sie eine Funktionalität ein.", Ve = "Wählen Sie einen Zweck aus oder nennen Sie einen Zweck.", C = 500, nn = /* @__PURE__ */ ft({
23
26
  __name: "HardwareForm",
24
27
  props: /* @__PURE__ */ he({
25
28
  modelValue: {},
@@ -33,28 +36,28 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
33
36
  }),
34
37
  emits: /* @__PURE__ */ he(["submit", "patch", "close"], ["update:modelValue"]),
35
38
  setup(q, { emit: ze }) {
36
- var ne, ie, le, se, oe, re, ae, ue, de, ce;
37
- const m = q, D = ze, Ie = ht(q, "modelValue"), B = !!m.modelValue, Fe = i(m.modelValue) || "", He = o.object({
38
- lat: o.string().min(1, "Geben Sie einen Wert für die Breite ein"),
39
- lng: o.string().min(1, "Geben Sie einen Wert für die Länge ein")
40
- }), xe = o.array(He), Be = o.object({
41
- name: o.string().min(1, "Geben Sie einen Namen ein").default(""),
42
- url: o.string().min(1, "Geben Sie eine URL ein").default(""),
43
- description: o.string().min(1, "Geben Sie eine Beschreibung ein").default("")
39
+ var ne, ie, le, oe, se, re, ae, ue, de, ce;
40
+ const m = q, D = ze, Ie = ht(q, "modelValue"), B = !!m.modelValue, xe = i(m.modelValue) || "", Fe = s.object({
41
+ lat: s.string().min(1, "Geben Sie einen Wert für die Breite ein"),
42
+ lng: s.string().min(1, "Geben Sie einen Wert für die Länge ein")
43
+ }), He = s.array(Fe), Be = s.object({
44
+ name: s.string().min(1, "Geben Sie einen Namen ein").default(""),
45
+ url: s.string().min(1, "Geben Sie eine URL ein").default(""),
46
+ description: s.string().min(1, "Geben Sie eine Beschreibung ein").default("")
44
47
  });
45
48
  function Q(n) {
46
49
  return Array.isArray(n) ? n : n != null ? [n] : [];
47
50
  }
48
- const $e = o.object({
49
- id: o.string(),
50
- description: o.string().optional(),
51
- functionalities: o.array(o.string()).min(1),
52
- forProperty: o.array(o.string()),
53
- locations: xe,
54
- depictions: o.array(o.string()),
55
- references: o.array(Be),
56
- isHostedBy: o.array(o.string()),
57
- hosts: o.array(o.string())
51
+ const $e = s.object({
52
+ id: s.string(),
53
+ description: s.string().optional(),
54
+ functionalities: s.array(s.string()).min(1),
55
+ forProperty: s.array(s.string()),
56
+ locations: He,
57
+ depictions: s.array(s.string()),
58
+ references: s.array(Be),
59
+ isHostedBy: s.array(s.string()),
60
+ hosts: s.array(s.string())
58
61
  }), {
59
62
  defineField: $,
60
63
  handleSubmit: Ue,
@@ -67,34 +70,34 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
67
70
  description: ((ne = m.initializeWith) == null ? void 0 : ne.description) || "",
68
71
  functionalities: ((ie = m.initializeWith) == null ? void 0 : ie.functionalities) || [],
69
72
  forProperty: ((le = m.initializeWith) == null ? void 0 : le.forProperty) || [],
70
- locations: ((se = m.initializeWith) == null ? void 0 : se.locations) || [],
71
- depictions: ((oe = m.initializeWith) == null ? void 0 : oe.depictions) || [],
73
+ locations: ((oe = m.initializeWith) == null ? void 0 : oe.locations) || [],
74
+ depictions: ((se = m.initializeWith) == null ? void 0 : se.depictions) || [],
72
75
  references: ((re = m.initializeWith) == null ? void 0 : re.references) || [],
73
76
  isHostedBy: Q((ae = m.initializeWith) == null ? void 0 : ae.isHostedBy),
74
77
  hosts: Q((ue = m.initializeWith) == null ? void 0 : ue.hosts)
75
78
  },
76
79
  name: "hardwareForm"
77
- }), [I, Ce] = $("id"), [v, De] = $("functionalities"), [h, Pe] = $("forProperty"), [Nt, Ze] = $("description"), {
78
- remove: We,
79
- push: Le,
80
+ }), [I, Ce] = $("id"), [v, De] = $("functionalities"), [h, Pe] = $("forProperty"), [Mt, Ze] = $("description"), {
81
+ remove: Le,
82
+ push: We,
80
83
  fields: _e
81
- } = x("locations"), {
84
+ } = H("locations"), {
82
85
  remove: Ge,
83
86
  push: Re,
84
87
  fields: Ee
85
- } = x("depictions"), {
88
+ } = H("depictions"), {
86
89
  remove: Ne,
87
90
  push: Me,
88
91
  fields: Oe
89
- } = x("references"), {
92
+ } = H("references"), {
90
93
  remove: Te,
91
94
  push: je,
92
95
  fields: Ke
93
- } = x("isHostedBy"), {
96
+ } = H("isHostedBy"), {
94
97
  remove: qe,
95
98
  push: Qe,
96
99
  fields: Ye
97
- } = x("hosts");
100
+ } = H("hosts");
98
101
  ve(I, (n) => {
99
102
  Ie.value = n || "";
100
103
  }, { immediate: !0 });
@@ -121,17 +124,17 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
121
124
  }), et = S(() => {
122
125
  var n;
123
126
  return ((n = P.value) == null ? void 0 : n.forProperty) ?? [];
124
- }), tt = o.object({
125
- functionalitySelect: o.string().optional(),
126
- functionalityInput: o.string().optional()
127
+ }), tt = s.object({
128
+ functionalitySelect: s.string().optional(),
129
+ functionalityInput: s.string().optional()
127
130
  }).superRefine((n, t) => {
128
131
  const e = n.functionalitySelect && n.functionalitySelect.trim().length > 0, l = n.functionalityInput && n.functionalityInput.trim().length > 0;
129
132
  !e && !l && (t.addIssue({
130
- code: o.ZodIssueCode.custom,
133
+ code: s.ZodIssueCode.custom,
131
134
  message: Se,
132
135
  path: ["functionalitySelect"]
133
136
  }), t.addIssue({
134
- code: o.ZodIssueCode.custom,
137
+ code: s.ZodIssueCode.custom,
135
138
  message: Se,
136
139
  path: ["functionalityInput"]
137
140
  }));
@@ -139,31 +142,31 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
139
142
  defineField: J,
140
143
  handleSubmit: nt,
141
144
  errors: Z,
142
- resetForm: W
145
+ resetForm: L
143
146
  } = K({
144
147
  validationSchema: j(tt),
145
148
  initialValues: {
146
149
  functionalitySelect: "",
147
150
  functionalityInput: ""
148
151
  }
149
- }), it = o.object({
150
- zweckSelect: o.string().optional(),
151
- zweckInput: o.string().optional()
152
+ }), it = s.object({
153
+ zweckSelect: s.string().optional(),
154
+ zweckInput: s.string().optional()
152
155
  }).superRefine((n, t) => {
153
156
  const e = n.zweckSelect && n.zweckSelect.trim().length > 0, l = n.zweckInput && n.zweckInput.trim().length > 0;
154
157
  !e && !l && (t.addIssue({
155
- code: o.ZodIssueCode.custom,
158
+ code: s.ZodIssueCode.custom,
156
159
  message: Ve,
157
160
  path: ["zweckSelect"]
158
161
  }), t.addIssue({
159
- code: o.ZodIssueCode.custom,
162
+ code: s.ZodIssueCode.custom,
160
163
  message: Ve,
161
164
  path: ["zweckInput"]
162
165
  }));
163
166
  }), {
164
167
  defineField: X,
165
168
  handleSubmit: lt,
166
- errors: L,
169
+ errors: W,
167
170
  resetForm: _
168
171
  } = K({
169
172
  validationSchema: j(it),
@@ -173,9 +176,9 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
173
176
  }
174
177
  });
175
178
  ve(I, (n, t) => {
176
- !!t && !!n && n !== t && (W(), v.value = [], _(), h.value = []);
179
+ !!t && !!n && n !== t && (L(), v.value = [], _(), h.value = []);
177
180
  });
178
- const [G, st] = J("functionalitySelect"), [R, ot] = J("functionalityInput"), ee = S(() => Array.from(v.value || [])), [E, rt] = X("zweckSelect"), [N, at] = X("zweckInput"), U = S(() => h.value && h.value.length > 0), M = T(!!((ce = (de = m.initializeWith) == null ? void 0 : de.forProperty) != null && ce.length));
181
+ const [G, ot] = J("functionalitySelect"), [R, st] = J("functionalityInput"), ee = S(() => Array.from(v.value || [])), [E, rt] = X("zweckSelect"), [N, at] = X("zweckInput"), U = S(() => h.value && h.value.length > 0), M = T(!!((ce = (de = m.initializeWith) == null ? void 0 : de.forProperty) != null && ce.length));
179
182
  function ut() {
180
183
  h.value = [];
181
184
  }
@@ -196,13 +199,13 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
196
199
  hosts: (n.hosts || []).filter(Boolean)
197
200
  };
198
201
  B ? D("patch", {
199
- id: Fe,
202
+ id: xe,
200
203
  hardware: t
201
- }) : D("submit", t), W(), _(), Ae();
204
+ }) : D("submit", t), L(), _(), Ae();
202
205
  }), dt = nt((n) => {
203
206
  var e, l;
204
207
  const t = n.functionalitySelect || n.functionalityInput;
205
- t && t.trim().length > 0 && !((e = v.value) != null && e.includes(t)) && ((l = v.value) == null || l.push(t)), W();
208
+ t && t.trim().length > 0 && !((e = v.value) != null && e.includes(t)) && ((l = v.value) == null || l.push(t)), L();
206
209
  }), ct = lt((n) => {
207
210
  var e, l;
208
211
  const t = n.zweckSelect || n.zweckInput;
@@ -213,8 +216,8 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
213
216
  return ((t = n.value.description) == null ? void 0 : t.length) ?? 0;
214
217
  }
215
218
  return (n, t) => (d(), p("div", wt, [
216
- s("section", gt, [
217
- B ? F("", !0) : (d(), p("h5", kt, "Wählen Sie eine bestehende Hardware")),
219
+ o("section", gt, [
220
+ B ? x("", !0) : (d(), p("h5", kt, "Wählen Sie eine bestehende Hardware")),
218
221
  u(vt, w({
219
222
  modelValue: i(I),
220
223
  "onUpdate:modelValue": t[0] || (t[0] = (e) => V(I) ? I.value = e : null),
@@ -251,34 +254,36 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
251
254
  ]),
252
255
  _: 1
253
256
  }, 16, ["modelValue", "setup-fn"]),
254
- B ? F("", !0) : (d(), p(k, { key: 1 }, [
255
- t[15] || (t[15] = s("h5", null, "oder", -1)),
256
- t[16] || (t[16] = s("p", null, " Sollte die verwendete Hardware noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
257
- s("div", yt, [
258
- u(f, {
259
- "button-text": "Zur Hardwarebeantragung",
260
- size: "medium",
261
- variant: "secondary"
262
- })
257
+ B ? x("", !0) : (d(), p(k, { key: 1 }, [
258
+ t[15] || (t[15] = o("h5", null, "oder", -1)),
259
+ t[16] || (t[16] = o("p", null, " Sollte die verwendete Hardware noch nicht im Katalog verfügbar sein, können Sie die Anlage bei uns beantragen. Damit Sie die Dokumentation Ihres Digitalen Zwillings dennoch abschließen können, ordnen Sie dem Prozessschritt vorübergehend den Platzhalter-Datensatz „Hardware in Beantragung“ zu. Sobald die gewünschten Daten im Katalog verfügbar sind, können Sie diesen Platzhalter durch den tatsächlichen Hardware-Datensatz ersetzen. ", -1)),
260
+ o("div", yt, [
261
+ o("a", St, [
262
+ u(f, {
263
+ "button-text": "Zur Hardwarebeantragung",
264
+ size: "medium",
265
+ variant: "secondary"
266
+ })
267
+ ])
263
268
  ])
264
269
  ], 64))
265
270
  ]),
266
- s("section", St, [
267
- t[17] || (t[17] = s("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
268
- t[18] || (t[18] = s("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
269
- ee.value.length > 0 ? (d(), p("div", Vt, [
271
+ o("section", Vt, [
272
+ t[17] || (t[17] = o("h5", null, "Wie haben Sie die Hardware verwendet?", -1)),
273
+ t[18] || (t[18] = o("p", null, " Beschreiben Sie, wie Sie die angegebene Hardware eingesetzt haben. Wählen Sie hierzu die genutzten Funktionalitäten aus oder ergänzen Sie diese. ", -1)),
274
+ ee.value.length > 0 ? (d(), p("div", zt, [
270
275
  (d(!0), p(k, null, z(ee.value, (e, l) => (d(), p("div", {
271
276
  key: l,
272
277
  class: "functionalities"
273
278
  }, [
274
- be(s("input", w({
279
+ be(o("input", w({
275
280
  id: e,
276
281
  "onUpdate:modelValue": t[1] || (t[1] = (a) => V(v) ? v.value = a : null),
277
282
  hidden: "",
278
283
  value: e,
279
284
  name: "selectedFunctionalities",
280
285
  type: "checkbox"
281
- }, { ref_for: !0 }, i(De)), null, 16, zt), [
286
+ }, { ref_for: !0 }, i(De)), null, 16, It), [
282
287
  [we, i(v)]
283
288
  ]),
284
289
  u(ge, {
@@ -296,7 +301,7 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
296
301
  "select-value": !0
297
302
  }, null, 8, ["for", "text", "data"])
298
303
  ]))), 128))
299
- ])) : F("", !0),
304
+ ])) : x("", !0),
300
305
  u(ke, w({
301
306
  modelValue: i(G),
302
307
  "onUpdate:modelValue": t[2] || (t[2] = (e) => V(G) ? G.value = e : null),
@@ -305,8 +310,8 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
305
310
  label: "Funktionalitäten auswählen",
306
311
  placeholder: "Wählen Sie eine Funktionalität.",
307
312
  disabled: !r.value
308
- }, i(st)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
309
- t[19] || (t[19] = s("h5", null, " oder ", -1)),
313
+ }, i(ot)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
314
+ t[19] || (t[19] = o("h5", null, " oder ", -1)),
310
315
  u(b, w({
311
316
  modelValue: i(R),
312
317
  "onUpdate:modelValue": t[3] || (t[3] = (e) => V(R) ? R.value = e : null),
@@ -321,8 +326,8 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
321
326
  label: "Funktionalitäten nennen",
322
327
  placeholder: "Nennen Sie eine Funktionalität",
323
328
  "initial-hint-text": !1
324
- }, i(ot)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
325
- s("div", It, [
329
+ }, i(st)), null, 16, ["modelValue", "error_message", "show-error", "is-disabled"]),
330
+ o("div", xt, [
326
331
  u(f, {
327
332
  "button-text": "Funktionalität hinzufügen",
328
333
  size: "medium",
@@ -333,9 +338,9 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
333
338
  }, null, 8, ["disabled", "onClick"])
334
339
  ])
335
340
  ]),
336
- s("section", Ft, [
337
- t[20] || (t[20] = s("h5", null, "Beschreibung der Nutzung (optional)", -1)),
338
- t[21] || (t[21] = s("p", null, "Beschreiben Sie die ausgewählte Hardware.", -1)),
341
+ o("section", Ft, [
342
+ t[20] || (t[20] = o("h5", null, "Beschreibung der Nutzung (optional)", -1)),
343
+ t[21] || (t[21] = o("p", null, "Beschreiben Sie die ausgewählte Hardware.", -1)),
339
344
  u(ye, w({
340
345
  modelValue: O.value,
341
346
  "onUpdate:modelValue": t[4] || (t[4] = (e) => O.value = e),
@@ -350,10 +355,10 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
350
355
  "count-hint": !0
351
356
  }), null, 16, ["modelValue", "is-disabled", "hint-message"])
352
357
  ]),
353
- s("section", Ht, [
354
- t[22] || (t[22] = s("h5", null, "Host-Plattform (optional)", -1)),
355
- t[23] || (t[23] = s("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
356
- (d(!0), p(k, null, z(i(Ke), (e, l) => (d(), y(H, {
358
+ o("section", Ht, [
359
+ t[22] || (t[22] = o("h5", null, "Host-Plattform (optional)", -1)),
360
+ t[23] || (t[23] = o("p", null, "Falls die von Ihnen verwendete Hardware Sensoren oder Aktuatoren sind, geben Sie hier die Plattform oder physische Struktur an, welche diese hostet (z.B. Wetterstation, Lichtmast).", -1)),
361
+ (d(!0), p(k, null, z(i(Ke), (e, l) => (d(), y(F, {
357
362
  key: e.key,
358
363
  onDelete: (a) => i(Te)(l)
359
364
  }, {
@@ -375,7 +380,7 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
375
380
  ]),
376
381
  _: 2
377
382
  }, 1032, ["onDelete"]))), 128)),
378
- s("div", xt, [
383
+ o("div", Bt, [
379
384
  u(f, {
380
385
  "button-text": "Host-Plattform hinzufügen",
381
386
  size: "medium",
@@ -386,10 +391,10 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
386
391
  }, null, 8, ["disabled"])
387
392
  ])
388
393
  ]),
389
- s("section", Bt, [
390
- t[24] || (t[24] = s("h5", null, "Gehostete Geräte (optional)", -1)),
391
- t[25] || (t[25] = s("p", null, "Falls die von Ihnen verwendete Hardware eine Plattform ist, geben Sie hier die Sensoren oder Aktuatoren an, die von dieser Plattform gehostet werden.", -1)),
392
- (d(!0), p(k, null, z(i(Ye), (e, l) => (d(), y(H, {
394
+ o("section", $t, [
395
+ t[24] || (t[24] = o("h5", null, "Gehostete Geräte (optional)", -1)),
396
+ t[25] || (t[25] = o("p", null, "Falls die von Ihnen verwendete Hardware eine Plattform ist, geben Sie hier die Sensoren oder Aktuatoren an, die von dieser Plattform gehostet werden.", -1)),
397
+ (d(!0), p(k, null, z(i(Ye), (e, l) => (d(), y(F, {
393
398
  key: e.key,
394
399
  onDelete: (a) => i(qe)(l)
395
400
  }, {
@@ -411,7 +416,7 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
411
416
  ]),
412
417
  _: 2
413
418
  }, 1032, ["onDelete"]))), 128)),
414
- s("div", $t, [
419
+ o("div", Ut, [
415
420
  u(f, {
416
421
  "button-text": "Gehostetes Gerät hinzufügen",
417
422
  size: "medium",
@@ -422,22 +427,22 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
422
427
  }, null, 8, ["disabled"])
423
428
  ])
424
429
  ]),
425
- s("section", Ut, [
426
- t[27] || (t[27] = s("h5", null, "Zweck (optional)", -1)),
427
- t[28] || (t[28] = s("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
428
- U.value ? (d(), p("div", At, [
430
+ o("section", At, [
431
+ t[27] || (t[27] = o("h5", null, "Zweck (optional)", -1)),
432
+ t[28] || (t[28] = o("p", null, "Geben Sie hier an, welches Mess- oder Überwachungsziel die von Ihnen verwendete Hardware verfolgt.", -1)),
433
+ U.value ? (d(), p("div", Ct, [
429
434
  (d(!0), p(k, null, z(i(h), (e, l) => (d(), p("div", {
430
435
  key: `zweck-${l}`,
431
436
  class: "functionalities"
432
437
  }, [
433
- be(s("input", w({
438
+ be(o("input", w({
434
439
  id: `zweck-${e}`,
435
440
  "onUpdate:modelValue": t[7] || (t[7] = (a) => V(h) ? h.value = a : null),
436
441
  hidden: "",
437
442
  value: e,
438
443
  name: "selectedForProperties",
439
444
  type: "checkbox"
440
- }, { ref_for: !0 }, i(Pe)), null, 16, Ct), [
445
+ }, { ref_for: !0 }, i(Pe)), null, 16, Dt), [
441
446
  [we, i(h)]
442
447
  ]),
443
448
  u(ge, {
@@ -455,8 +460,8 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
455
460
  "select-value": !0
456
461
  }, null, 8, ["for", "text", "data"])
457
462
  ]))), 128))
458
- ])) : F("", !0),
459
- M.value && !U.value ? (d(), y(H, {
463
+ ])) : x("", !0),
464
+ M.value && !U.value ? (d(), y(F, {
460
465
  key: 1,
461
466
  onDelete: ut
462
467
  }, {
@@ -475,17 +480,17 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
475
480
  modelValue: i(E),
476
481
  "onUpdate:modelValue": t[8] || (t[8] = (e) => V(E) ? E.value = e : null),
477
482
  options: et.value,
478
- "error-message": i(L).zweckSelect,
483
+ "error-message": i(W).zweckSelect,
479
484
  label: "Zweck auswählen",
480
485
  placeholder: "Wählen Sie einen Zweck.",
481
486
  disabled: !r.value || U.value
482
487
  }, i(rt)), null, 16, ["modelValue", "options", "error-message", "disabled"]),
483
- t[26] || (t[26] = s("h5", null, "oder", -1)),
488
+ t[26] || (t[26] = o("h5", null, "oder", -1)),
484
489
  u(b, w({
485
490
  modelValue: i(N),
486
491
  "onUpdate:modelValue": t[9] || (t[9] = (e) => V(N) ? N.value = e : null),
487
- error_message: i(L).zweckInput,
488
- "show-error": !!i(L).zweckInput,
492
+ error_message: i(W).zweckInput,
493
+ "show-error": !!i(W).zweckInput,
489
494
  "add-on-text": !1,
490
495
  "date-picker": !1,
491
496
  "info-icon": !1,
@@ -499,9 +504,9 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
499
504
  ]),
500
505
  _: 1,
501
506
  __: [26]
502
- })) : F("", !0),
503
- s("div", Dt, [
504
- M.value ? F("", !0) : (d(), y(f, {
507
+ })) : x("", !0),
508
+ o("div", Pt, [
509
+ M.value ? x("", !0) : (d(), y(f, {
505
510
  key: 0,
506
511
  "button-text": "Zweck hinzufügen",
507
512
  size: "medium",
@@ -512,12 +517,12 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
512
517
  }, null, 8, ["disabled"]))
513
518
  ])
514
519
  ]),
515
- s("section", Pt, [
516
- t[29] || (t[29] = s("h5", null, "Standort (optional)", -1)),
517
- t[30] || (t[30] = s("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
518
- (d(!0), p(k, null, z(i(_e), (e, l) => (d(), y(H, {
520
+ o("section", Zt, [
521
+ t[29] || (t[29] = o("h5", null, "Standort (optional)", -1)),
522
+ t[30] || (t[30] = o("p", null, "Geben Sie hier die Koordinaten an, wo die von Ihnen verwendete Hardware verbaut wurde.", -1)),
523
+ (d(!0), p(k, null, z(i(_e), (e, l) => (d(), y(F, {
519
524
  key: e.key,
520
- onDelete: (a) => i(We)(l)
525
+ onDelete: (a) => i(Le)(l)
521
526
  }, {
522
527
  default: g(() => [
523
528
  u(b, {
@@ -553,21 +558,21 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
553
558
  ]),
554
559
  _: 2
555
560
  }, 1032, ["onDelete"]))), 128)),
556
- s("div", Zt, [
561
+ o("div", Lt, [
557
562
  u(f, {
558
563
  "button-text": "Hinzufügen",
559
564
  size: "medium",
560
565
  variant: "tertiary",
561
566
  "icon-start": "plus",
562
567
  disabled: !r.value,
563
- onClick: t[11] || (t[11] = (e) => r.value && i(Le)({ lat: "", lng: "" }))
568
+ onClick: t[11] || (t[11] = (e) => r.value && i(We)({ lat: "", lng: "" }))
564
569
  }, null, 8, ["disabled"])
565
570
  ])
566
571
  ]),
567
- s("section", Wt, [
568
- t[31] || (t[31] = s("h5", null, "Darstellungen (optional)", -1)),
569
- t[32] || (t[32] = s("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
570
- (d(!0), p(k, null, z(i(Ee), (e, l) => (d(), y(H, {
572
+ o("section", Wt, [
573
+ t[31] || (t[31] = o("h5", null, "Darstellungen (optional)", -1)),
574
+ t[32] || (t[32] = o("p", null, "Fügen Sie hier ein Bild der von Ihnen verwendeten Hardware ein. Dies sollte eine gültige Bild-URL sein.", -1)),
575
+ (d(!0), p(k, null, z(i(Ee), (e, l) => (d(), y(F, {
571
576
  key: e.key,
572
577
  onDelete: (a) => i(Ge)(l)
573
578
  }, {
@@ -589,7 +594,7 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
589
594
  ]),
590
595
  _: 2
591
596
  }, 1032, ["onDelete"]))), 128)),
592
- s("div", Lt, [
597
+ o("div", _t, [
593
598
  u(f, {
594
599
  "button-text": "Darstellung hinzufügen",
595
600
  size: "medium",
@@ -600,10 +605,10 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
600
605
  }, null, 8, ["disabled"])
601
606
  ])
602
607
  ]),
603
- s("section", _t, [
604
- t[33] || (t[33] = s("h5", null, "Weiterführende Links (optional)", -1)),
605
- t[34] || (t[34] = s("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
606
- (d(!0), p(k, null, z(i(Oe), (e, l) => (d(), y(H, {
608
+ o("section", Gt, [
609
+ t[33] || (t[33] = o("h5", null, "Weiterführende Links (optional)", -1)),
610
+ t[34] || (t[34] = o("p", null, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zum Einsatz der Hardware enthalten.", -1)),
611
+ (d(!0), p(k, null, z(i(Oe), (e, l) => (d(), y(F, {
607
612
  key: e.key,
608
613
  onDelete: (a) => i(Ne)(l)
609
614
  }, {
@@ -657,7 +662,7 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
657
662
  ]),
658
663
  _: 2
659
664
  }, 1032, ["onDelete"]))), 128)),
660
- s("div", Gt, [
665
+ o("div", Rt, [
661
666
  u(f, {
662
667
  "button-text": "Link hinzufügen",
663
668
  size: "medium",
@@ -668,8 +673,8 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
668
673
  }, null, 8, ["disabled"])
669
674
  ])
670
675
  ]),
671
- s("section", Rt, [
672
- B ? (d(), p("div", Et, [
676
+ o("section", Et, [
677
+ B ? (d(), p("div", Nt, [
673
678
  u(f, {
674
679
  "button-text": "Abbrechen",
675
680
  variant: "tertiary",
@@ -692,5 +697,5 @@ const wt = { class: "dpi-project-process-step V3-typography" }, gt = { class: "s
692
697
  }
693
698
  });
694
699
  export {
695
- tn as default
700
+ nn as default
696
701
  };
@@ -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-b6dfd202"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5ff1e05e"]]);
5
5
  export {
6
- d as default
6
+ f as default
7
7
  };