@piveau/dpi 0.2.0-alpha.0 → 0.2.0-alpha.1

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 (22) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +5 -5
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +93 -36
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +23 -23
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +31 -28
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +4 -4
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +59 -0
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +13 -0
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +50 -0
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue2.js +4 -0
  14. package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue.js +7 -0
  15. package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue2.js +25 -0
  16. package/dist/data-provider-interface/components/ProgressSteps.vue.js +1 -1
  17. package/dist/data-provider-interface/components/ProgressSteps.vue2.js +23 -16
  18. package/dist/data-provider-interface/views/InputPageProject.vue.js +458 -284
  19. package/dist/images/stadt.png +0 -0
  20. package/dist/stories/components/DemoStepper.vue.js +2 -2
  21. package/dist/stories/components/DemoStepper.vue2.js +155 -98
  22. package/package.json +1 -1
Binary file
@@ -1,7 +1,7 @@
1
1
  import o from "./DemoStepper.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0c28ca05"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-04b8afcf"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,104 +1,135 @@
1
- import { defineComponent as F, ref as f, toRef as O, computed as b, watch as T, createElementBlock as E, openBlock as y, createElementVNode as s, createVNode as e, toDisplayString as U, unref as r, isRef as k, withCtx as i, createBlock as q, createCommentVNode as J, nextTick as K } from "vue";
2
- import { FormKit as p } from "@formkit/vue";
3
- import l from "../../data-provider-interface/components/InputPageStep.vue.js";
4
- import L from "../../data-provider-interface/components/ProgressSteps.vue.js";
5
- import { useDpiStepper as $ } from "../../data-provider-interface/composables/useDpiStepper.js";
6
- import A from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js";
7
- import H from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js";
8
- import I from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js";
9
- import V from "../../data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js";
10
- import M from "./DemoStep.vue.js";
11
- import z from "./ReviewStepDemo.vue.js";
12
- const G = { class: "demo-stepper" }, Q = { style: { "margin-bottom": "1rem", padding: "1rem", background: "#f5f5f5", "border-radius": "8px" } }, W = { class: "dev-actions" }, se = /* @__PURE__ */ F({
1
+ import { defineComponent as L, ref as p, toRef as $, computed as f, watch as q, createElementBlock as H, openBlock as k, createElementVNode as a, createVNode as t, toDisplayString as J, unref as i, isRef as C, withCtx as l, createBlock as K, createCommentVNode as M, createTextVNode as A, nextTick as G } from "vue";
2
+ import { FormKit as d } from "@formkit/vue";
3
+ import r from "../../data-provider-interface/components/InputPageStep.vue.js";
4
+ import I from "../../data-provider-interface/components/ProgressSteps.vue.js";
5
+ import { useDpiStepper as z } from "../../data-provider-interface/composables/useDpiStepper.js";
6
+ import Q from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js";
7
+ import W from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js";
8
+ import X from "../../data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js";
9
+ import y from "../../data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js";
10
+ import Y from "../../data-provider-interface/HappyFlowComponents/ui/Card.vue.js";
11
+ import Z from "../../data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js";
12
+ import ee from "../../data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js";
13
+ import te from "../../data-provider-interface/HappyFlowComponents/ui/ListBox/Listbox.vue.js";
14
+ import _ from "./DemoStep.vue.js";
15
+ import ne from "./ReviewStepDemo.vue.js";
16
+ const oe = { class: "demo-stepper" }, le = { style: { "margin-bottom": "1rem", padding: "1rem", background: "#f5f5f5", "border-radius": "8px" } }, ie = { style: { display: "flex", "flex-direction": "column", gap: "2.5rem" } }, re = { class: "dev-actions" }, Ce = /* @__PURE__ */ L({
13
17
  __name: "DemoStepper",
14
- setup(X) {
15
- const a = f({}), {
16
- steps: _,
17
- stepList: c,
18
- visitedSteps: d,
19
- stepPlugin: x,
20
- goToNextStep: h,
21
- goToPreviousStep: w,
18
+ setup(ae) {
19
+ const s = p({}), {
20
+ steps: w,
21
+ stepList: v,
22
+ visitedSteps: m,
23
+ stepPlugin: N,
24
+ goToNextStep: D,
25
+ goToPreviousStep: P,
22
26
  current: u,
23
- isLast: C,
24
- triggerValidationCurrentStep: N
25
- } = $(), D = O(_);
26
- function P(n) {
27
+ isLast: O,
28
+ triggerValidationCurrentStep: R,
29
+ goToStep: T
30
+ } = z(), B = $(w);
31
+ function U(n) {
27
32
  var o;
28
- const t = (o = D.value) == null ? void 0 : o[n];
29
- return t ? t.valid : !1;
33
+ const e = (o = B.value) == null ? void 0 : o[n];
34
+ return e ? e.valid : !1;
30
35
  }
31
- const v = b(() => {
36
+ const S = f(() => {
32
37
  const n = {};
33
- return c.value.forEach((t) => {
34
- const m = t.split("/")[0];
35
- n[m] || (n[m] = []), n[m].push(t);
38
+ return v.value.forEach((e) => {
39
+ const g = e.split("/")[0];
40
+ n[g] || (n[g] = []), n[g].push(e);
36
41
  }), n;
37
42
  });
38
- function R(n) {
39
- const t = v.value[n] || [];
40
- return t.length > 0 && t.every((o) => d.value.includes(o));
43
+ function j(n) {
44
+ const e = S.value[n] || [];
45
+ return e.length > 0 && e.every((o) => m.value.includes(o));
41
46
  }
42
- b(() => Object.keys(v.value).filter((n) => R(n)));
43
- function j() {
44
- P(u.value) && h();
47
+ f(() => Object.keys(S.value).filter((n) => j(n)));
48
+ function F() {
49
+ U(u.value) && D();
45
50
  }
46
- async function B() {
47
- N(), await K(), C.value ? (console.log("Form submitted", a.value), window.alert(`Form submitted: ${JSON.stringify(a.value)}`)) : j();
51
+ async function h() {
52
+ R(), await G(), O.value ? (console.log("Form submitted", s.value), window.alert(`Form submitted: ${JSON.stringify(s.value)}`)) : F();
48
53
  }
49
- const g = f(!1), S = f(0);
50
- return T(u, (n) => {
51
- n === "review" && (g.value = !0, S.value++);
52
- }), (n, t) => (y(), E("div", G, [
53
- s("div", Q, [
54
- t[3] || (t[3] = s("strong", null, "Form Values:", -1)),
55
- s("pre", null, U(JSON.stringify(a.value, null, 2)), 1)
54
+ const b = p(!1), V = p(0);
55
+ q(u, (n) => {
56
+ n === "review" && (b.value = !0, V.value++);
57
+ });
58
+ const c = p(!1), E = f(() => v.value.map((n) => ({ id: n, name: n }))), x = f({
59
+ get() {
60
+ return { id: u.value, name: u.value };
61
+ },
62
+ set(n) {
63
+ T(n.id);
64
+ }
65
+ });
66
+ return (n, e) => (k(), H("div", oe, [
67
+ a("div", le, [
68
+ e[6] || (e[6] = a("strong", null, "Form Values:", -1)),
69
+ a("pre", null, J(JSON.stringify(s.value, null, 2)), 1)
56
70
  ]),
57
- e(L, {
58
- checked: r(d),
59
- "onUpdate:checked": t[0] || (t[0] = (o) => k(d) ? d.value = o : null),
60
- current: r(u),
61
- "onUpdate:current": t[1] || (t[1] = (o) => k(u) ? u.value = o : null),
62
- steps: r(c) || []
71
+ t(I, {
72
+ checked: i(m),
73
+ "onUpdate:checked": e[0] || (e[0] = (o) => C(m) ? m.value = o : null),
74
+ current: i(u),
75
+ "onUpdate:current": e[1] || (e[1] = (o) => C(u) ? u.value = o : null),
76
+ steps: i(v) || []
63
77
  }, null, 8, ["checked", "current", "steps"]),
64
- e(r(p), {
78
+ t(i(d), {
65
79
  id: "demo-stepper",
66
- modelValue: a.value,
67
- "onUpdate:modelValue": t[2] || (t[2] = (o) => a.value = o),
80
+ modelValue: s.value,
81
+ "onUpdate:modelValue": e[3] || (e[3] = (o) => s.value = o),
68
82
  type: "form",
69
- plugins: [r(x)],
83
+ plugins: [i(N)],
70
84
  actions: !1,
71
85
  onSubmit: () => {
72
86
  }
73
87
  }, {
74
- default: i(() => [
75
- e(l, { name: "auffindbarkeit" }, {
76
- default: i(() => [
77
- e(M)
88
+ default: l(() => [
89
+ t(r, { name: "auffindbarkeit" }, {
90
+ default: l(() => [
91
+ t(_),
92
+ t(Z, {
93
+ modelValue: c.value,
94
+ "onUpdate:modelValue": e[2] || (e[2] = (o) => c.value = o)
95
+ }, {
96
+ default: l(() => [
97
+ a("div", null, [
98
+ t(_)
99
+ ])
100
+ ]),
101
+ _: 1
102
+ }, 8, ["modelValue"])
103
+ ]),
104
+ _: 1
105
+ }),
106
+ t(r, { name: "findability/visibility" }, {
107
+ default: l(() => [
108
+ t(ee)
78
109
  ]),
79
110
  _: 1
80
111
  }),
81
- e(l, { name: "grundlegende-informationen/name" }, {
82
- default: i(() => [
83
- e(H)
112
+ t(r, { name: "grundlegende-informationen/name" }, {
113
+ default: l(() => [
114
+ t(W)
84
115
  ]),
85
116
  _: 1
86
117
  }),
87
- e(l, { name: "grundlegende-informationen/description" }, {
88
- default: i(() => [
89
- e(A)
118
+ t(r, { name: "grundlegende-informationen/description" }, {
119
+ default: l(() => [
120
+ t(Q)
90
121
  ]),
91
122
  _: 1
92
123
  }),
93
- e(l, { name: "grundlegende-informationen/organisation" }, {
94
- default: i(() => [
95
- e(I)
124
+ t(r, { name: "grundlegende-informationen/organisation" }, {
125
+ default: l(() => [
126
+ t(X)
96
127
  ]),
97
128
  _: 1
98
129
  }),
99
- e(l, { name: "grundlegende-informationen/discoverability" }, {
100
- default: i(() => [
101
- e(r(p), {
130
+ t(r, { name: "grundlegende-informationen/discoverability" }, {
131
+ default: l(() => [
132
+ t(i(d), {
102
133
  type: "text",
103
134
  label: "Name",
104
135
  name: "name",
@@ -107,15 +138,15 @@ const G = { class: "demo-stepper" }, Q = { style: { "margin-bottom": "1rem", pad
107
138
  ]),
108
139
  _: 1
109
140
  }),
110
- e(l, { name: "grundlegende-informationen/essentials" }, {
111
- default: i(() => [
112
- e(r(p), {
141
+ t(r, { name: "grundlegende-informationen/essentials" }, {
142
+ default: l(() => [
143
+ t(i(d), {
113
144
  type: "text",
114
145
  label: "Mail",
115
146
  name: "mail",
116
147
  validation: "required|email"
117
148
  }),
118
- e(r(p), {
149
+ t(i(d), {
119
150
  type: "text",
120
151
  label: "Homepage",
121
152
  name: "homepage",
@@ -124,9 +155,9 @@ const G = { class: "demo-stepper" }, Q = { style: { "margin-bottom": "1rem", pad
124
155
  ]),
125
156
  _: 1
126
157
  }),
127
- e(l, { name: "optinale-daten" }, {
128
- default: i(() => [
129
- e(r(p), {
158
+ t(r, { name: "optinale-daten" }, {
159
+ default: l(() => [
160
+ t(i(d), {
130
161
  type: "textarea",
131
162
  label: "Description",
132
163
  name: "description"
@@ -134,34 +165,60 @@ const G = { class: "demo-stepper" }, Q = { style: { "margin-bottom": "1rem", pad
134
165
  ]),
135
166
  _: 1
136
167
  }),
137
- e(l, { name: "review" }, {
138
- default: i(() => [
139
- g.value ? (y(), q(z, {
140
- key: S.value,
141
- values: a.value
142
- }, null, 8, ["values"])) : J("", !0)
168
+ t(r, { name: "review" }, {
169
+ default: l(() => [
170
+ b.value ? (k(), K(ne, {
171
+ key: V.value,
172
+ values: s.value
173
+ }, null, 8, ["values"])) : M("", !0)
143
174
  ]),
144
175
  _: 1
145
176
  })
146
177
  ]),
147
178
  _: 1
148
179
  }, 8, ["modelValue", "plugins"]),
149
- t[4] || (t[4] = s("hr", null, null, -1)),
150
- s("div", W, [
151
- e(V, {
152
- type: "button",
153
- "button-text": "Previous",
154
- onClick: r(w)
155
- }, null, 8, ["onClick"]),
156
- e(V, {
157
- type: "button",
158
- "button-text": "Next",
159
- onClick: B
160
- })
161
- ])
180
+ e[8] || (e[8] = a("hr", null, null, -1)),
181
+ t(Y, null, {
182
+ title: l(() => e[7] || (e[7] = [
183
+ A(" dev view ", -1)
184
+ ])),
185
+ default: l(() => [
186
+ a("div", ie, [
187
+ a("div", re, [
188
+ t(y, {
189
+ type: "button",
190
+ variant: "secondary",
191
+ "button-text": "Open Hologram",
192
+ onClick: e[4] || (e[4] = (o) => c.value = !0)
193
+ }),
194
+ t(y, {
195
+ type: "button",
196
+ variant: "secondary",
197
+ "button-text": "Previous",
198
+ onClick: i(P)
199
+ }, null, 8, ["onClick"]),
200
+ t(y, {
201
+ type: "button",
202
+ variant: "secondary",
203
+ "button-text": "Next",
204
+ onClick: h
205
+ })
206
+ ]),
207
+ a("div", null, [
208
+ t(te, {
209
+ modelValue: x.value,
210
+ "onUpdate:modelValue": e[5] || (e[5] = (o) => x.value = o),
211
+ label: "Go to step",
212
+ options: E.value
213
+ }, null, 8, ["modelValue", "options"])
214
+ ])
215
+ ])
216
+ ]),
217
+ _: 1
218
+ })
162
219
  ]));
163
220
  }
164
221
  });
165
222
  export {
166
- se as default
223
+ Ce as default
167
224
  };
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.0",
4
+ "version": "0.2.0-alpha.1",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css"