@piveau/dpi 0.2.0-alpha.5 → 0.2.0-alpha.7

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 (51) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +18 -21
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +49 -41
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +5 -5
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +63 -61
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +47 -38
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +33 -29
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue.js +31 -0
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/AreYouSureToSkipCard.vue2.js +4 -0
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +3 -3
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +72 -62
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +76 -69
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +78 -91
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/utils.js +27 -42
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +17 -17
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +10 -10
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +1 -1
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +16 -16
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +13 -13
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +934 -0
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +4 -0
  35. package/dist/packages/dpi/src/data-provider-interface/components/ProgressSteps.vue.js +1 -1
  36. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  37. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +75 -63
  38. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
  39. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +42 -0
  40. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
  41. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +249 -0
  42. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
  43. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +281 -0
  44. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +244 -0
  45. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +330 -0
  46. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
  47. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +114 -0
  48. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +387 -328
  49. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +3 -3
  50. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +6 -6
  51. package/package.json +5 -2
@@ -21,7 +21,7 @@ const z = { class: "dpiV3_page V3-typography" }, k = { class: "funny-section" },
21
21
  "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
22
22
  label: "Beschreibung",
23
23
  type: r(_),
24
- name: "project_description",
24
+ name: "projectDescription",
25
25
  "text-label": "Name",
26
26
  placeholder: "Geben Sie Ihrem Projekt einen Namen.",
27
27
  validation: "required|length:0,500",
@@ -59,7 +59,7 @@ const z = { class: "dpiV3_page V3-typography" }, k = { class: "funny-section" },
59
59
  ])
60
60
  ]));
61
61
  }
62
- }, F = /* @__PURE__ */ b(P, [["__scopeId", "data-v-9ea5f3f2"]]);
62
+ }, F = /* @__PURE__ */ b(P, [["__scopeId", "data-v-9f4e9fc8"]]);
63
63
  export {
64
64
  F as default
65
65
  };
@@ -1,38 +1,35 @@
1
- import { createElementBlock as n, openBlock as r, createElementVNode as e, createVNode as o, unref as s } from "vue";
2
- import { FormKit as i } from "@formkit/vue";
3
- import a from "../../../components/StepActionsSection.vue.js";
4
- import l from "../ListBox/ListBoxDefinition.js";
1
+ import { ref as r, createElementBlock as i, openBlock as a, createElementVNode as e, createVNode as o, unref as s } from "vue";
2
+ import { FormKit as l } from "@formkit/vue";
3
+ import c from "../../../components/StepActionsSection.vue.js";
4
+ import p from "../ListBox/ListBoxDefinition.js";
5
5
  /* empty css */
