@piveau/dpi 0.2.0-alpha.29 → 0.2.0-alpha.30

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 (41) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +1 -1
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue.js +1 -1
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/Organisation.vue2.js +19 -19
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue.js +1 -1
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ActionCard.vue2.js +24 -22
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue.js +2 -2
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/AutocompleteVocab.vue2.js +35 -33
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +25 -21
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +1 -1
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +1 -1
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +13 -10
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +3 -3
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +16 -15
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +34 -32
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +56 -43
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +1 -1
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +56 -54
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +372 -325
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue.js +2 -2
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareStep.vue2.js +71 -68
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepBase.vue.js +45 -36
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue.js +2 -2
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/RichOption.vue2.js +33 -23
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +2 -2
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +137 -133
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +2 -2
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +62 -59
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +3 -3
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +250 -241
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +36 -36
  39. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
  40. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +61 -57
  41. package/package.json +1 -1
@@ -3,10 +3,10 @@ import { FormKit as b } from "@formkit/vue";
3
3
  import { PhLightbulb as N, PhExclamationMark as K } from "@phosphor-icons/vue";
4
4
  import W from "../../../../stories/components/LinkCard.vue.js";
5
5
  import $ from "../../../components/StepActionsSection.vue.js";
6
+ import { dpiStepperKey as I } from "../../../utils/injectionKeys.js";
6
7
  import u from "../ButtonV3.vue.js";
7
8
  import V from "../Card.vue.js";
8
- import I from "../TextArea/TextAreaDefinition.js";
9
- import { dpiStepperKey as R } from "../../../utils/injectionKeys.js";
9
+ import R from "../TextArea/TextAreaDefinition.js";
10
10
  const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" }, A = { class: "funny-section" }, T = {
11
11
  id: "partners-section",
12
12
  class: "funny-section"
@@ -25,7 +25,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
25
25
  return ((v = g.value) == null ? void 0 : v.length) || 0;
26
26
  });
27
27
  F(w, "modelValue");
