@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 "./BasicInformationStep.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-00d5793c"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fe9f87e2"]]);
5
5
  export {
6
- s as default
6
+ r as default
7
7
  };
@@ -1,104 +1,117 @@
1
- import { defineComponent as E, ref as h, computed as L, useModel as F, inject as P, createElementBlock as C, openBlock as s, createElementVNode as t, createVNode as i, createBlock as a, createCommentVNode as f, createTextVNode as k, unref as o, withCtx as n, Fragment as D, renderList as M } from "vue";
2
- import { FormKit as b } from "@formkit/vue";
3
- import { PhLightbulb as N, PhExclamationMark as K } from "@phosphor-icons/vue";
4
- import W from "../../../../stories/components/LinkCard.vue.js";
5
- import $ from "../../../components/StepActionsSection.vue.js";
6
- import { dpiStepperKey as I } from "../../../utils/injectionKeys.js";
7
- import u from "../ButtonV3.vue.js";
8
- import V from "../Card.vue.js";
9
- import R from "../TextArea/TextAreaDefinition.js";
10
- const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" }, A = { class: "funny-section" }, T = {
1
+ import { defineComponent as R, ref as p, computed as E, useModel as L, inject as F, createElementBlock as V, openBlock as o, createElementVNode as t, createVNode as i, createBlock as l, createCommentVNode as h, createTextVNode as y, unref as r, isRef as D, withCtx as s, Fragment as M, renderList as N } from "vue";
2
+ import { FormKit as v } from "@formkit/vue";
3
+ import { PhLightbulb as O, PhExclamationMark as H } from "@phosphor-icons/vue";
4
+ import K from "../../../../stories/components/LinkCard.vue.js";
5
+ import W from "../../../components/StepActionsSection.vue.js";
6
+ import { dpiStepperKey as $ } from "../../../utils/injectionKeys.js";
7
+ import a from "../ButtonV3.vue.js";
8
+ import w from "../Card.vue.js";
9
+ import { useProcessStepResources as j, ensureHasOneResource as I } from "../ProcessSteps/utils.js";
10
+ import U from "../TextArea/TextAreaDefinition.js";
11
+ const Z = { class: "dpiV3_page V3-typography" }, A = { class: "funny-section" }, T = { class: "funny-section" }, G = {
11
12
  id: "partners-section",
12
13
  class: "funny-section"
13
- }, U = { class: "partner-cards-container" }, O = { class: "action-container" }, q = { class: "step-actions__prev-and-next" }, G = { class: "actions" }, H = 1e3, se = /* @__PURE__ */ E({
14
+ }, q = { class: "partner-cards-container" }, J = { class: "action-container" }, Q = { class: "step-actions__prev-and-next" }, X = { class: "actions" }, Y = 1e3, ce = /* @__PURE__ */ R({
14
15
  __name: "BasicInformationStep",
15
16
  props: {
16
17
  modelValue: {},
17
18
  modelModifiers: {}
18
19
  },
19
20
  emits: ["update:modelValue"],
20
- setup(w) {
21
- const g = h(""), y = h([]);
22
- h([]);
23
- const _ = h(!1), S = L(() => {
24
- var v;
25
- return ((v = g.value) == null ? void 0 : v.length) || 0;
21
+ setup(_) {
22
+ const f = p(""), z = p([]);
23
+ p([]);
24
+ const S = p(!1), B = E(() => {
25
+ var b;
26
+ return ((b = f.value) == null ? void 0 : b.length) || 0;
26
27
  });
27
- F(w, "modelValue");
28
- const B = P(I);
29
- return (v, e) => (s(), C("div", Z, [
28
+ L(_, "modelValue");
29
+ const P = F($), { globalResourceCount: g } = j("4. Datenvisualisierung", !1);
30
+ return (b, e) => (o(), V("div", Z, [
30
31
  e[9] || (e[9] = t("section", { class: "funny-section" }, [
31
32
  t("div", { class: "funny-flex" }, [
32
33
  t("h4", null, "Beschreiben Sie den Prozessschritt zur Datenvisualisierung"),
33
34
  t("span", { class: "copy-large-regular" }, [
34
- k(" Führen Sie im Schritt der "),
35
+ y(" Führen Sie im Schritt der "),
35
36
  t("strong", null, "Datenvisualisierung"),
36
- k(" aus, in welcher Form die Ergebnisse der Simulationen verständlich aufbereitet und visualisiert wurden. ")
37
+ y(" aus, in welcher Form die Ergebnisse der Simulationen verständlich aufbereitet und visualisiert wurden. ")
37
38
  ])
38
39
  ])
39
40
  ], -1)),
40
- t("section", j, [
41
- i(o(b), {
41
+ i(r(v), {
42
+ modelValue: r(g),
43
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => D(g) ? g.value = n : null),
44
+ type: "hidden",
45
+ name: "__resourceCountGlobal",
46
+ hidden: "",
47
+ "aria-hidden": "",
48
+ "validation-rules": { ensureHasOneResource: r(I) },
49
+ validation: "+ensureHasOneResource",
50
+ "validation-visibility": "live",
51
+ "validation-messages": { ensureHasOneResource: "Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden." }
52
+ }, null, 8, ["modelValue", "validation-rules"]),
53
+ t("section", A, [
54
+ i(r(v), {
42
55
  id: "Beschreibung",
43
- modelValue: g.value,
44
- "onUpdate:modelValue": e[0] || (e[0] = (r) => g.value = r),
56
+ modelValue: f.value,
57
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => f.value = n),
45
58
  class: "budgetArea",
46
59
  label: "Beschreibung",
47
- type: o(R),
60
+ type: r(U),
48
61
  name: "description",
49
62
  "text-label": "Beschreibung",
50
63
  placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
51
64
  validation: "length:0,1000",
52
65
  "validation-visibility": "live",
53
66
  hint: "true",
54
- help: `${S.value} von ${H} Zeichen`,
67
+ help: `${B.value} von ${Y} Zeichen`,
55
68
  "count-hint": !0
56
69
  }, null, 8, ["modelValue", "type", "help"])
57
70
  ]),
58
- t("section", A, [
59
- i(V, { variant: "default" }, {
60
- icon: n(() => [
61
- i(o(N), {
71
+ t("section", T, [
72
+ i(w, { variant: "default" }, {
73
+ icon: s(() => [
74
+ i(r(O), {
62
75
  size: 32,
63
76
  color: "#009FE3"
64
77
  })
65
78
  ]),
66
- title: n(() => e[3] || (e[3] = [
67
- k(" Beispiel ", -1)
79
+ title: s(() => e[3] || (e[3] = [
80
+ y(" Beispiel ", -1)
68
81
  ])),
69
- default: n(() => [
82
+ default: s(() => [
70
83
  e[4] || (e[4] = t("p", null, " Die Simulationsergebnisse und aktuellen Messdaten werden in einer interaktiven Kartenanwendung dargestellt. Zusätzlich werden visuelle Warnhinweise sowie zeitbasierte Entwicklungen übersichtlich präsentiert, um die Kommunikation mit Einsatzkräften und Bürgern zu unterstützen. ", -1))
71
84
  ]),
72
85
  _: 1,
73
86
  __: [4]
74
87
  })
75
88
  ]),
76
- t("section", T, [
89
+ t("section", G, [
77
90
  e[5] || (e[5] = t("h5", null, " Weiterführende Links (optional) ", -1)),
78
91
  e[6] || (e[6] = t("span", { class: "copy-large-regular further-links-text" }, "Fügen Sie hier Links zu Dokumenten hinzu, die weitere Informationen zur Vorgehensweise in diesem Prozessschritt enthalten, wie etwa einzuhaltende Richtlinien oder Standardarbeitsanweisungen.", -1)),
79
- t("div", U, [
80
- i(o(b), {
81
- modelValue: y.value,
82
- "onUpdate:modelValue": e[1] || (e[1] = (r) => y.value = r),
92
+ t("div", q, [
93
+ i(r(v), {
94
+ modelValue: z.value,
95
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => z.value = n),
83
96
  type: "list",
84
97
  name: "links",
85
98
  dynamic: ""
86
99
  }, {
87
- default: n(({ items: r, node: c, value: d }) => [
88
- (s(!0), C(D, null, M(r, (m, p) => (s(), a(o(b), {
89
- key: m,
100
+ default: s(({ items: n, node: u, value: d }) => [
101
+ (o(!0), V(M, null, N(n, (c, m) => (o(), l(r(v), {
102
+ key: c,
90
103
  type: "group",
91
- index: p
104
+ index: m
92
105
  }, {
93
- default: n(() => [
94
- i(W, null, {
95
- action: n(() => [
96
- i(u, {
106
+ default: s(() => [
107
+ i(K, null, {
108
+ action: s(() => [
109
+ i(a, {
97
110
  "button-text": "Löschen",
98
111
  size: "small",
99
112
  variant: "tertiary",
100
113
  "icon-start": "trash",
101
- onClick: () => c.input(d.filter((z, l) => l !== p))
114
+ onClick: () => u.input(d.filter((x, k) => k !== m))
102
115
  }, null, 8, ["onClick"])
103
116
  ]),
104
117
  _: 2
@@ -106,13 +119,13 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
106
119
  ]),
107
120
  _: 2
108
121
  }, 1032, ["index"]))), 128)),
109
- t("div", O, [
110
- i(u, {
122
+ t("div", J, [
123
+ i(a, {
111
124
  "button-text": "Link hinzufügen",
112
125
  size: "medium",
113
126
  variant: "tertiary",
114
127
  "icon-start": "plus",
115
- onClick: (m) => c.input(d.concat({}))
128
+ onClick: (c) => u.input(d.concat({}))
116
129
  }, null, 8, ["onClick"])
117
130
  ])
118
131
  ]),
@@ -120,84 +133,83 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
120
133
  }, 8, ["modelValue"])
121
134
  ])
122
135
  ]),
123
- i($, {
136
+ i(W, {
124
137
  compact: "",
125
138
  "next-text": "Weiter zu Software",
126
- class: "actions-container"
139
+ class: "actions-container",
140
+ "show-detailed-error-summary": ""
127
141
  }, {
128
- "prev-and-next": n(({
129
- hidePrevious: r,
130
- hideNext: c,
142
+ "prev-and-next": s(({
143
+ hidePrevious: n,
144
+ hideNext: u,
131
145
  previousText: d,
132
- nextText: m,
133
- handlePrevious: p,
134
- handleSubmit: z
146
+ nextText: c,
147
+ handleNext: m,
148
+ handlePrevious: x,
149
+ validate: k
135
150
  }) => [
136
- t("div", q, [
137
- t("div", G, [
138
- r ? f("", !0) : (s(), a(u, {
151
+ t("div", Q, [
152
+ t("div", X, [
153
+ n ? h("", !0) : (o(), l(a, {
139
154
  key: 0,
140
155
  variant: "secondary",
141
156
  size: "large",
142
157
  "button-text": d,
143
158
  "icon-start": "CaretLeft",
144
159
  class: "previus-button",
145
- onClick: p
160
+ onClick: x
146
161
  }, null, 8, ["button-text", "onClick"])),
147
- r ? f("", !0) : (s(), a(u, {
162
+ n ? h("", !0) : (o(), l(a, {
148
163
  key: 1,
149
164
  variant: "secondary",
150
165
  class: "skip-button",
151
166
  size: "large",
152
167
  "button-text": "Weiter ohne Datenvisualisierung",
153
168
  "icon-end": "CaretRight",
154
- onClick: e[2] || (e[2] = (l) => {
155
- var x;
156
- return (x = o(B)) == null ? void 0 : x.goToStep("Vorschau");
169
+ onClick: (ee) => k(() => {
170
+ var C;
171
+ return (C = r(P)) == null ? void 0 : C.goToStep("Vorschau");
157
172
  })
158
- }))
173
+ }, null, 8, ["onClick"]))
159
174
  ]),
160
- c ? f("", !0) : (s(), a(u, {
175
+ u ? h("", !0) : (o(), l(a, {
161
176
  key: 0,
162
177
  variant: "primary",
163
178
  size: "large",
164
- "button-text": m,
179
+ "button-text": c,
165
180
  "icon-end": "CaretRight",
166
181
  class: "next-button",
167
- onClick: () => {
168
- const l = z();
169
- return console.log(l), l;
170
- }
182
+ onClick: m
171
183
  }, null, 8, ["button-text", "onClick"]))
172
184
  ])
173
185
  ]),
174
186
  _: 1
175
187
  }),
176
- _.value ? (s(), a(V, {
188
+ S.value ? (o(), l(w, {
177
189
  key: 0,
178
190
  variant: "error",
179
191
  class: "error"
180
192
  }, {
181
- icon: n(() => [
182
- i(o(K), {
193
+ icon: s(() => [
194
+ i(r(H), {
183
195
  size: 32,
184
196
  color: "currentColor"
185
197
  })
186
198
  ]),
187
- title: n(() => e[7] || (e[7] = [
199
+ title: s(() => e[7] || (e[7] = [
188
200
  t("span", { class: "error-title" }, "Fehler", -1)
189
201
  ])),
190
- default: n(() => [
202
+ default: s(() => [
191
203
  e[8] || (e[8] = t("ul", { class: "validation-errors" }, [
192
204
  t("li", null, " Pro Projekt muss mindestens ein technischer Prozessschritt beschrieben werden. ")
193
205
  ], -1))
194
206
  ]),
195
207
  _: 1,
196
208
  __: [8]
197
- })) : f("", !0)
209
+ })) : h("", !0)
198
210
  ]));
199
211
  }
200
212
  });
201
213
  export {
202
- se as default
214
+ ce as default
203
215
  };
@@ -0,0 +1,66 @@
1
+ import { defineComponent as f, toRef as m, computed as r, createBlock as g, openBlock as y, unref as c, isRef as h } from "vue";
2
+ import { useField as v } from "vee-validate";
3
+ import B from "../InputField.vue.js";
4
+ const M = /* @__PURE__ */ f({
5
+ __name: "InputFieldVeeValidate",
6
+ props: {
7
+ modelValue: {},
8
+ name: {},
9
+ form: { default: void 0 },
10
+ label: { default: "" },
11
+ placeholder: { default: "" },
12
+ inputType: { default: "text" },
13
+ addOnText: { type: Boolean, default: !1 },
14
+ addOnLeadingText: { default: "http://" },
15
+ trailingText: { type: Boolean, default: !1 },
16
+ trailing_text: { default: "" },
17
+ datePicker: { type: Boolean, default: !1 },
18
+ timePicker: { type: Boolean, default: !1 },
19
+ infoIcon: { type: Boolean, default: !1 },
20
+ tooltipText: { default: "" },
21
+ preIcon: { type: Boolean, default: !1 },
22
+ showEndIcon: { type: Boolean, default: !1 },
23
+ isDisabled: { type: Boolean, default: !1 },
24
+ inputFieldSize: { default: "medium" },
25
+ inputStyle: { default: () => ({}) },
26
+ supportingHintMessage: { default: "" },
27
+ initialHintText: { type: Boolean, default: !1 },
28
+ errorMessage: { default: "" }
29
+ },
30
+ emits: ["update:modelValue"],
31
+ setup(s) {
32
+ const t = s, p = m(t, "name"), { value: a, errorMessage: l, meta: i } = v(p, void 0, {
33
+ syncVModel: !0,
34
+ form: t.form,
35
+ validateOnValueUpdate: !1,
36
+ validateOnMount: !1
37
+ }), o = r(() => !!((i.touched || i.dirty) && (l.value || t.errorMessage))), n = r(() => l.value || t.errorMessage || "");
38
+ return (e, d) => (y(), g(B, {
39
+ modelValue: c(a),
40
+ "onUpdate:modelValue": d[0] || (d[0] = (u) => h(a) ? a.value = u : null),
41
+ label: e.label,
42
+ placeholder: e.placeholder,
43
+ "input-type": e.inputType,
44
+ "add-on-text": e.addOnText,
45
+ "add-on-leading-text": e.addOnLeadingText,
46
+ "trailing-text": e.trailingText,
47
+ trailing_text: e.trailing_text,
48
+ "date-picker": e.datePicker,
49
+ "time-picker": e.timePicker,
50
+ "info-icon": e.infoIcon,
51
+ "tooltip-text": e.tooltipText,
52
+ "pre-icon": e.preIcon,
53
+ "show-end-icon": e.showEndIcon,
54
+ "is-disabled": e.isDisabled,
55
+ "input-field-size": e.inputFieldSize,
56
+ "input-style": e.inputStyle,
57
+ "show-error": o.value,
58
+ error_message: n.value,
59
+ "supporting-hint-message": n.value || e.supportingHintMessage,
60
+ "initial-hint-text": o.value || e.initialHintText
61
+ }, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "add-on-leading-text", "trailing-text", "trailing_text", "date-picker", "time-picker", "info-icon", "tooltip-text", "pre-icon", "show-end-icon", "is-disabled", "input-field-size", "input-style", "show-error", "error_message", "supporting-hint-message", "initial-hint-text"]));
62
+ }
63
+ });
64
+ export {
65
+ M as default
66
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./InputFieldVeeValidate.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as p, toRef as u, computed as r, createBlock as m, openBlock as f, unref as b, isRef as V } from "vue";
2
+ import { useField as c } from "vee-validate";
3
+ import v from "./Listbox.vue.js";
4
+ const L = /* @__PURE__ */ p({
5
+ __name: "ListboxVeeValidate",
6
+ props: {
7
+ modelValue: {},
8
+ name: {},
9
+ form: { default: void 0 },
10
+ options: {},
11
+ label: { default: "" },
12
+ placeholder: { default: "" },
13
+ optionLabel: { type: Function, default: (o) => o },
14
+ optionValue: { type: Function, default: (o) => o },
15
+ optionDisabled: { type: Function, default: () => !1 },
16
+ disabled: { type: Boolean, default: !1 }
17
+ },
18
+ emits: ["update:modelValue"],
19
+ setup(o) {
20
+ const l = o, n = u(l, "name"), { value: a, errorMessage: d } = c(n, void 0, {
21
+ syncVModel: !0,
22
+ form: l.form,
23
+ validateOnValueUpdate: !1,
24
+ validateOnMount: !1
25
+ }), i = r(() => d.value || "");
26
+ return (e, t) => (f(), m(v, {
27
+ modelValue: b(a),
28
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => V(a) ? a.value = s : null),
29
+ options: e.options,
30
+ label: e.label,
31
+ placeholder: e.placeholder,
32
+ "option-label": e.optionLabel,
33
+ "option-value": e.optionValue,
34
+ "option-disabled": e.optionDisabled,
35
+ disabled: e.disabled,
36
+ "error-message": i.value,
37
+ name: l.name
38
+ }, null, 8, ["modelValue", "options", "label", "placeholder", "option-label", "option-value", "option-disabled", "disabled", "error-message", "name"]));
39
+ }
40
+ });
41
+ export {
42
+ L as default
43
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ListboxVeeValidate.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,7 +1,7 @@
1
1
  import t from "./DatasetStep.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-af6c4f5f"]]);
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-80ef235f"]]);
5
5
  export {
6
- r as default
6
+ p as default
7
7
  };
@@ -1,43 +1,43 @@
1
- import { defineComponent as C, ref as H, computed as d, toRef as M, createBlock as l, openBlock as r, withCtx as i, createVNode as o, createElementBlock as v, createElementVNode as D, unref as u, isRef as N, Fragment as T, renderList as $, createCommentVNode as h, createTextVNode as m, toDisplayString as _ } from "vue";
1
+ import { defineComponent as M, ref as N, computed as d, toRef as T, createBlock as l, openBlock as r, withCtx as i, createVNode as o, createElementBlock as v, createElementVNode as D, unref as u, isRef as $, Fragment as G, renderList as O, createCommentVNode as h, createTextVNode as c, toDisplayString as _ } from "vue";
2
2
  import { FormKit as S } from "@formkit/vue";
3
- import { schemaDataset as G } from "@piveau/sdk-core";
4
- import { defineHubSearch as O, dcatApDataset as E } from "@piveau/sdk-vue";
5
- import F from "../../../components/StepActionsSection.vue.js";
6
- import P from "../ActionCard.vue.js";
7
- import U from "../Card.vue.js";
3
+ import { schemaDataset as E } from "@piveau/sdk-core";
4
+ import { defineHubSearch as F, dcatApDataset as P } from "@piveau/sdk-vue";
5
+ import U from "../../../components/StepActionsSection.vue.js";
6
+ import W from "../ActionCard.vue.js";
7
+ import L from "../Card.vue.js";
8
8
  import x from "../SummaryBox.vue.js";
9
- import W from "./AreYouSureToSkipCard.vue.js";
10
- import L from "./DatasetForm.vue.js";
11
- import K from "./ProcessStepBase.vue.js";
9
+ import K from "./AreYouSureToSkipCard.vue.js";
10
+ import j from "./DatasetForm.vue.js";
11
+ import q from "./ProcessStepBase.vue.js";
12
12
  /* empty css */
13
- import { useProcessStepResources as j, ensureHasOneResource as q } from "./utils.js";
14
- const J = {
13
+ import { useProcessStepResources as J } from "./utils.js";
14
+ const Q = {
15
15
  key: 0,
16
16
  class: "software-step__card-list--empty"
17
- }, Q = {
17
+ }, X = {
18
18
  key: 1,
19
19
  class: "software-step__card-list"
20
- }, X = { class: "step-section step-section--lg" }, Y = { class: "" }, ce = /* @__PURE__ */ C({
20
+ }, Y = { class: "step-section step-section--lg" }, Z = { class: "" }, pe = /* @__PURE__ */ M({
21
21
  __name: "DatasetStep",
22
22
  props: {
23
23
  stepGroup: {},
24
24
  edit: { type: Boolean }
25
25
  },
26
26
  setup(b) {
27
- const y = b, s = H([]), { useResources: k } = O({
27
+ const y = b, s = N([]), { useResources: k } = F({
28
28
  baseUrl: "https://twin.bydata.de/api/hub/search",
29
29
  index: "dataset",
30
30
  indexDetails: "datasets",
31
- schema: G
31
+ schema: E
32
32
  }, (a, t) => {
33
- const { setup: e } = E({});
33
+ const { setup: e } = P({});
34
34
  return e(a, {
35
35
  ...t,
36
36
  currentLocale: "de"
37
37
  });
38
38
  }), V = k(d(() => s.value.map((a) => ({
39
39
  resourceId: a.id
40
- })))), c = d(() => s.value.map((a, t) => {
40
+ })))), m = d(() => s.value.map((a, t) => {
41
41
  var z;
42
42
  const e = (z = V.value[t]) == null ? void 0 : z.resultEnhanced, n = e == null ? void 0 : e.getPublisher, f = e == null ? void 0 : e.getModified, g = `${n == null ? void 0 : n.name}, ${f}`;
43
43
  return {
@@ -58,8 +58,8 @@ const J = {
58
58
  function B(a) {
59
59
  s.value.push(a);
60
60
  }
61
- const { count: p } = j(y.stepGroup || "", M(y.edit)), I = d(() => s.value.length > 0 ? "Weiter" : "Weiter ohne Datensätze"), A = d(() => "primary");
62
- return (a, t) => (r(), l(K, {
61
+ const I = T(y, "edit"), { count: p, ensureHasOneResource: A } = J(y.stepGroup || "", I), C = d(() => s.value.length > 0 ? "Weiter" : "Weiter ohne Datensätze"), H = d(() => "primary");
62
+ return (a, t) => (r(), l(q, {
63
63
  title: "Geben Sie Informationen zu verwendeten Datensätzen an",
64
64
  subtitle: "Geben Sie an, welche Datensätze Sie für diesen Prozessschritt verwendet haben. Sie können entweder einen bestehenden Datensatz auswählen oder einen Datensatz neu anlegen. Wenn Sie einen Datensatz neu anlegen, haben Sie die Möglichkeit die Sichtbarkeit des Datensatzes einzuschränken.",
65
65
  "remove-dialog-title": "Verwendeten Datensatz löschen?",
@@ -68,12 +68,12 @@ const J = {
68
68
  default: i(({ confirm: e }) => [
69
69
  o(u(S), {
70
70
  modelValue: u(p),
71
- "onUpdate:modelValue": t[0] || (t[0] = (n) => N(p) ? p.value = n : null),
71
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => $(p) ? p.value = n : null),
72
72
  type: "hidden",
73
73
  name: "__resourceCount",
74
74
  hidden: "",
75
75
  "aria-hidden": "",
76
- "validation-rules": { ensureHasOneResource: u(q) },
76
+ "validation-rules": { ensureHasOneResource: u(A) },
77
77
  validation: "+ensureHasOneResource",
78
78
  "validation-visibility": "live",
79
79
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
@@ -86,8 +86,8 @@ const J = {
86
86
  hidden: "",
87
87
  "aria-hidden": ""
88
88
  }, null, 8, ["modelValue"]),
89
- c.value.length ? (r(), v("section", Q, [
90
- (r(!0), v(T, null, $(c.value, (n, f) => (r(), l(P, {
89
+ m.value.length ? (r(), v("section", X, [
90
+ (r(!0), v(G, null, O(m.value, (n, f) => (r(), l(W, {
91
91
  key: f,
92
92
  spaced: "",
93
93
  class: "software-card",
@@ -100,13 +100,13 @@ const J = {
100
100
  })
101
101
  }, {
102
102
  "standalone-name": i(() => t[3] || (t[3] = [
103
- m(" Datensatz ", -1)
103
+ c(" Datensatz ", -1)
104
104
  ])),
105
105
  default: i(() => [
106
- D("div", X, [
106
+ D("div", Y, [
107
107
  o(x, { title: "Name" }, {
108
108
  default: i(() => [
109
- m(_(n.name), 1)
109
+ c(_(n.name), 1)
110
110
  ]),
111
111
  _: 2
112
112
  }, 1024),
@@ -115,7 +115,7 @@ const J = {
115
115
  title: "Datenbereitsteller, Aktualisiert"
116
116
  }, {
117
117
  default: i(() => [
118
- m(_(n.manufacturer), 1)
118
+ c(_(n.manufacturer), 1)
119
119
  ]),
120
120
  _: 2
121
121
  }, 1024)) : h("", !0),
@@ -124,7 +124,7 @@ const J = {
124
124
  title: "Beschreibung"
125
125
  }, {
126
126
  default: i(() => [
127
- m(_(n.description), 1)
127
+ c(_(n.description), 1)
128
128
  ]),
129
129
  _: 2
130
130
  }, 1024)) : h("", !0)
@@ -132,8 +132,8 @@ const J = {
132
132
  ]),
133
133
  _: 2
134
134
  }, 1032, ["onDelete"]))), 128))
135
- ])) : (r(), v("section", J, [
136
- o(U, {
135
+ ])) : (r(), v("section", Q, [
136
+ o(L, {
137
137
  small: "",
138
138
  class: "empty-card"
139
139
  }, {
@@ -144,18 +144,18 @@ const J = {
144
144
  __: [2]
145
145
  })
146
146
  ])),
147
- o(L, {
147
+ o(j, {
148
148
  exclude: s.value.map((n) => n.id),
149
149
  onSubmit: B
150
150
  }, null, 8, ["exclude"]),
151
- D("section", Y, [
152
- o(F, {
151
+ D("section", Z, [
152
+ o(U, {
153
153
  class: "software-step-actions",
154
- "next-text": I.value,
155
- "next-variant": A.value,
154
+ "next-text": C.value,
155
+ "next-variant": H.value,
156
156
  "show-detailed-error-summary": ""
157
157
  }, null, 8, ["next-text", "next-variant"]),
158
- c.value.length === 0 ? (r(), l(W, {
158
+ m.value.length === 0 ? (r(), l(K, {
159
159
  key: 0,
160
160
  "resource-label": "Datensätze"
161
161
  })) : h("", !0)
@@ -166,5 +166,5 @@ const J = {
166
166
  }
167
167
  });
168
168
  export {
169
- ce as default
169
+ pe as default
170
170
  };
@@ -0,0 +1,7 @@
1
+ import o from "./FunctionalityForm.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7c4d7197"]]);
5
+ export {
6
+ c as default
7
+ };