@piveau/dpi 0.2.0-alpha.0 → 0.2.0-alpha.2
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +10 -11
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +5 -5
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +93 -36
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +23 -23
- package/dist/data-provider-interface/HappyFlowComponents/ui/Chip.vue.js +31 -28
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/DpiModalBase.vue2.js +4 -4
- package/dist/data-provider-interface/HappyFlowComponents/ui/Findability/DiscoverabilityStep.vue.js +59 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxDefinition.js +13 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue.js +50 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/ListBox/ListBoxFormKit.vue2.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue2.js +31 -0
- package/dist/data-provider-interface/components/ProgressSteps.vue.js +1 -1
- package/dist/data-provider-interface/components/ProgressSteps.vue2.js +23 -16
- package/dist/data-provider-interface/views/InputPageProject.vue.js +459 -285
- package/dist/images/stadt.png +0 -0
- package/dist/stories/components/DemoStepper.vue.js +2 -2
- package/dist/stories/components/DemoStepper.vue2.js +155 -98
- package/dist/stories/components/PartnerCard.vue.js +2 -2
- package/dist/stories/components/PartnerCard.vue2.js +15 -15
- 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
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-04b8afcf"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,104 +1,135 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useDpiStepper as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
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(
|
|
15
|
-
const
|
|
16
|
-
steps:
|
|
17
|
-
stepList:
|
|
18
|
-
visitedSteps:
|
|
19
|
-
stepPlugin:
|
|
20
|
-
goToNextStep:
|
|
21
|
-
goToPreviousStep:
|
|
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:
|
|
24
|
-
triggerValidationCurrentStep:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
isLast: O,
|
|
28
|
+
triggerValidationCurrentStep: R,
|
|
29
|
+
goToStep: T
|
|
30
|
+
} = z(), B = $(w);
|
|
31
|
+
function U(n) {
|
|
27
32
|
var o;
|
|
28
|
-
const
|
|
29
|
-
return
|
|
33
|
+
const e = (o = B.value) == null ? void 0 : o[n];
|
|
34
|
+
return e ? e.valid : !1;
|
|
30
35
|
}
|
|
31
|
-
const
|
|
36
|
+
const S = f(() => {
|
|
32
37
|
const n = {};
|
|
33
|
-
return
|
|
34
|
-
const
|
|
35
|
-
n[
|
|
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
|
|
39
|
-
const
|
|
40
|
-
return
|
|
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
|
-
|
|
43
|
-
function
|
|
44
|
-
|
|
47
|
+
f(() => Object.keys(S.value).filter((n) => j(n)));
|
|
48
|
+
function F() {
|
|
49
|
+
U(u.value) && D();
|
|
45
50
|
}
|
|
46
|
-
async function
|
|
47
|
-
|
|
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
|
|
50
|
-
|
|
51
|
-
n === "review" && (
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
58
|
-
checked:
|
|
59
|
-
"onUpdate:checked":
|
|
60
|
-
current:
|
|
61
|
-
"onUpdate:current":
|
|
62
|
-
steps:
|
|
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
|
-
|
|
78
|
+
t(i(d), {
|
|
65
79
|
id: "demo-stepper",
|
|
66
|
-
modelValue:
|
|
67
|
-
"onUpdate:modelValue":
|
|
80
|
+
modelValue: s.value,
|
|
81
|
+
"onUpdate:modelValue": e[3] || (e[3] = (o) => s.value = o),
|
|
68
82
|
type: "form",
|
|
69
|
-
plugins: [
|
|
83
|
+
plugins: [i(N)],
|
|
70
84
|
actions: !1,
|
|
71
85
|
onSubmit: () => {
|
|
72
86
|
}
|
|
73
87
|
}, {
|
|
74
|
-
default:
|
|
75
|
-
|
|
76
|
-
default:
|
|
77
|
-
|
|
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
|
-
|
|
82
|
-
default:
|
|
83
|
-
|
|
112
|
+
t(r, { name: "grundlegende-informationen/name" }, {
|
|
113
|
+
default: l(() => [
|
|
114
|
+
t(W)
|
|
84
115
|
]),
|
|
85
116
|
_: 1
|
|
86
117
|
}),
|
|
87
|
-
|
|
88
|
-
default:
|
|
89
|
-
|
|
118
|
+
t(r, { name: "grundlegende-informationen/description" }, {
|
|
119
|
+
default: l(() => [
|
|
120
|
+
t(Q)
|
|
90
121
|
]),
|
|
91
122
|
_: 1
|
|
92
123
|
}),
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
|
|
124
|
+
t(r, { name: "grundlegende-informationen/organisation" }, {
|
|
125
|
+
default: l(() => [
|
|
126
|
+
t(X)
|
|
96
127
|
]),
|
|
97
128
|
_: 1
|
|
98
129
|
}),
|
|
99
|
-
|
|
100
|
-
default:
|
|
101
|
-
|
|
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
|
-
|
|
111
|
-
default:
|
|
112
|
-
|
|
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
|
-
|
|
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
|
-
|
|
128
|
-
default:
|
|
129
|
-
|
|
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
|
-
|
|
138
|
-
default:
|
|
139
|
-
|
|
140
|
-
key:
|
|
141
|
-
values:
|
|
142
|
-
}, null, 8, ["values"])) :
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
e(
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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
|
-
|
|
223
|
+
Ce as default
|
|
167
224
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "./PartnerCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const d = /* @__PURE__ */ o(r, [["__scopeId", "data-v-d2bce4ed"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
d as default
|
|
7
7
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { defineComponent as l, createElementBlock as
|
|
2
|
-
import { FormKit as
|
|
3
|
-
import
|
|
4
|
-
const m = { class: "dpiV3_Card_Tips" },
|
|
1
|
+
import { defineComponent as l, createElementBlock as i, openBlock as d, renderSlot as o, createVNode as r, createElementVNode as p, unref as e } from "vue";
|
|
2
|
+
import { FormKit as n } from "@formkit/vue";
|
|
3
|
+
import a from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
|
|
4
|
+
const m = { class: "dpiV3_Card_Tips" }, s = { class: "action-container" }, v = /* @__PURE__ */ l({
|
|
5
5
|
__name: "PartnerCard",
|
|
6
6
|
setup(c) {
|
|
7
|
-
return (t, u) => (d(),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type: e(
|
|
7
|
+
return (t, u) => (d(), i("div", m, [
|
|
8
|
+
o(t.$slots, "default", {}, () => [
|
|
9
|
+
r(e(n), {
|
|
10
|
+
type: e(a),
|
|
11
11
|
name: "name",
|
|
12
12
|
"text-label": "Name",
|
|
13
13
|
validation: "required",
|
|
14
|
-
|
|
14
|
+
placeholder: "Enter text here"
|
|
15
15
|
}, null, 8, ["type"]),
|
|
16
|
-
|
|
17
|
-
type: e(
|
|
16
|
+
r(e(n), {
|
|
17
|
+
type: e(a),
|
|
18
18
|
name: "homepage",
|
|
19
19
|
"text-label": "Homepage",
|
|
20
20
|
validation: "url",
|
|
21
|
-
|
|
21
|
+
placeholder: "Enter text here"
|
|
22
22
|
}, null, 8, ["type"]),
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
p("div", s, [
|
|
24
|
+
o(t.$slots, "action", {}, void 0, !0)
|
|
25
25
|
])
|
|
26
26
|
], !0)
|
|
27
27
|
]));
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
v as default
|
|
32
32
|
};
|