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

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/AboutProject.vue.js +20 -17
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/DPIHome.vue.js +4 -4
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ProjectTable.vue.js +45 -44
  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/ButtonV3.vue.js +30 -29
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +119 -137
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +7 -0
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +189 -0
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +11 -11
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +25 -25
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +117 -117
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue.js +5 -72
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetForm.vue2.js +72 -2
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +22 -22
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +1 -1
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +9 -4
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +12 -12
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue.js +1 -1
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareForm.vue2.js +16 -15
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +31 -26
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +32 -26
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +7 -7
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +30 -25
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +67 -27
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +5 -932
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1053 -2
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +17 -13
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue.js +1 -1
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue2.js +14 -10
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +84 -73
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +41 -46
  38. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  39. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +41 -38
  40. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +2 -2
  41. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +22 -22
  42. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +158 -156
  43. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +1 -1
  44. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +6 -6
  45. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +1 -1
  46. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -12
  47. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  48. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +1 -0
  49. package/package.json +1 -1
  50. package/dist/packages/dpi/src/stories/components/MethodsCard.vue.js +0 -7
  51. package/dist/packages/dpi/src/stories/components/MethodsCard.vue2.js +0 -45
@@ -1,12 +1,12 @@
1
- import { defineComponent as z, inject as E, ref as d, watch as D, toRef as M, computed as A, createElementBlock as f, openBlock as r, createElementVNode as v, createBlock as F, createCommentVNode as I, createVNode as i, renderSlot as x, normalizeStyle as L, withDirectives as y, vShow as C, withCtx as m, Fragment as R, renderList as _, toDisplayString as K, createTextVNode as $, unref as j, nextTick as U } from "vue";
2
- import { getNode as W, isNode as Z } from "@formkit/core";
3
- import { getValidationMessages as q } from "@formkit/validation";
4
- import { PhExclamationMark as G } from "@phosphor-icons/vue";
1
+ import { defineComponent as z, inject as E, ref as d, watch as D, toRef as L, computed as M, createElementBlock as f, openBlock as r, normalizeClass as A, createElementVNode as v, createBlock as F, createCommentVNode as I, createVNode as i, renderSlot as x, normalizeStyle as R, withDirectives as C, vShow as y, withCtx as m, Fragment as K, renderList as $, toDisplayString as j, createTextVNode as U, unref as W, nextTick as Z } from "vue";
2
+ import { getNode as q, isNode as G } from "@formkit/core";
3
+ import { getValidationMessages as H } from "@formkit/validation";
4
+ import { PhExclamationMark as J } from "@phosphor-icons/vue";
5
5
  import h from "../HappyFlowComponents/ui/ButtonV3.vue.js";