6
- import c from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
7
- const p = { class: "dpiV3_page V3-typography" }, d = { class: "funny-section" }, m = { class: "funny-flex" }, u = { class: "funny-section" }, _ = {
6
+ import u from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
7
+ const d = { class: "dpiV3_page V3-typography" }, f = { class: "funny-section" }, m = { class: "funny-flex" }, _ = { class: "funny-section" }, h = {
8
8
  __name: "ProjectStatusStep",
9
- setup(f) {
10
- return (h, t) => (r(), n("div", p, [
11
- e("section", d, [
9
+ setup(S) {
10
+ const n = r(["Offen", "In Arbeit", "Abgeschlossen"]);
11
+ return (b, t) => (a(), i("div", d, [
12
+ e("section", f, [
12
13
  e("div", m, [
13
14
  t[0] || (t[0] = e("h4", null, " Legen Sie den Status Ihres Projekts fest ", -1)),
14
15
  t[1] || (t[1] = e("span", { class: "copy-large-regular" }, "Ist Ihr Projekt noch in Planung, in Arbeit oder bereits abgeschlossen?", -1)),
15
- o(s(i), {
16
- type: s(l),
16
+ o(s(l), {
17
+ type: s(p),
17
18
  name: "projectName",
18
19
  label: "Projektstatus",
19
20
  placeholder: "Wählen Sie den Projektstatus.",
20
- options: [
21
- { id: "open", name: "Offen" },
22
- { id: "in_progress", name: "In Arbeit" },
23
- { id: "done", name: "Abgeschlossen" }
24
- ],
21
+ options: n.value,
25
22
  validation: "required",
26
23
  "validation-label": "Projektstatus"
27
- }, null, 8, ["type"])
24
+ }, null, 8, ["type", "options"])
28
25
  ])
29
26
  ]),
30
- e("section", u, [
31
- o(a)
27
+ e("section", _, [
28
+ o(c)
32
29
  ])
33
30
  ]));
34
31
  }
35
- }, k = /* @__PURE__ */ c(_, [["__scopeId", "data-v-835a4f9c"]]);
32
+ }, x = /* @__PURE__ */ u(h, [["__scopeId", "data-v-4e2fe302"]]);
36
33
  export {
37
- k as default
34
+ x as default
38
35
  };
@@ -1,8 +1,9 @@
1
- import { useAttrs as C, ref as c, computed as S, createElementBlock as F, createCommentVNode as d, openBlock as s, normalizeClass as P, createBlock as r, resolveDynamicComponent as D, mergeProps as M, withModifiers as T, withCtx as W, createElementVNode as w, unref as f, toDisplayString as N } from "vue";
2
- import { PhMagnifyingGlass as m, PhX as b } from "@phosphor-icons/vue";
1
+ import { useAttrs as C, ref as f, computed as S, createElementBlock as F, createCommentVNode as c, openBlock as n, normalizeClass as M, createBlock as d, resolveDynamicComponent as P, mergeProps as D, withModifiers as T, unref as r, withCtx as W, createElementVNode as w, toDisplayString as N } from "vue";
2
+ import { PhMagnifyingGlass as m, PhX as V } from "@phosphor-icons/vue";
3
+ import { useVModel as j } from "@vueuse/core";
3
4
  /* empty css */
4
- import j from "../../../../../../_virtual/_plugin-vue_export-helper.js";
5
- const q = ["title"], A = { class: "dpiV3_chipBody-text" }, E = {
5
+ import q from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
+ const A = ["title"], E = { class: "dpiV3_chipBody-text" }, G = {
6
7
  __name: "Chip",
7
8
  props: {
8
9
  text: {
@@ -20,45 +21,52 @@ const q = ["title"], A = { class: "dpiV3_chipBody-text" }, E = {
20
21
  as: {
21
22
  type: String,
22
23
  default: "button"
24
+ },
25
+ selectValue: {
26
+ type: Boolean,
27
+ default: !1
23
28
  }
24
29
  },
25
- emits: ["click", "selection-change"],
26
- setup(e, { emit: V }) {
27
- const a = e, h = V, v = C(), n = c(), t = c(a.setup["@selected"]), y = c(), o = c("16px");
28
- function k(u) {
30
+ emits: ["click", "selection-change", "update:selectValue"],
31
+ setup(e, { emit: b }) {
32
+ const t = e, h = b, v = C(), u = f(), i = j(t, "selectValue", h, {
33
+ defaultValue: t.setup["@selected"],
34
+ passive: !0
35
+ }), y = f(), o = f("16px");
36
+ function k(s) {
29
37
  }
30
- function x(u, i) {
31
- if (u != "disabled" && u != "default" && u != "static" && (n.value.children[0].classList.toggle("dpiV3_chipSelected"), t.value = !t.value, h("click", a.data), h("selection-change", {
32
- selected: t.value,
33
- data: a.data
34
- }), t.value))
35
- for (let l = 0; l < n.value.children[0].children.length; l++)
36
- n.value.children[0].children[l].tagName === "IMG" && !y.value && (t.value ? n.value.children[0].children[l].src = X : n.value.children[0].children[l].src = XB);
38
+ function x(s, l) {
39
+ if (s != "disabled" && s != "default" && s != "static" && (u.value.children[0].classList.toggle("dpiV3_chipSelected"), i.value = !i.value, h("click", t.data), h("selection-change", {
40
+ selected: i.value,
41
+ data: t.data
42
+ }), i.value))
43
+ for (let a = 0; a < u.value.children[0].children.length; a++)
44
+ u.value.children[0].children[a].tagName === "IMG" && !y.value && (i.value ? u.value.children[0].children[a].src = X : u.value.children[0].children[a].src = XB);
37
45
  }
38
- a.setup["@type"] === "selected" && (t.value = !0), a.setup["@search"] && (y.value = !0);
39
- const p = c(!1);
40
- function g(u) {
46
+ t.setup["@type"] === "selected" && (i.value = !0), t.setup["@search"] && (y.value = !0);
47
+ const p = f(!1);
48
+ function g(s) {
41
49
  p.value = !0;
42
50
  }
43
- function z() {
51
+ function B() {
44
52
  p.value = !1;
45
53
  }
46
- const B = S(() => a.as === "button" ? {
54
+ const z = S(() => t.as === "button" ? {
47
55
  type: "button",
48
56
  ...v
49
57
  } : v);
50
- return (u, i) => typeof e.text < "u" ? (s(), F("div", {
58
+ return (s, l) => typeof e.text < "u" ? (n(), F("div", {
51
59
  key: 0,
52
60
  ref_key: "chipWrap",
53
- ref: n,
54
- class: P(["dpiV3_chipBorder", { dpiV3_focusBorder: p.value, dpiV3_inTableWrap: e.setup["@inTable"], dpiV3_inRaPFindability_outer: e.setup["@rapfindability"] }]),
61
+ ref: u,
62
+ class: M(["dpiV3_chipBorder", { dpiV3_focusBorder: p.value, dpiV3_inTableWrap: e.setup["@inTable"], dpiV3_inRaPFindability_outer: e.setup["@rapfindability"] }]),
55
63
  title: e.text,
56
64
  onClick: k
57
65
  }, [
58
- (s(), r(D(e.as), M(B.value, {
66
+ (n(), d(P(e.as), D(z.value, {
59
67
  class: ["dpiV3_chipBody", {
60
68
  dpiV3_chipUnselected: e.setup["@type"] === "select",
61
- dpiV3_chipSelected: t.value,
69
+ dpiV3_chipSelected: r(i),
62
70
  dpiV3_chipDefault: e.setup["@type"] === "default",
63
71
  dpiV3_chipDisabled: e.setup["@type"] === "disabled",
64
72
  dpiV3_specialFocus: p.value,
@@ -68,36 +76,36 @@ const q = ["title"], A = { class: "dpiV3_chipBody-text" }, E = {
68
76
  dpiV3_inRaPFindability: e.setup["@rapfindability"]
69
77
  }],
70
78
  disabled: e.setup["@type"] === "disabled" || e.setup["@type"] === "static",
71
- onClick: i[0] || (i[0] = (l) => x(e.setup["@type"])),
72
- onMousedown: i[1] || (i[1] = T(() => {
79
+ onClick: l[0] || (l[0] = (a) => x(e.setup["@type"])),
80
+ onMousedown: l[1] || (l[1] = T(() => {
73
81
  }, ["prevent"])),
74
- onFocus: i[2] || (i[2] = (l) => g()),
75
- onBlur: z
82
+ onFocus: l[2] || (l[2] = (a) => g()),
83
+ onBlur: B
76
84
  }), {
77
85
  default: W(() => [
78
- e.setup["@search"] && e.setup["@icon"] === "prefix" ? (s(), r(f(m), {
86
+ e.setup["@search"] && e.setup["@icon"] === "prefix" ? (n(), d(r(m), {
79
87
  key: 0,
80
88
  size: o.value
81
- }, null, 8, ["size"])) : d("", !0),
82
- !e.setup["@search"] && e.setup["@icon"] === "prefix" ? (s(), r(f(b), {
89
+ }, null, 8, ["size"])) : c("", !0),
90
+ !e.setup["@search"] && e.setup["@icon"] === "prefix" ? (n(), d(r(V), {
83
91
  key: 1,
84
92
  size: o.value
85
- }, null, 8, ["size"])) : d("", !0),
86
- w("span", A, N(e.text), 1),
87
- !e.setup["@search"] && e.setup["@icon"] === "suffix" ? (s(), r(f(b), {
93
+ }, null, 8, ["size"])) : c("", !0),
94
+ w("span", E, N(e.text), 1),
95
+ !e.setup["@search"] && e.setup["@icon"] === "suffix" ? (n(), d(r(V), {
88
96
  key: 2,
89
97
  size: o.value
90
- }, null, 8, ["size"])) : d("", !0),
91
- e.setup["@search"] && e.setup["@icon"] === "suffix" ? (s(), r(f(m), {
98
+ }, null, 8, ["size"])) : c("", !0),
99
+ e.setup["@search"] && e.setup["@icon"] === "suffix" ? (n(), d(r(m), {
92
100
  key: 3,
93
101
  size: o.value
94
- }, null, 8, ["size"])) : d("", !0)
102
+ }, null, 8, ["size"])) : c("", !0)
95
103
  ]),
96
104
  _: 1
97
105
  }, 16, ["class", "disabled"]))
98
- ], 10, q)) : d("", !0);
106
+ ], 10, A)) : c("", !0);
99
107
  }
100
- }, $ = /* @__PURE__ */ j(E, [["__scopeId", "data-v-4d5c66f5"]]);
108
+ }, U = /* @__PURE__ */ q(G, [["__scopeId", "data-v-c0f41940"]]);
101
109
  export {
102
- $ as default
110
+ U as default
103
111
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./ChipToggleList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f4348c10"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc5c88ab"]]);
5
5
  export {
6
- i as default
6
+ c as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, mergeModels as p, useModel as f, createElementBlock as d, openBlock as a, Fragment as h, renderList as v, withDirectives as x, createElementVNode as u, vModelCheckbox as k, createVNode as _ } from "vue";
2
- import { looseIndexOf as c } from "@vue/shared";
3
- import C from "../Chip.vue.js";
4
- const b = { class: "chip-toggle-list" }, g = ["id", "value"], V = ["for", "onClick"], $ = /* @__PURE__ */ m({
1
+ import { defineComponent as v, mergeModels as f, useModel as h, computed as x, createElementBlock as s, openBlock as c, Fragment as k, renderList as C, withDirectives as V, createElementVNode as u, vModelCheckbox as _, createVNode as b } from "vue";
2
+ import { looseIndexOf as n } from "@vue/shared";
3
+ import g from "../Chip.vue.js";
4
+ const y = { class: "chip-toggle-list" }, I = ["id", "value"], M = ["for", "onClick"], B = /* @__PURE__ */ v({
5
5
  __name: "ChipToggleList",
6
- props: /* @__PURE__ */ p({
6
+ props: /* @__PURE__ */ f({
7
7
  options: {}
8
8
  }, {
9
9
  modelValue: {
@@ -12,51 +12,57 @@ const b = { class: "chip-toggle-list" }, g = ["id", "value"], V = ["for", "onCli
12
12
  modelModifiers: {}
13
13
  }),
14
14
  emits: ["update:modelValue"],
15
- setup(r) {
16
- const l = f(r, "modelValue");
17
- function n(t) {
18
- return c(l.value, t) !== -1;
15
+ setup(i) {
16
+ const r = i, t = h(i, "modelValue");
17
+ function o(l) {
18
+ return n(t.value, l) !== -1;
19
19
  }
20
- function o(t) {
21
- c(l.value, t.id) !== -1 ? l.value = l.value.filter((e) => e !== t.id) : l.value = [...l.value, t.id];
20
+ function m(l) {
21
+ n(t.value, l.id) !== -1 ? t.value = t.value.filter((e) => e !== l.id) : t.value = [...t.value, l.id];
22
22
  }
23
- return (t, i) => (a(), d("div", b, [
24
- (a(!0), d(h, null, v(t.options, (e) => (a(), d("div", {
23
+ const p = x(() => r.options.map((l) => ({
24
+ ...l,
25
+ selected: o(l.id)
26
+ })));
27
+ return (l, a) => (c(), s("div", y, [
28
+ (c(!0), s(k, null, C(p.value, (e) => (c(), s("div", {
25
29
  key: e.id,
26
30
  class: "chip-item"
27
31
  }, [
28
- x(u("input", {
32
+ V(u("input", {
29
33
  id: `chip-${e.id}`,
30
- "onUpdate:modelValue": i[0] || (i[0] = (s) => l.value = s),
34
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => t.value = d),
31
35
  class: "chip-checkbox",
32
36
  type: "checkbox",
33
37
  value: e.id
34
- }, null, 8, g), [
35
- [k, l.value]
38
+ }, null, 8, I), [
39
+ [_, t.value]
36
40
  ]),
37
41
  u("label", {
38
42
  class: "chip-label",
39
43
  for: `chip-${e.id}`,
40
- onClick: (s) => o(e)
44
+ onClick: (d) => m(e)
41
45
  }, [
42
- _(C, {
46
+ b(g, {
47
+ "select-value": e.selected,
48
+ "onUpdate:selectValue": (d) => e.selected = d,
43
49
  text: e.name,
44
50
  data: {
45
51
  "@value": e.id,
46
- URI: e.uri || "https://example.com/default"
52
+ URI: "https://example.com/default"
47
53
  },
48
54
  setup: {
49
55
  "@type": "select",
50
56
  "@inTable": !1,
51
57
  "@findability": !0,
52
- "@selected": n(e.id)
58
+ "@selected": e.selected
53
59
  }
54
- }, null, 8, ["text", "data", "setup"])
55
- ], 8, V)
60
+ }, null, 8, ["select-value", "onUpdate:selectValue", "text", "data", "setup"])
61
+ ], 8, M)
56
62
  ]))), 128))
57
63
  ]));
58
64
  }
59
65
  });
60
66
  export {
61
- $ as default
67
+ B as default
62
68
  };
@@ -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 m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d774378f"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-24d68bfc"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -16,7 +16,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
16
16
  }, E = { class: "partner-cards-container" }, K = { class: "action-container" }, T = { class: "funny-section" }, U = { class: "funny-section" }, j = 500, te = /* @__PURE__ */ S({
17
17
  __name: "BasicInformationStep",
18
18
  setup(O) {
19
- const f = y(""), z = y([]), w = y([]), B = I(() => {
19
+ const f = y(""), z = y([]), w = y([]), x = I(() => {
20
20
  var h;
21
21
  return ((h = f.value) == null ? void 0 : h.length) || 0;
22
22
  });
@@ -33,7 +33,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
33
33
  modelValue: f.value,
34
34
  "onUpdate:modelValue": e[0] || (e[0] = (i) => f.value = i),
35
35
  class: "budgetArea",
36
- label: "Beschreibung",
36
+ label: "description",
37
37
  type: r(D),
38
38
  name: "description",
39
39
  "text-label": "Beschreibung",
@@ -41,7 +41,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
41
41
  validation: "length:0,1000",
42
42
  "validation-visibility": "live",
43
43
  hint: "true",
44
- help: `${B.value} von ${j} Zeichen`,
44
+ help: `${x.value} von ${j} Zeichen`,
45
45
  "count-hint": !0
46
46
  }, null, 8, ["modelValue", "type", "help"])
47
47
  ]),
@@ -88,7 +88,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
88
88
  size: "small",
89
89
  variant: "tertiary",
90
90
  "icon-start": "trash",
91
- onClick: () => o.input(l.filter((x, g) => g !== u))
91
+ onClick: () => o.input(l.filter((B, g) => g !== u))
92
92
  }, null, 8, ["onClick"])
93
93
  ]),
94
94
  _: 2
@@ -157,7 +157,7 @@ const A = { class: "dpiV3_page V3-typography" }, N = { class: "funny-section" },
157
157
  size: "small",
158
158
  variant: "tertiary",
159
159
  "icon-start": "trash",
160
- onClick: () => o.input(l.filter((x, g) => g !== u))
160
+ onClick: () => o.input(l.filter((B, g) => g !== u))
161
161
  }, null, 8, ["onClick"])
162
162
  ]),
163
163
  _: 2
@@ -1,7 +1,7 @@
1
1
  import o from "./ApplicationsStep.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-523cd381"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-341c16e4"]]);
5
5
  export {
6
6
  c as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as S, ref as b, computed as v, createElementBlock as r, openBlock as u, createElementVNode as n, createVNode as l, createCommentVNode as C, unref as c, Fragment as A, renderList as U, withDirectives as z, vModelCheckbox as I, withCtx as o, createTextVNode as g } from "vue";
2
- import { FormKit as P } from "@formkit/vue";
1
+ import { defineComponent as C, ref as v, computed as b, createElementBlock as d, openBlock as p, createElementVNode as t, createVNode as l, createCommentVNode as A, unref as m, Fragment as U, renderList as z, withDirectives as I, vModelCheckbox as P, withCtx as o, createTextVNode as g } from "vue";
2
+ import { FormKit as D } from "@formkit/vue";
3
3
  import { PhLightbulb as _ } from "@phosphor-icons/vue";
4
- import { defineHubSearch as D } from "@piveau/sdk-vue";
5
- import j from "zod";
4
+ import { defineHubSearch as j } from "@piveau/sdk-vue";
5
+ import $ from "zod";
6
6
  import B from "../../../components/StepActionsSection.vue.js";
7
7
  import E from "../Autocomplete/AutocompleteVocab.vue.js";
8
8
  import L from "../ButtonV3.vue.js";
@@ -11,70 +11,71 @@ import N from "../Chip.vue.js";
11
11
  const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" }, W = { class: "funny-flex" }, M = {
12
12
  key: 0,
13
13
  class: "d-flex selected-applications"
14
- }, Z = ["id", "value"], $ = ["for"], q = { class: "ml-auto" }, F = { class: "funny-section action-section" }, K = { class: "action-section" }, T = { class: "action-section" }, V = "data-theme", se = /* @__PURE__ */ S({
14
+ }, Z = ["id", "value"], q = { class: "ml-auto" }, F = { class: "funny-section action-section" }, K = { class: "action-section" }, T = { class: "action-section" }, V = "data-theme", se = /* @__PURE__ */ C({
15
15
  __name: "ApplicationsStep",
16
16
  setup(G) {
17
- const s = b([]), a = b(""), { useResources: k } = D({
17
+ const s = v([]), c = v(""), { useResources: k } = j({
18
18
  baseUrl: "https://staging.bydata.de/api/hub/search",
19
19
  index: "vocabulary",
20
20
  indexDetails: "vocabularies",
21
- schema: j.any()
22
- }, (t) => {
23
- var f, h;
24
- const e = String((t == null ? void 0 : t.id) || ""), i = String(((f = t == null ? void 0 : t.pref_label) == null ? void 0 : f.de) || ((h = t == null ? void 0 : t.pref_label) == null ? void 0 : h.en) || "");
21
+ schema: $.any()
22
+ }, (n) => {
23
+ var a, u;
24
+ const e = String((n == null ? void 0 : n.id) || ""), i = String(((a = n == null ? void 0 : n.pref_label) == null ? void 0 : a.de) || ((u = n == null ? void 0 : n.pref_label) == null ? void 0 : u.en) || "");
25
25
  return {
26
26
  id: e,
27
- name: i
27
+ name: i,
28
+ resource: n == null ? void 0 : n.resource
28
29
  };
29
- }), y = v(() => s.value.map((t) => ({
30
+ }), y = b(() => s.value.map((n) => ({
30
31
  resourceId: `${V}/vocable`,
31
32
  params: {
32
33
  additionalParams: {
33
- resource: t
34
+ resource: n
34
35
  }
35
36
  }
36
- }))), d = k(y), p = v(() => d.value.every((t) => t.isSuccess) ? d.value.map((t) => {
37
- const e = t.resultEnhanced;
37
+ }))), f = k(y), h = b(() => f.value.every((n) => n.isSuccess) ? f.value.map((n) => {
38
+ const e = n.resultEnhanced;
38
39
  return (e == null ? void 0 : e.name) || "";
39
40
  }) : []);
40
- function x() {
41
- const t = a.value;
42
- if (t && t.trim()) {
43
- const e = t.trim();
44
- s.value.includes(e) || s.value.push(e), a.value = "";
41
+ function S() {
42
+ const n = c.value;
43
+ if (n && n.trim()) {
44
+ const e = n.trim();
45
+ s.value.includes(e) || s.value.push(e), c.value = "";
45
46
  }
46
47
  }
47
- return (t, e) => (u(), r("div", H, [
48
- n("section", R, [
49
- n("div", W, [
50
- e[3] || (e[3] = n("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
51
- e[4] || (e[4] = n("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese hier entweder aus der Liste oder geben Sie sie manuell an. ", -1)),
52
- l(c(P), {
48
+ return (n, e) => (p(), d("div", H, [
49
+ t("section", R, [
50
+ t("div", W, [
51
+ e[3] || (e[3] = t("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
52
+ e[4] || (e[4] = t("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese hier entweder aus der Liste oder geben Sie sie manuell an. ", -1)),
53
+ l(m(D), {
53
54
  modelValue: s.value,
54
55
  "onUpdate:modelValue": e[0] || (e[0] = (i) => s.value = i),
55
56
  name: "applications",
56
57
  type: "list",
57
58
  hidden: ""
58
59
  }, null, 8, ["modelValue"]),
59
- p.value.length > 0 ? (u(), r("div", M, [
60
- (u(!0), r(A, null, U(p.value, (i) => (u(), r("div", {
61
- key: i,
62
- class: "label-chip"
63
- }, [
64
- z(n("input", {
65
- id: `application-${i}`,
66
- "onUpdate:modelValue": e[1] || (e[1] = (m) => s.value = m),
67
- class: "label-chip__input",
68
- type: "checkbox",
69
- value: i
70
- }, null, 8, Z), [
71
- [I, s.value]
72
- ]),
73
- n("label", {
74
- class: "label-chip__label",
75
- for: `application-${i}`
60
+ h.value.length > 0 ? (p(), d("div", M, [
61
+ (p(!0), d(U, null, z(h.value, (i, r) => {
62
+ var a, u;
63
+ return p(), d("div", {
64
+ key: `application-${i}@${r}`,
65
+ class: "label-chip"
76
66
  }, [
67
+ I(t("input", {
68
+ id: `application-${i}@${r}`,
69
+ "onUpdate:modelValue": e[1] || (e[1] = (x) => s.value = x),
70
+ class: "label-chip__input",
71
+ type: "checkbox",
72
+ value: (u = (a = m(f)[r]) == null ? void 0 : a.resultEnhanced) == null ? void 0 : u.resource
73
+ }, null, 8, Z), [
74
+ [P, s.value]
75
+ ]),
77
76
  l(N, {
77
+ as: "label",
78
+ for: `application-${i}@${r}`,
78
79
  class: "label-chip__inner",
79
80
  text: i,
80
81
  data: {
@@ -84,15 +85,16 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
84
85
  setup: {
85
86
  "@type": "selected",
86
87
  "@icon": "suffix",
87
- "@inTable": !1
88
+ "@inTable": !1,
89
+ "@selected": !0
88
90
  }
89
- }, null, 8, ["text", "data"])
90
- ], 8, $)
91
- ]))), 128))
92
- ])) : C("", !0),
91
+ }, null, 8, ["for", "text", "data"])
92
+ ]);
93
+ }), 128))
94
+ ])) : A("", !0),
93
95
  l(E, {
94
- modelValue: a.value,
95
- "onUpdate:modelValue": e[2] || (e[2] = (i) => a.value = i),
96
+ modelValue: c.value,
97
+ "onUpdate:modelValue": e[2] || (e[2] = (i) => c.value = i),
96
98
  vocabulary: V,
97
99
  name: "projectName",
98
100
  label: "Wählen Sie Vorschläge aus der Liste",
@@ -100,24 +102,24 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
100
102
  validation: "required",
101
103
  "validation-label": "Projektstatus"
102
104
  }, null, 8, ["modelValue"]),
103
- n("div", q, [
105
+ t("div", q, [
104
106
  l(L, {
105
107
  "button-text": "Anwendungsbereich hinzufügen",
106
108
  size: "medium",
107
109
  variant: "tertiary",
108
110
  "icon-start": "plus",
109
- onClick: x
111
+ onClick: S
110
112
  })
111
113
  ])
112
114
  ])
113
115
  ]),
114
- n("section", F, [
116
+ t("section", F, [
115
117
  l(B, { "hide-cancel": "" })
116
118
  ]),
117
- n("section", K, [
119
+ t("section", K, [
118
120
  l(w, { variant: "default" }, {
119
121
  icon: o(() => [
120
- l(c(_), {
122
+ l(m(_), {
121
123
  size: 32,
122
124
  color: "#009fe3"
123
125
  })
@@ -126,18 +128,18 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
126
128
  g(" Information ", -1)
127
129
  ])),
128
130
  default: o(() => [
129
- e[6] || (e[6] = n("div", { class: "application-information" }, [
130
- n("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
131
+ e[6] || (e[6] = t("div", { class: "application-information" }, [
132
+ t("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
131
133
  ], -1))
132
134
  ]),
133
135
  _: 1,
134
136
  __: [6]
135
137
  })
136
138
  ]),
137
- n("section", T, [
139
+ t("section", T, [
138
140
  l(w, { variant: "default" }, {
139
141
  icon: o(() => [
140
- l(c(_), {
142
+ l(m(_), {
141
143
  size: 32,
142
144
  color: "#009fe3"
143
145
  })
@@ -146,8 +148,8 @@ const H = { class: "dpiV3_page V3-typography" }, R = { class: "funny-section" },
146
148
  g(" Beispiel ", -1)
147
149
  ])),
148
150
  default: o(() => [
149
- e[8] || (e[8] = n("div", { class: "application-information" }, [
150
- n("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
151
+ e[8] || (e[8] = t("div", { class: "application-information" }, [
152
+ t("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
151
153
  ], -1))
152
154
  ]),
153
155
  _: 1,