@piveau/dpi 0.1.0-beta.8 → 0.1.0-twinby.0

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 (49) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/DPIMenu.vue.js +7 -7
  3. package/dist/data-provider-interface/DataProviderInterface.vue2.js +18 -17
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +7 -0
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +122 -0
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteInputDefinition.js +14 -0
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocabFormKit.vue.js +75 -0
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocabFormKit.vue2.js +4 -0
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +29 -0
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +7 -0
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +70 -0
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +19 -20
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +1 -1
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +32 -28
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/Dropdown.vue.js +1 -1
  16. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js +21 -0
  17. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +60 -0
  18. package/dist/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue2.js +4 -0
  19. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +7 -0
  20. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +98 -0
  21. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AvailabilityV3.vue.js +16 -21
  22. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +83 -81
  23. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +2 -4
  24. package/dist/data-provider-interface/components/DistLicense.vue.js +61 -63
  25. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +791 -779
  26. package/dist/data-provider-interface/components/HVDPage.vue.js +45 -43
  27. package/dist/data-provider-interface/components/InputPageStep.vue.js +9 -11
  28. package/dist/data-provider-interface/components/ProgressSteps.vue.js +7 -0
  29. package/dist/data-provider-interface/components/ProgressSteps.vue2.js +106 -0
  30. package/dist/data-provider-interface/components/ReviewAndPublishPage.vue.js +204 -204
  31. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +211 -212
  32. package/dist/data-provider-interface/composables/useDpiStepper.js +80 -39
  33. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +145 -105
  34. package/dist/data-provider-interface/store/modules/conversionStore.js +130 -0
  35. package/dist/data-provider-interface/store/modules/dpiStore.js +18 -16
  36. package/dist/data-provider-interface/utils/RDFconverter.js +226 -0
  37. package/dist/data-provider-interface/utils/inputConverter.js +255 -0
  38. package/dist/data-provider-interface/utils/useSteps.js +39 -30
  39. package/dist/data-provider-interface/views/InputPage.vue.js +80 -92
  40. package/dist/data-provider-interface/views/InputPageProject.vue.js +528 -0
  41. package/dist/index.js +31 -27
  42. package/dist/stories/components/DemoStep.vue.js +331 -0
  43. package/dist/stories/components/DemoStepper.vue.js +7 -0
  44. package/dist/stories/components/DemoStepper.vue2.js +160 -0
  45. package/dist/stories/components/PartnerCard.vue.js +7 -0
  46. package/dist/stories/components/PartnerCard.vue2.js +32 -0
  47. package/dist/stories/components/ReviewStepDemo.vue.js +7 -0
  48. package/dist/stories/components/ReviewStepDemo.vue2.js +98 -0
  49. package/package.json +11 -4
