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

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.
@@ -1,7 +1,7 @@
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";
1
+ import { defineComponent as b, ref as g, reactive as D, watch as V, createElementBlock as r, openBlock as n, Fragment as c, createElementVNode as o, createVNode as d, renderSlot as p, toDisplayString as l, withCtx as u, createTextVNode as a } from "vue";
2
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({
3
+ import _ 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__ */ b({
5
5
  __name: "ProcessStepBase",
6
6
  props: {
7
7
  title: {},
@@ -10,8 +10,8 @@ const x = { class: "dpi-project-process-step V3-typography" }, w = { class: "ste
10
10
  removeDialogPreText: {},
11
11
  removeDialogPostText: {}
12
12
  },
13
- setup(h) {
14
- const i = h, y = m(!1), u = m(null), e = b({
13
+ setup(y) {
14
+ const i = y, T = g(!1), f = g(null), e = D({
15
15
  id: "",
16
16
  callback: () => {
17
17
  },
@@ -20,71 +20,71 @@ const x = { class: "dpi-project-process-step V3-typography" }, w = { class: "ste
20
20
  open: !1,
21
21
  persistent: !1
22
22
  });
23
- function T(t) {
23
+ function k(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 _() {
26
+ function h() {
27
27
  e.callback(e.id), e.open = !1;
28
28
  }
29
- return D(() => e.open, (t) => {
29
+ return V(() => e.open, (t) => {
30
30
  t || (e.open = !1);
31
- }), (t, l) => (r(), n(a, null, [
31
+ }), (t, s) => (n(), r(c, null, [
32
32
  o("div", x, [
33
33
  o("section", w, [
34
- d(t.$slots, "title", {}, () => [
35
- o("h4", null, s(t.title), 1)
34
+ p(t.$slots, "title", {}, () => [
35
+ o("h4", null, l(t.title), 1)
36
36
  ]),
37
- d(t.$slots, "subtitle", {}, () => [
38
- o("p", B, s(t.subtitle), 1)
37
+ p(t.$slots, "subtitle", {}, () => [
38
+ o("p", B, l(t.subtitle), 1)
39
39
  ])
40
40
  ]),
41
- d(t.$slots, "default", { confirm: T })
41
+ p(t.$slots, "default", { confirm: k })
42
42
  ]),
43
- c(V, {
43
+ d(_, {
44
44
  modelValue: e.open,
45
- "onUpdate:modelValue": l[1] || (l[1] = (f) => e.open = f),
46
- persistent: !y.value,
47
- "initial-focus-ref": u.value
45
+ "onUpdate:modelValue": s[1] || (s[1] = (m) => e.open = m),
46
+ persistent: !T.value,
47
+ "initial-focus-ref": f.value
48
48
  }, {
49
- header: p(() => [
49
+ header: u(() => [
50
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)
51
+ i.removeDialogTitle ? (n(), r(c, { key: 0 }, [
52
+ a(l(i.removeDialogTitle), 1)
53
+ ], 64)) : (n(), r(c, { key: 1 }, [
54
+ a(" Verwendete " + l(e.resourceType) + " löschen? ", 1)
55
55
  ], 64))
56
56
  ])
57
57
  ]),
58
- footer: p(() => [
58
+ footer: u(() => [
59
59
  o("div", $, [
60
- c(v, {
60
+ d(v, {
61
61
  "button-text": "Abbrechen",
62
62
  variant: "tertiary",
63
63
  size: "large",
64
- onClick: l[0] || (l[0] = (f) => e.open = !1)
64
+ onClick: s[0] || (s[0] = (m) => e.open = !1)
65
65
  }),
66
- c(v, {
66
+ d(v, {
67
67
  "button-text": "Löschen",
68
68
  variant: "primary",
69
69
  size: "large",
70
- onClick: _
70
+ onClick: h
71
71
  })
72
72
  ])
73
73
  ]),
74
- default: p(() => [
74
+ default: u(() => [
75
75
  o("span", {
76
76
  ref_key: "hiddenFocusTarget",
77
- ref: u,
77
+ ref: f,
78
78
  tabindex: "-1",
79
79
  class: "sr-only"
80
80
  }, null, 512),
81
81
  o("div", P, [
82
82
  o("p", null, [
83
- i.removeDialogPreText ? (r(), n("span", M, s(i.removeDialogPreText), 1)) : (r(), n("span", S, [
84
- o("span", null, " Möchten Sie die verwendete " + s(e.resourceType), 1)
85
- ])),
86
- o("strong", null, s(e.resource), 1),
87
- l[2] || (l[2] = o("span", null, " wirklich löschen? ", -1))
83
+ i.removeDialogPreText ? (n(), r("span", M, l(i.removeDialogPreText), 1)) : (n(), r("span", S, " Möchten Sie die verwendete " + l(e.resourceType), 1)),
84
+ s[2] || (s[2] = a(l(" "), -1)),
85
+ o("strong", null, l(e.resource), 1),
86
+ s[3] || (s[3] = a(l(" "), -1)),
87
+ s[4] || (s[4] = o("span", null, " wirklich löschen? ", -1))
88
88
  ])
89
89
  ])
90
90
  ]),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.2.0-alpha.30",
4
+ "version": "0.2.0-alpha.31",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",