@piveau/dpi 0.1.0-twinby.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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +70 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +44 -15
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
- package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +94 -35
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +36 -0
- 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/TextArea/TextAreaDefinition.js +20 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +78 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue2.js +4 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +74 -55
- package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue.js +7 -0
- package/dist/data-provider-interface/HappyFlowComponents/ui/WipStep.vue2.js +25 -0
- package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +50 -43
- package/dist/data-provider-interface/components/InputPageStep.vue.js +3 -3
- 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/components/StepActionsSection.vue.js +7 -0
- package/dist/data-provider-interface/components/StepActionsSection.vue2.js +54 -0
- package/dist/data-provider-interface/composables/useDpiStepper.js +78 -68
- package/dist/data-provider-interface/utils/injectionKeys.js +0 -1
- package/dist/data-provider-interface/views/InputPageProject.vue.js +473 -287
- package/dist/images/stadt.png +0 -0
- package/dist/stories/components/DemoStep.vue.js +36 -32
- package/dist/stories/components/DemoStepper.vue.js +2 -2
- package/dist/stories/components/DemoStepper.vue2.js +154 -90
- package/package.json +3 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import t from "./TextAreaFormKit.vue.js";
|
|
2
|
+
const o = {
|
|
3
|
+
type: "text",
|
|
4
|
+
schema: [],
|
|
5
|
+
component: t,
|
|
6
|
+
props: [
|
|
7
|
+
"label",
|
|
8
|
+
"placeholder",
|
|
9
|
+
"disabled",
|
|
10
|
+
"showDeleteButton",
|
|
11
|
+
"hint",
|
|
12
|
+
"maxlength",
|
|
13
|
+
"help",
|
|
14
|
+
"countHint"
|
|
15
|
+
],
|
|
16
|
+
inheritAttrs: !0
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
o as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { defineComponent as k, computed as o, createBlock as B, openBlock as y } from "vue";
|
|
2
|
+
import E from "../TextAreaV3.vue.js";
|
|
3
|
+
const _ = /* @__PURE__ */ k({
|
|
4
|
+
__name: "TextAreaFormKit",
|
|
5
|
+
props: {
|
|
6
|
+
context: {},
|
|
7
|
+
maxlength: {}
|
|
8
|
+
},
|
|
9
|
+
setup(d) {
|
|
10
|
+
const t = d, a = t.maxlength || 500, s = o({
|
|
11
|
+
get: () => {
|
|
12
|
+
var e;
|
|
13
|
+
return ((e = t.context) == null ? void 0 : e._value) || "";
|
|
14
|
+
},
|
|
15
|
+
// set: (newValue: string) => {
|
|
16
|
+
// props.context?.node.input(newValue)
|
|
17
|
+
// },
|
|
18
|
+
set: (e) => {
|
|
19
|
+
var n;
|
|
20
|
+
const l = e.slice(0, a);
|
|
21
|
+
(n = t.context) == null || n.node.input(l);
|
|
22
|
+
}
|
|
23
|
+
}), p = o(() => {
|
|
24
|
+
var e;
|
|
25
|
+
return ((e = t.context) == null ? void 0 : e.label) || "";
|
|
26
|
+
}), x = o(() => {
|
|
27
|
+
var e;
|
|
28
|
+
return ((e = t.context) == null ? void 0 : e.placeholder) || "Enter text here...";
|
|
29
|
+
}), r = o(() => {
|
|
30
|
+
var e;
|
|
31
|
+
return ((e = t.context) == null ? void 0 : e.help) || "";
|
|
32
|
+
}), m = o(() => {
|
|
33
|
+
var e;
|
|
34
|
+
return ((e = t.context) == null ? void 0 : e.countHint) || "";
|
|
35
|
+
}), c = o(() => {
|
|
36
|
+
var e;
|
|
37
|
+
return Object.keys(((e = t.context) == null ? void 0 : e.messages) || {}).length > 0;
|
|
38
|
+
}), v = o(() => {
|
|
39
|
+
var l, n, u, i, h;
|
|
40
|
+
if (!c.value)
|
|
41
|
+
return "";
|
|
42
|
+
const e = (n = Object.keys(((l = t.context) == null ? void 0 : l.messages) || {})) == null ? void 0 : n[0];
|
|
43
|
+
return ((h = (i = (u = t.context) == null ? void 0 : u.messages) == null ? void 0 : i[e]) == null ? void 0 : h.value) || "";
|
|
44
|
+
}), g = o(() => {
|
|
45
|
+
var e;
|
|
46
|
+
return ((e = t.context) == null ? void 0 : e.disabled) || !1;
|
|
47
|
+
}), f = o(() => {
|
|
48
|
+
var e;
|
|
49
|
+
return ((e = t.context) == null ? void 0 : e.showDeleteButton) || !1;
|
|
50
|
+
}), b = o(() => {
|
|
51
|
+
var e;
|
|
52
|
+
return ((e = t.context) == null ? void 0 : e.hint) || !1;
|
|
53
|
+
}), w = () => {
|
|
54
|
+
s.value = "";
|
|
55
|
+
}, D = (e) => {
|
|
56
|
+
!["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab"].includes(e.key) && s.value.length >= a && e.preventDefault();
|
|
57
|
+
};
|
|
58
|
+
return (e, l) => (y(), B(E, {
|
|
59
|
+
modelValue: s.value,
|
|
60
|
+
"onUpdate:modelValue": l[0] || (l[0] = (n) => s.value = n),
|
|
61
|
+
label: p.value,
|
|
62
|
+
placeholder: x.value,
|
|
63
|
+
help: r.value,
|
|
64
|
+
isDisabled: g.value,
|
|
65
|
+
showError: c.value,
|
|
66
|
+
errorMessage: v.value,
|
|
67
|
+
showDeleteButton: f.value,
|
|
68
|
+
hint: b.value,
|
|
69
|
+
hintMessage: r.value,
|
|
70
|
+
countHint: m.value,
|
|
71
|
+
onDeleteClicked: w,
|
|
72
|
+
onKeydown: D
|
|
73
|
+
}, null, 8, ["modelValue", "label", "placeholder", "help", "isDisabled", "showError", "errorMessage", "showDeleteButton", "hint", "hintMessage", "countHint"]));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
export {
|
|
77
|
+
_ as default
|
|
78
|
+
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as a, watch as y, createElementBlock as c, openBlock as d, createElementVNode as l, createCommentVNode as p, createBlock as T, toDisplayString as v, normalizeStyle as C, normalizeClass as f, unref as n, withDirectives as S, vModelText as A } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
4
|
+
import H from "./TextButtonSmall.vue.js";
|
|
5
|
+
import { boolean as L } from "zod";
|
|
5
6
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
8
|
-
key:
|
|
9
|
-
class: "
|
|
10
|
-
},
|
|
7
|
+
import j from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const z = { class: "dpiV3_input-field V3-typography" }, N = { class: "dpiV3_InputFieldBase" }, R = { class: "dpiV3_InputWithLabel" }, O = { class: "dpiV3_Top" }, U = { class: "dpiV3_Label" }, W = { class: "dpiV3_label copy-small-regular" }, q = ["disabled", "placeholder"], G = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "dpiV3_errorText copy-small-regular"
|
|
11
|
+
}, J = {
|
|
11
12
|
__name: "TextAreaV3",
|
|
12
13
|
props: {
|
|
13
14
|
text: {
|
|
@@ -27,89 +28,107 @@ const N = { class: "dpiV3_input-field V3-typography" }, R = { class: "dpiV3_Inpu
|
|
|
27
28
|
placeholder: {},
|
|
28
29
|
hint: {},
|
|
29
30
|
modelValue: { type: String, default: "" },
|
|
30
|
-
showDeleteButton: { type: Boolean, default: !1 }
|
|
31
|
+
showDeleteButton: { type: Boolean, default: !1 },
|
|
32
|
+
errorMessage: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ""
|
|
35
|
+
},
|
|
36
|
+
hintMessage: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
countHint: {
|
|
41
|
+
type: L,
|
|
42
|
+
default: !1
|
|
43
|
+
}
|
|
31
44
|
},
|
|
32
45
|
emits: ["update:modelValue", "deleteClicked"],
|
|
33
46
|
setup(e, { emit: V }) {
|
|
34
|
-
let o =
|
|
35
|
-
const _ =
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
() =>
|
|
47
|
+
let o = a(!1), h = a(!1);
|
|
48
|
+
const _ = a(null);
|
|
49
|
+
let w = a(!1), t = a("inset 0 0 0 1px var(--neutral-30, #687178)"), u = a(!1), m = a(!1);
|
|
50
|
+
const s = e, r = a(s.modelValue), x = V;
|
|
51
|
+
y(
|
|
52
|
+
() => s.modelValue,
|
|
40
53
|
(i) => {
|
|
41
|
-
|
|
54
|
+
r.value = i;
|
|
42
55
|
}
|
|
43
|
-
),
|
|
44
|
-
|
|
56
|
+
), y(r, (i) => {
|
|
57
|
+
x("update:modelValue", i);
|
|
45
58
|
});
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
}, B = () => {
|
|
49
|
-
y.value = !1, n.value = !0, o.value = !0, t.value = "0 0 0 2px var(--blue-70, #009FE3)";
|
|
59
|
+
const g = () => {
|
|
60
|
+
x("deleteClicked");
|
|
50
61
|
}, E = () => {
|
|
51
|
-
|
|
62
|
+
w.value = !1, u.value = !0, o.value = !0, t.value = "0 0 0 2px var(--blue-70, #009FE3)";
|
|
63
|
+
}, B = () => {
|
|
64
|
+
u.value = !1, o.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)";
|
|
52
65
|
}, I = () => {
|
|
53
|
-
|
|
66
|
+
m.value = !0, t.value = "inset 0 0 0 1px var(--neutral-60, #687178)", u.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
67
|
+
}, M = () => {
|
|
68
|
+
m.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)", u.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
54
69
|
}, F = () => {
|
|
55
|
-
v.value = !1, t.value = "inset 0 0 0 1px var(--neutral-30, #687178)", n.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
56
|
-
}, D = () => {
|
|
57
70
|
o.value && (t.value = "0 0 0 2px var(--blue-70, #009FE3)");
|
|
58
|
-
},
|
|
71
|
+
}, k = () => {
|
|
59
72
|
t.value = "inset 0 0 0 2px var(--Focused)";
|
|
60
73
|
};
|
|
61
|
-
return (i,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
e.showDeleteButton ? (
|
|
74
|
+
return (i, b) => (d(), c("div", z, [
|
|
75
|
+
l("div", N, [
|
|
76
|
+
l("div", R, [
|
|
77
|
+
l("div", O, [
|
|
78
|
+
l("div", U, [
|
|
79
|
+
l("label", W, v(s.label), 1),
|
|
80
|
+
e.showDeleteButton ? (d(), T(H, {
|
|
68
81
|
key: 0,
|
|
69
82
|
buttonText: "löschen",
|
|
70
|
-
onClick:
|
|
83
|
+
onClick: g,
|
|
71
84
|
tabindex: "0"
|
|
72
|
-
})) :
|
|
85
|
+
})) : p("", !0)
|
|
73
86
|
])
|
|
74
87
|
]),
|
|
75
|
-
|
|
76
|
-
class:
|
|
88
|
+
l("div", {
|
|
89
|
+
class: f(["dpiV3_Input", {
|
|
77
90
|
dpiV3_disabled: e.isDisabled,
|
|
78
|
-
"error-state": e.showError && !
|
|
79
|
-
"focused-error-state": e.showError &&
|
|
80
|
-
"filled-error-state": e.showError &&
|
|
91
|
+
"error-state": e.showError && !n(o) && !n(h),
|
|
92
|
+
"focused-error-state": e.showError && n(o),
|
|
93
|
+
"filled-error-state": e.showError && n(h)
|
|
81
94
|
}]),
|
|
82
95
|
onMouseenter: I,
|
|
83
|
-
onMouseleave:
|
|
84
|
-
onMousedown:
|
|
85
|
-
style: C({ "box-shadow":
|
|
96
|
+
onMouseleave: M,
|
|
97
|
+
onMousedown: F,
|
|
98
|
+
style: C({ "box-shadow": n(t) })
|
|
86
99
|
}, [
|
|
87
|
-
S(
|
|
100
|
+
S(l("textarea", {
|
|
88
101
|
ref_key: "inputRef",
|
|
89
102
|
ref: _,
|
|
90
|
-
"onUpdate:modelValue":
|
|
103
|
+
"onUpdate:modelValue": b[0] || (b[0] = (D) => r.value = D),
|
|
91
104
|
type: "text",
|
|
92
|
-
class:
|
|
105
|
+
class: f(["dpiV3_textArea copy-large-regular", {
|
|
93
106
|
"error-state": e.showError,
|
|
94
107
|
dpiV3_input_disabled: e.isDisabled
|
|
95
108
|
}]),
|
|
96
109
|
disabled: e.isDisabled,
|
|
97
110
|
placeholder: e.placeholder,
|
|
98
|
-
onFocus:
|
|
99
|
-
onBlur:
|
|
100
|
-
onMousedown:
|
|
111
|
+
onFocus: E,
|
|
112
|
+
onBlur: B,
|
|
113
|
+
onMousedown: k
|
|
101
114
|
}, null, 42, q), [
|
|
102
|
-
[A,
|
|
115
|
+
[A, r.value]
|
|
103
116
|
])
|
|
104
117
|
], 38)
|
|
105
118
|
]),
|
|
106
|
-
e.hint && !e.showError ? (
|
|
107
|
-
|
|
108
|
-
|
|
119
|
+
e.hint && !e.showError ? (d(), c("div", {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: f(["dpiV3_hintText", { "copy-large-semi-bold justify-content-end": s.countHint, "copy-small-regular": !s.countHint }])
|
|
122
|
+
}, [
|
|
123
|
+
l("span", null, v(e.hintMessage), 1)
|
|
124
|
+
], 2)) : p("", !0),
|
|
125
|
+
e.showError ? (d(), c("div", G, [
|
|
126
|
+
l("span", null, v(e.errorMessage), 1)
|
|
127
|
+
])) : p("", !0)
|
|
109
128
|
])
|
|
110
129
|
]));
|
|
111
130
|
}
|
|
112
|
-
},
|
|
131
|
+
}, ee = /* @__PURE__ */ j(J, [["__scopeId", "data-v-8222d1e6"]]);
|
|
113
132
|
export {
|
|
114
|
-
|
|
133
|
+
ee as default
|
|
115
134
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as n, createElementBlock as s, openBlock as c, createElementVNode as e, createVNode as o, withCtx as i } from "vue";
|
|
2
|
+
import r from "../../components/StepActionsSection.vue.js";
|
|
3
|
+
import p from "./Card.vue.js";
|
|
4
|
+
const a = { class: "wip-step" }, _ = { class: "funny-section" }, l = { class: "funny-section" }, w = /* @__PURE__ */ n({
|
|
5
|
+
__name: "WipStep",
|
|
6
|
+
setup(d) {
|
|
7
|
+
return (m, t) => (c(), s("div", a, [
|
|
8
|
+
e("section", _, [
|
|
9
|
+
o(p, null, {
|
|
10
|
+
default: i(() => t[0] || (t[0] = [
|
|
11
|
+
e("div", { class: "wip-container copy-large-regular" }, " WIP ", -1)
|
|
12
|
+
])),
|
|
13
|
+
_: 1,
|
|
14
|
+
__: [0]
|
|
15
|
+
})
|
|
16
|
+
]),
|
|
17
|
+
e("section", l, [
|
|
18
|
+
o(r)
|
|
19
|
+
])
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
w as default
|
|
25
|
+
};
|
|
@@ -1,70 +1,77 @@
|
|
|
1
|
-
import { useI18n as
|
|
1
|
+
import { useI18n as c } from "vue-i18n";
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
import { PhInfo as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
4
|
+
import p from "../HappyFlowComponents/ui/LogoV3.vue.js";
|
|
5
|
+
import { PhInfo as m } from "@phosphor-icons/vue";
|
|
6
|
+
import _ from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
7
|
+
import g from "../HappyFlowComponents/ui/Card.vue.js";
|
|
8
|
+
import u from "../HappyFlowComponents/ui/Illustration.vue.js";
|
|
9
|
+
import { resolveComponent as o, createElementBlock as f, openBlock as h, createElementVNode as e, createVNode as n, toDisplayString as a, withCtx as s, createTextVNode as V } from "vue";
|
|
9
10
|
/* empty css */
|
|
10
|
-
import
|
|
11
|
-
const
|
|
11
|
+
import P from "../../_virtual/_plugin-vue_export-helper.js";
|
|
12
|
+
const v = {
|
|
12
13
|
components: {
|
|
13
|
-
LogoV3:
|
|
14
|
-
PhInfo:
|
|
15
|
-
ButtonV3:
|
|
16
|
-
Illustration:
|
|
14
|
+
LogoV3: p,
|
|
15
|
+
PhInfo: m,
|
|
16
|
+
ButtonV3: _,
|
|
17
|
+
Illustration: u,
|
|
18
|
+
Card: g
|
|
17
19
|
},
|
|
18
20
|
methods: {
|
|
19
|
-
navTrigger(
|
|
20
|
-
this.$emit("handleNav",
|
|
21
|
+
navTrigger(t) {
|
|
22
|
+
this.$emit("handleNav", t);
|
|
21
23
|
}
|
|
22
24
|
},
|
|
23
25
|
setup() {
|
|
24
|
-
const { t
|
|
26
|
+
const { t } = c();
|
|
25
27
|
return {
|
|
26
|
-
t
|
|
28
|
+
t,
|
|
27
29
|
goBack: () => {
|
|
28
30
|
},
|
|
29
31
|
startProcess: () => {
|
|
30
32
|
}
|
|
31
33
|
};
|
|
32
34
|
}
|
|
33
|
-
},
|
|
34
|
-
function
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
}, $ = { class: "dpiV3_Wizard-Intro V3-typography" }, y = { class: "dpiV3_Content" }, I = { class: "dpiV3_Frame_38" }, C = { class: "dpiV3_Frame_50" }, k = { class: "dpiV3_title" }, B = { class: "copy-large-regular dpiV3_large_text" }, N = { class: "copy-small-semi-bold" }, q = { class: "copy-small-regular" }, x = { class: "copy-large-regular dpiV3_regular-text" };
|
|
36
|
+
function F(t, r, d, w, z, E) {
|
|
37
|
+
const i = o("PhInfo"), l = o("Card");
|
|
38
|
+
return h(), f("div", $, [
|
|
39
|
+
e("div", y, [
|
|
40
|
+
e("div", I, [
|
|
41
|
+
e("div", C, [
|
|
42
|
+
e("h4", k, a(t.$t("message.dataupload.datasets.landingPage.title")), 1),
|
|
43
|
+
e("div", B, a(t.$t("message.dataupload.datasets.landingPage.intro-text")), 1)
|
|
42
44
|
]),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
n(l, { variant: "default" }, {
|
|
46
|
+
icon: s(() => [
|
|
47
|
+
n(i, {
|
|
46
48
|
size: 32,
|
|
47
49
|
color: "#009fe3"
|
|
48
|
-
})
|
|
49
|
-
t("div", B, e(s.$t("message.dataupload.datasets.landingPage.requirements-title")), 1)
|
|
50
|
+
})
|
|
50
51
|
]),
|
|
51
|
-
|
|
52
|
-
t("
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
52
|
+
title: s(() => [
|
|
53
|
+
V(a(t.$t("message.dataupload.datasets.landingPage.requirements-title")), 1)
|
|
54
|
+
]),
|
|
55
|
+
default: s(() => [
|
|
56
|
+
e("ul", null, [
|
|
57
|
+
e("li", null, [
|
|
58
|
+
e("span", N, a(t.$t(
|
|
59
|
+
"message.dataupload.datasets.landingPage.requirements-link"
|
|
60
|
+
)), 1),
|
|
61
|
+
e("span", q, a(t.$t(
|
|
62
|
+
"message.dataupload.datasets.landingPage.requirements-text"
|
|
63
|
+
)), 1)
|
|
64
|
+
])
|
|
59
65
|
])
|
|
60
|
-
])
|
|
61
|
-
|
|
62
|
-
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
}),
|
|
69
|
+
e("div", x, a(t.$t("message.dataupload.datasets.landingPage.start-message")), 1)
|
|
63
70
|
])
|
|
64
71
|
])
|
|
65
72
|
]);
|
|
66
73
|
}
|
|
67
|
-
const
|
|
74
|
+
const K = /* @__PURE__ */ P(v, [["render", F], ["__scopeId", "data-v-c787c86f"]]);
|
|
68
75
|
export {
|
|
69
|
-
|
|
76
|
+
K as default
|
|
70
77
|
};
|
|
@@ -17,10 +17,10 @@ const k = /* @__PURE__ */ i({
|
|
|
17
17
|
class: u({ activeSection: o.value })
|
|
18
18
|
}, [
|
|
19
19
|
v(p, {
|
|
20
|
-
type: "group",
|
|
21
20
|
id: e.name,
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ref: e.name,
|
|
22
|
+
type: "group",
|
|
23
|
+
name: e.name
|
|
24
24
|
}, {
|
|
25
25
|
default: f(() => [
|
|
26
26
|
S(r.$slots, "default")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ProgressSteps.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-103ff804"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, mergeModels as B, computed as f, useModel as k, createElementBlock as l, openBlock as
|
|
1
|
+
import { defineComponent as w, mergeModels as B, computed as f, useModel as k, createElementBlock as l, openBlock as i, Fragment as S, renderList as x, withDirectives as c, createElementVNode as s, vModelCheckbox as y, unref as a, normalizeClass as C, toDisplayString as M, vShow as m } from "vue";
|
|
2
2
|
import { looseIndexOf as b } from "@vue/shared";
|
|
3
3
|
import D from "../HappyFlowComponents/img/Circle.svg.js";
|
|
4
4
|
import E from "../HappyFlowComponents/img/CircleFill.svg.js";
|
|
@@ -26,21 +26,28 @@ const F = { class: "progress-steps" }, U = ["value"], j = { class: "progress-ste
|
|
|
26
26
|
const t = e.includes("/") ? e.split("/")[0] : e;
|
|
27
27
|
n[t] || (n[t] = []), n[t].push(e);
|
|
28
28
|
}), Object.entries(n).map(([e, t]) => ({ name: e, substeps: t }));
|
|
29
|
-
})
|
|
29
|
+
});
|
|
30
|
+
function N(n) {
|
|
31
|
+
return n.includes("/") ? n.split("/")[1] : n;
|
|
32
|
+
}
|
|
33
|
+
function g(n) {
|
|
34
|
+
return !n.includes("/");
|
|
35
|
+
}
|
|
36
|
+
const o = k(p, "checked");
|
|
30
37
|
function d(n) {
|
|
31
38
|
return b(o.value, n) !== -1;
|
|
32
39
|
}
|
|
33
40
|
const u = k(p, "current");
|
|
34
|
-
return f(() => b(v.steps, u.value)), (n, e) => (
|
|
35
|
-
(
|
|
36
|
-
|
|
37
|
-
|
|
41
|
+
return f(() => b(v.steps, u.value)), (n, e) => (i(), l("div", F, [
|
|
42
|
+
(i(!0), l(S, null, x(h.value, (t, O) => (i(), l("div", {
|
|
43
|
+
key: t.name,
|
|
44
|
+
class: "progress-step"
|
|
38
45
|
}, [
|
|
39
|
-
|
|
46
|
+
c(s("input", {
|
|
47
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => o.value = r),
|
|
40
48
|
name: "progress-step",
|
|
41
49
|
type: "checkbox",
|
|
42
50
|
class: "progress-input",
|
|
43
|
-
"onUpdate:modelValue": e[0] || (e[0] = (r) => o.value = r),
|
|
44
51
|
value: t.name
|
|
45
52
|
}, null, 8, U), [
|
|
46
53
|
[y, o.value]
|
|
@@ -56,21 +63,21 @@ const F = { class: "progress-steps" }, U = ["value"], j = { class: "progress-ste
|
|
|
56
63
|
}, M(t.name), 3)
|
|
57
64
|
]),
|
|
58
65
|
s("div", I, [
|
|
59
|
-
|
|
66
|
+
c(s("div", L, e[2] || (e[2] = [
|
|
60
67
|
s("div", { class: "progress-step__content-line" }, null, -1)
|
|
61
68
|
]), 512), [
|
|
62
69
|
[m, O < h.value.length - 1]
|
|
63
70
|
]),
|
|
64
|
-
|
|
65
|
-
(
|
|
66
|
-
|
|
67
|
-
|
|
71
|
+
c(s("div", P, [
|
|
72
|
+
(i(!0), l(S, null, x(t.substeps.filter((r) => !g(r)), (r, V) => (i(), l("div", {
|
|
73
|
+
key: r,
|
|
74
|
+
class: "progress-step"
|
|
68
75
|
}, [
|
|
69
|
-
|
|
76
|
+
c(s("input", {
|
|
77
|
+
"onUpdate:modelValue": e[1] || (e[1] = (_) => o.value = _),
|
|
70
78
|
name: "progress-step",
|
|
71
79
|
type: "checkbox",
|
|
72
80
|
class: "progress-input",
|
|
73
|
-
"onUpdate:modelValue": e[1] || (e[1] = (_) => o.value = _),
|
|
74
81
|
value: r
|
|
75
82
|
}, null, 8, R), [
|
|
76
83
|
[y, o.value]
|
|
@@ -86,7 +93,7 @@ const F = { class: "progress-steps" }, U = ["value"], j = { class: "progress-ste
|
|
|
86
93
|
}, M(N(r)), 3)
|
|
87
94
|
]),
|
|
88
95
|
s("div", G, [
|
|
89
|
-
|
|
96
|
+
c(s("div", H, e[3] || (e[3] = [
|
|
90
97
|
s("div", { class: "progress-step__content-line" }, null, -1)
|
|
91
98
|
]), 512), [
|
|
92
99
|
[m, V < t.substeps.filter((_) => !g(_)).length - 1]
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { defineComponent as d, inject as g, toRef as b, computed as V, createElementBlock as _, openBlock as y, createVNode as o, nextTick as h } from "vue";
|
|
2
|
+
import { getNode as x } from "@formkit/core";
|
|
3
|
+
import { useFormValues as C } from "../composables/useDpiFormValues.js";
|
|
4
|
+
import r from "../HappyFlowComponents/ui/ButtonV3.vue.js";
|
|
5
|
+
import { dpiStepperKey as N } from "../utils/injectionKeys.js";
|
|
6
|
+
const S = { class: "step-actions" }, E = /* @__PURE__ */ d({
|
|
7
|
+
__name: "StepActionsSection",
|
|
8
|
+
setup(k) {
|
|
9
|
+
const { formValues: s } = C(), t = g(N);
|
|
10
|
+
t || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
|
|
11
|
+
function u(e) {
|
|
12
|
+
return e !== void 0;
|
|
13
|
+
}
|
|
14
|
+
const c = b(t == null ? void 0 : t.steps);
|
|
15
|
+
function a(e) {
|
|
16
|
+
var i;
|
|
17
|
+
const n = (i = c.value) == null ? void 0 : i[e];
|
|
18
|
+
return n ? n.valid : !1;
|
|
19
|
+
}
|
|
20
|
+
function l() {
|
|
21
|
+
a((t == null ? void 0 : t.activeStep.value) || "") && (t == null || t.goToNextStep());
|
|
22
|
+
}
|
|
23
|
+
function f() {
|
|
24
|
+
t == null || t.goToPreviousStep();
|
|
25
|
+
}
|
|
26
|
+
const m = V(() => t != null && t.activeStep.value ? x(t == null ? void 0 : t.activeStep.value) : null);
|
|
27
|
+
async function v() {
|
|
28
|
+
if (!u(t))
|
|
29
|
+
return;
|
|
30
|
+
t.triggerValidationCurrentStep(), await h(), (m.value ? !a((t == null ? void 0 : t.activeStep.value) || "") : !1) && (t == null || t.triggerValidationCurrentStep()), t != null && t.isLast.value ? window.alert(`Form submitted: ${JSON.stringify(s.value, null, 2)}`) : l();
|
|
31
|
+
}
|
|
32
|
+
return (e, n) => (y(), _("div", S, [
|
|
33
|
+
o(r, {
|
|
34
|
+
variant: "tertiary",
|
|
35
|
+
type: "button",
|
|
36
|
+
"button-text": "Abbrechen"
|
|
37
|
+
}),
|
|
38
|
+
o(r, {
|
|
39
|
+
variant: "secondary",
|
|
40
|
+
type: "button",
|
|
41
|
+
"button-text": "Zurück",
|
|
42
|
+
onClick: f
|
|
43
|
+
}),
|
|
44
|
+
o(r, {
|
|
45
|
+
type: "button",
|
|
46
|
+
"button-text": "Weiter",
|
|
47
|
+
onClick: v
|
|
48
|
+
})
|
|
49
|
+
]));
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
export {
|
|
53
|
+
E as default
|
|
54
|
+
};
|