@piveau/dpi 0.2.0-alpha.40 → 0.2.0-alpha.42

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 (42) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue.js +2 -2
  3. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/BasicInfosStep/ProjectOrganisationStep.vue2.js +84 -65
  4. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ButtonV3.vue.js +2 -2
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue.js +3 -3
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue.js +1 -1
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataCollection/BasicInformationStep.vue2.js +97 -80
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue.js +2 -2
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataProcessing/BasicInformationStep.vue2.js +107 -90
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue.js +1 -1
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataSimulation/BasicInformationStep.vue2.js +96 -80
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue.js +2 -2
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/DataVisualisation/BasicInformationStep.vue2.js +96 -77
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue.js +2 -2
  16. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/ApplicationsStep.vue2.js +120 -109
  17. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue.js +2 -2
  18. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Findability/CategoriesStep.vue2.js +60 -38
  19. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +20 -14
  20. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +16 -11
  21. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +2 -2
  22. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +140 -121
  23. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +2 -2
  24. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +45 -49
  25. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +1 -1
  26. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +179 -184
  27. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
  28. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
  29. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +2 -2
  30. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +104 -92
  31. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitMessages.js +14 -0
  32. package/dist/packages/dpi/src/data-provider-interface/composables/useFormKitSummary.js +46 -0
  33. package/dist/packages/dpi/src/data-provider-interface/utils/useSteps.js +35 -29
  34. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +2 -2
  35. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
  36. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  37. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -19
  38. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  39. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -18
  40. package/dist/packages/dpi/src/utils/twinbyUtils.js +29 -4
  41. package/dist/styles/_dpi.scss +16 -0
  42. package/package.json +1 -1