28
- const B = P(R);
28
+ const B = P(I);
29
29
  return (v, e) => (s(), C("div", Z, [
30
30
  e[9] || (e[9] = t("section", { class: "funny-section" }, [
31
31
  t("div", { class: "funny-flex" }, [
@@ -44,7 +44,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
44
44
  "onUpdate:modelValue": e[0] || (e[0] = (r) => g.value = r),
45
45
  class: "budgetArea",
46
46
  label: "Beschreibung",
47
- type: o(I),
47
+ type: o(R),
48
48
  name: "description",
49
49
  "text-label": "Beschreibung",
50
50
  placeholder: "Beschreiben Sie kurz Ihr Vorgehen, Ziel und Ergebnis des Prozessschritts.",
@@ -84,7 +84,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
84
84
  name: "links",
85
85
  dynamic: ""
86
86
  }, {
87
- default: n(({ items: r, node: d, value: c }) => [
87
+ default: n(({ items: r, node: c, value: d }) => [
88
88
  (s(!0), C(D, null, M(r, (m, p) => (s(), a(o(b), {
89
89
  key: m,
90
90
  type: "group",
@@ -98,7 +98,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
98
98
  size: "small",
99
99
  variant: "tertiary",
100
100
  "icon-start": "trash",
101
- onClick: () => d.input(c.filter((z, l) => l !== p))
101
+ onClick: () => c.input(d.filter((z, l) => l !== p))
102
102
  }, null, 8, ["onClick"])
103
103
  ]),
104
104
  _: 2
@@ -112,7 +112,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
112
112
  size: "medium",
113
113
  variant: "tertiary",
114
114
  "icon-start": "plus",
115
- onClick: (m) => d.input(c.concat({}))
115
+ onClick: (m) => c.input(d.concat({}))
116
116
  }, null, 8, ["onClick"])
117
117
  ])
118
118
  ]),
@@ -121,13 +121,14 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
121
121
  ])
122
122
  ]),
123
123
  i($, {
124
+ compact: "",
124
125
  "next-text": "Weiter zu Software",
125
126
  class: "actions-container"
126
127
  }, {
127
128
  "prev-and-next": n(({
128
129
  hidePrevious: r,
129
- hideNext: d,
130
- previousText: c,
130
+ hideNext: c,
131
+ previousText: d,
131
132
  nextText: m,
132
133
  handlePrevious: p,
133
134
  handleSubmit: z
@@ -138,7 +139,7 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
138
139
  key: 0,
139
140
  variant: "secondary",
140
141
  size: "large",
141
- "button-text": c,
142
+ "button-text": d,
142
143
  "icon-start": "CaretLeft",
143
144
  class: "previus-button",
144
145
  onClick: p
@@ -147,16 +148,16 @@ const Z = { class: "dpiV3_page V3-typography" }, j = { class: "funny-section" },
147
148
  key: 1,
148
149
  variant: "secondary",
149
150
  class: "skip-button",
151
+ size: "large",
152
+ "button-text": "Weiter ohne Datenvisualisierung",
153
+ "icon-end": "CaretRight",
150
154
  onClick: e[2] || (e[2] = (l) => {
151
155
  var x;
152
156
  return (x = o(B)) == null ? void 0 : x.goToStep("Vorschau");
153
- }),
154
- size: "large",
155
- "button-text": "Weiter ohne Datenvisualisierung",
156
- "icon-end": "CaretRight"
157
+ })
157
158
  }))
158
159
  ]),
159
- d ? f("", !0) : (s(), a(u, {
160
+ c ? f("", !0) : (s(), a(u, {
160
161
  key: 0,
161
162
  variant: "primary",
162
163
  size: "large",
@@ -1,7 +1,7 @@
1
1
  import o from "./DpiModalBase.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-5929dac5"]]);
4
+ const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-8d995a5f"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,46 +1,48 @@
1
- import { defineComponent as v, mergeModels as V, useModel as B, computed as k, createBlock as y, openBlock as s, unref as a, withCtx as n, createVNode as i, createElementVNode as o, createElementBlock as _, createCommentVNode as m, renderSlot as r, toDisplayString as C } from "vue";
1
+ import { defineComponent as v, mergeModels as V, useModel as B, computed as k, createBlock as y, openBlock as r, unref as a, withCtx as i, createVNode as n, createElementVNode as o, createElementBlock as _, createCommentVNode as m, renderSlot as d, toDisplayString as C } from "vue";
2
2
  import { TransitionRoot as h, Dialog as b, TransitionChild as c, DialogPanel as M } from "@headlessui/vue";
3
- import g from "./CrossOutButton.vue.js";
4
- const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInner" }, R = { class: "dpiV3_modalHead" }, w = { class: "editModalHeader" }, N = {
3
+ import R from "./CrossOutButton.vue.js";
4
+ const g = { class: "dpiV3_RapModalContainer" }, $ = { class: "dpiV3_RapModalInner" }, D = { class: "dpiV3_modalHead" }, w = { class: "editModalHeader" }, N = {
5
5
  key: 0,
6
6
  class: "dpiV3_closeButtonContainer"
7
7
  }, O = { class: "dpiV3_modalBody" }, E = {
8
8
  key: 0,
9
9
  class: "dpiV3_interactionWrap"
10
- }, S = /* @__PURE__ */ v({
10
+ }, P = /* @__PURE__ */ v({
11
11
  __name: "DpiModalBase",
12
12
  props: /* @__PURE__ */ V({
13
13
  persistent: { type: Boolean },
14
14
  hideCloseBtn: { type: Boolean },
15
15
  compactLayout: { type: Boolean },
16
- title: {}
16
+ title: {},
17
+ initialFocusRef: {}
17
18
  }, {
18
19
  modelValue: { type: Boolean },
19
20
  modelModifiers: {}
20
21
  }),
21
22
  emits: ["update:modelValue"],
22
- setup(d) {
23
- const p = d, u = B(d, "modelValue"), l = k({
23
+ setup(p) {
24
+ const l = p, u = B(p, "modelValue"), s = k({
24
25
  get() {
25
26
  return u.value;
26
27
  },
27
28
  set(e) {
28
- p.persistent && !e || (u.value = e);
29
+ l.persistent && !e || (u.value = e);
29
30
  }
30
31
  });
31
- return (e, t) => (s(), y(a(h), {
32
- show: l.value,
32
+ return (e, t) => (r(), y(a(h), {
33
+ show: s.value,
33
34
  as: "template",
34
35
  unmount: !1
35
36
  }, {
36
- default: n(() => [
37
- i(a(b), {
37
+ default: i(() => [
38
+ n(a(b), {
38
39
  style: { position: "relative", "z-index": "10000" },
39
40
  unmount: !1,
40
- onClose: t[1] || (t[1] = (f) => l.value = !1)
41
+ "initial-focus": l.initialFocusRef,
42
+ onClose: t[1] || (t[1] = (f) => s.value = !1)
41
43
  }, {
42
- default: n(() => [
43
- i(a(c), {
44
+ default: i(() => [
45
+ n(a(c), {
44
46
  enter: "dpiV3__backdrop-transition--enter",
45
47
  leave: "dpiV3__backdrop-transition--leave",
46
48
  "enter-from": "dpiV3__backdrop-transition--enter-from",
@@ -49,14 +51,14 @@ const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInne
49
51
  "leave-to": "dpiV3__backdrop-transition--leave-to",
50
52
  unmount: !1
51
53
  }, {
52
- default: n(() => t[2] || (t[2] = [
54
+ default: i(() => t[2] || (t[2] = [
53
55
  o("div", { class: "dpiV3_backdrop" }, null, -1)
54
56
  ])),
55
57
  _: 1,
56
58
  __: [2]
57
59
  }),
58
- o("div", $, [
59
- i(a(c), {
60
+ o("div", g, [
61
+ n(a(c), {
60
62
  enter: "dpiV3__modal-transition--enter",
61
63
  leave: "dpiV3__modal-transition--leave",
62
64
  "enter-from": "dpiV3__modal-transition--enter-from",
@@ -65,28 +67,28 @@ const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInne
65
67
  "leave-to": "dpiV3__modal-transition--leave-to",
66
68
  unmount: !1
67
69
  }, {
68
- default: n(() => [
69
- i(a(M), { class: "dpiV3_RapModalOuter" }, {
70
- default: n(() => [
71
- o("div", D, [
72
- o("div", R, [
73
- r(e.$slots, "header", {}, () => [
70
+ default: i(() => [
71
+ n(a(M), { class: "dpiV3_RapModalOuter" }, {
72
+ default: i(() => [
73
+ o("div", $, [
74
+ o("div", D, [
75
+ d(e.$slots, "header", {}, () => [
74
76
  o("h4", w, C(e.title) + " bearbeiten ", 1)
75
77
  ], !0),
76
- !p.persistent && !e.hideCloseBtn ? (s(), _("div", N, [
77
- i(g, {
78
+ !l.persistent && !e.hideCloseBtn ? (r(), _("div", N, [
79
+ n(R, {
78
80
  class: "dpiV3_closeButton",
79
81
  type: "default",
80
- onClick: t[0] || (t[0] = (f) => l.value = !1)
82
+ onClick: t[0] || (t[0] = (f) => s.value = !1)
81
83
  })
82
84
  ])) : m("", !0)
83
85
  ]),
84
86
  o("div", O, [
85
- r(e.$slots, "default", {}, void 0, !0)
87
+ d(e.$slots, "default", {}, void 0, !0)
86
88
  ])
87
89
  ]),
88
- e.compactLayout ? m("", !0) : (s(), _("div", E, [
89
- r(e.$slots, "footer", {}, void 0, !0)
90
+ e.compactLayout ? m("", !0) : (r(), _("div", E, [
91
+ d(e.$slots, "footer", {}, void 0, !0)
90
92
  ]))
91
93
  ]),
92
94
  _: 3
@@ -97,12 +99,12 @@ const $ = { class: "dpiV3_RapModalContainer" }, D = { class: "dpiV3_RapModalInne
97
99
  ])
98
100
  ]),
99
101
  _: 3
100
- })
102
+ }, 8, ["initial-focus"])
101
103
  ]),
102
104
  _: 3
103
105
  }, 8, ["show"]));
104
106
  }
105
107
  });
106
108
  export {
107
- S as default
109
+ P as default
108
110
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./DatasetForm.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb053e09"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8dca9b13"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,85 +1,98 @@
1
- import { defineComponent as F, watch as _, computed as k, createElementBlock as I, openBlock as B, createElementVNode as t, createVNode as l, mergeProps as R, unref as b, isRef as j, withCtx as A } from "vue";
2
- import { toTypedSchema as C } 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 E } from "vee-validate";
4
- import { useRouter as N } from "vue-router";
5
- import * as v from "zod";
6
- import P from "../Autocomplete/AutocompleteVocab.vue.js";
7
- import W from "../ButtonV3.vue.js";
8
- import H from "./RichOption.vue.js";
9
- const K = { class: "dpi-project-process-step V3-typography" }, O = { class: "step-section" }, T = { class: "step-section-actions" }, U = ["href"], X = /* @__PURE__ */ F({
1
+ import { defineComponent as B, watch as R, computed as a, createElementBlock as j, openBlock as A, createElementVNode as r, createVNode as l, mergeProps as C, unref as D, isRef as E, withCtx as v, toDisplayString as N } from "vue";
2
+ import { toTypedSchema as P } from "../../../../../../../node_modules/.pnpm/@vee-validate_zod@4.15.1_vue@3.5.18_typescript@5.8.3__zod@3.25.76/node_modules/@vee-validate/zod/dist/vee-validate-zod.js";
3
+ import { useForm as W } from "vee-validate";
4
+ import { useRouter as H } from "vue-router";
5
+ import * as g from "zod";
6
+ import K from "../Autocomplete/AutocompleteVocab.vue.js";
7
+ import L from "../ButtonV3.vue.js";
8
+ import O from "./RichOption.vue.js";
9
+ const T = { class: "dpi-project-process-step V3-typography" }, U = { class: "step-section" }, Z = { class: "step-section-actions" }, q = ["href"], ee = /* @__PURE__ */ B({
10
10
  __name: "DatasetForm",
11
11
  props: {
12
12
  exclude: { default: () => [] }
13
13
  },
14
14
  emits: ["submit"],
15
- setup(D, { emit: g }) {
16
- const z = D, S = g, V = v.object({ id: v.string() }), { defineField: a } = E({
17
- validationSchema: C(V),
15
+ setup(S, { emit: y }) {
16
+ const z = S, V = y, w = g.object({ id: g.string() }), { defineField: x } = W({
17
+ validationSchema: P(w),
18
18
  initialValues: { id: "" },
19
19
  name: "datasetForm"
20
- }), [r, w] = a("id");
21
- _(r, (m) => {
20
+ }), [s, F] = x("id");
21
+ R(s, (m) => {
22
22
  const n = String(m || "").trim();
23
- n && S("submit", { id: n });
23
+ n && (V("submit", { id: n }), s.value = void 0);
24
24
  });
25
- const x = N(), y = k(
26
- () => x.resolve({ name: "DataProviderInterface-Input", params: { property: "datasets" } }).href
25
+ const _ = H(), k = a(
26
+ () => _.resolve({ name: "DataProviderInterface-Input", params: { property: "datasets" } }).href
27
27
  );
28
- return (m, n) => (B(), I("div", K, [
29
- t("section", O, [
30
- n[1] || (n[1] = t("h5", null, "Wählen Sie einen bestehenden Datensatz", -1)),
31
- n[2] || (n[2] = t("p", null, "Falls der Datensatz schon in unserem System existiert, können Sie ihn hier auswählen.", -1)),
32
- l(P, R({
33
- modelValue: b(r),
34
- "onUpdate:modelValue": n[0] || (n[0] = (e) => j(r) ? r.value = e : null)
35
- }, b(w), {
28
+ return (m, n) => (A(), j("div", T, [
29
+ r("section", U, [
30
+ n[1] || (n[1] = r("h5", null, "Wählen Sie einen bestehenden Datensatz", -1)),
31
+ n[2] || (n[2] = r("p", null, "Falls der Datensatz schon in unserem System existiert, können Sie ihn hier auswählen.", -1)),
32
+ l(K, C({
33
+ modelValue: D(s),
34
+ "onUpdate:modelValue": n[0] || (n[0] = (e) => E(s) ? s.value = e : null)
35
+ }, D(F), {
36
36
  "base-url": "https://twin.bydata.de/api/hub/search",
37
37
  resource: "dataset",
38
38
  label: "",
39
39
  placeholder: "Wählen Sie einen Datensatz.",
40
40
  name: "dataset",
41
41
  "setup-fn": (e) => {
42
- var s, i, o, u, p, c, f, h, d;
42
+ var i, o, u, p, c, f, h, b, d;
43
+ let t = (e == null ? void 0 : e.modified) || (e == null ? void 0 : e.issued);
44
+ try {
45
+ t = t ? new Date(t).toLocaleDateString() : "";
46
+ } catch (I) {
47
+ console.error(I), t = "";
48
+ }
43
49
  return {
44
50
  id: e == null ? void 0 : e.id,
45
- name: ((s = e == null ? void 0 : e.title) == null ? void 0 : s.de) || ((i = e == null ? void 0 : e.title) == null ? void 0 : i.en) || (e == null ? void 0 : e.id),
46
- description: ((o = e == null ? void 0 : e.description) == null ? void 0 : o.de) || ((u = e == null ? void 0 : e.description) == null ? void 0 : u.en),
47
- manufacturer: ((c = (p = e == null ? void 0 : e.publisher) == null ? void 0 : p.name) == null ? void 0 : c.de) || ((h = (f = e == null ? void 0 : e.publisher) == null ? void 0 : f.name) == null ? void 0 : h.en) || ((d = e == null ? void 0 : e.publisher) == null ? void 0 : d.name),
48
- unavailable: z.exclude.includes(e == null ? void 0 : e.id)
51
+ name: ((i = e == null ? void 0 : e.title) == null ? void 0 : i.de) || ((o = e == null ? void 0 : e.title) == null ? void 0 : o.en) || (e == null ? void 0 : e.id),
52
+ description: ((u = e == null ? void 0 : e.description) == null ? void 0 : u.de) || ((p = e == null ? void 0 : e.description) == null ? void 0 : p.en),
53
+ manufacturer: ((f = (c = e == null ? void 0 : e.publisher) == null ? void 0 : c.name) == null ? void 0 : f.de) || ((b = (h = e == null ? void 0 : e.publisher) == null ? void 0 : h.name) == null ? void 0 : b.en) || ((d = e == null ? void 0 : e.publisher) == null ? void 0 : d.name),
54
+ unavailable: z.exclude.includes(e == null ? void 0 : e.id),
55
+ date: t
49
56
  };
50
57
  }
51
58
  }), {
52
- option: A(({ option: e, active: s, selected: i, disabled: o }) => [
53
- l(H, {
59
+ option: v(({ option: e, active: t, selected: i, disabled: o }) => [
60
+ l(O, {
54
61
  name: e.name,
55
62
  manufacturer: e.manufacturer,
56
63
  description: e.description,
57
- active: s,
64
+ active: t,
58
65
  selected: i,
59
- disabled: o
60
- }, null, 8, ["name", "manufacturer", "description", "active", "selected", "disabled"])
66
+ disabled: o,
67
+ date: e.date
68
+ }, {
69
+ meta: v(() => [
70
+ r("p", null, N(e.manufacturer), 1)
71
+ ]),
72
+ _: 2
73
+ }, 1032, ["name", "manufacturer", "description", "active", "selected", "disabled", "date"])
61
74
  ]),
62
75
  _: 1
63
76
  }, 16, ["modelValue", "setup-fn"]),
64
- n[3] || (n[3] = t("h5", null, "oder", -1)),
65
- n[4] || (n[4] = t("p", null, " Sollte der verwendete Datensatz noch nicht im Katalog verfügbar sein, legen Sie einen neuen Datensatz an. Der Datensatz kann zugeordnet werden, sobald er veröffentlicht ist. ", -1)),
66
- t("div", T, [
67
- t("a", {
68
- href: y.value,
77
+ n[3] || (n[3] = r("h5", null, "oder", -1)),
78
+ n[4] || (n[4] = r("p", null, " Sollte der verwendete Datensatz noch nicht im Katalog verfügbar sein, legen Sie einen neuen Datensatz an. Der Datensatz kann zugeordnet werden, sobald er veröffentlicht ist. ", -1)),
79
+ r("div", Z, [
80
+ r("a", {
81
+ href: k.value,
69
82
  target: "_blank",
70
83
  rel: "noopener noreferrer"
71
84
  }, [
72
- l(W, {
85
+ l(L, {
73
86
  "button-text": "Zur Datensatzanlage",
74
87
  size: "medium",
75
88
  variant: "secondary"
76
89
  })
77
- ], 8, U)
90
+ ], 8, q)
78
91
  ])
79
92
  ])
80
93
  ]));
81
94
  }
82
95
  });
83
96
  export {
84
- X as default
97
+ ee as default
85
98
  };
@@ -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-773a15be"]]);
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-af6c4f5f"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,45 +1,45 @@
1
- import { defineComponent as H, ref as M, computed as u, toRef as N, createBlock as l, openBlock as s, withCtx as i, createVNode as o, createElementBlock as f, createElementVNode as v, unref as d, isRef as T, Fragment as $, renderList as G, createCommentVNode as D, createTextVNode as m, toDisplayString as h } from "vue";
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";
2
2
  import { FormKit as S } from "@formkit/vue";
3
- import { schemaDataset as O } from "@piveau/sdk-core";
4
- import { defineHubSearch as E, dcatApDataset as F } from "@piveau/sdk-vue";
5
- import P from "../../../components/StepActionsSection.vue.js";
6
- import U from "../ActionCard.vue.js";
7
- import W from "../Card.vue.js";
8
- import _ from "../SummaryBox.vue.js";
9
- import L from "./AreYouSureToSkipCard.vue.js";
10
- import K from "./DatasetForm.vue.js";
11
- import j from "./ProcessStepBase.vue.js";
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";
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";
12
12
  /* empty css */
13
- import { useProcessStepResources as q, ensureHasOneResource as J } from "./utils.js";
14
- const Q = {
13
+ import { useProcessStepResources as j, ensureHasOneResource as q } from "./utils.js";
14
+ const J = {
15
15
  key: 0,
16
16
  class: "software-step__card-list--empty"
17
- }, X = {
17
+ }, Q = {
18
18
  key: 1,
19
19
  class: "software-step__card-list"
20
- }, Y = { class: "step-section step-section--lg" }, Z = { class: "" }, pe = /* @__PURE__ */ H({
20
+ }, X = { class: "step-section step-section--lg" }, Y = { class: "" }, ce = /* @__PURE__ */ C({
21
21
  __name: "DatasetStep",
22
22
  props: {
23
23
  stepGroup: {},
24
24
  edit: { type: Boolean }
25
25
  },
26
26
  setup(b) {
27
- const x = b, r = M([]), { useResources: k } = E({
27
+ const y = b, s = H([]), { useResources: k } = O({
28
28
  baseUrl: "https://twin.bydata.de/api/hub/search",
29
29
  index: "dataset",
30
30
  indexDetails: "datasets",
31
- schema: O
31
+ schema: G
32
32
  }, (a, t) => {
33
- const { setup: e } = F({});
33
+ const { setup: e } = E({});
34
34
  return e(a, {
35
35
  ...t,
36
36
  currentLocale: "de"
37
37
  });
38
- }), V = k(u(() => r.value.map((a) => ({
38
+ }), V = k(d(() => s.value.map((a) => ({
39
39
  resourceId: a.id
40
- })))), y = u(() => r.value.map((a, t) => {
40
+ })))), c = d(() => s.value.map((a, t) => {
41
41
  var z;
42
- const e = (z = V.value[t]) == null ? void 0 : z.resultEnhanced, n = e == null ? void 0 : e.getPublisher, p = e == null ? void 0 : e.getModified, g = `${n == null ? void 0 : n.name}, ${p}`;
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 {
44
44
  // The ones that come from API
45
45
  id: (a == null ? void 0 : a.id) || (e == null ? void 0 : e.getId),
@@ -49,46 +49,47 @@ const Q = {
49
49
  };
50
50
  }));
51
51
  function w(a) {
52
- return r.value.findIndex((t) => t.id === a);
52
+ return s.value.findIndex((t) => t.id === a);
53
53
  }
54
54
  function R(a) {
55
55
  const t = w(a);
56
- t !== -1 && r.value.splice(t, 1);
56
+ t !== -1 && s.value.splice(t, 1);
57
57
  }
58
58
  function B(a) {
59
- r.value.push(a);
59
+ s.value.push(a);
60
60
  }
61
- const { count: c, realCount: C } = q(x.stepGroup || "", N(x.edit)), I = u(() => r.value.length > 0 ? "Weiter" : "Weiter ohne Datensätze"), A = u(() => r.value.length > 0 ? "primary" : "secondary");
62
- return (a, t) => (s(), l(j, {
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, {
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?",
66
66
  "remove-dialog-pre-text": "Möchten Sie den verwendeten Datensatz"
67
67
  }, {
68
68
  default: i(({ confirm: e }) => [
69
- o(d(S), {
70
- modelValue: d(c),
71
- "onUpdate:modelValue": t[0] || (t[0] = (n) => T(c) ? c.value = n : null),
69
+ o(u(S), {
70
+ modelValue: u(p),
71
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => 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: d(J) },
76
+ "validation-rules": { ensureHasOneResource: u(q) },
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." }
80
80
  }, null, 8, ["modelValue", "validation-rules"]),
81
- o(d(S), {
82
- modelValue: r.value,
83
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
81
+ o(u(S), {
82
+ modelValue: s.value,
83
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => s.value = n),
84
84
  name: "selected",
85
85
  type: "list",
86
86
  hidden: "",
87
87
  "aria-hidden": ""
88
88
  }, null, 8, ["modelValue"]),
89
- y.value.length ? (s(), f("section", X, [
90
- (s(!0), f($, null, G(y.value, (n, p) => (s(), l(U, {
91
- key: p,
89
+ c.value.length ? (r(), v("section", Q, [
90
+ (r(!0), v(T, null, $(c.value, (n, f) => (r(), l(P, {
91
+ key: f,
92
+ spaced: "",
92
93
  class: "software-card",
93
94
  "no-edit": !0,
94
95
  onDelete: (g) => e({
@@ -102,61 +103,62 @@ const Q = {
102
103
  m(" Datensatz ", -1)
103
104
  ])),
104
105
  default: i(() => [
105
- v("div", Y, [
106
- o(_, { title: "Name" }, {
106
+ D("div", X, [
107
+ o(x, { title: "Name" }, {
107
108
  default: i(() => [
108
- m(h(n.name), 1)
109
+ m(_(n.name), 1)
109
110
  ]),
110
111
  _: 2
111
112
  }, 1024),
112
- n.manufacturer ? (s(), l(_, {
113
+ n.manufacturer ? (r(), l(x, {
113
114
  key: 0,
114
115
  title: "Datenbereitsteller, Aktualisiert"
115
116
  }, {
116
117
  default: i(() => [
117
- m(h(n.manufacturer), 1)
118
+ m(_(n.manufacturer), 1)
118
119
  ]),
119
120
  _: 2
120
- }, 1024)) : D("", !0),
121
- n.description ? (s(), l(_, {
121
+ }, 1024)) : h("", !0),
122
+ n.description ? (r(), l(x, {
122
123
  key: 1,
123
124
  title: "Beschreibung"
124
125
  }, {
125
126
  default: i(() => [
126
- m(h(n.description), 1)
127
+ m(_(n.description), 1)
127
128
  ]),
128
129
  _: 2
129
- }, 1024)) : D("", !0)
130
+ }, 1024)) : h("", !0)
130
131
  ])
131
132
  ]),
132
133
  _: 2
133
134
  }, 1032, ["onDelete"]))), 128))
134
- ])) : (s(), f("section", Q, [
135
- o(W, {
135
+ ])) : (r(), v("section", J, [
136
+ o(U, {
136
137
  small: "",
137
138
  class: "empty-card"
138
139
  }, {
139
140
  default: i(() => t[2] || (t[2] = [
140
- v("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keinen Datensatz im Prozessschritt hinterlegt. ", -1)
141
+ D("p", { class: "copy-large-regular empty-card-text" }, " Aktuell haben Sie noch keinen Datensatz im Prozessschritt hinterlegt. ", -1)
141
142
  ])),
142
143
  _: 1,
143
144
  __: [2]
144
145
  })
145
146
  ])),
146
- o(K, {
147
- exclude: r.value.map((n) => n.id),
147
+ o(L, {
148
+ exclude: s.value.map((n) => n.id),
148
149
  onSubmit: B
149
150
  }, null, 8, ["exclude"]),
150
- v("section", Z, [
151
- o(P, {
151
+ D("section", Y, [
152
+ o(F, {
153
+ class: "software-step-actions",
152
154
  "next-text": I.value,
153
155
  "next-variant": A.value,
154
156
  "show-detailed-error-summary": ""
155
157
  }, null, 8, ["next-text", "next-variant"]),
156
- d(C) === 0 ? (s(), l(L, {
158
+ c.value.length === 0 ? (r(), l(W, {
157
159
  key: 0,
158
160
  "resource-label": "Datensätze"
159
- })) : D("", !0)
161
+ })) : h("", !0)
160
162
  ])
161
163
  ]),
162
164
  _: 1
@@ -164,5 +166,5 @@ const Q = {
164
166
  }
165
167
  });
166
168
  export {
167
- pe as default
169
+ ce as default
168
170
  };