@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
@@ -1,7 +1,7 @@
1
1
  import o from "./HardwareStep.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-23f59b4a"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-dd57c95a"]]);
5
5
  export {
6
- e as default
6
+ d as default
7
7
  };
@@ -1,56 +1,56 @@
1
- import { defineComponent as X, ref as S, computed as _, watch as Y, toRef as ee, createBlock as d, openBlock as i, withCtx as u, createVNode as v, createElementBlock as o, createElementVNode as H, unref as x, isRef as te, Fragment as f, renderList as y, createCommentVNode as p, createTextVNode as B, toDisplayString as m, nextTick as ne } from "vue";
1
+ import { defineComponent as Q, ref as x, computed as _, watch as X, toRef as Y, createBlock as d, openBlock as i, withCtx as u, createVNode as f, createElementBlock as o, createElementVNode as H, unref as S, isRef as ee, Fragment as v, renderList as y, createCommentVNode as p, createTextVNode as z, toDisplayString as m, nextTick as te } from "vue";
2
2
  import { FormKit as U } from "@formkit/vue";
3
- import { defineHubSearch as ie } from "@piveau/sdk-vue";
4
- import le from "zod";
5
- import re from "../../../components/StepActionsSection.vue.js";
6
- import oe from "../ActionCard.vue.js";
7
- import ae from "../Card.vue.js";
8
- import ue from "../Chip.vue.js";
9
- import se from "../DpiModalBase.vue.js";
3
+ import { defineHubSearch as ne } from "@piveau/sdk-vue";
4
+ import ie from "zod";
5
+ import le from "../../../components/StepActionsSection.vue.js";
6
+ import re from "../ActionCard.vue.js";
7
+ import oe from "../Card.vue.js";
8
+ import ae from "../Chip.vue.js";
9
+ import ue from "../DpiModalBase.vue.js";
10
10
  import c from "../SummaryBox.vue.js";
11
- import de from "./AreYouSureToSkipCard.vue.js";
11
+ import se from "./AreYouSureToSkipCard.vue.js";
12
12
  import $ from "./HardwareForm.vue.js";
13
- import me from "./ProcessStepBase.vue.js";
13
+ import de from "./ProcessStepBase.vue.js";
14
14
  /* empty css */
