@piveau/dpi 0.1.0-twinby.0 → 0.2.0-alpha.0
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 +30 -28
- 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/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/components/HappyFlowLandingPage.vue.js +50 -43
- package/dist/data-provider-interface/components/InputPageStep.vue.js +3 -3
- 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 +230 -218
- package/dist/stories/components/DemoStep.vue.js +36 -32
- package/dist/stories/components/DemoStepper.vue.js +1 -1
- package/dist/stories/components/DemoStepper.vue2.js +61 -54
- package/package.json +3 -1
|
@@ -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")
|
|
@@ -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
|
+
};
|
|
@@ -1,86 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useStepper as G } from "@vueuse/core";
|
|
2
|
+
import { ref as H, computed as i, provide as J } from "vue";
|
|
3
3
|
import { dpiStepperKey as M } from "../utils/injectionKeys.js";
|
|
4
4
|
import O from "../utils/useSteps.js";
|
|
5
5
|
function X() {
|
|
6
|
-
const { steps: p, activeStep: o, stepPlugin:
|
|
6
|
+
const { steps: p, activeStep: o, stepPlugin: y, visitedSteps: B, subSteps: h, triggerValidation: u, triggerValidationCurrentStep: n } = O(), s = H([]), e = G(s, o.value), r = () => {
|
|
7
7
|
e.current.value && e.current.value !== o.value && (o.value = e.current.value);
|
|
8
|
-
},
|
|
8
|
+
}, c = (t) => {
|
|
9
9
|
s.value.includes(t) || (s.value.push(t), s.value.length === 1 && !o.value && (o.value = t, e.goTo(t)));
|
|
10
|
-
},
|
|
10
|
+
}, v = () => {
|
|
11
11
|
e.goToNext(), r();
|
|
12
|
-
},
|
|
12
|
+
}, a = () => {
|
|
13
13
|
e.goToPrevious(), r();
|
|
14
|
-
},
|
|
14
|
+
}, A = (t) => {
|
|
15
15
|
e.goTo(t), r();
|
|
16
|
-
},
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
16
|
+
}, C = (t) => {
|
|
17
|
+
const P = e.at(t);
|
|
18
|
+
P && (e.goTo(P), r());
|
|
19
|
+
}, I = i(() => e.index.value), L = i(() => e.previous.value || ""), N = i(() => e.next.value || ""), {
|
|
20
|
+
steps: V,
|
|
21
|
+
stepNames: b,
|
|
22
|
+
index: k,
|
|
23
|
+
current: D,
|
|
24
|
+
next: F,
|
|
25
|
+
previous: K,
|
|
26
|
+
isFirst: j,
|
|
27
|
+
isLast: g,
|
|
28
|
+
at: q,
|
|
29
|
+
get: w,
|
|
30
|
+
goTo: l,
|
|
31
|
+
goToNext: z,
|
|
32
|
+
goToPrevious: E,
|
|
33
|
+
goBackTo: S,
|
|
34
|
+
isNext: T,
|
|
35
|
+
isPrevious: f,
|
|
36
|
+
isCurrent: x,
|
|
37
|
+
isBefore: d,
|
|
38
|
+
isAfter: m
|
|
39
|
+
} = e;
|
|
40
|
+
return J(M, {
|
|
21
41
|
steps: p,
|
|
22
42
|
activeStep: o,
|
|
23
|
-
registerStep:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
goToNext: D,
|
|
38
|
-
goToPrevious: F,
|
|
39
|
-
goBackTo: K,
|
|
40
|
-
isNext: j,
|
|
41
|
-
isPrevious: q,
|
|
42
|
-
isCurrent: w,
|
|
43
|
-
isBefore: z,
|
|
44
|
-
isAfter: E
|
|
45
|
-
} = e;
|
|
46
|
-
return {
|
|
43
|
+
registerStep: c,
|
|
44
|
+
goTo: l,
|
|
45
|
+
goToNextStep: v,
|
|
46
|
+
goToPreviousStep: a,
|
|
47
|
+
goBackTo: S,
|
|
48
|
+
isNext: T,
|
|
49
|
+
isPrevious: f,
|
|
50
|
+
isCurrent: x,
|
|
51
|
+
isBefore: d,
|
|
52
|
+
isAfter: m,
|
|
53
|
+
triggerValidation: u,
|
|
54
|
+
triggerValidationCurrentStep: n,
|
|
55
|
+
isLast: g
|
|
56
|
+
}), {
|
|
47
57
|
// Original API for backward compatibility (form validation steps)
|
|
48
58
|
steps: p,
|
|
49
|
-
subSteps:
|
|
59
|
+
subSteps: h,
|
|
50
60
|
activeStep: o,
|
|
51
|
-
activeStepIndex:
|
|
52
|
-
previousStep:
|
|
53
|
-
nextStep:
|
|
54
|
-
visitedSteps:
|
|
55
|
-
stepPlugin:
|
|
61
|
+
activeStepIndex: I,
|
|
62
|
+
previousStep: L,
|
|
63
|
+
nextStep: N,
|
|
64
|
+
visitedSteps: B,
|
|
65
|
+
stepPlugin: y,
|
|
56
66
|
stepList: s,
|
|
57
|
-
registerStep:
|
|
58
|
-
goToNextStep:
|
|
59
|
-
goToPreviousStep:
|
|
60
|
-
goToStep:
|
|
61
|
-
goToStepByIndex:
|
|
62
|
-
triggerValidation:
|
|
63
|
-
triggerValidationCurrentStep:
|
|
67
|
+
registerStep: c,
|
|
68
|
+
goToNextStep: v,
|
|
69
|
+
goToPreviousStep: a,
|
|
70
|
+
goToStep: A,
|
|
71
|
+
goToStepByIndex: C,
|
|
72
|
+
triggerValidation: u,
|
|
73
|
+
triggerValidationCurrentStep: n,
|
|
64
74
|
// Extended useStepper utilities
|
|
65
|
-
stepperSteps:
|
|
66
|
-
stepNames:
|
|
67
|
-
index:
|
|
68
|
-
current:
|
|
69
|
-
next:
|
|
70
|
-
previous:
|
|
71
|
-
isFirst:
|
|
72
|
-
isLast:
|
|
73
|
-
at:
|
|
74
|
-
get:
|
|
75
|
-
goTo:
|
|
76
|
-
goToNext:
|
|
77
|
-
goToPrevious:
|
|
78
|
-
goBackTo:
|
|
79
|
-
isNext:
|
|
80
|
-
isPrevious:
|
|
81
|
-
isCurrent:
|
|
82
|
-
isBefore:
|
|
83
|
-
isAfter:
|
|
75
|
+
stepperSteps: V,
|
|
76
|
+
stepNames: b,
|
|
77
|
+
index: k,
|
|
78
|
+
current: D,
|
|
79
|
+
next: F,
|
|
80
|
+
previous: K,
|
|
81
|
+
isFirst: j,
|
|
82
|
+
isLast: g,
|
|
83
|
+
at: q,
|
|
84
|
+
get: w,
|
|
85
|
+
goTo: l,
|
|
86
|
+
goToNext: z,
|
|
87
|
+
goToPrevious: E,
|
|
88
|
+
goBackTo: S,
|
|
89
|
+
isNext: T,
|
|
90
|
+
isPrevious: f,
|
|
91
|
+
isCurrent: x,
|
|
92
|
+
isBefore: d,
|
|
93
|
+
isAfter: m
|
|
84
94
|
};
|
|
85
95
|
}
|
|
86
96
|
export {
|