@piveau/dpi 0.2.0-alpha.6 → 0.2.0-alpha.8

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 (68) 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/BasicInfosStep/ProjectDescriptionStep.vue.js +2 -2
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectStatusStep.vue.js +18 -21
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +49 -41
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ChipToggleList/ChipToggleList.vue2.js +30 -24
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +105 -133
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +7 -0
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +180 -0
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +3 -3
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +1 -1
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +63 -61
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +48 -39
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldFormKit.vue.js +40 -36
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField.vue.js +1 -1
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +8 -3
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +65 -37
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js +2 -2
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue2.js +21 -22
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +96 -93
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue.js +3 -3
  29. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/DatasetStep.vue2.js +59 -56
  30. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue.js +38 -0
  31. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/GetResource.vue2.js +4 -0
  32. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/ProcessStepsOverviewStep.vue.js +12 -12
  33. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue.js +1 -1
  34. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/SoftwareStep.vue2.js +32 -34
  35. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/InitiierenStep.vue.js +38 -33
  36. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/PlanenStep.vue.js +38 -32
  37. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/ProjektPhasenOverviewStep.vue.js +7 -7
  38. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/UmstezenStep.vue.js +36 -31
  39. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Projektphasen/WeiterdenkenStep.vue.js +35 -30
  40. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue.js +7 -0
  41. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ReviewStep/ReviewStep.vue2.js +1055 -0
  42. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/StateTag.vue.js +17 -13
  43. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue.js +1 -1
  44. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/SummaryBox.vue2.js +14 -10
  45. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TableRowV3.vue.js +84 -73
  46. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +2 -2
  47. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  48. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +70 -65
  49. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue.js +7 -0
  50. package/dist/packages/dpi/src/data-provider-interface/components/TheCancelConfirmationDialog.vue2.js +42 -0
  51. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue.js +7 -0
  52. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/ProjectDpiDevTools.vue2.js +249 -0
  53. package/dist/packages/dpi/src/data-provider-interface/components/dev-tools/fixtures.js +287 -0
  54. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/__tests__/fixtures/theProjectForm.js +281 -0
  55. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/decodeProject.js +244 -0
  56. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/encodeProject.js +330 -0
  57. package/dist/packages/dpi/src/data-provider-interface/composables/project-transformer/shared.js +37 -0
  58. package/dist/packages/dpi/src/data-provider-interface/schema/projectLdSchema.js +114 -0
  59. package/dist/packages/dpi/src/data-provider-interface/views/InputPageProject.vue.js +406 -371
  60. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +3 -3
  61. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +12 -11
  62. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  63. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +21 -16
  64. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  65. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +8 -6
  66. package/package.json +5 -2
  67. package/dist/packages/dpi/src/stories/components/MethodsCard.vue.js +0 -7
  68. package/dist/packages/dpi/src/stories/components/MethodsCard.vue2.js +0 -45
@@ -2,8 +2,8 @@
2
2
  /* empty css */
3
3
  import { createElementBlock as e, openBlock as s, normalizeClass as o, createCommentVNode as a, createElementVNode as i, toDisplayString as c } from "vue";
4
4
  import l from "../img/Ellipse2Published.svg.js";
5
- import m from "../img/Ellipse2Warning.svg.js";
6
- import n from "../img/Ellipse2Error.svg.js";
5
+ import n from "../img/Ellipse2Warning.svg.js";
6
+ import m from "../img/Ellipse2Error.svg.js";
7
7
  /* empty css */
8
8
  import _ from "../../../../../../_virtual/_plugin-vue_export-helper.js";
9
9
  const d = {
@@ -22,6 +22,10 @@ const d = {
22
22
  type: String,
23
23
  default: "table"
24
24
  // "table", "page", or other custom sizes
25
+ },
26
+ hasDotIcon: {
27
+ type: Boolean,
28
+ default: !0
25
29
  }
26
30
  },
27
31
  computed: {
@@ -32,33 +36,33 @@ const d = {
32
36
  return `state-tag--${this.size}`;
33
37
  }
34
38
  }