15
- import { looseRenderable as h, useProcessStepResources as pe, ensureHasOneResource as ce } from "./utils.js";
16
- const ve = {
15
+ import { looseRenderable as h, useProcessStepResources as me, ensureHasOneResource as pe } from "./utils.js";
16
+ const ce = {
17
17
  key: 0,
18
18
  class: "software-step__card-list--empty"
19
19
  }, fe = {
20
20
  key: 1,
21
21
  class: "software-step__card-list"
22
- }, ye = { class: "step-section step-section--lg" }, he = { class: "functionalities" }, Te = /* @__PURE__ */ X({
22
+ }, ve = { class: "step-section step-section--lg" }, ye = { class: "functionalities" }, Te = /* @__PURE__ */ Q({
23
23
  __name: "HardwareStep",
24
24
  props: {
25
25
  stepGroup: {},
26
26
  edit: { type: Boolean }
27
27
  },
28
28
  setup(O) {
29
- const z = O, k = S(!1), a = S([]), { useResources: F } = ie({
29
+ const I = O, w = x(!1), a = x([]), { useResources: F } = ne({
30
30
  baseUrl: "https://twin.bydata.de/api/hub/search",
31
31
  index: "resource",
32
32
  indexDetails: "resources/hardware",
33
- schema: le.any()
33
+ schema: ie.any()
34
34
  }, (e) => {
35
- var C, P, T, E, N, G;
36
- const n = String((e == null ? void 0 : e.id) || ""), r = String(((C = e == null ? void 0 : e.name) == null ? void 0 : C.de) || ((P = e == null ? void 0 : e.name) == null ? void 0 : P.en) || ""), t = (e == null ? void 0 : e.functionalities) || [], V = String(((E = (T = e == null ? void 0 : e.manufacturer) == null ? void 0 : T[0]) == null ? void 0 : E.label) || ""), l = String(((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((G = e == null ? void 0 : e.description) == null ? void 0 : G.en) || ""), s = String((e == null ? void 0 : e.version) || "");
35
+ var P, T, C, E, N, G;
36
+ const n = String((e == null ? void 0 : e.id) || ""), r = String(((P = e == null ? void 0 : e.name) == null ? void 0 : P.de) || ((T = e == null ? void 0 : e.name) == null ? void 0 : T.en) || ""), t = (e == null ? void 0 : e.functionalities) || [], B = String(((E = (C = e == null ? void 0 : e.manufacturer) == null ? void 0 : C[0]) == null ? void 0 : E.label) || ""), l = String(((N = e == null ? void 0 : e.description) == null ? void 0 : N.de) || ((G = e == null ? void 0 : e.description) == null ? void 0 : G.en) || ""), s = String((e == null ? void 0 : e.version) || "");
37
37
  return {
38
38
  id: n,
39
39
  name: r,
40
40
  functionalities: t,
41
- manufacturer: V,
41
+ manufacturer: B,
42
42
  description: l,
43
43
  version: s
44
44
  };
45
45
  }), A = F(_(() => a.value.map((e) => ({
46
46
  resourceId: e.id
47
- })))), I = _(() => a.value.map((e, n) => {
47
+ })))), g = _(() => a.value.map((e, n) => {
48
48
  var t;
49
49
  const r = (t = A.value[n]) == null ? void 0 : t.resultEnhanced;
50
50
  return {
51
51
  // The ones that come from API
52
52
  id: e.id || (r == null ? void 0 : r.id),
53
- name: (r == null ? void 0 : r.name) || e.id,
53
+ name: e.id === "--hardware-in-request--" && !(r != null && r.name) ? "Hardware in Beantragung" : (r == null ? void 0 : r.name) || e.id,
54
54
  manufacturer: r == null ? void 0 : r.manufacturer,
55
55
  version: r == null ? void 0 : r.version,
56
56
  // Comes from API as well? Todo
@@ -65,8 +65,8 @@ const ve = {
65
65
  isHostedByItems: h(e == null ? void 0 : e.isHostedBy),
66
66
  hosts: h(e == null ? void 0 : e.hosts)
67
67
  };
68
- })), w = S(""), W = _(() => a.value.find((e) => e.id === w.value)), b = S(0);
69
- Y(k, (e, n) => {
68
+ })), k = x(""), W = _(() => a.value.find((e) => e.id === k.value)), b = x(0);
69
+ X(w, (e, n) => {
70
70
  !e && n && b.value++;
71
71
  });
72
72
  function L(e) {
@@ -79,67 +79,69 @@ const ve = {
79
79
  const n = D(e);
80
80
  n !== -1 && a.value.splice(n, 1);
81
81
  }
82
- async function K(e) {
83
- L(e) && (w.value = e, b.value++, await ne(), k.value = !0);
82
+ async function q(e) {
83
+ L(e) && (k.value = e, b.value++, await te(), w.value = !0);
84
84
  }
85
85
  function R(e) {
86
- a.value.push(e), k.value = !1, w.value = "";
86
+ a.value.push(e), w.value = !1, k.value = "";
87
87
  }
88
- function Z(e) {
88
+ function K(e) {
89
89
  const n = D(e.id);
90
- n !== -1 && (a.value.splice(n, 1), a.value.splice(n, 0, e.hardware), w.value = "", k.value = !1);
90
+ n !== -1 && (a.value.splice(n, 1), a.value.splice(n, 0, e.hardware), k.value = "", w.value = !1);
91
91
  }
92
- function j() {
93
- k.value = !1;
92
+ function Z() {
93
+ w.value = !1;
94
94
  }
95
- const q = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), J = _(() => a.value.length > 0 ? "primary" : "secondary"), { count: g, realCount: Q } = pe(z.stepGroup || "", ee(z.edit));
96
- return (e, n) => (i(), d(me, {
95
+ const j = _(() => a.value.length > 0 ? "Weiter" : "Weiter ohne Hardware"), J = _(() => "primary"), { count: V } = me(I.stepGroup || "", Y(I.edit));
96
+ return (e, n) => (i(), d(de, {
97
97
  title: "Geben Sie Informationen zur verwendeten Hardware an",
98
98
  subtitle: "Die Hardware wird zentral von uns verwaltet. Sie können in diesem Schritt auswählen, welche Hardware Sie verwendet haben. Sobald Sie eine Hardware zugeordnet haben, geben Sie bitte an, wie die Hardware in diesem Schritt eingesetzt wurde."
99
99
  }, {
100
100
  default: u(({ confirm: r }) => [
101
- v(x(U), {
102
- modelValue: x(g),
103
- "onUpdate:modelValue": n[0] || (n[0] = (t) => te(g) ? g.value = t : null),
101
+ f(S(U), {
102
+ modelValue: S(V),
103
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => ee(V) ? V.value = t : null),
104
104
  type: "hidden",
105
105
  name: "__resourceCount",
106
106
  hidden: "",
107
107
  "aria-hidden": "",
108
- "validation-rules": { ensureHasOneResource: x(ce) },
108
+ "validation-rules": { ensureHasOneResource: S(pe) },
109
109
  validation: "+ensureHasOneResource",
110
110
  "validation-visibility": "live",
111
111
  "validation-messages": { ensureHasOneResource: "Sie müssen pro Schritt mindestens eine Software, einen Datensatz oder eine Hardware zuordnen, um fortfahren zu können." }
112
112
  }, null, 8, ["modelValue", "validation-rules"]),
113
- v(x(U), {
113
+ f(S(U), {
114
114
  modelValue: a.value,
115
115
  "onUpdate:modelValue": n[1] || (n[1] = (t) => a.value = t),
116
116
  name: "selected",
117
117
  type: "list",
118
118
  hidden: ""
119
119
  }, null, 8, ["modelValue"]),
120
- I.value.length ? (i(), o("section", fe, [
121
- (i(!0), o(f, null, y(I.value, (t, V) => (i(), d(oe, {
122
- key: V,
120
+ g.value.length ? (i(), o("section", fe, [
121
+ (i(!0), o(v, null, y(g.value, (t, B) => (i(), d(re, {
122
+ key: B,
123
+ spaced: "",
123
124
  class: "software-card",
124
- onEdit: (l) => K(t.id),
125
+ onEdit: (l) => q(t.id),
125
126
  onDelete: (l) => r({ id: t.id || "", resourceType: "Hardware", resource: t.name, callback: M })
126
127
  }, {
127
128
  "standalone-name": u(() => n[5] || (n[5] = [
128
- B(" Hardware ", -1)
129
+ z(" Hardware ", -1)
129
130
  ])),
130
131
  default: u(() => [
131
- H("div", ye, [
132
- v(c, { title: "Name" }, {
132
+ H("div", ve, [
133
+ f(c, { title: "Name" }, {
133
134
  default: u(() => [
134
- B(m(t.name), 1)
135
+ z(m(t.name), 1)
135
136
  ]),
136
137
  _: 2
137
138
  }, 1024),
138
- v(c, { title: "Genutzte Funktionalitäten" }, {
139
+ f(c, { title: "Genutzte Funktionalitäten" }, {
139
140
  default: u(() => [
140
- H("div", he, [
141
- (i(!0), o(f, null, y(t.functionalities, (l) => (i(), d(ue, {
141
+ H("div", ye, [
142
+ (i(!0), o(v, null, y(t.functionalities, (l) => (i(), d(ae, {
142
143
  key: l,
144
+ "no-border": "",
143
145
  text: l,
144
146
  data: { "@value": "", URI: "" },
145
147
  setup: { "@type": "selected", "@search": !1, "@inTable": !1, "@findability": !0, "@static": !0 }
@@ -153,7 +155,7 @@ const ve = {
153
155
  title: "Beschreibung der Nutzung (optional)"
154
156
  }, {
155
157
  default: u(() => [
156
- B(m(t.description), 1)
158
+ z(m(t.description), 1)
157
159
  ]),
158
160
  _: 2
159
161
  }, 1024)) : p("", !0),
@@ -162,7 +164,7 @@ const ve = {
162
164
  title: "Host-Plattform (optional)"
163
165
  }, {
164
166
  default: u(() => [
165
- (i(!0), o(f, null, y(t.isHostedByItems, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
167
+ (i(!0), o(v, null, y(t.isHostedByItems, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
166
168
  ]),
167
169
  _: 2
168
170
  }, 1024)) : p("", !0),
@@ -171,7 +173,7 @@ const ve = {
171
173
  title: "Gehostete Geräte (optional)"
172
174
  }, {
173
175
  default: u(() => [
174
- (i(!0), o(f, null, y(t.hosts, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
176
+ (i(!0), o(v, null, y(t.hosts, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
175
177
  ]),
176
178
  _: 2
177
179
  }, 1024)) : p("", !0),
@@ -180,7 +182,7 @@ const ve = {
180
182
  title: "Zweck (optional)"
181
183
  }, {
182
184
  default: u(() => [
183
- (i(!0), o(f, null, y(t.forProperty, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
185
+ (i(!0), o(v, null, y(t.forProperty, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
184
186
  ]),
185
187
  _: 2
186
188
  }, 1024)) : p("", !0),
@@ -189,7 +191,7 @@ const ve = {
189
191
  title: "Standort (optional)"
190
192
  }, {
191
193
  default: u(() => [
192
- (i(!0), o(f, null, y(t.locations, (l, s) => (i(), o("div", { key: s }, m(`${l.lat} ${l.lng}`), 1))), 128))
194
+ (i(!0), o(v, null, y(t.locations, (l, s) => (i(), o("div", { key: s }, m(`${l.lat} ${l.lng}`), 1))), 128))
193
195
  ]),
194
196
  _: 2
195
197
  }, 1024)) : p("", !0),
@@ -198,7 +200,7 @@ const ve = {
198
200
  title: "Darstellungen (optional)"
199
201
  }, {
200
202
  default: u(() => [
201
- (i(!0), o(f, null, y(t.depictions, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
203
+ (i(!0), o(v, null, y(t.depictions, (l, s) => (i(), o("div", { key: s }, m(l), 1))), 128))
202
204
  ]),
203
205
  _: 2
204
206
  }, 1024)) : p("", !0),
@@ -207,7 +209,7 @@ const ve = {
207
209
  title: "Weiterführende Links (optional)"
208
210
  }, {
209
211
  default: u(() => [
210
- (i(!0), o(f, null, y(t.references, (l, s) => (i(), o("div", {
212
+ (i(!0), o(v, null, y(t.references, (l, s) => (i(), o("div", {
211
213
  key: s,
212
214
  class: "reference-item"
213
215
  }, [
@@ -222,8 +224,8 @@ const ve = {
222
224
  ]),
223
225
  _: 2
224
226
  }, 1032, ["onEdit", "onDelete"]))), 128))
225
- ])) : (i(), o("section", ve, [
226
- v(ae, {
227
+ ])) : (i(), o("section", ce, [
228
+ f(oe, {
227
229
  small: "",
228
230
  class: "empty-card"
229
231
  }, {
@@ -234,38 +236,39 @@ const ve = {
234
236
  __: [4]
235
237
  })
236
238
  ])),
237
- v($, {
239
+ f($, {
238
240
  exclude: a.value.map((t) => t.id),
239
241
  onSubmit: R
240
242
  }, null, 8, ["exclude"]),
241
243
  H("section", null, [
242
- v(re, {
243
- "next-text": q.value,
244
+ f(le, {
245
+ class: "software-step-actions",
246
+ "next-text": j.value,
244
247
  "next-variant": J.value,
245
248
  "show-detailed-error-summary": ""
246
249
  }, null, 8, ["next-text", "next-variant"]),
247
- x(Q) === 0 ? (i(), d(de, {
250
+ g.value.length === 0 ? (i(), d(se, {
248
251
  key: 0,
249
252
  "resource-label": "Hardware"
250
253
  })) : p("", !0)
251
254
  ]),
252
- v(se, {
253
- modelValue: k.value,
254
- "onUpdate:modelValue": n[3] || (n[3] = (t) => k.value = t),
255
+ f(ue, {
256
+ modelValue: w.value,
257
+ "onUpdate:modelValue": n[3] || (n[3] = (t) => w.value = t),
255
258
  "hide-close-btn": !0,
256
259
  "compact-layout": !0,
257
260
  title: "Hardware"
258
261
  }, {
259
262
  default: u(() => [
260
- w.value ? (i(), d($, {
263
+ k.value ? (i(), d($, {
261
264
  key: b.value,
262
- modelValue: w.value,
263
- "onUpdate:modelValue": n[2] || (n[2] = (t) => w.value = t),
265
+ modelValue: k.value,
266
+ "onUpdate:modelValue": n[2] || (n[2] = (t) => k.value = t),
264
267
  "initialize-with": W.value,
265
268
  exclude: a.value.map((t) => t.id),
266
269
  onSubmit: R,
267
- onPatch: Z,
268
- onClose: j
270
+ onPatch: K,
271
+ onClose: Z
269
272
  }, null, 8, ["modelValue", "initialize-with", "exclude"])) : p("", !0)
270
273
  ]),
271
274
  _: 1
@@ -1,7 +1,7 @@
1
- import { defineComponent as T, ref as _, reactive as k, watch as b, createElementBlock as r, openBlock as n, Fragment as a, createElementVNode as o, createVNode as c, renderSlot as p, toDisplayString as s, withCtx as d, createTextVNode as m } from "vue";
2
- import f from "../ButtonV3.vue.js";
3
- import D from "../DpiModalBase.vue.js";
4
- const V = { class: "dpi-project-process-step V3-typography" }, x = { class: "step-section" }, w = { class: "copy-large-regular" }, B = { class: "dpiV3_modalTitle deleteModalHeading" }, C = { class: "deleteModalText" }, P = { key: 0 }, M = { key: 1 }, S = { class: "dpiV3_modalActions" }, E = /* @__PURE__ */ T({
1
+ import { defineComponent as k, ref as m, reactive as b, watch as D, createElementBlock as n, openBlock as r, Fragment as a, createElementVNode as o, createVNode as c, renderSlot as d, toDisplayString as s, withCtx as p, createTextVNode as g } from "vue";
2
+ import v from "../ButtonV3.vue.js";
3
+ import V from "../DpiModalBase.vue.js";
4
+ const x = { class: "dpi-project-process-step V3-typography" }, w = { class: "step-section" }, B = { class: "copy-large-regular" }, C = { class: "dpiV3_modalTitle deleteModalHeading" }, P = { class: "deleteModalText" }, M = { key: 0 }, S = { key: 1 }, $ = { class: "dpiV3_modalActions" }, A = /* @__PURE__ */ k({
5
5
  __name: "ProcessStepBase",
6
6
  props: {
7
7
  title: {},
@@ -10,8 +10,8 @@ const V = { class: "dpi-project-process-step V3-typography" }, x = { class: "ste
10
10
  removeDialogPreText: {},
11
11
  removeDialogPostText: {}
12
12
  },
13
- setup(v) {
14
- const i = v, g = _(!1), e = k({
13
+ setup(h) {
14
+ const i = h, y = m(!1), u = m(null), e = b({
15
15
  id: "",
16
16
  callback: () => {
17
17
  },
@@ -20,58 +20,67 @@ const V = { class: "dpi-project-process-step V3-typography" }, x = { class: "ste
20
20
  open: !1,
21
21
  persistent: !1
22
22
  });
23
- function h(t) {
23
+ function T(t) {
24
24
  e.id = t.id, e.callback = t.callback, e.resourceType = t.resourceType || "Ressource", e.resource = t.resource || "", e.open = !0;
25
25
  }
26
- function y() {
26
+ function _() {
27
27
  e.callback(e.id), e.open = !1;
28
28
  }
29
- return b(() => e.open, (t) => {
29
+ return D(() => e.open, (t) => {
30
30
  t || (e.open = !1);
31
- }), (t, l) => (n(), r(a, null, [
32
- o("div", V, [
33
- o("section", x, [
34
- p(t.$slots, "title", {}, () => [
31
+ }), (t, l) => (r(), n(a, null, [
32
+ o("div", x, [
33
+ o("section", w, [
34
+ d(t.$slots, "title", {}, () => [
35
35
  o("h4", null, s(t.title), 1)
36
36
  ]),
37
- p(t.$slots, "subtitle", {}, () => [
38
- o("p", w, s(t.subtitle), 1)
37
+ d(t.$slots, "subtitle", {}, () => [
38
+ o("p", B, s(t.subtitle), 1)
39
39
  ])
40
40
  ]),
41
- p(t.$slots, "default", { confirm: h })
41
+ d(t.$slots, "default", { confirm: T })
42
42
  ]),
43
- c(D, {
43
+ c(V, {
44
44
  modelValue: e.open,
45
- "onUpdate:modelValue": l[1] || (l[1] = (u) => e.open = u),
46
- persistent: !g.value
45
+ "onUpdate:modelValue": l[1] || (l[1] = (f) => e.open = f),
46
+ persistent: !y.value,
47
+ "initial-focus-ref": u.value
47
48
  }, {
48
- header: d(() => [
49
- o("h2", B, [
50
- i.removeDialogTitle ? (n(), r(a, { key: 0 }, [
51
- m(s(i.removeDialogTitle), 1)
52
- ], 64)) : (n(), r(a, { key: 1 }, [
53
- m(" Verwendete " + s(e.resourceType) + " löschen? ", 1)
49
+ header: p(() => [
50
+ o("h2", C, [
51
+ i.removeDialogTitle ? (r(), n(a, { key: 0 }, [
52
+ g(s(i.removeDialogTitle), 1)
53
+ ], 64)) : (r(), n(a, { key: 1 }, [
54
+ g(" Verwendete " + s(e.resourceType) + " löschen? ", 1)
54
55
  ], 64))
55
56
  ])
56
57
  ]),
57
- footer: d(() => [
58
- o("div", S, [
59
- c(f, {
58
+ footer: p(() => [
59
+ o("div", $, [
60
+ c(v, {
60
61
  "button-text": "Abbrechen",
61
62
  variant: "tertiary",
62
- onClick: l[0] || (l[0] = (u) => e.open = !1)
63
+ size: "large",
64
+ onClick: l[0] || (l[0] = (f) => e.open = !1)
63
65
  }),
64
- c(f, {
66
+ c(v, {
65
67
  "button-text": "Löschen",
66
68
  variant: "primary",
67
- onClick: y
69
+ size: "large",
70
+ onClick: _
68
71
  })
69
72
  ])
70
73
  ]),
71
- default: d(() => [
72
- o("div", C, [
74
+ default: p(() => [
75
+ o("span", {
76
+ ref_key: "hiddenFocusTarget",
77
+ ref: u,
78
+ tabindex: "-1",
79
+ class: "sr-only"
80
+ }, null, 512),
81
+ o("div", P, [
73
82
  o("p", null, [
74
- i.removeDialogPreText ? (n(), r("span", P, s(i.removeDialogPreText), 1)) : (n(), r("span", M, [
83
+ i.removeDialogPreText ? (r(), n("span", M, s(i.removeDialogPreText), 1)) : (r(), n("span", S, [
75
84
  o("span", null, " Möchten Sie die verwendete " + s(e.resourceType), 1)
76
85
  ])),
77
86
  o("strong", null, s(e.resource), 1),
@@ -80,10 +89,10 @@ const V = { class: "dpi-project-process-step V3-typography" }, x = { class: "ste
80
89
  ])
81
90
  ]),
82
91
  _: 1
83
- }, 8, ["modelValue", "persistent"])
92
+ }, 8, ["modelValue", "persistent", "initial-focus-ref"])
84
93
  ], 64));
85
94
  }
86
95
  });
87
96
  export {
88
- E as default
97
+ A as default
89
98
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RichOption.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-49ecf8b5"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4d9a3760"]]);
5
5
  export {
6
- f as default
6
+ i as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, createElementBlock as c, openBlock as r, normalizeClass as d, createElementVNode as t, renderSlot as s, createTextVNode as a, toDisplayString as i } from "vue";
2
- const p = ["title"], u = { class: "rich-option__head" }, _ = { class: "copy-large-semi-bold" }, m = { class: "copy-large-semi-bold" }, f = { class: "rich-option__body" }, h = { class: "copy-large-regular" }, v = /* @__PURE__ */ n({
1
+ import { defineComponent as c, createElementBlock as r, openBlock as d, normalizeClass as l, createElementVNode as t, renderSlot as s, createTextVNode as a, toDisplayString as o } from "vue";
2
+ const _ = ["title"], p = { class: "rich-option__head" }, h = { class: "rich-option__headline" }, u = { class: "copy-large-regular rich-option__meta" }, f = { class: "rich-option__manufacturer" }, m = { class: "rich-option__date" }, v = { class: "rich-option__body" }, y = { class: "copy-large-regular rich-option__body-text" }, B = /* @__PURE__ */ c({
3
3
  __name: "RichOption",
4
4
  props: {
5
5
  name: { default: "" },
@@ -7,36 +7,46 @@ const p = ["title"], u = { class: "rich-option__head" }, _ = { class: "copy-larg
7
7
  description: { default: "" },
8
8
  active: { type: Boolean, default: !1 },
9
9
  selected: { type: Boolean, default: !1 },
10
- isDisabled: { type: Boolean, default: !1 }
10
+ isDisabled: { type: Boolean, default: !1 },
11
+ date: { default: "" }
11
12
  },
12
- setup(l) {
13
- const e = l;
14
- return (o, y) => (r(), c("div", {
15
- class: d(["rich-option", { "rich-option--active": e.active, "rich-option--selected": e.selected, "rich-option--disabled": e.isDisabled }]),
13
+ setup(n) {
14
+ const e = n;
15
+ return (i, b) => (d(), r("div", {
16
+ class: l(["rich-option", { "rich-option--active": e.active, "rich-option--selected": e.selected, "rich-option--disabled": e.isDisabled }]),
16
17
  title: e.name
17
18
  }, [
18
- t("div", u, [
19
- t("span", _, [
20
- s(o.$slots, "name", {}, () => [
21
- a(i(e.name), 1)
22
- ], !0)
23
- ]),
24
- t("span", m, [
25
- s(o.$slots, "meta", {}, () => [
26
- a(i(e.manufacturer), 1)
27
- ], !0)
19
+ t("div", p, [
20
+ t("div", h, [
21
+ t("span", {
22
+ class: l(["copy-large-semi-bold rich-option__title", { "rich-option__title--three-line": e.date }])
23
+ }, [
24
+ s(i.$slots, "name", {}, () => [
25
+ a(o(e.name), 1)
26
+ ], !0)
27
+ ], 2),
28
+ t("div", u, [
29
+ t("div", f, [
30
+ t("span", null, [
31
+ s(i.$slots, "meta", {}, () => [
32
+ a(o(e.manufacturer), 1)
33
+ ], !0)
34
+ ])
35
+ ]),
36
+ t("div", m, o(e.date), 1)
37
+ ])
28
38
  ])
29
39
  ]),
30
- t("div", f, [
31
- t("span", h, [
32
- s(o.$slots, "default", {}, () => [
33
- a(i(e.description), 1)
40
+ t("div", v, [
41
+ t("span", y, [
42
+ s(i.$slots, "default", {}, () => [
43
+ a(o(e.description), 1)
34
44
  ], !0)
35
45
  ])
36
46
  ])
37
- ], 10, p));
47
+ ], 10, _));
38
48
  }
39
49
  });
40
50
  export {
41
- v as default
51
+ B as default
42
52
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SoftwareForm.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eda35876"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6a54c794"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };