@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.
Files changed (22) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectDescriptionStep.vue.js +70 -0
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectNameStep.vue.js +44 -15
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +30 -28
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +7 -0
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +36 -0
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js +20 -0
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue.js +78 -0
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaFormKit.vue2.js +4 -0
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/TextAreaV3.vue.js +74 -55
  12. package/dist/data-provider-interface/components/HappyFlowLandingPage.vue.js +50 -43
  13. package/dist/data-provider-interface/components/InputPageStep.vue.js +3 -3
  14. package/dist/data-provider-interface/components/StepActionsSection.vue.js +7 -0
  15. package/dist/data-provider-interface/components/StepActionsSection.vue2.js +54 -0
  16. package/dist/data-provider-interface/composables/useDpiStepper.js +78 -68
  17. package/dist/data-provider-interface/utils/injectionKeys.js +0 -1
  18. package/dist/data-provider-interface/views/InputPageProject.vue.js +230 -218
  19. package/dist/stories/components/DemoStep.vue.js +36 -32
  20. package/dist/stories/components/DemoStepper.vue.js +1 -1
  21. package/dist/stories/components/DemoStepper.vue2.js +61 -54
  22. package/package.json +3 -1
@@ -1,70 +1,77 @@
1
- import { useI18n as i } from "vue-i18n";
1
+ import { useI18n as c } from "vue-i18n";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import n from "../HappyFlowComponents/ui/LogoV3.vue.js";
5
- import { PhInfo as r } from "@phosphor-icons/vue";
6
- import l from "../HappyFlowComponents/ui/ButtonV3.vue.js";
7
- import p from "../HappyFlowComponents/ui/Illustration.vue.js";
8
- import { resolveComponent as c, createElementBlock as _, openBlock as m, createElementVNode as t, toDisplayString as e, createVNode as g } from "vue";
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 u from "../../_virtual/_plugin-vue_export-helper.js";
11
- const h = {
11
+ import P from "../../_virtual/_plugin-vue_export-helper.js";
12
+ const v = {
12
13
  components: {
13
- LogoV3: n,
14
- PhInfo: r,
15
- ButtonV3: l,
16
- Illustration: p
14
+ LogoV3: p,
15
+ PhInfo: m,
16
+ ButtonV3: _,
17
+ Illustration: u,
18
+ Card: g
17
19
  },
18
20
  methods: {
19
- navTrigger(s) {
20
- this.$emit("handleNav", s);
21
+ navTrigger(t) {
22
+ this.$emit("handleNav", t);
21
23
  }
22
24
  },
23
25
  setup() {
24
- const { t: s } = i();
26
+ const { t } = c();
25
27
  return {
26
- t: s,
28
+ t,
27
29
  goBack: () => {
28
30
  },
29
31
  startProcess: () => {
30
32
  }
31
33
  };
32
34
  }
33
- }, V = { class: "dpiV3_Wizard-Intro V3-typography" }, f = { class: "dpiV3_Content" }, v = { class: "dpiV3_Frame_38" }, P = { class: "dpiV3_Frame_50" }, $ = { class: "dpiV3_title" }, y = { class: "copy-large-regular dpiV3_large_text" }, I = { class: "dpiV3_Card_Tips" }, k = { class: "dpiV3_Icon_Title" }, B = { class: "dpiV3_Info-Text copy-large-semi-bold" }, C = { class: "dpiV3_CT-Content" }, T = { class: "copy-small-semi-bold dpiV3_bold-text" }, b = { class: "copy-small-regular dpiV3_regular-text" }, x = { class: "copy-large-regular dpiV3_regular-text" };
34
- function q(s, o, a, F, N, z) {
35
- const d = c("PhInfo");
36
- return m(), _("div", V, [
37
- t("div", f, [
38
- t("div", v, [
39
- t("div", P, [
40
- t("h4", $, e(s.$t("message.dataupload.datasets.landingPage.title")), 1),
41
- t("div", y, e(s.$t("message.dataupload.datasets.landingPage.intro-text")), 1)
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
- t("div", I, [
44
- t("div", k, [
45
- g(d, {
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
- t("ul", C, [
52
- t("li", null, [
53
- t("span", T, e(s.$t(
54
- "message.dataupload.datasets.landingPage.requirements-link"
55
- )), 1),
56
- t("span", b, e(s.$t(
57
- "message.dataupload.datasets.landingPage.requirements-text"
58
- )), 1)
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
- t("div", x, e(s.$t("message.dataupload.datasets.landingPage.start-message")), 1)
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 J = /* @__PURE__ */ u(h, [["render", q], ["__scopeId", "data-v-d700b302"]]);
74
+ const K = /* @__PURE__ */ P(v, [["render", F], ["__scopeId", "data-v-c787c86f"]]);
68
75
  export {
69
- J as default
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
- name: e.name,
23
- ref: e.name
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,7 @@
1
+ import o from "./StepActionsSection.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8eb9e37a"]]);
5
+ export {
6
+ a as default
7
+ };
@@ -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 { ref as G, computed as i, provide as H } from "vue";
2
- import { useStepper as J } from "@vueuse/core";
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: c, visitedSteps: v, subSteps: a, triggerValidation: g, triggerValidationCurrentStep: l } = O(), s = G([]), e = J(s, o.value), r = () => {
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
- }, u = (t) => {
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
- }, S = () => {
10
+ }, v = () => {
11
11
  e.goToNext(), r();
12
- }, T = () => {
12
+ }, a = () => {
13
13
  e.goToPrevious(), r();
14
- }, f = (t) => {
14
+ }, A = (t) => {
15
15
  e.goTo(t), r();
16
- }, x = (t) => {
17
- const n = e.at(t);
18
- n && (e.goTo(n), r());
19
- }, d = i(() => e.index.value), m = i(() => e.previous.value || ""), P = i(() => e.next.value || "");
20
- H(M, {
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: u
24
- });
25
- const {
26
- steps: y,
27
- stepNames: B,
28
- index: h,
29
- current: A,
30
- next: C,
31
- previous: I,
32
- isFirst: L,
33
- isLast: N,
34
- at: V,
35
- get: b,
36
- goTo: k,
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: a,
59
+ subSteps: h,
50
60
  activeStep: o,
51
- activeStepIndex: d,
52
- previousStep: m,
53
- nextStep: P,
54
- visitedSteps: v,
55
- stepPlugin: c,
61
+ activeStepIndex: I,
62
+ previousStep: L,
63
+ nextStep: N,
64
+ visitedSteps: B,
65
+ stepPlugin: y,
56
66
  stepList: s,
57
- registerStep: u,
58
- goToNextStep: S,
59
- goToPreviousStep: T,
60
- goToStep: f,
61
- goToStepByIndex: x,
62
- triggerValidation: g,
63
- triggerValidationCurrentStep: l,
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: y,
66
- stepNames: B,
67
- index: h,
68
- current: A,
69
- next: C,
70
- previous: I,
71
- isFirst: L,
72
- isLast: N,
73
- at: V,
74
- get: b,
75
- goTo: k,
76
- goToNext: D,
77
- goToPrevious: F,
78
- goBackTo: K,
79
- isNext: j,
80
- isPrevious: q,
81
- isCurrent: w,
82
- isBefore: z,
83
- isAfter: E
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 {
@@ -1,4 +1,3 @@
1
- import "vue";
2
1
  const e = Symbol("dpiStepperKey");
3
2
  export {
4
3
  e as dpiStepperKey