@@ -0,0 +1,331 @@
1
+ import { ref as p, watch as $, createElementBlock as r, openBlock as i, createElementVNode as l, createVNode as n, unref as a, withCtx as m, Fragment as g, renderList as _, createBlock as U, createCommentVNode as F, withDirectives as w, vModelCheckbox as D, vShow as L } from "vue";
2
+ import { FormKit as o } from "@formkit/vue";
3
+ import V from "../../data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteInputDefinition.js";
4
+ import h from "../../data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js";
5
+ import E from "../../data-provider-interface/HappyFlowComponents/ui/Chip.vue.js";
6
+ import T from "../../data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js";
7
+ import H from "../../data-provider-interface/HappyFlowComponents/ui/InputField.vue.js";
8
+ import I from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
9
+ import M from "../../data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js";
10
+ import P from "./PartnerCard.vue.js";
11
+ /* empty css */
12
+ import j from "../../_virtual/_plugin-vue_export-helper.js";
13
+ const N = { class: "dpiV3_page V3-typography" }, A = {
14
+ id: "partners-section",
15
+ class: "funny-section"
16
+ }, R = { class: "partner-cards-container" }, K = { class: "action-container" }, W = { class: "funny-section" }, q = { class: "start-and-end" }, G = { class: "funny-section" }, J = {
17
+ key: 0,
18
+ class: "d-flex"
19
+ }, Q = ["id", "value"], X = ["for"], Y = { class: "funny-section" }, Z = {
20
+ key: 0,
21
+ class: "d-flex"
22
+ }, ee = ["id", "value"], te = ["for"], le = { class: "funny-section" }, ne = { class: "autocomplete-inputs-demo" }, ae = { class: "partner-cards-container" }, oe = { class: "action-container" }, ie = {
23
+ __name: "DemoStep",
24
+ setup(se) {
25
+ const b = p([{}]), z = p([
26
+ { id: "option-1", name: "Option 1" },
27
+ { id: "option-2", name: "Option 2" },
28
+ { id: "option-3", name: "Option 3" }
29
+ ]), x = p(), c = p([]);
30
+ $(x, (d) => {
31
+ d && d.id && c.value.push(d.id);
32
+ });
33
+ const k = p(""), u = p([]);
34
+ function B(d) {
35
+ if (d && d.trim()) {
36
+ const e = d.trim();
37
+ u.value.includes(e) || u.value.push(e), k.value = "";
38
+ }
39
+ }
40
+ const C = p(!1);
41
+ return (d, e) => (i(), r("div", N, [
42
+ e[20] || (e[20] = l("section", { class: "funny-section" }, [
43
+ l("h4", null, " Fügen Sie optionale Daten hinzu "),
44
+ l("span", { class: "copy-large-regular" }, "Für viele Projekte sind weitere Informationen vorhanden und für lesende Personen hilfreich. Fügen Sie hier bei Bedarf weitere Informationen hinzu.")
45
+ ], -1)),
46
+ l("section", A, [
47
+ e[11] || (e[11] = l("h5", null, " Partner ", -1)),
48
+ e[12] || (e[12] = l("span", { class: "copy-large-regular" }, "Wenn Sie mit einem oder mehreren Partnern zusammengearbeitet haben, können Sie diese hier angeben.", -1)),
49
+ l("div", R, [
50
+ n(a(o), {
51
+ modelValue: b.value,
52
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => b.value = t),
53
+ type: "list",
54
+ name: "partners",
55
+ dynamic: ""
56
+ }, {
57
+ default: m(({ items: t, node: s, value: f }) => [
58
+ (i(!0), r(g, null, _(t, (v, y) => (i(), U(a(o), {
59
+ key: v,
60
+ type: "group",
61
+ index: y
62
+ }, {
63
+ default: m(() => [
64
+ n(P, null, {
65
+ action: m(() => [
66
+ n(h, {
67
+ "button-text": "Entfernen",
68
+ size: "small",
69
+ variant: "secondary",
70
+ onClick: () => s.input(f.filter((O, S) => S !== y))
71
+ }, null, 8, ["onClick"])
72
+ ]),
73
+ _: 2
74
+ }, 1024)
75
+ ]),
76
+ _: 2
77
+ }, 1032, ["index"]))), 128)),
78
+ l("div", K, [
79
+ n(h, {
80
+ "button-text": "Partner hinzufügen",
81
+ size: "small",
82
+ variant: "tertiary",
83
+ "icon-start": "plus",
84
+ onClick: (v) => s.input(f.concat({}))
85
+ }, null, 8, ["onClick"])
86
+ ])
87
+ ]),
88
+ _: 1
89
+ }, 8, ["modelValue"])
90
+ ])
91
+ ]),
92
+ l("section", W, [
93
+ e[13] || (e[13] = l("h5", null, " Projektzeitraum ", -1)),
94
+ e[14] || (e[14] = l("span", { class: "copy-large-regular" }, "Für Projekte, die noch nicht abgeschlossen sind, können Sie das Enddatum frei lassen.", -1)),
95
+ l("div", q, [
96
+ n(a(o), {
97
+ type: a(I),
98
+ name: "startDate",
99
+ "text-label": "Startdatum",
100
+ "input-type": "date",
101
+ placeholder: "Enter text here",
102
+ "tooltip-text": "This is helpful information",
103
+ "add-on-text": !1,
104
+ "info-icon": !1,
105
+ "pre-icon": !1,
106
+ "show-end-icon": !1,
107
+ "initial-hint-text": !1
108
+ }, null, 8, ["type"]),
109
+ n(a(o), {
110
+ type: a(I),
111
+ name: "endDate",
112
+ "text-label": "Enddatum",
113
+ "input-type": "date",
114
+ placeholder: "Enter text here",
115
+ "tooltip-text": "This is helpful information",
116
+ "add-on-text": !1,
117
+ "info-icon": !1,
118
+ "pre-icon": !1,
119
+ "show-end-icon": !1,
120
+ "initial-hint-text": !1
121
+ }, null, 8, ["type"])
122
+ ])
123
+ ]),
124
+ l("section", G, [
125
+ e[15] || (e[15] = l("h5", null, "Lorem Ipsum", -1)),
126
+ e[16] || (e[16] = l("div", null, "Funktionalitäten auswählen ", -1)),
127
+ n(a(o), {
128
+ modelValue: c.value,
129
+ "onUpdate:modelValue": e[1] || (e[1] = (t) => c.value = t),
130
+ type: "hidden",
131
+ name: "demoSelectChecked"
132
+ }, null, 8, ["modelValue"]),
133
+ x.value ? (i(), r("div", J, [
134
+ (i(!0), r(g, null, _(z.value, (t) => (i(), r("div", {
135
+ key: t.id,
136
+ class: "label-chip"
137
+ }, [
138
+ w(l("input", {
139
+ id: t.id,
140
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => c.value = s),
141
+ class: "label-chip__input",
142
+ type: "checkbox",
143
+ value: t.id
144
+ }, null, 8, Q), [
145
+ [D, c.value]
146
+ ]),
147
+ w(l("label", {
148
+ class: "label-chip__label",
149
+ for: t.id
150
+ }, [
151
+ n(E, {
152
+ class: "label-chip__inner",
153
+ text: t.name,
154
+ data: {
155
+ "@value": t.name,
156
+ URI: "https://example.com/default"
157
+ },
158
+ setup: {
159
+ "@type": "select",
160
+ "@inTable": !1
161
+ }
162
+ }, null, 8, ["text", "data"])
163
+ ], 8, X), [
164
+ [L, c.value.includes(t.id)]
165
+ ])
166
+ ]))), 128))
167
+ ])) : F("", !0),
168
+ n(M, {
169
+ modelValue: x.value,
170
+ "onUpdate:modelValue": e[3] || (e[3] = (t) => x.value = t),
171
+ options: z.value,
172
+ label: "Select an option",
173
+ name: "demo-select"
174
+ }, null, 8, ["modelValue", "options"])
175
+ ]),
176
+ l("section", Y, [
177
+ e[17] || (e[17] = l("h5", null, "Hardware", -1)),
178
+ e[18] || (e[18] = l("div", null, "Funktionalitäten nennen", -1)),
179
+ n(a(o), {
180
+ modelValue: u.value,
181
+ "onUpdate:modelValue": e[4] || (e[4] = (t) => u.value = t),
182
+ type: "hidden",
183
+ name: "hardwareChecked"
184
+ }, null, 8, ["modelValue"]),
185
+ u.value.length > 0 ? (i(), r("div", Z, [
186
+ (i(!0), r(g, null, _(u.value, (t) => (i(), r("div", {
187
+ key: t,
188
+ class: "label-chip"
189
+ }, [
190
+ w(l("input", {
191
+ id: `hardware-${t}`,
192
+ "onUpdate:modelValue": e[5] || (e[5] = (s) => u.value = s),
193
+ class: "label-chip__input",
194
+ type: "checkbox",
195
+ value: t
196
+ }, null, 8, ee), [
197
+ [D, u.value]
198
+ ]),
199
+ l("label", {
200
+ class: "label-chip__label",
201
+ for: `hardware-${t}`
202
+ }, [
203
+ n(E, {
204
+ class: "label-chip__inner",
205
+ text: t,
206
+ data: {
207
+ "@value": t,
208
+ URI: "https://example.com/default"
209
+ },
210
+ setup: {
211
+ "@type": "selected",
212
+ "@icon": "suffix",
213
+ "@inTable": !1
214
+ }
215
+ }, null, 8, ["text", "data"])
216
+ ], 8, te)
217
+ ]))), 128))
218
+ ])) : F("", !0),
219
+ n(H, {
220
+ modelValue: k.value,
221
+ "onUpdate:modelValue": e[6] || (e[6] = (t) => k.value = t),
222
+ label: "Hardware",
223
+ "input-type": "text",
224
+ placeholder: "Enter text here",
225
+ "tooltip-text": "This is helpful information",
226
+ "add-on-text": !1,
227
+ "info-icon": !1,
228
+ "pre-icon": !1,
229
+ "show-end-icon": !1,
230
+ "initial-hint-text": !1
231
+ }, null, 8, ["modelValue"]),
232
+ n(h, {
233
+ "button-text": "Add Hardware",
234
+ size: "small",
235
+ variant: "tertiary",
236
+ "icon-start": "plus",
237
+ onClick: e[7] || (e[7] = (t) => B(k.value))
238
+ })
239
+ ]),
240
+ l("section", le, [
241
+ e[19] || (e[19] = l("h5", null, "Autocomplete Demo", -1)),
242
+ l("div", ne, [
243
+ n(a(o), {
244
+ type: a(V),
245
+ name: "category",
246
+ vocabulary: "data-theme",
247
+ label: "Categories",
248
+ placeholder: "Select a category..."
249
+ }, null, 8, ["type"]),
250
+ n(a(o), {
251
+ type: a(V),
252
+ name: "country",
253
+ vocabulary: "country",
254
+ label: "Country",
255
+ placeholder: "Select a country..."
256
+ }, null, 8, ["type"]),
257
+ n(a(o), {
258
+ type: a(V),
259
+ name: "language",
260
+ vocabulary: "language",
261
+ label: "Language",
262
+ placeholder: "Select a language..."
263
+ }, null, 8, ["type"]),
264
+ n(a(o), {
265
+ type: a(V),
266
+ name: "licence",
267
+ vocabulary: "licence",
268
+ label: "License",
269
+ placeholder: "Select a license..."
270
+ }, null, 8, ["type"])
271
+ ])
272
+ ]),
273
+ l("button", {
274
+ onClick: e[8] || (e[8] = (t) => C.value = !0)
275
+ }, " Open Modal "),
276
+ n(T, {
277
+ modelValue: C.value,
278
+ "onUpdate:modelValue": e[10] || (e[10] = (t) => C.value = t)
279
+ }, {
280
+ default: m(() => [
281
+ l("div", ae, [
282
+ n(a(o), {
283
+ modelValue: b.value,
284
+ "onUpdate:modelValue": e[9] || (e[9] = (t) => b.value = t),
285
+ type: "list",
286
+ name: "partners",
287
+ dynamic: ""
288
+ }, {
289
+ default: m(({ items: t, node: s, value: f }) => [
290
+ (i(!0), r(g, null, _(t, (v, y) => (i(), U(a(o), {
291
+ key: v,
292
+ type: "group",
293
+ index: y
294
+ }, {
295
+ default: m(() => [
296
+ n(P, null, {
297
+ action: m(() => [
298
+ n(h, {
299
+ "button-text": "Entfernen",
300
+ size: "small",
301
+ variant: "secondary",
302
+ onClick: () => s.input(f.filter((O, S) => S !== y))
303
+ }, null, 8, ["onClick"])
304
+ ]),
305
+ _: 2
306
+ }, 1024)
307
+ ]),
308
+ _: 2
309
+ }, 1032, ["index"]))), 128)),
310
+ l("div", oe, [
311
+ n(h, {
312
+ "button-text": "Partner hinzufügen",
313
+ size: "small",
314
+ variant: "tertiary",
315
+ "icon-start": "plus",
316
+ onClick: (v) => s.input(f.concat({}))
317
+ }, null, 8, ["onClick"])
318
+ ])
319
+ ]),
320
+ _: 1
321
+ }, 8, ["modelValue"])
322
+ ])
323
+ ]),
324
+ _: 1
325
+ }, 8, ["modelValue"])
326
+ ]));
327
+ }
328
+ }, ke = /* @__PURE__ */ j(ie, [["__scopeId", "data-v-7f00c63a"]]);
329
+ export {
330
+ ke as default
331
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./DemoStepper.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-10b457be"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,160 @@
1
+ import { defineComponent as O, ref as f, toRef as T, computed as b, watch as j, createElementBlock as E, openBlock as y, createElementVNode as s, createVNode as t, toDisplayString as U, unref as r, isRef as k, withCtx as i, createBlock as q, createCommentVNode as J, nextTick as K } from "vue";
2
+ import { FormKit as d } from "@formkit/vue";
3
+ import l from "../../data-provider-interface/components/InputPageStep.vue.js";
4
+ import L from "../../data-provider-interface/components/ProgressSteps.vue.js";
5
+ import { useDpiStepper as $ } from "../../data-provider-interface/composables/useDpiStepper.js";
6
+ import A from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js";
7
+ import H from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js";
8
+ import V from "../../data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js";
9
+ import I from "./DemoStep.vue.js";
10
+ import M from "./ReviewStepDemo.vue.js";
11
+ const z = { class: "demo-stepper" }, G = { style: { "margin-bottom": "1rem", padding: "1rem", background: "#f5f5f5", "border-radius": "8px" } }, Q = { class: "dev-actions" }, ae = /* @__PURE__ */ O({
12
+ __name: "DemoStepper",
13
+ setup(W) {
14
+ const a = f({}), {
15
+ steps: x,
16
+ stepList: c,
17
+ visitedSteps: m,
18
+ stepPlugin: _,
19
+ goToNextStep: h,
20
+ goToPreviousStep: w,
21
+ current: u,
22
+ isLast: C,
23
+ triggerValidationCurrentStep: N
24
+ } = $(), D = T(x);
25
+ function P(n) {
26
+ var o;
27
+ const e = (o = D.value) == null ? void 0 : o[n];
28
+ return e ? e.valid : !1;
29
+ }
30
+ const v = b(() => {
31
+ const n = {};
32
+ return c.value.forEach((e) => {
33
+ const p = e.split("/")[0];
34
+ n[p] || (n[p] = []), n[p].push(e);
35
+ }), n;
36
+ });
37
+ function R(n) {
38
+ const e = v.value[n] || [];
39
+ return e.length > 0 && e.every((o) => m.value.includes(o));
40
+ }
41
+ b(() => Object.keys(v.value).filter((n) => R(n)));
42
+ function B() {
43
+ P(u.value) && h();
44
+ }
45
+ async function F() {
46
+ N(), await K(), C.value ? (console.log("Form submitted", a.value), window.alert(`Form submitted: ${JSON.stringify(a.value)}`)) : B();
47
+ }
48
+ const g = f(!1), S = f(0);
49
+ return j(u, (n) => {
50
+ n === "review" && (g.value = !0, S.value++);
51
+ }), (n, e) => (y(), E("div", z, [
52
+ s("div", G, [
53
+ e[3] || (e[3] = s("strong", null, "Form Values:", -1)),
54
+ s("pre", null, U(JSON.stringify(a.value, null, 2)), 1)
55
+ ]),
56
+ t(L, {
57
+ checked: r(m),
58
+ "onUpdate:checked": e[0] || (e[0] = (o) => k(m) ? m.value = o : null),
59
+ current: r(u),
60
+ "onUpdate:current": e[1] || (e[1] = (o) => k(u) ? u.value = o : null),
61
+ steps: r(c) || []
62
+ }, null, 8, ["checked", "current", "steps"]),
63
+ t(r(d), {
64
+ id: "demo-stepper",
65
+ modelValue: a.value,
66
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => a.value = o),
67
+ type: "form",
68
+ plugins: [r(_)],
69
+ actions: !1,
70
+ onSubmit: () => {
71
+ }
72
+ }, {
73
+ default: i(() => [
74
+ t(l, { name: "auffindbarkeit" }, {
75
+ default: i(() => [
76
+ t(I)
77
+ ]),
78
+ _: 1
79
+ }),
80
+ t(l, { name: "grundlegende-informationen/name" }, {
81
+ default: i(() => [
82
+ t(A)
83
+ ]),
84
+ _: 1
85
+ }),
86
+ t(l, { name: "grundlegende-informationen/organisation" }, {
87
+ default: i(() => [
88
+ t(H)
89
+ ]),
90
+ _: 1
91
+ }),
92
+ t(l, { name: "grundlegende-informationen/discoverability" }, {
93
+ default: i(() => [
94
+ t(r(d), {
95
+ type: "text",
96
+ label: "Name",
97
+ name: "name",
98
+ validation: "required"
99
+ })
100
+ ]),
101
+ _: 1
102
+ }),
103
+ t(l, { name: "grundlegende-informationen/essentials" }, {
104
+ default: i(() => [
105
+ t(r(d), {
106
+ type: "text",
107
+ label: "Mail",
108
+ name: "mail",
109
+ validation: "required|email"
110
+ }),
111
+ t(r(d), {
112
+ type: "text",
113
+ label: "Homepage",
114
+ name: "homepage",
115
+ validation: "url"
116
+ })
117
+ ]),
118
+ _: 1
119
+ }),
120
+ t(l, { name: "optinale-daten" }, {
121
+ default: i(() => [
122
+ t(r(d), {
123
+ type: "textarea",
124
+ label: "Description",
125
+ name: "description"
126
+ })
127
+ ]),
128
+ _: 1
129
+ }),
130
+ t(l, { name: "review" }, {
131
+ default: i(() => [
132
+ g.value ? (y(), q(M, {
133
+ key: S.value,
134
+ values: a.value
135
+ }, null, 8, ["values"])) : J("", !0)
136
+ ]),
137
+ _: 1
138
+ })
139
+ ]),
140
+ _: 1
141
+ }, 8, ["modelValue", "plugins"]),
142
+ e[4] || (e[4] = s("hr", null, null, -1)),
143
+ s("div", Q, [
144
+ t(V, {
145
+ type: "button",
146
+ "button-text": "Previous",
147
+ onClick: r(w)
148
+ }, null, 8, ["onClick"]),
149
+ t(V, {
150
+ type: "button",
151
+ "button-text": "Next",
152
+ onClick: F
153
+ })
154
+ ])
155
+ ]));
156
+ }
157
+ });
158
+ export {
159
+ ae as default
160
+ };
@@ -0,0 +1,7 @@
1
+ import r from "./PartnerCard.vue2.js";
2
+ /* empty css */
3
+ import o from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-8656008f"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as l, createElementBlock as r, openBlock as d, renderSlot as i, createVNode as o, createElementVNode as s, unref as e } from "vue";
2
+ import { FormKit as a } from "@formkit/vue";
3
+ import n from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
4
+ const m = { class: "dpiV3_Card_Tips" }, p = { class: "action-container" }, y = /* @__PURE__ */ l({
5
+ __name: "PartnerCard",
6
+ setup(c) {
7
+ return (t, u) => (d(), r("div", m, [
8
+ i(t.$slots, "default", {}, () => [
9
+ o(e(a), {
10
+ type: e(n),
11
+ name: "name",
12
+ "text-label": "Name",
13
+ validation: "required",
14
+ "validation-visibility": "live"
15
+ }, null, 8, ["type"]),
16
+ o(e(a), {
17
+ type: e(n),
18
+ name: "homepage",
19
+ "text-label": "Homepage",
20
+ validation: "url",
21
+ "validation-visibility": "live"
22
+ }, null, 8, ["type"]),
23
+ s("div", p, [
24
+ i(t.$slots, "action", {}, void 0, !0)
25
+ ])
26
+ ], !0)
27
+ ]));
28
+ }
29
+ });
30
+ export {
31
+ y as default
32
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ReviewStepDemo.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-871cc3cb"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,98 @@
1
+ import { defineComponent as w, createElementBlock as n, openBlock as s, createElementVNode as r, createCommentVNode as y, Fragment as d, renderList as u, toDisplayString as c, createBlock as A } from "vue";
2
+ import C from "../../data-provider-interface/HappyFlowComponents/ui/Chip.vue.js";
3
+ const S = { class: "dpiV3_page V3-typography" }, N = { class: "dpiV3_Card_Tips" }, B = { class: "review-content" }, V = { class: "review-field__title" }, z = {
4
+ key: 0,
5
+ class: "review-field__chips"
6
+ }, D = {
7
+ key: 1,
8
+ class: "review-field__objects"
9
+ }, E = { class: "review-object-title" }, O = { class: "review-object-fields" }, x = { class: "review-object-field__label" }, F = { class: "review-object-field__value" }, I = {
10
+ key: 2,
11
+ class: "review-field__text"
12
+ }, L = { class: "copy-large-regular" }, R = {
13
+ key: 0,
14
+ class: "review-empty"
15
+ }, T = {
16
+ key: 0,
17
+ class: "funny-section"
18
+ }, $ = /* @__PURE__ */ w({
19
+ __name: "ReviewStepDemo",
20
+ props: {
21
+ values: {}
22
+ },
23
+ setup(f) {
24
+ const m = f;
25
+ function v(e) {
26
+ const t = e.split("/"), l = t == null ? void 0 : t[0], a = t == null ? void 0 : t[1], i = (p) => p.split("-").map((o) => o.charAt(0).toUpperCase() + o.slice(1)).join(" ");
27
+ return a ? `${i(l)} - ${i(a)}` : i(l);
28
+ }
29
+ function _(e) {
30
+ return e.split(/(?=[A-Z])|_|-/).map((t) => t.charAt(0).toUpperCase() + t.slice(1).toLowerCase()).join(" ");
31
+ }
32
+ function b(e) {
33
+ return Array.isArray(e) && e.length > 0 && (typeof e[0] == "string" || typeof e[0] == "number");
34
+ }
35
+ function k(e) {
36
+ return Array.isArray(e) && e.length > 0 && typeof e[0] == "object" && e[0] !== null;
37
+ }
38
+ return (e, t) => (s(), n("div", S, [
39
+ t[2] || (t[2] = r("section", { class: "funny-section" }, [
40
+ r("h4", null, "Zusammenfassung Ihrer Eingaben"),
41
+ r("span", { class: "copy-large-regular" }, " Bitte überprüfen Sie Ihre Eingaben vor der Übermittlung. Sie können zur Bearbeitung zu vorherigen Schritten zurückkehren. ")
42
+ ], -1)),
43
+ (s(!0), n(d, null, u(Object.entries(m.values || {}), ([l, a]) => (s(), n("section", {
44
+ key: l,
45
+ class: "funny-section"
46
+ }, [
47
+ r("div", N, [
48
+ r("h5", null, c(v(l)), 1),
49
+ r("div", B, [
50
+ (s(!0), n(d, null, u(a, (i, p) => (s(), n("div", {
51
+ key: p,
52
+ class: "review-field"
53
+ }, [
54
+ r("h6", V, c(_(p)), 1),
55
+ b(i) ? (s(), n("div", z, [
56
+ (s(!0), n(d, null, u(i, (o) => (s(), A(C, {
57
+ key: o,
58
+ "chip-text": o.toString(),
59
+ variant: "primary",
60
+ size: "small"
61
+ }, null, 8, ["chip-text"]))), 128))
62
+ ])) : k(i) ? (s(), n("div", D, [
63
+ (s(!0), n(d, null, u(i, (o, h) => (s(), n("div", {
64
+ key: h,
65
+ class: "review-object-item"
66
+ }, [
67
+ r("span", E, c(_(p)) + " " + c(h + 1), 1),
68
+ r("div", O, [
69
+ (s(!0), n(d, null, u(o, (j, g) => (s(), n("div", {
70
+ key: g,
71
+ class: "review-object-field"
72
+ }, [
73
+ r("span", x, c(_(g)) + ":", 1),
74
+ r("span", F, c(j || "Nicht angegeben"), 1)
75
+ ]))), 128))
76
+ ])
77
+ ]))), 128))
78
+ ])) : (s(), n("div", I, [
79
+ r("span", L, c(i || "Nicht angegeben"), 1)
80
+ ]))
81
+ ]))), 128)),
82
+ Object.keys(a).length === 0 ? (s(), n("div", R, t[0] || (t[0] = [
83
+ r("span", { class: "copy-large-regular" }, "Keine Daten in diesem Schritt eingegeben", -1)
84
+ ]))) : y("", !0)
85
+ ])
86
+ ])
87
+ ]))), 128)),
88
+ !e.values || Object.keys(e.values).length === 0 ? (s(), n("section", T, t[1] || (t[1] = [
89
+ r("div", { class: "dpiV3_Card_Tips" }, [
90
+ r("span", { class: "copy-large-regular" }, "Noch keine Daten eingegeben")
91
+ ], -1)
92
+ ]))) : y("", !0)
93
+ ]));
94
+ }
95
+ });
96
+ export {
97
+ $ as default
98
+ };