@@ -1,17 +1,18 @@
1
- import { defineComponent as w, ref as p, computed as k, watch as _, createElementBlock as o, openBlock as u, createElementVNode as n, createVNode as a, createCommentVNode as V, unref as d, Fragment as y, renderList as z, withDirectives as x, vModelCheckbox as A, withCtx as s, createTextVNode as g } from "vue";
2
- import { FormKit as S } from "@formkit/vue";
3
- import { PhLightbulb as f } from "@phosphor-icons/vue";
4
- import C from "../../../components/StepActionsSection.vue.js";
5
- import h from "../Card.vue.js";
6
- import U from "../Chip.vue.js";
7
- import I from "../ListBox/Listbox.vue.js";
8
- const B = { class: "dpiV3_page V3-typography" }, E = { class: "funny-section" }, L = { class: "funny-flex" }, P = {
1
+ import { defineComponent as z, ref as f, computed as S, watch as h, createElementBlock as d, openBlock as m, createElementVNode as n, createVNode as a, createCommentVNode as x, unref as s, Fragment as A, renderList as C, withDirectives as I, vModelCheckbox as U, withCtx as l, createTextVNode as b } from "vue";
2
+ import { useFormKitNodeById as B, FormKit as E } from "@formkit/vue";
3
+ import { PhLightbulb as v } from "@phosphor-icons/vue";
4
+ import M from "../../../components/StepActionsSection.vue.js";
5
+ import { useFormKitMessages as L } from "../../../composables/useFormKitMessages.js";
6
+ import w from "../Card.vue.js";
7
+ import N from "../Chip.vue.js";
8
+ import P from "../ListBox/Listbox.vue.js";
9
+ const j = { class: "dpiV3_page V3-typography" }, D = { class: "funny-section" }, K = { class: "funny-flex" }, W = {
9
10
  key: 0,
10
11
  class: "d-flex selected-applications"
11
- }, D = ["id", "value"], M = { class: "funny-section action-section" }, N = { class: "action-section" }, W = { class: "action-section" }, G = /* @__PURE__ */ w({
12
+ }, H = ["id", "value"], F = { class: "funny-section action-section" }, T = { class: "action-section" }, $ = { class: "action-section" }, ee = /* @__PURE__ */ z({
12
13
  __name: "ApplicationsStep",
13
- setup(H) {
14
- const i = p([]), l = p(""), b = [
14
+ setup(q) {
15
+ const i = f([]), r = f(""), k = [
15
16
  "Abfallmanagement",
16
17
  "Abwassermanagement",
17
18
  "Baumanagement",
@@ -49,106 +50,116 @@ const B = { class: "dpiV3_page V3-typography" }, E = { class: "funny-section" },
49
50
  "Wasserqualität",
50
51
  "Wasserversorgung",
51
52
  "Wirtschaftsflächenmanagement"
52
- ], m = k(() => i.value);
53
- return _(l, (r) => {
54
- l.value = "", r && (i.value.includes(r) || i.value.push(r));
55
- }), (r, e) => (u(), o("div", B, [
56
- n("section", E, [
57
- n("div", L, [
58
- e[3] || (e[3] = n("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
59
- e[4] || (e[4] = n("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese in der Liste aus. ", -1)),
60
- a(d(S), {
61
- modelValue: i.value,
62
- "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t),
63
- name: "applications",
64
- type: "list",
65
- validation: "required",
66
- "validation-label": "Anwendungsbereiche",
67
- hidden: ""
68
- }, null, 8, ["modelValue"]),
69
- m.value.length > 0 ? (u(), o("div", P, [
70
- (u(!0), o(y, null, z(m.value, (t, c) => (u(), o("div", {
71
- key: `application-${t}@${c}`,
72
- class: "label-chip"
73
- }, [
74
- x(n("input", {
75
- id: `application-${t}@${c}`,
76
- "onUpdate:modelValue": e[1] || (e[1] = (v) => i.value = v),
77
- class: "label-chip__input",
78
- type: "checkbox",
79
- value: t
80
- }, null, 8, D), [
81
- [A, i.value]
82
- ]),
83
- a(U, {
84
- as: "label",
85
- for: t,
86
- class: "label-chip__inner",
87
- text: t,
88
- data: { "@value": t, URI: "https://example.com/default" },
89
- setup: { "@type": "selected", "@icon": "suffix", "@inTable": !1, "@selected": !0 }
90
- }, null, 8, ["for", "text", "data"])
91
- ]))), 128))
92
- ])) : V("", !0),
93
- a(I, {
94
- modelValue: l.value,
95
- "onUpdate:modelValue": e[2] || (e[2] = (t) => l.value = t),
96
- options: b,
97
- placeholder: "Wählen Sie Ihre Anwendungsbereiche.",
98
- label: "Anwendungsbereich auswählen",
99
- filterable: "",
100
- taggable: "",
101
- "create-option": "",
102
- clearable: ""
103
- }, null, 8, ["modelValue"])
53
+ ], c = S(() => i.value);
54
+ h(r, (u) => {
55
+ r.value = "", u && (i.value.includes(u) || i.value.push(u));
56
+ });
57
+ const _ = B("applications"), { validationMessages: o, hasError: y } = L(_);
58
+ return h(o, () => {
59
+ console.log("validationMessages", o.value);
60
+ }), (u, e) => {
61
+ var p;
62
+ return m(), d("div", j, [
63
+ n("section", D, [
64
+ n("div", K, [
65
+ e[3] || (e[3] = n("h4", null, " Geben Sie Anwendungsbereiche an ", -1)),
66
+ e[4] || (e[4] = n("span", { class: "copy-large-regular" }, "Wenn Ihr Projekt mehrere Anwendungsbereiche abdeckt, wählen Sie diese in der Liste aus. ", -1)),
67
+ a(s(E), {
68
+ id: "applications",
69
+ modelValue: i.value,
70
+ "onUpdate:modelValue": e[0] || (e[0] = (t) => i.value = t),
71
+ name: "applications",
72
+ type: "list",
73
+ validation: "required",
74
+ "validation-label": "Anwendungsbereiche",
75
+ hidden: ""
76
+ }, null, 8, ["modelValue"]),
77
+ c.value.length > 0 ? (m(), d("div", W, [
78
+ (m(!0), d(A, null, C(c.value, (t, g) => (m(), d("div", {
79
+ key: `application-${t}@${g}`,
80
+ class: "label-chip"
81
+ }, [
82
+ I(n("input", {
83
+ id: `application-${t}@${g}`,
84
+ "onUpdate:modelValue": e[1] || (e[1] = (V) => i.value = V),
85
+ class: "label-chip__input",
86
+ type: "checkbox",
87
+ value: t
88
+ }, null, 8, H), [
89
+ [U, i.value]
90
+ ]),
91
+ a(N, {
92
+ as: "label",
93
+ for: t,
94
+ class: "label-chip__inner",
95
+ text: t,
96
+ data: { "@value": t, URI: "https://example.com/default" },
97
+ setup: { "@type": "selected", "@icon": "suffix", "@inTable": !1, "@selected": !0 }
98
+ }, null, 8, ["for", "text", "data"])
99
+ ]))), 128))
100
+ ])) : x("", !0),
101
+ a(P, {
102
+ modelValue: r.value,
103
+ "onUpdate:modelValue": e[2] || (e[2] = (t) => r.value = t),
104
+ options: k,
105
+ placeholder: "Wählen Sie Ihre Anwendungsbereiche.",
106
+ label: "Anwendungsbereich auswählen",
107
+ filterable: "",
108
+ taggable: "",
109
+ "create-option": "",
110
+ clearable: "",
111
+ error: s(y),
112
+ "error-message": Object.values(s(o)).length > 0 ? String((p = Object.values(s(o))[0]) == null ? void 0 : p.value) : ""
113
+ }, null, 8, ["modelValue", "error", "error-message"])
114
+ ])
115
+ ]),
116
+ n("section", F, [
117
+ a(M, { "hide-cancel": "" })
118
+ ]),
119
+ n("section", T, [
120
+ a(w, { variant: "default" }, {
121
+ icon: l(() => [
122
+ a(s(v), {
123
+ size: 32,
124
+ color: "#009fe3"
125
+ })
126
+ ]),
127
+ title: l(() => e[5] || (e[5] = [
128
+ b(" Information ", -1)
129
+ ])),
130
+ default: l(() => [
131
+ e[6] || (e[6] = n("div", { class: "application-information" }, [
132
+ n("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
133
+ ], -1))
134
+ ]),
135
+ _: 1,
136
+ __: [6]
137
+ })
138
+ ]),
139
+ n("section", $, [
140
+ a(w, { variant: "default" }, {
141
+ icon: l(() => [
142
+ a(s(v), {
143
+ size: 32,
144
+ color: "#009fe3"
145
+ })
146
+ ]),
147
+ title: l(() => e[7] || (e[7] = [
148
+ b(" Beispiel ", -1)
149
+ ])),
150
+ default: l(() => [
151
+ e[8] || (e[8] = n("div", { class: "application-information" }, [
152
+ n("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
153
+ ], -1))
154
+ ]),
155
+ _: 1,
156
+ __: [8]
157
+ })
104
158
  ])
105
- ]),
106
- n("section", M, [
107
- a(C, { "hide-cancel": "" })
108
- ]),
109
- n("section", N, [
110
- a(h, { variant: "default" }, {
111
- icon: s(() => [
112
- a(d(f), {
113
- size: 32,
114
- color: "#009fe3"
115
- })
116
- ]),
117
- title: s(() => e[5] || (e[5] = [
118
- g(" Information ", -1)
119
- ])),
120
- default: s(() => [
121
- e[6] || (e[6] = n("div", { class: "application-information" }, [
122
- n("p", null, " Ein Projekt beschreibt einen Use Case, der mithilfe eines Digitalen Zwillings umgesetzt wurde – nicht den gesamten Digitalen Zwilling. Ein Use Case kann unterschiedliche kommunale Anwendungsbereiche betreffen, die Sie für Ihr Projekt im Verlauf der Anlage benennen können. ")
123
- ], -1))
124
- ]),
125
- _: 1,
126
- __: [6]
127
- })
128
- ]),
129
- n("section", W, [
130
- a(h, { variant: "default" }, {
131
- icon: s(() => [
132
- a(d(f), {
133
- size: 32,
134
- color: "#009fe3"
135
- })
136
- ]),
137
- title: s(() => e[7] || (e[7] = [
138
- g(" Beispiel ", -1)
139
- ])),
140
- default: s(() => [
141
- e[8] || (e[8] = n("div", { class: "application-information" }, [
142
- n("p", null, " In Ihrem Projekt „Hochwasserschutzprogramm mit Prognosen“ wird mit Hilfe eines Digitalen Zwillings des lokalen Wassersystems die Hochwasserlage überwacht und vorhergesagt. Dieser Use Case betrifft mehrere Anwendungsbereiche wie Katastrophenschutz, Stadtplanung, Umwelt, Infrastrukturschutz und Bürgerinformation. ")
143
- ], -1))
144
- ]),
145
- _: 1,
146
- __: [8]
147
- })
148
- ])
149
- ]));
159
+ ]);
160
+ };
150
161
  }
151
162
  });
152
163
  export {
153
- G as default
164
+ ee as default
154
165
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./CategoriesStep.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61aa715e"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-17f9d4b6"]]);
5
5
  export {
6
- p as default
6
+ a as default
7
7
  };
@@ -1,67 +1,89 @@
1
- import { defineComponent as d, ref as c, computed as f, resolveComponent as v, createElementBlock as h, openBlock as g, createElementVNode as i, createVNode as l } from "vue";
2
- import { defineHubSearch as y } from "@piveau/sdk-vue";
3
- import * as b from "zod";
4
- import _ from "../../../components/StepActionsSection.vue.js";
5
- import S from "../ChipToggleList/ChipToggleList.vue.js";
6
- const V = { class: "dpiV3_page V3-typography" }, C = { class: "funny-section" }, P = { class: "funny-flex" }, k = { class: "funny-section" }, z = /* @__PURE__ */ d({
1
+ import { defineComponent as g, ref as m, computed as h, watch as y, resolveComponent as _, createElementBlock as b, openBlock as V, createElementVNode as s, createVNode as r, unref as u } from "vue";
2
+ import { getValidationMessages as S } from "@formkit/validation";
3
+ import { useFormKitNodeById as x, FormKitMessages as C } from "@formkit/vue";
4
+ import { defineHubSearch as K } from "@piveau/sdk-vue";
5
+ import * as P from "zod";
6
+ import { useRuntimeEnv as U } from "../../../../composables/useRuntimeEnv.js";
7
+ import k from "../../../components/StepActionsSection.vue.js";
8
+ import q from "../ChipToggleList/ChipToggleList.vue.js";
9
+ const E = { class: "dpiV3_page V3-typography" }, F = { class: "funny-section" }, O = { class: "funny-flex" }, R = { style: { display: "flex", "flex-direction": "column", gap: ".5rem" } }, z = { class: "funny-section" }, D = /* @__PURE__ */ g({
7
10
  __name: "CategoriesStep",
8
- setup(q) {
9
- const s = c([]), u = c(""), { useSearch: m } = y({
10
- baseUrl: "https://staging.bydata.de/api/hub/search",
11
+ setup(B) {
12
+ const n = m([]), d = U(), p = m(""), { useSearch: f } = K({
13
+ baseUrl: d.api.baseUrl,
11
14
  index: "vocabulary",
12
- schema: b.any()
15
+ schema: P.any()
13
16
  }, (e) => {
14
- var t, a;
15
- const o = String((e == null ? void 0 : e.resource) || ""), n = String(((t = e == null ? void 0 : e.pref_label) == null ? void 0 : t.de) || ((a = e == null ? void 0 : e.pref_label) == null ? void 0 : a.en) || "");
17
+ var t, c;
18
+ const o = String((e == null ? void 0 : e.resource) || ""), i = String(((t = e == null ? void 0 : e.pref_label) == null ? void 0 : t.de) || ((c = e == null ? void 0 : e.pref_label) == null ? void 0 : c.en) || "");
16
19
  return {
17
20
  id: o,
18
- name: n
21
+ name: i
19
22
  };
20
- }), { getSearchResultsEnhanced: r } = m({
23
+ }), { getSearchResultsEnhanced: a } = f({
21
24
  queryParams: {
22
- q: u,
25
+ q: p,
23
26
  limit: 40,
24
27
  vocabulary: "data-theme",
25
28
  sort: "title+asc"
26
29
  }
27
- }), p = f(() => {
30
+ }), v = h(() => {
28
31
  var e;
29
- return r.value ? (e = [...r.value].filter((o) => !o.id.endsWith("OP_DATPRO"))) == null ? void 0 : e.sort((o, n) => o.name.localeCompare(n.name)) : [];
30
- });
31
- return (e, o) => {
32
- const n = v("FormKit");
33
- return g(), h("div", V, [
34
- i("section", C, [
35
- i("div", P, [
36
- o[2] || (o[2] = i("div", null, [
37
- i("h4", null, " Machen Sie Ihr Projekt leicht auffindbar "),
38
- i("div", { class: "visibility-description" }, [
39
- i("p", { class: "copy-large-regular" }, " Um sicherzustellen, dass Ihr Projekt für andere leicht zu finden ist, wählen Sie die relevanten, übergeordneten Kategorien aus. ")
32
+ return a.value ? (e = [...a.value].filter((o) => !o.id.endsWith("OP_DATPRO"))) == null ? void 0 : e.sort((o, i) => o.name.localeCompare(i.name)) : [];
33
+ }), l = x("categories");
34
+ return y(n, (e, o) => {
35
+ if (!l.value)
36
+ return;
37
+ const i = S(l.value);
38
+ console.log("le messages", i, e, o);
39
+ }), (e, o) => {
40
+ const i = _("FormKit");
41
+ return V(), b("div", E, [
42
+ s("section", F, [
43
+ s("div", O, [
44
+ o[2] || (o[2] = s("div", null, [
45
+ s("h4", null, " Machen Sie Ihr Projekt leicht auffindbar "),
46
+ s("div", { class: "visibility-description" }, [
47
+ s("p", { class: "copy-large-regular" }, " Um sicherzustellen, dass Ihr Projekt für andere leicht zu finden ist, wählen Sie die relevanten, übergeordneten Kategorien aus. ")
40
48
  ])
41
49
  ], -1)),
42
- l(n, {
43
- modelValue: s.value,
44
- "onUpdate:modelValue": o[0] || (o[0] = (t) => s.value = t),
50
+ r(i, {
51
+ id: "categories",
52
+ modelValue: n.value,
53
+ "onUpdate:modelValue": o[0] || (o[0] = (t) => n.value = t),
45
54
  type: "list",
46
55
  name: "categories",
47
56
  validation: "required",
48
57
  "validation-visibility": "submit",
49
58
  "validation-label": "Kategorien"
50
59
  }, null, 8, ["modelValue"]),
51
- l(S, {
52
- modelValue: s.value,
53
- "onUpdate:modelValue": o[1] || (o[1] = (t) => s.value = t),
54
- options: p.value || []
55
- }, null, 8, ["modelValue", "options"])
60
+ s("div", R, [
61
+ r(q, {
62
+ modelValue: n.value,
63
+ "onUpdate:modelValue": o[1] || (o[1] = (t) => n.value = t),
64
+ options: v.value || []
65
+ }, null, 8, ["modelValue", "options"]),
66
+ r(u(C), {
67
+ node: u(l),
68
+ "sections-schema": {
69
+ message: {
70
+ $el: "div",
71
+ attrs: {
72
+ class: "dpiV3_errorText"
73
+ }
74
+ }
75
+ }
76
+ }, null, 8, ["node"])
77
+ ])
56
78
  ])
57
79
  ]),
58
- i("section", k, [
59
- l(_, { "hide-cancel": "" })
80
+ s("section", z, [
81
+ r(k, { "hide-cancel": "" })
60
82
  ])
61
83
  ]);
62
84
  };
63
85
  }
64
86
  });
65
87
  export {
66
- z as default
88
+ D as default
67
89
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as f, toRef as m, computed as r, createBlock as g, openBlock as y, unref as c, isRef as h } from "vue";
2
- import { useField as v } from "vee-validate";
3
- import B from "../InputField.vue.js";
4
- const M = /* @__PURE__ */ f({
1
+ import { defineComponent as g, toRef as c, computed as s, ref as y, watch as h, createBlock as v, openBlock as B, unref as T, isRef as k } from "vue";
2
+ import { watchOnce as V } from "@vueuse/core";
3
+ import { useField as x } from "vee-validate";
4
+ import M from "../InputField.vue.js";
5
+ const F = /* @__PURE__ */ g({
5
6
  __name: "InputFieldVeeValidate",
6
7
  props: {
7
8
  modelValue: {},
@@ -28,16 +29,21 @@ const M = /* @__PURE__ */ f({
28
29
  errorMessage: { default: "" }
29
30
  },
30
31
  emits: ["update:modelValue"],
31
- setup(s) {
32
- const t = s, p = m(t, "name"), { value: a, errorMessage: l, meta: i } = v(p, void 0, {
32
+ setup(u) {
33
+ const t = u, p = c(t, "name"), { value: a, errorMessage: o, meta: l, validate: f } = x(p, void 0, {
33
34
  syncVModel: !0,
34
35
  form: t.form,
35
36
  validateOnValueUpdate: !1,
36
- validateOnMount: !1
37
- }), o = r(() => !!((i.touched || i.dirty) && (l.value || t.errorMessage))), n = r(() => l.value || t.errorMessage || "");
38
- return (e, d) => (y(), g(B, {
39
- modelValue: c(a),
40
- "onUpdate:modelValue": d[0] || (d[0] = (u) => h(a) ? a.value = u : null),
37
+ validateOnMount: !1,
38
+ keepValueOnUnmount: !1
39
+ }), i = s(() => !!((l.touched || l.dirty) && (o.value || t.errorMessage))), n = s(() => o.value || t.errorMessage || ""), d = y(!1);
40
+ return V(i, (e) => {
41
+ e && (d.value = !0);
42
+ }), h(a, () => {
43
+ d.value && l.validated && f({ mode: "force" });
44
+ }), (e, r) => (B(), v(M, {
45
+ modelValue: T(a),
46
+ "onUpdate:modelValue": r[0] || (r[0] = (m) => k(a) ? a.value = m : null),
41
47
  label: e.label,
42
48
  placeholder: e.placeholder,
43
49
  "input-type": e.inputType,
@@ -54,13 +60,13 @@ const M = /* @__PURE__ */ f({
54
60
  "is-disabled": e.isDisabled,
55
61
  "input-field-size": e.inputFieldSize,
56
62
  "input-style": e.inputStyle,
57
- "show-error": o.value,
63
+ "show-error": i.value,
58
64
  error_message: n.value,
59
65
  "supporting-hint-message": n.value || e.supportingHintMessage,
60
- "initial-hint-text": o.value || e.initialHintText
66
+ "initial-hint-text": i.value || e.initialHintText
61
67
  }, null, 8, ["modelValue", "label", "placeholder", "input-type", "add-on-text", "add-on-leading-text", "trailing-text", "trailing_text", "date-picker", "time-picker", "info-icon", "tooltip-text", "pre-icon", "show-end-icon", "is-disabled", "input-field-size", "input-style", "show-error", "error_message", "supporting-hint-message", "initial-hint-text"]));
62
68
  }
63
69
  });
64
70
  export {
65
- M as default
71
+ F as default
66
72
  };
@@ -1,7 +1,8 @@
1
- import { defineComponent as p, toRef as u, computed as r, createBlock as m, openBlock as f, unref as b, isRef as V } from "vue";
2
- import { useField as c } from "vee-validate";
3
- import v from "./Listbox.vue.js";
4
- const L = /* @__PURE__ */ p({
1
+ import { defineComponent as b, toRef as c, computed as r, ref as v, watch as V, createBlock as h, openBlock as y, unref as g, isRef as B } from "vue";
2
+ import { watchOnce as F } from "@vueuse/core";
3
+ import { useField as L } from "vee-validate";
4
+ import M from "./Listbox.vue.js";
5
+ const D = /* @__PURE__ */ b({
5
6
  __name: "ListboxVeeValidate",
6
7
  props: {
7
8
  modelValue: {},
@@ -17,15 +18,19 @@ const L = /* @__PURE__ */ p({
17
18
  },
18
19
  emits: ["update:modelValue"],
19
20
  setup(o) {
20
- const l = o, n = u(l, "name"), { value: a, errorMessage: d } = c(n, void 0, {
21
+ const l = o, s = c(l, "name"), { value: a, errorMessage: n, validate: p, meta: t } = L(s, void 0, {
21
22
  syncVModel: !0,
22
23
  form: l.form,
23
24
  validateOnValueUpdate: !1,
24
25
  validateOnMount: !1
25
- }), i = r(() => d.value || "");
26
- return (e, t) => (f(), m(v, {
27
- modelValue: b(a),
28
- "onUpdate:modelValue": t[0] || (t[0] = (s) => V(a) ? a.value = s : null),
26
+ }), u = r(() => !!((t.touched || t.dirty) && n.value)), m = r(() => n.value || ""), d = v(!1);
27
+ return F(u, (e) => {
28
+ e && (d.value = !0);
29
+ }), V(a, () => {
30
+ d.value && t.validated && p({ mode: "force" });
31
+ }), (e, i) => (y(), h(M, {
32
+ modelValue: g(a),
33
+ "onUpdate:modelValue": i[0] || (i[0] = (f) => B(a) ? a.value = f : null),
29
34
  options: e.options,
30
35
  label: e.label,
31
36
  placeholder: e.placeholder,
@@ -33,11 +38,11 @@ const L = /* @__PURE__ */ p({
33
38
  "option-value": e.optionValue,
34
39
  "option-disabled": e.optionDisabled,
35
40
  disabled: e.disabled,
36
- "error-message": i.value,
41
+ "error-message": m.value,
37
42
  name: l.name
38
43
  }, null, 8, ["modelValue", "options", "label", "placeholder", "option-label", "option-value", "option-disabled", "disabled", "error-message", "name"]));
39
44
  }
40
45
  });
41
46
  export {
42
- L as default
47
+ D as default
43
48
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./OptionalDataStep.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-c0f37be8"]]);
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-d206ff46"]]);
5
5
  export {
6
- e as default
6
+ r as default
7
7
  };