@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
|
@@ -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 {
|