6
- import H from "../HappyFlowComponents/ui/Card.vue.js";
7
- import { dpiStepperKey as J } from "../utils/injectionKeys.js";
8
- import O from "./TheCancelConfirmationDialog.vue.js";
9
- const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y = { class: "step-actions__prev-and-next" }, ee = { class: "validation-errors" }, ce = /* @__PURE__ */ z({
6
+ import O from "../HappyFlowComponents/ui/Card.vue.js";
7
+ import { dpiStepperKey as Q } from "../utils/injectionKeys.js";
8
+ import X from "./TheCancelConfirmationDialog.vue.js";
9
+ const Y = { class: "step-actions" }, _ = { class: "step-actions__prev-and-next" }, ee = { class: "validation-errors" }, ce = /* @__PURE__ */ z({
10
10
  __name: "StepActionsSection",
11
11
  props: {
12
12
  hideCancel: { type: Boolean, default: !1 },
@@ -16,11 +16,12 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
16
16
  cancelText: { default: "Abbrechen" },
17
17
  previousText: { default: "Zurück" },
18
18
  nextText: { default: "Weiter" },
19
- nextVariant: { default: "primary" }
19
+ nextVariant: { default: "primary" },
20
+ classList: {}
20
21
  },
21
22
  emits: ["submit"],
22
23
  setup(te, { emit: V }) {
23
- const S = V, e = E(J);
24
+ const S = V, e = E(Q);
24
25
  e || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
25
26
  function T(t) {
26
27
  return t !== void 0;
@@ -29,17 +30,17 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
29
30
  function N(t) {
30
31
  if (!t)
31
32
  return;
32
- const o = q(t);
33
- !o || o.size === 0 || (a.value = [...o.entries()].flatMap(([n, P]) => P.map((w) => String(w.value))));
33
+ const n = H(t);
34
+ !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, B]) => B.map((P) => String(P.value))));
34
35
  }
35
36
  e && D(e.activeStep, () => {
36
37
  a.value.splice(0, a.value.length), s.value = !1;
37
38
  });
38
- const b = M(e == null ? void 0 : e.steps);
39
+ const b = L(e == null ? void 0 : e.steps);
39
40
  function p(t) {
40
- var n;
41
- const o = (n = b.value) == null ? void 0 : n[t];
42
- return o ? o.valid : !1;
41
+ var o;
42
+ const n = (o = b.value) == null ? void 0 : o[t];
43
+ return n ? n.valid : !1;
43
44
  }
44
45
  function k() {
45
46
  p((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
@@ -50,14 +51,14 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
50
51
  function u() {
51
52
  e == null || e.goToPreviousStep();
52
53
  }
53
- const B = A(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
54
+ const w = M(() => e != null && e.activeStep.value ? q(e == null ? void 0 : e.activeStep.value) : null);
54
55
  async function c() {
55
56
  if (!T(e))
56
57
  return;
57
- e.triggerValidationCurrentStep(), await U();
58
- const t = B.value;
58
+ e.triggerValidationCurrentStep(), await Z();
59
+ const t = w.value;
59
60
  if (t ? !p((e == null ? void 0 : e.activeStep.value) || "") : !1) {
60
- if (!Z(t)) {
61
+ if (!G(t)) {
61
62
  console.error("Current step node is not a FormKitNode", t);
62
63
  return;
63
64
  }
@@ -65,22 +66,24 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
65
66
  }
66
67
  e != null && e.isLast.value ? S("submit") : k();
67
68
  }
68
- return (t, o) => (r(), f("div", Q, [
69
- v("div", X, [
69
+ return (t, n) => (r(), f("div", {
70
+ class: A([t.classList, "step-actions-container"])
71
+ }, [
72
+ v("div", Y, [
70
73
  x(t.$slots, "default", {
71
74
  handleCancel: g,
72
75
  handlePrevious: u,
73
76
  handleSubmit: c
74
77
  }, () => [
75
78
  i(h, {
76
- style: L({ opacity: t.hideCancel ? 0 : 1 }),
79
+ style: R({ opacity: t.hideCancel ? 0 : 1 }),
77
80
  variant: "tertiary",
78
81
  size: "large",
79
82
  type: "button",
80
83
  "button-text": t.cancelText,
81
84
  onClick: g
82
85
  }, null, 8, ["style", "button-text"]),
83
- v("div", Y, [
86
+ v("div", _, [
84
87
  x(t.$slots, "prev-and-next", {
85
88
  hidePrevious: t.hidePrevious,
86
89
  hideNext: t.hideNext,
@@ -89,7 +92,7 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
89
92
  handlePrevious: u,
90
93
  handleSubmit: c
91
94
  }, () => [
92
- y(i(h, {
95
+ C(i(h, {
93
96
  variant: "secondary",
94
97
  size: "large",
95
98
  type: "button",
@@ -97,47 +100,47 @@ const Q = { class: "step-actions-container" }, X = { class: "step-actions" }, Y
97
100
  "icon-start": "CaretLeft",
98
101
  onClick: u
99
102
  }, null, 8, ["button-text"]), [
100
- [C, !t.hidePrevious]
103
+ [y, !t.hidePrevious]
101
104
  ]),
102
- y(i(h, {
105
+ C(i(h, {
103
106
  size: "large",
104
107
  variant: t.nextVariant,
105
108
  type: "button",
106
109
  "button-text": t.nextText,
107
- "icon-end": "CaretRight",
110
+ "icon-end": t.nextText === "Als Entwurf Speichern" ? null : "CaretRight",
108
111
  onClick: c
109
- }, null, 8, ["variant", "button-text"]), [
110
- [C, !t.hideNext]
112
+ }, null, 8, ["variant", "button-text", "icon-end"]), [
113
+ [y, !t.hideNext]
111
114
  ])
112
115
  ], !0)
113
116
  ])
114
117
  ], !0)
115
118
  ]),
116
- s.value && a.value.length ? (r(), F(H, {
119
+ s.value && a.value.length ? (r(), F(O, {
117
120
  key: 0,
118
121
  variant: "error"
119
122
  }, {
120
123
  icon: m(() => [
121
- i(j(G), {
124
+ i(W(J), {
122
125
  size: 32,
123
126
  color: "currentColor"
124
127
  })
125
128
  ]),
126
- title: m(() => o[1] || (o[1] = [
127
- $(" Bitte korrigieren Sie die folgenden Fehler ", -1)
129
+ title: m(() => n[1] || (n[1] = [
130
+ U(" Bitte korrigieren Sie die folgenden Fehler ", -1)
128
131
  ])),
129
132
  default: m(() => [
130
133
  v("ul", ee, [
131
- (r(!0), f(R, null, _(a.value, (n) => (r(), f("li", { key: n }, K(n), 1))), 128))
134
+ (r(!0), f(K, null, $(a.value, (o) => (r(), f("li", { key: o }, j(o), 1))), 128))
132
135
  ])
133
136
  ]),
134
137
  _: 1
135
138
  })) : I("", !0),
136
- i(O, {
139
+ i(X, {
137
140
  modelValue: l.value,
138
- "onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n)
141
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o)
139
142
  }, null, 8, ["modelValue"])
140
- ]));
143
+ ], 2));
141
144
  }
142
145
  });
143
146
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./TheCancelConfirmationDialog.vue2.js";
2
2
  /* empty css */
3
3
  import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ a(o, [["__scopeId", "data-v-f89364fa"]]);
4
+ const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-22b07a20"]]);
5
5
  export {
6
- i as default
6
+ m as default
7
7
  };
@@ -1,36 +1,36 @@
1
- import { defineComponent as u, mergeModels as s, useModel as p, createBlock as f, openBlock as v, withCtx as t, createElementVNode as i, createVNode as a } from "vue";
2
- import r from "../HappyFlowComponents/ui/ButtonV3.vue.js";
3
- import V from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
4
- const k = /* @__PURE__ */ u({
1
+ import { defineComponent as s, mergeModels as m, useModel as p, createBlock as f, openBlock as v, withCtx as o, createElementVNode as l, createVNode as i } from "vue";
2
+ import a from "../HappyFlowComponents/ui/ButtonV3.vue.js";
3
+ import g from "../HappyFlowComponents/ui/DpiModalBase.vue.js";
4
+ const B = /* @__PURE__ */ s({
5
5
  __name: "TheCancelConfirmationDialog",
6
6
  props: {
7
7
  modelValue: { type: Boolean },
8
8
  modelModifiers: {}
9
9
  },
10
- emits: /* @__PURE__ */ s(["closeWithoutSaving", "closeWithSaving"], ["update:modelValue"]),
11
- setup(m, { emit: d }) {
12
- const l = d, n = p(m, "modelValue");
13
- return (C, e) => (v(), f(V, {
14
- modelValue: n.value,
15
- "onUpdate:modelValue": e[2] || (e[2] = (o) => n.value = o)
10
+ emits: /* @__PURE__ */ m(["closeWithoutSaving", "closeWithSaving"], ["update:modelValue"]),
11
+ setup(u, { emit: d }) {
12
+ const n = d, r = p(u, "modelValue");
13
+ return (V, e) => (v(), f(g, {
14
+ modelValue: r.value,
15
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => r.value = t)
16
16
  }, {
17
- header: t(() => e[3] || (e[3] = [
18
- i("h4", null, "Title", -1)
17
+ header: o(() => e[3] || (e[3] = [
18
+ l("h4", null, "Projektanlage später fortführen", -1)
19
19
  ])),
20
- footer: t(() => [
21
- a(r, {
22
- "button-text": "Cancel",
20
+ footer: o(() => [
21
+ i(a, {
22
+ "button-text": "Bearbeitung verwerfen",
23
23
  variant: "secondary",
24
- onClick: e[0] || (e[0] = (o) => l("closeWithoutSaving"))
24
+ onClick: e[0] || (e[0] = (t) => n("closeWithoutSaving"))
25
25
  }),
26
- a(r, {
27
- "button-text": "Confirm",
26
+ i(a, {
27
+ "button-text": "Projekt als Entwurf speichern",
28
28
  variant: "primary",
29
- onClick: e[1] || (e[1] = (o) => l("closeWithSaving"))
29
+ onClick: e[1] || (e[1] = (t) => n("closeWithSaving"))
30
30
  })
31
31
  ]),
32
- default: t(() => [
33
- e[4] || (e[4] = i("div", null, " body ", -1))
32
+ default: o(() => [
33
+ e[4] || (e[4] = l("div", null, " Sie können die Projektanlage später fortführen und Ihren bisherigen Fortschritt entweder verwerfen oder als Entwurf speichern. ", -1))
34
34
  ]),
35
35
  _: 1,
36
36
  __: [4]
@@ -38,5 +38,5 @@ const k = /* @__PURE__ */ u({
38
38
  }
39
39
  });
40
40
  export {
41
- k as default
41
+ B as default
42
42
  };