35
- }, p = {
39
+ }, u = {
36
40
  key: 0,
37
41
  class: "dot",
38
42
  src: l,
39
43
  alt: ""
40
- }, u = {
44
+ }, f = {
41
45
  key: 1,
42
46
  class: "dot",
43
- src: m,
47
+ src: n,
44
48
  alt: ""
45
- }, f = {
49
+ }, p = {
46
50
  key: 2,
47
51
  class: "dot",
48
- src: n,
52
+ src: m,
49
53
  alt: ""
50
54
  }, g = { class: "label" };
51
- function h(y, C, t, S, b, r) {
55
+ function h(y, b, t, C, S, r) {
52
56
  return s(), e("div", {
53
57
  class: o(["state-tag", [r.stateClass, r.sizeClass]])
54
58
  }, [
55
- t.state === "published" ? (s(), e("img", p)) : a("", !0),
56
- t.state === "draft" ? (s(), e("img", u)) : a("", !0),
57
- t.state === "error" ? (s(), e("img", f)) : a("", !0),
59
+ t.state === "published" && t.hasDotIcon ? (s(), e("img", u)) : a("", !0),
60
+ t.state === "draft" && t.hasDotIcon ? (s(), e("img", f)) : a("", !0),
61
+ t.state === "error" && t.hasDotIcon ? (s(), e("img", p)) : a("", !0),
58
62
  i("span", g, c(t.label), 1)
59
63
  ], 2);
60
64
  }
61
- const T = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-acd8463a"]]);
65
+ const E = /* @__PURE__ */ _(d, [["render", h], ["__scopeId", "data-v-65fb0446"]]);
62
66
  export {
63
- T as default
67
+ E as default
64
68
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SummaryBox.vue2.js";
2
2
  /* empty css */
3
3
  import m from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ m(o, [["__scopeId", "data-v-91940b27"]]);
4
+ const p = /* @__PURE__ */ m(o, [["__scopeId", "data-v-36d0d28b"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,23 +1,27 @@
1
- import { defineComponent as l, createElementBlock as a, openBlock as n, renderSlot as t, createElementVNode as o, createTextVNode as r, toDisplayString as s } from "vue";
2
- const i = { class: "summary-box" }, p = { class: "copy-large-regular" }, d = { class: "headline-5" }, _ = /* @__PURE__ */ l({
1
+ import { defineComponent as i, createElementBlock as o, openBlock as s, renderSlot as t, createCommentVNode as p, createTextVNode as r, toDisplayString as l, createElementVNode as d } from "vue";
2
+ const c = { class: "summary-box" }, m = {
3
+ key: 0,
4
+ class: "copy-large-regular"
5
+ }, u = { class: "headline-5" }, y = /* @__PURE__ */ i({
3
6
  __name: "SummaryBox",
4
7
  props: {
5
8
  title: {},
6
9
  text: {}
7
10
  },
8
- setup(c) {
9
- return (e, u) => (n(), a("div", i, [
11
+ setup(a) {
12
+ const n = a;
13
+ return (e, f) => (s(), o("div", c, [
10
14
  t(e.$slots, "title-wrapper", {}, () => [
11
- o("div", p, [
15
+ e.$slots.title || n.title ? (s(), o("div", m, [
12
16
  t(e.$slots, "title", {}, () => [
13
- r(s(e.title), 1)
17
+ r(l(e.title), 1)
14
18
  ], !0)
15
- ])
19
+ ])) : p("", !0)
16
20
  ], !0),
17
21
  t(e.$slots, "content-wrapper", {}, () => [
18
- o("div", d, [
22
+ d("div", u, [
19
23
  t(e.$slots, "default", {}, () => [
20
- r(s(e.text), 1)
24
+ r(l(e.text), 1)
21
25
  ], !0)
22
26
  ])
23
27
  ], !0)
@@ -25,5 +29,5 @@ const i = { class: "summary-box" }, p = { class: "copy-large-regular" }, d = { c
25
29
  }
26
30
  });
27
31
  export {
28
- _ as default
32
+ y as default
29
33
  };
@@ -1,5 +1,5 @@
1
- import { ref as u, watch as $, createElementBlock as N, openBlock as c, Fragment as F, createElementVNode as o, createBlock as v, createCommentVNode as g, withKeys as m, normalizeClass as H, withModifiers as b, unref as n, toDisplayString as x, isRef as T } from "vue";
2
- import _ from "./StateTag.vue.js";
1
+ import { ref as u, watch as $, createElementBlock as N, openBlock as c, Fragment as F, createElementVNode as o, createBlock as f, createCommentVNode as b, withKeys as h, normalizeClass as H, withModifiers as m, unref as n, toDisplayString as S, isRef as _ } from "vue";
2
+ import w from "./StateTag.vue.js";
3
3
  import L from "./Dropdown.vue.js";
4
4
  import j from "./ModalSimpleV3.vue.js";
5
5
  import q from "./Toast.vue.js";
@@ -8,8 +8,8 @@ import { useRouter as O } from "vue-router";
8
8
  import { useDpiUtils as W } from "../../composables/useDpiUtils.js";
9
9
  /* empty css */
10
10
  import G from "../../../../../../_virtual/_plugin-vue_export-helper.js";
11
- import { useDpiContext as S } from "../../composables/useDpiContext.js";
12
- const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescContainer" }, X = { class: "dpiV3_dsDesc" }, Y = { class: "dpiV3_TableRowStatus" }, Z = { class: "dpiV3_TableRowUpdated" }, ee = { class: "dpiV3_TableRowButtonWrap" }, te = {
11
+ import { useDpiContext as z } from "../../composables/useDpiContext.js";
12
+ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescContainer" }, X = { class: "dpiV3_dsDesc" }, Y = { class: "dpiV3_TableRowStatus" }, Z = { class: "dpiV3_TableRowUpdated" }, ee = { class: "dpiV3_TableRowStatus" }, te = { class: "dpiV3_TableRowButtonWrap" }, ae = {
13
13
  __name: "TableRowV3",
14
14
  props: {
15
15
  text: {
@@ -19,6 +19,9 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
19
19
  draft: {
20
20
  type: Boolean
21
21
  },
22
+ visibility: {
23
+ type: String
24
+ },
22
25
  date: {
23
26
  type: Object,
24
27
  required: !0
@@ -28,31 +31,31 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
28
31
  catalogue: String,
29
32
  dataset: Object
30
33
  },
31
- setup(z) {
32
- const h = J();
34
+ setup(g) {
35
+ const D = J();
33
36
  O();
34
- let r = u(!1), l = u(!1), f = u(!1), i = u({}), d = u({}), D = u({ edit: { fromDraft: !1 } });
35
- S() && (D = S());
36
- const s = z, { toEditMode: R } = W(), B = () => {
37
- const t = s.draft, e = s.catalogue, a = s.id || s.dataset.id || s.catalogue.id;
38
- R({ id: a, catalogId: e, isDraft: t, locale: "de" });
39
- }, C = (t, e, a, U) => {
40
- console.log(s.dataset), h.dispatch("auth/putDatasetToDraft", { id: t, catalog: e, title: a, description: U });
37
+ let l = u(!1), i = u(!1), p = u(!1), r = u({}), d = u({}), y = u({ edit: { fromDraft: !1 } });
38
+ z() && (y = z());
39
+ const a = g, { toEditMode: R } = W(), B = () => {
40
+ const t = a.draft, e = a.catalogue, s = a.id || a.dataset.id || a.catalogue.id;
41
+ R({ id: s, catalogId: e, isDraft: t, locale: "de" });
42
+ }, C = (t, e, s, U) => {
43
+ console.log(a.dataset), D.dispatch("auth/putDatasetToDraft", { id: t, catalog: e, title: s, description: U });
41
44
  }, M = (t, e) => {
42
- h.dispatch("auth/deleteUserDraftById", { id: t, catalog: e });
45
+ D.dispatch("auth/deleteUserDraftById", { id: t, catalog: e });
43
46
  }, A = (t, e) => {
44
- h.dispatch("auth/publishUserDraftById", { id: t, catalog: e });
45
- }, E = () => {
46
- f.value = !1, setTimeout(() => {
47
- l.value = !1;
47
+ D.dispatch("auth/publishUserDraftById", { id: t, catalog: e });
48
+ }, I = () => {
49
+ p.value = !1, setTimeout(() => {
50
+ i.value = !1;
48
51
  }, 2e3);
49
52
  };
50
- $(l, (t) => {
53
+ $(i, (t) => {
51
54
  t && setTimeout(() => {
52
- f.value || (l.value = !1);
55
+ p.value || (i.value = !1);
53
56
  }, 2e3);
54
57
  });
55
- const I = () => s.draft ? [
58
+ const E = () => a.draft ? [
56
59
  { "@value": "Ansehen", selected: !1 },
57
60
  { "@value": "Bearbeiten", selected: !1 },
58
61
  { "@value": "Veröffentlichen", selected: !1 },
@@ -65,7 +68,7 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
65
68
  ], K = (t) => {
66
69
  switch (t) {
67
70
  case "publishDataset":
68
- A(s.id, s.catalogue), console.log("Datensatz wird veröffentlicht"), l.value = !0, d.value = {
71
+ A(a.id, a.catalogue), console.log("Datensatz wird veröffentlicht"), i.value = !0, d.value = {
69
72
  type: "success",
70
73
  text: "Der Datensatz wurde veröffentlicht",
71
74
  button: "Ansehen",
@@ -73,7 +76,7 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
73
76
  };
74
77
  break;
75
78
  case "deleteDataset":
76
- M(s.id, s.catalogue), l.value = !0, d.value = {
79
+ M(a.id, a.catalogue), i.value = !0, d.value = {
77
80
  type: "success",
78
81
  text: "Der Datensatz wurde erfolgreich gelöscht",
79
82
  button: "Rückgängig machen",
@@ -82,131 +85,139 @@ const P = { class: "dpiV3_tableRowInner" }, Q = { class: "dpiV3_TableRowDescCont
82
85
  break;
83
86
  case "setToDraft":
84
87
  C(
85
- s.dataset.id,
86
- s.dataset.catalog.id,
87
- s.dataset.title,
88
- s.dataset.description
89
- ), l.value = !0, d.value = {
88
+ a.dataset.id,
89
+ a.dataset.catalog.id,
90
+ a.dataset.title,
91
+ a.dataset.description
92
+ ), i.value = !0, d.value = {
90
93
  type: "success",
91
94
  text: "Der Datensatz wurde erfolgreich zu einem Entwurf zurückgesetzt",
92
95
  button: "Rückgängig machen",
93
96
  action: "revertToDraft"
94
97
  };
95
98
  }
96
- }, w = (t) => {
99
+ }, k = (t) => {
97
100
  let e = "";
98
101
  switch (typeof t == "string" ? e = t : e = t.target.innerText, e) {
99
102
  case "Bearbeiten":
100
103
  B();
101
104
  break;
102
105
  case "Veröffentlichen":
103
- i.value = {
106
+ r.value = {
104
107
  button: "Veröffentlichen",
105
108
  header: "Datensatz veröffentlichen",
106
109
  text: "Sind Sie sicher, dass Sie diesen Datensatz veröffentlichen möchten?",
107
110
  action: "publishDataset"
108
- }, r.value = !0;
111
+ }, l.value = !0;
109
112
  break;
110
113
  case "Löschen":
111
- i.value = {
114
+ r.value = {
112
115
  button: "Ja, löschen",
113
116
  header: "Datensatz endgültig löschen",
114
117
  text: "Möchten Sie diesen Datensatz wirklich endgültig löschen? Diese Aktion kann nicht rückgängig gemacht werden. Alle damit verbundenen Daten werden entfernt.",
115
118
  action: "deleteDataset"
116
- }, r.value = !0;
119
+ }, l.value = !0;
117
120
  break;
118
121
  case "Veröffentlichung aufheben":
119
- i.value = {
122
+ r.value = {
120
123
  button: "Ja",
121
124
  header: "Veröffentlichung aufheben",
122
125
  text: "Sind Sie sicher, dass Sie diesen Datensatz zu einem Entwurf zurücksetzen möchten?",
123
126
  action: "setToDraft"
124
- }, r.value = !0;
127
+ }, l.value = !0;
125
128
  break;
126
129
  }
127
130
  };
128
- let p = u(!1);
129
- const k = (t, e) => {
130
- e ? p.value = !0 : p.value = !1;
131
- }, V = (t) => {
132
- t.target.className != "dpiV3_more-button dpiV3_activeState" && (p.value = !0);
133
- }, y = (t) => {
134
- t.target.className != "dpiV3_more-button dpiV3_activeState" && (p.value = !1);
131
+ let v = u(!1);
132
+ const V = (t, e) => {
133
+ e ? v.value = !0 : v.value = !1;
134
+ }, T = (t) => {
135
+ t.target.className != "dpiV3_more-button dpiV3_activeState" && (v.value = !0);
136
+ }, x = (t) => {
137
+ t.target.className != "dpiV3_more-button dpiV3_activeState" && (v.value = !1);
135
138
  };
136
139
  return (t, e) => (c(), N(F, null, [
137
140
  o("button", {
138
141
  class: H(["dpiV3_tableRowWrapper", {
139
- dpiV3_pressedTableRow: n(p),
140
- tRowInDraft: s.fromDraft
142
+ dpiV3_pressedTableRow: n(v),
143
+ tRowInDraft: a.fromDraft
141
144
  }]),
142
145
  onKeydown: [
143
- e[3] || (e[3] = m(b((a) => V(a), ["prevent"]), ["space"])),
144
- e[4] || (e[4] = m(b((a) => V(a), ["prevent"]), ["enter"]))
146
+ e[3] || (e[3] = h(m((s) => T(s), ["prevent"]), ["space"])),
147
+ e[4] || (e[4] = h(m((s) => T(s), ["prevent"]), ["enter"]))
145
148
  ],
146
149
  onKeyup: [
147
- e[5] || (e[5] = m((a) => y(a), ["space"])),
148
- e[6] || (e[6] = m((a) => y(a), ["enter"]))
150
+ e[5] || (e[5] = h((s) => x(s), ["space"])),
151
+ e[6] || (e[6] = h((s) => x(s), ["enter"]))
149
152
  ]
150
153
  }, [
151
154
  o("div", P, [
152
155
  o("div", {
153
156
  class: "dpiV3_tableRowContent",
154
- onMousedown: e[0] || (e[0] = b((a) => k(a, !0), ["prevent"])),
155
- onMouseup: e[1] || (e[1] = b((a) => k(a, !1), ["prevent"])),
156
- onClick: e[2] || (e[2] = (a) => w("Bearbeiten"))
157
+ onMousedown: e[0] || (e[0] = m((s) => V(s, !0), ["prevent"])),
158
+ onMouseup: e[1] || (e[1] = m((s) => V(s, !1), ["prevent"])),
159
+ onClick: e[2] || (e[2] = (s) => k("Bearbeiten"))
157
160
  }, [
158
161
  o("div", Q, [
159
- o("span", X, x(s.text), 1)
162
+ o("span", X, S(a.text), 1)
160
163
  ]),
161
164
  o("div", Y, [
162
- s.draft ? (c(), v(_, {
165
+ a.draft ? (c(), f(w, {
163
166
  key: 1,
164
167
  label: "Entwurf",
165
168
  state: "draft"
166
- })) : (c(), v(_, {
169
+ })) : (c(), f(w, {
167
170
  key: 0,
168
171
  label: "Freigegeben",
169
172
  state: "published"
170
173
  })),
171
- o("span", Z, " Updated am: " + x(s.date), 1)
174
+ o("span", Z, " Updated am: " + S(a.date), 1)
175
+ ]),
176
+ o("div", ee, [
177
+ g.visibility ? (c(), f(w, {
178
+ key: 0,
179
+ label: g.visibility,
180
+ state: a.draft ? "draft" : "published",
181
+ hasDotIcon: !1
182
+ }, null, 8, ["label", "state"])) : b("", !0)
172
183
  ])
173
184
  ], 32),
174
- o("div", ee, [
175
- n(D).edit.fromDraft ? g("", !0) : (c(), v(L, {
185
+ o("div", te, [
186
+ n(y).edit.fromDraft ? b("", !0) : (c(), f(L, {
176
187
  key: 0,
177
- onClick: w,
188
+ onClick: k,
178
189
  type: "moreButton",
179
190
  alignment: "right",
180
191
  text: {
181
192
  support: "This is a supporting message"
182
193
  },
183
- data: I()
194
+ data: E()
184
195
  }, null, 8, ["data"]))
185
196
  ])
186
197
  ])
187
198
  ], 34),
188
- n(r) ? (c(), v(j, {
199
+ n(l) ? (c(), f(j, {
189
200
  key: 0,
190
- buttons: n(i).button,
191
- headerText: n(i).header,
192
- text: n(i).text,
193
- onClose: e[7] || (e[7] = (a) => T(r) ? r.value = !1 : r = !1),
194
- action: n(i).action,
195
- onActionHandling: e[8] || (e[8] = (a) => K(a))
196
- }, null, 8, ["buttons", "headerText", "text", "action"])) : g("", !0),
197
- n(l) ? (c(), v(q, {
201
+ buttons: n(r).button,
202
+ headerText: n(r).header,
203
+ text: n(r).text,
204
+ onClose: e[7] || (e[7] = (s) => _(l) ? l.value = !1 : l = !1),
205
+ action: n(r).action,
206
+ onActionHandling: e[8] || (e[8] = (s) => K(s))
207
+ }, null, 8, ["buttons", "headerText", "text", "action"])) : b("", !0),
208
+ n(i) ? (c(), f(q, {
198
209
  key: 1,
199
210
  type: n(d).type,
200
211
  text: n(d).text,
201
212
  class: "dpiV3_tableToast",
202
213
  button: n(d).button,
203
214
  action: n(d).action,
204
- onMouseenter: e[9] || (e[9] = (a) => T(f) ? f.value = !0 : f = !0),
205
- onMouseleave: E
206
- }, null, 8, ["type", "text", "button", "action"])) : g("", !0)
215
+ onMouseenter: e[9] || (e[9] = (s) => _(p) ? p.value = !0 : p = !0),
216
+ onMouseleave: I
217
+ }, null, 8, ["type", "text", "button", "action"])) : b("", !0)
207
218
  ], 64));
208
219
  }
209
- }, pe = /* @__PURE__ */ G(te, [["__scopeId", "data-v-4aa67196"]]);
220
+ }, ve = /* @__PURE__ */ G(ae, [["__scopeId", "data-v-9f89e274"]]);
210
221
  export {
211
- pe as default
222
+ ve as default
212
223
  };
@@ -87,7 +87,7 @@ const R = { class: "dpiV3_input-field V3-typography" }, j = { class: "dpiV3_Inpu
87
87
  }
88
88
  function D() {
89
89
  const a = m.value;
90
- a.style.height = "auto", a.style.height = `${Math.min(a.scrollHeight, 372)}px`;
90
+ a.style.height = "268px", a.style.height = `${Math.min(a.scrollHeight, 372)}px`;
91
91
  }
92
92
  return (a, y) => (d(), c("div", R, [
93
93
  l("div", j, [
@@ -148,7 +148,7 @@ const R = { class: "dpiV3_input-field V3-typography" }, j = { class: "dpiV3_Inpu
148
148
  ])
149
149
  ]));
150
150
  }
151
- }, Z = /* @__PURE__ */ L(G, [["__scopeId", "data-v-85b71c6c"]]);
151
+ }, Z = /* @__PURE__ */ L(G, [["__scopeId", "data-v-609d64d4"]]);
152
152
  export {
153
153
  Z as default
154
154
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./StepActionsSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-74ea6547"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a83f996d"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as P, inject as B, ref as p, watch as z, toRef as E, computed as F, createElementBlock as c, openBlock as r, createElementVNode as d, createBlock as M, createCommentVNode as _, renderSlot as g, createVNode as i, normalizeStyle as I, withDirectives as x, vShow as y, withCtx as f, Fragment as A, renderList as D, toDisplayString as L, createTextVNode as R, unref as $, nextTick as K } from "vue";
2
- import { getNode as W, isNode as j } from "@formkit/core";
3
- import { getValidationMessages as J } from "@formkit/validation";
4
- import { PhExclamationMark as O } from "@phosphor-icons/vue";
5
- import { useFormValues as Z } from "../composables/useDpiFormValues.js";
6
- import v from "../HappyFlowComponents/ui/ButtonV3.vue.js";
7
- import q from "../HappyFlowComponents/ui/Card.vue.js";
8
- import { dpiStepperKey as G } from "../utils/injectionKeys.js";
9
- const H = { class: "step-actions-container" }, Q = { class: "step-actions" }, U = { class: "step-actions__prev-and-next" }, X = { class: "validation-errors" }, le = /* @__PURE__ */ P({
1
+ import { defineComponent as E, inject as z, 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 K, toDisplayString as _, 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";
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__ */ E({
10
10
  __name: "StepActionsSection",
11
11
  props: {
12
12
  hideCancel: { type: Boolean, default: !1 },
@@ -18,123 +18,128 @@ const H = { class: "step-actions-container" }, Q = { class: "step-actions" }, U
18
18
  nextText: { default: "Weiter" },
19
19
  nextVariant: { default: "primary" }
20
20
  },
21
- setup(Y) {
22
- const { formValues: C } = Z(), e = B(G);
21
+ emits: ["submit"],
22
+ setup(te, { emit: V }) {
23
+ const S = V, e = z(J);
23
24
  e || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
24
- function S(t) {
25
+ function T(t) {
25
26
  return t !== void 0;
26
27
  }
27
- const s = p(!1), a = p([]);
28
- function V(t) {
28
+ const l = d(!1), s = d(!1), a = d([]);
29
+ function N(t) {
29
30
  if (!t)
30
31
  return;
31
- const n = J(t);
32
- !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, k]) => k.map((w) => String(w.value))));
32
+ const n = q(t);
33
+ !n || n.size === 0 || (a.value = [...n.entries()].flatMap(([o, B]) => B.map((P) => String(P.value))));
33
34
  }
34
- e && z(e.activeStep, () => {
35
+ e && D(e.activeStep, () => {
35
36
  a.value.splice(0, a.value.length), s.value = !1;
36
37
  });
37
- const N = E(e == null ? void 0 : e.steps);
38
- function m(t) {
38
+ const b = M(e == null ? void 0 : e.steps);
39
+ function p(t) {
39
40
  var o;
40
- const n = (o = N.value) == null ? void 0 : o[t];
41
+ const n = (o = b.value) == null ? void 0 : o[t];
41
42
  return n ? n.valid : !1;
42
43
  }
43
- function T() {
44
- m((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
44
+ function k() {
45
+ p((e == null ? void 0 : e.activeStep.value) || "") && (e == null || e.goToNextStep());
45
46
  }
46
- function h() {
47
- window.alert("WIP");
47
+ function g() {
48
+ l.value = !0;
48
49
  }
49
- function l() {
50
+ function u() {
50
51
  e == null || e.goToPreviousStep();
51
52
  }
52
- const b = F(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
53
- async function u() {
54
- if (!S(e))
53
+ const w = A(() => e != null && e.activeStep.value ? W(e == null ? void 0 : e.activeStep.value) : null);
54
+ async function c() {
55
+ if (!T(e))
55
56
  return;
56
- e.triggerValidationCurrentStep(), await K();
57
- const t = b.value;
58
- if (t ? !m((e == null ? void 0 : e.activeStep.value) || "") : !1) {
59
- if (!j(t)) {
57
+ e.triggerValidationCurrentStep(), await U();
58
+ const t = w.value;
59
+ if (t ? !p((e == null ? void 0 : e.activeStep.value) || "") : !1) {
60
+ if (!Z(t)) {
60
61
  console.error("Current step node is not a FormKitNode", t);
61
62
  return;
62
63
  }
63
- V(t), s.value = !0;
64
+ N(t), s.value = !0;
64
65
  }
65
- e != null && e.isLast.value ? window.alert(`Form submitted: ${JSON.stringify(C.value, null, 2)}`) : T();
66
+ e != null && e.isLast.value ? S("submit") : k();
66
67
  }
67
- return (t, n) => (r(), c("div", H, [
68
- d("div", Q, [
69
- g(t.$slots, "default", {
70
- handleCancel: h,
71
- handlePrevious: l,
72
- handleSubmit: u
68
+ return (t, n) => (r(), f("div", Q, [
69
+ v("div", X, [
70
+ x(t.$slots, "default", {
71
+ handleCancel: g,
72
+ handlePrevious: u,
73
+ handleSubmit: c
73
74
  }, () => [
74
- i(v, {
75
- style: I({ opacity: t.hideCancel ? 0 : 1 }),
75
+ i(h, {
76
+ style: L({ opacity: t.hideCancel ? 0 : 1 }),
76
77
  variant: "tertiary",
77
78
  size: "large",
78
79
  type: "button",
79
80
  "button-text": t.cancelText,
80
- onClick: h
81
+ onClick: g
81
82
  }, null, 8, ["style", "button-text"]),
82
- d("div", U, [
83
- g(t.$slots, "prev-and-next", {
83
+ v("div", Y, [
84
+ x(t.$slots, "prev-and-next", {
84
85
  hidePrevious: t.hidePrevious,
85
86
  hideNext: t.hideNext,
86
87
  previousText: t.previousText,
87
88
  nextText: t.nextText,
88
- handlePrevious: l,
89
- handleSubmit: u
89
+ handlePrevious: u,
90
+ handleSubmit: c
90
91
  }, () => [
91
- x(i(v, {
92
+ y(i(h, {
92
93
  variant: "secondary",
93
94
  size: "large",
94
95
  type: "button",
95
96
  "button-text": t.previousText,
96
97
  "icon-start": "CaretLeft",
97
- onClick: l
98
+ onClick: u
98
99
  }, null, 8, ["button-text"]), [
99
- [y, !t.hidePrevious]
100
+ [C, !t.hidePrevious]
100
101
  ]),
101
- x(i(v, {
102
+ y(i(h, {
102
103
  size: "large",
103
104
  variant: t.nextVariant,
104
105
  type: "button",
105
106
  "button-text": t.nextText,
106
- "icon-end": "CaretRight",
107
- onClick: u
108
- }, null, 8, ["variant", "button-text"]), [
109
- [y, !t.hideNext]
107
+ "icon-end": t.nextText === "Als Entwurf Speichern" ? null : "CaretRight",
108
+ onClick: c
109
+ }, null, 8, ["variant", "button-text", "icon-end"]), [
110
+ [C, !t.hideNext]
110
111
  ])
111
112
  ], !0)
112
113
  ])
113
114
  ], !0)
114
115
  ]),
115
- s.value && a.value.length ? (r(), M(q, {
116
+ s.value && a.value.length ? (r(), F(H, {
116
117
  key: 0,
117
118
  variant: "error"
118
119
  }, {
119
- icon: f(() => [
120
- i($(O), {
120
+ icon: m(() => [
121
+ i(j(G), {
121
122
  size: 32,
122
123
  color: "currentColor"
123
124
  })
124
125
  ]),
125
- title: f(() => n[0] || (n[0] = [
126
- R(" Bitte korrigieren Sie die folgenden Fehler ", -1)
126
+ title: m(() => n[1] || (n[1] = [
127
+ $(" Bitte korrigieren Sie die folgenden Fehler ", -1)
127
128
  ])),
128
- default: f(() => [
129
- d("ul", X, [
130
- (r(!0), c(A, null, D(a.value, (o) => (r(), c("li", { key: o }, L(o), 1))), 128))
129
+ default: m(() => [
130
+ v("ul", ee, [
131
+ (r(!0), f(R, null, K(a.value, (o) => (r(), f("li", { key: o }, _(o), 1))), 128))
131
132
  ])
132
133
  ]),
133
134
  _: 1
134
- })) : _("", !0)
135
+ })) : I("", !0),
136
+ i(O, {
137
+ modelValue: l.value,
138
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o)
139
+ }, null, 8, ["modelValue"])
135
140
  ]));
136
141
  }
137
142
  });
138
143
  export {
139
- le as default
144
+ ce as default
140
145
  };