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

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 (25) 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/Card.vue.js +3 -3
  5. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Card.vue2.js +30 -27
  6. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldVeeValidate.vue.js +18 -13
  7. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ListBox/ListboxVeeValidate.vue.js +16 -11
  8. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue.js +1 -1
  9. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/OptionalDataStep/OptionalDataStep.vue2.js +113 -105
  10. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue.js +2 -2
  11. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/FunctionalityForm.vue2.js +45 -49
  12. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue.js +2 -2
  13. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ProcessSteps/HardwareForm.vue2.js +103 -103
  14. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js +30 -0
  15. package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/UrlField.vue2.js +4 -0
  16. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue.js +1 -1
  17. package/dist/packages/dpi/src/data-provider-interface/components/StepActionsSection.vue2.js +68 -67
  18. package/dist/packages/dpi/src/stories/components/LinkCard.vue.js +2 -2
  19. package/dist/packages/dpi/src/stories/components/LinkCard.vue2.js +24 -26
  20. package/dist/packages/dpi/src/stories/components/PartnerCard.vue.js +2 -2
  21. package/dist/packages/dpi/src/stories/components/PartnerCard.vue2.js +15 -19
  22. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue.js +2 -2
  23. package/dist/packages/dpi/src/stories/components/ScreenshotCard.vue2.js +13 -18
  24. package/dist/packages/dpi/src/utils/twinbyUtils.js +28 -4
  25. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as R, inject as O, ref as p, watch as U, computed as N, createElementBlock as s, openBlock as o, normalizeClass as Z, createElementVNode as g, createBlock as h, createCommentVNode as w, createVNode as r, renderSlot as B, unref as E, normalizeStyle as q, withDirectives as y, vShow as x, Fragment as P, withCtx as C, renderList as G, toDisplayString as H, nextTick as J } from "vue";
2
- import { getNode as Q, isNode as X } from "@formkit/core";
3
- import { getValidationMessages as Y } from "@formkit/validation";
4
- import { PhExclamationMark as _ } from "@phosphor-icons/vue";
1
+ import { defineComponent as U, inject as Z, ref as p, watch as q, computed as h, createElementBlock as r, openBlock as o, normalizeClass as G, createElementVNode as g, createBlock as y, createCommentVNode as N, createVNode as s, renderSlot as B, unref as E, normalizeStyle as H, withDirectives as x, vShow as C, Fragment as P, withCtx as S, renderList as J, toDisplayString as z, nextTick as Q } from "vue";
2
+ import { getNode as X, isNode as Y } from "@formkit/core";
3
+ import { getValidationMessages as _ } from "@formkit/validation";
4
+ import { PhExclamationMark as ee } from "@phosphor-icons/vue";
5
5
  import u from "../HappyFlowComponents/ui/ButtonV3.vue.js";
6
- import ee from "../HappyFlowComponents/ui/Card.vue.js";
7
- import { dpiStepperKey as te } from "../utils/injectionKeys.js";
8
- import ne from "./TheCancelConfirmationDialog.vue.js";
9
- import { useEditModeInfo as ae } from "../composables/useDpiEditMode.js";
10
- const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next" }, le = {
6
+ import te from "../HappyFlowComponents/ui/Card.vue.js";
7
+ import { dpiStepperKey as ne } from "../utils/injectionKeys.js";
8
+ import ae from "./TheCancelConfirmationDialog.vue.js";
9
+ import { useEditModeInfo as oe } from "../composables/useDpiEditMode.js";
10
+ const ie = { class: "step-actions" }, le = { class: "step-actions__prev-and-next" }, re = { style: { margin: "0" } }, se = {
11
11
  key: 0,
12
12
  class: "validation-errors"
13
- }, ye = /* @__PURE__ */ R({
13
+ }, Ce = /* @__PURE__ */ U({
14
14
  __name: "StepActionsSection",
15
15
  props: {
16
16
  hideCancel: { type: Boolean, default: !1 },
@@ -27,62 +27,62 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
27
27
  showDetailedErrorSummary: { type: Boolean, default: !1 }
28
28
  },
29
29
  emits: ["submit", "closeWithSaving"],
30
- setup(z, { emit: L }) {
31
- const l = z, b = L, t = O(te);
30
+ setup(D, { emit: L }) {
31
+ const l = D, b = L, t = Z(ne);
32
32
  t || console.warn("dpiStepper is not provided. Please use StepActionsSection inside InputPage");
33
- function S(e) {
33
+ function T(e) {
34
34
  return e !== void 0;
35
35
  }
36
36
  const f = p(!1), d = p(!1), i = p([]);
37
- t && U(t.activeStep, () => {
37
+ t && q(t.activeStep, () => {
38
38
  i.value.splice(0, i.value.length), d.value = !1;
39
39
  });
40
- function T() {
40
+ function k() {
41
41
  f.value = !0;
42
42
  }
43
- function v() {
43
+ function m() {
44
44
  t == null || t.goToPreviousStep();
45
45
  }
46
- async function m() {
47
- var k, V;
48
- if (!S(t))
46
+ async function v() {
47
+ var V, w;
48
+ if (!T(t))
49
49
  return !1;
50
- t.triggerValidationCurrentStep(), await J();
50
+ t.triggerValidationCurrentStep(), await Q();
51
51
  const e = t.activeStep.value;
52
52
  if (!e)
53
53
  return !1;
54
- const n = Q(e);
55
- if (!X(n))
54
+ const n = X(e);
55
+ if (!Y(n))
56
56
  return console.error("Current step node is not a FormKitNode", n), !1;
57
57
  n.clearErrors(!0);
58
- const a = Y(n), I = !!((V = (k = t.steps) == null ? void 0 : k[e]) != null && V.valid);
59
- return a && a.size > 0 || !I ? (i.value = [...a.entries()].flatMap(([re, $]) => $.map((K) => String(K.value))), d.value = !0, !1) : (i.value.splice(0, i.value.length), d.value = !1, !0);
58
+ const a = _(n), K = !!((w = (V = t.steps) == null ? void 0 : V[e]) != null && w.valid);
59
+ return a && a.size > 0 || !K ? (i.value = [...a.entries()].flatMap(([de, R]) => R.map((O) => String(O.value))), d.value = !0, !1) : (i.value.splice(0, i.value.length), d.value = !1, !0);
60
60
  }
61
- function D(e, n) {
62
- m().then((a) => {
61
+ function M(e, n) {
62
+ v().then((a) => {
63
63
  a ? e() : n && typeof n == "function" && n();
64
64
  });
65
65
  }
66
- function M() {
66
+ function A() {
67
67
  t == null || t.goToNextStep();
68
68
  }
69
69
  async function c() {
70
- !S(t) || !await m() || (t != null && t.isLast.value ? b("submit") : t == null || t.goToNextStep());
70
+ !T(t) || !await v() || (t != null && t.isLast.value ? b("submit") : t == null || t.goToNextStep());
71
71
  }
72
- const { isEditMode: A } = ae();
72
+ const { isEditMode: F } = oe();
73
73
  async function W() {
74
- !t || !await m() || t == null || t.goToStep(Object.keys(t.steps).pop() || "");
74
+ !t || !await v() || t == null || t.goToStep(Object.keys(t.steps).pop() || "");
75
75
  }
76
- const j = N(() => t ? t == null ? void 0 : t.isLast.value : !0), F = N(() => [
76
+ const j = h(() => t ? t == null ? void 0 : t.isLast.value : !0), I = h(() => [
77
77
  { "step-actions-container--compact": l.compact },
78
78
  l.classList
79
- ]);
80
- return (e, n) => (o(), s("div", {
81
- class: Z([F.value, "step-actions-container"])
79
+ ]), $ = h(() => l.showDetailedErrorSummary ? "Fehler" : "Bitte füllen Sie alle Pflichtfelder aus und geben Sie gültige Formate an, bevor Sie fortfahren.");
80
+ return (e, n) => (o(), r("div", {
81
+ class: G([I.value, "step-actions-container"])
82
82
  }, [
83
- g("div", oe, [
84
- E(A) ? (o(), s(P, { key: 1 }, [
85
- j.value ? y((o(), h(u, {
83
+ g("div", ie, [
84
+ E(F) ? (o(), r(P, { key: 1 }, [
85
+ j.value ? x((o(), y(u, {
86
86
  key: 1,
87
87
  class: "edit-save-button",
88
88
  size: "large",
@@ -93,8 +93,8 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
93
93
  loading: l.loading,
94
94
  onClick: c
95
95
  }, null, 8, ["variant", "button-text", "icon-end", "loading"])), [
96
- [x, !e.hideNext]
97
- ]) : (o(), h(u, {
96
+ [C, !e.hideNext]
97
+ ]) : (o(), y(u, {
98
98
  key: 0,
99
99
  class: "edit-save-button",
100
100
  size: "large",
@@ -105,41 +105,41 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
105
105
  }))
106
106
  ], 64)) : B(e.$slots, "default", {
107
107
  key: 0,
108
- handleCancel: T,
109
- handlePrevious: v,
108
+ handleCancel: k,
109
+ handlePrevious: m,
110
110
  handleSubmit: c
111
111
  }, () => [
112
- r(u, {
113
- style: q({ opacity: e.hideCancel ? 0 : 1 }),
112
+ s(u, {
113
+ style: H({ opacity: e.hideCancel ? 0 : 1 }),
114
114
  variant: "tertiary",
115
115
  size: "large",
116
116
  type: "button",
117
117
  "button-text": e.cancelText,
118
- onClick: T
118
+ onClick: k
119
119
  }, null, 8, ["style", "button-text"]),
120
- g("div", ie, [
120
+ g("div", le, [
121
121
  B(e.$slots, "prev-and-next", {
122
122
  hidePrevious: e.hidePrevious,
123
123
  hideNext: e.hideNext,
124
124
  previousText: e.previousText,
125
125
  nextText: e.nextText,
126
- handleNext: M,
127
- handlePrevious: v,
126
+ handleNext: A,
127
+ handlePrevious: m,
128
128
  handleSubmit: c,
129
129
  loading: l.loading,
130
- validate: D
130
+ validate: M
131
131
  }, () => [
132
- y(r(u, {
132
+ x(s(u, {
133
133
  variant: "secondary",
134
134
  size: "large",
135
135
  type: "button",
136
136
  "button-text": e.previousText,
137
137
  "icon-start": "CaretLeft",
138
- onClick: v
138
+ onClick: m
139
139
  }, null, 8, ["button-text"]), [
140
- [x, !e.hidePrevious]
140
+ [C, !e.hidePrevious]
141
141
  ]),
142
- y(r(u, {
142
+ x(s(u, {
143
143
  size: "large",
144
144
  variant: e.nextVariant,
145
145
  type: "button",
@@ -148,33 +148,34 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
148
148
  loading: l.loading,
149
149
  onClick: c
150
150
  }, null, 8, ["variant", "button-text", "icon-end", "loading"]), [
151
- [x, !e.hideNext]
151
+ [C, !e.hideNext]
152
152
  ])
153
153
  ], !0)
154
154
  ])
155
155
  ], !0)
156
156
  ]),
157
- d.value && i.value.length ? (o(), h(ee, {
157
+ d.value && i.value.length ? (o(), y(te, {
158
158
  key: 0,
159
- variant: "error"
159
+ variant: "error",
160
+ "icon-top": ""
160
161
  }, {
161
- icon: C(() => [
162
- r(E(_), {
162
+ icon: S(() => [
163
+ s(E(ee), {
163
164
  size: 32,
164
165
  color: "currentColor"
165
166
  })
166
167
  ]),
167
- title: C(() => n[2] || (n[2] = [
168
- g("p", { style: { margin: "0" } }, " Fehler ", -1)
169
- ])),
170
- default: C(() => [
171
- e.showDetailedErrorSummary ? (o(), s("ul", le, [
172
- (o(!0), s(P, null, G(i.value, (a) => (o(), s("li", { key: a }, H(a), 1))), 128))
173
- ])) : w("", !0)
168
+ title: S(() => [
169
+ g("p", re, z($.value), 1)
170
+ ]),
171
+ default: S(() => [
172
+ e.showDetailedErrorSummary ? (o(), r("ul", se, [
173
+ (o(!0), r(P, null, J(i.value, (a) => (o(), r("li", { key: a }, z(a), 1))), 128))
174
+ ])) : N("", !0)
174
175
  ]),
175
176
  _: 1
176
- })) : w("", !0),
177
- r(ne, {
177
+ })) : N("", !0),
178
+ s(ae, {
178
179
  modelValue: f.value,
179
180
  "onUpdate:modelValue": n[0] || (n[0] = (a) => f.value = a),
180
181
  onCloseWithSaving: n[1] || (n[1] = (a) => b("closeWithSaving"))
@@ -183,5 +184,5 @@ const oe = { class: "step-actions" }, ie = { class: "step-actions__prev-and-next
183
184
  }
184
185
  });
185
186
  export {
186
- ye as default
187
+ Ce as default
187
188
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./LinkCard.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-bc004ed9"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0cf5e860"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,52 +1,50 @@
1
- import { defineComponent as p, ref as s, computed as c, createElementBlock as m, openBlock as h, renderSlot as r, createVNode as i, createElementVNode as v, unref as e } from "vue";
2
- import { FormKit as l } from "@formkit/vue";
3
- import a from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
4
- import f from "../../data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js";
5
- const b = { class: "dpiV3_Card_Tips" }, _ = { class: "action-container" }, y = 500, C = /* @__PURE__ */ p({
1
+ import { defineComponent as s, ref as u, computed as m, createElementBlock as p, openBlock as c, renderSlot as r, createVNode as i, createElementVNode as h, unref as t } from "vue";
2
+ import { FormKit as a } from "@formkit/vue";
3
+ import f from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
4
+ import v from "../../data-provider-interface/HappyFlowComponents/ui/TextArea/TextAreaDefinition.js";
5
+ import _ from "../../data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js";
6
+ const b = { class: "dpiV3_Card_Tips" }, B = { class: "action-container" }, V = 500, N = /* @__PURE__ */ s({
6
7
  __name: "LinkCard",
7
- setup(B) {
8
- const n = s(""), d = c(() => {
9
- var t;
10
- return (t = n.value) == null ? void 0 : t.length;
8
+ setup(g) {
9
+ const n = u(""), l = m(() => {
10
+ var e;
11
+ return (e = n.value) == null ? void 0 : e.length;
11
12
  });
12
- return (t, o) => (h(), m("div", b, [
13
- r(t.$slots, "default", {}, () => [
14
- i(e(l), {
15
- type: e(a),
13
+ return (e, o) => (c(), p("div", b, [
14
+ r(e.$slots, "default", {}, () => [
15
+ i(t(a), {
16
+ type: t(f),
16
17
  name: "name",
17
18
  "text-label": "Name",
18
19
  placeholder: "Benennen Sie den Link.",
19
20
  validation: "required"
20
21
  }, null, 8, ["type"]),
21
- i(e(l), {
22
- type: e(a),
22
+ i(_, {
23
23
  name: "url",
24
- "text-label": "URL",
25
- placeholder: "www.url.com",
26
- validation: "required|url"
27
- }, null, 8, ["type"]),
28
- i(e(l), {
24
+ required: ""
25
+ }),
26
+ i(t(a), {
29
27
  id: "Beschreibung",
30
28
  modelValue: n.value,
31
- "onUpdate:modelValue": o[0] || (o[0] = (u) => n.value = u),
29
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => n.value = d),
32
30
  label: "Beschreibung (optional)",
33
- type: e(f),
31
+ type: t(v),
34
32
  name: "description",
35
33
  "text-label": "Beschreibung (optional)",
36
34
  placeholder: "Beschreiben Sie Ihren weiterführenden Link in ein paar Sätzen.",
37
35
  validation: "length:0,500",
38
36
  "validation-visibility": "live",
39
37
  hint: "true",
40
- help: `${d.value} von ${y} Zeichen`,
38
+ help: `${l.value} von ${V} Zeichen`,
41
39
  "count-hint": !0
42
40
  }, null, 8, ["modelValue", "type", "help"]),
43
- v("div", _, [
44
- r(t.$slots, "action", {}, void 0, !0)
41
+ h("div", B, [
42
+ r(e.$slots, "action", {}, void 0, !0)
45
43
  ])
46
44
  ], !0)
47
45
  ]));
48
46
  }
49
47
  });
50
48
  export {
51
- C as default
49
+ N as default
52
50
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./PartnerCard.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-7d616d23"]]);
3
+ import a from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ a(r, [["__scopeId", "data-v-cd6f10aa"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,13 +1,14 @@
1
- import { defineComponent as l, createElementBlock as o, openBlock as s, renderSlot as i, createVNode as n, createElementVNode as d, unref as e } from "vue";
2
- import { FormKit as r } from "@formkit/vue";
3
- import a from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
4
- const m = { class: "dpiV3_Card_Tips" }, c = { class: "action-container" }, b = /* @__PURE__ */ l({
1
+ import { defineComponent as r, createElementBlock as o, openBlock as a, renderSlot as t, createVNode as i, createElementVNode as l, unref as n } from "vue";
2
+ import { FormKit as s } from "@formkit/vue";
3
+ import d from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
4
+ import m from "../../data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js";
5
+ const c = { class: "dpiV3_Card_Tips" }, p = { class: "action-container" }, b = /* @__PURE__ */ r({
5
6
  __name: "PartnerCard",
6
- setup(p) {
7
- return (t, u) => (s(), o("div", m, [
8
- i(t.$slots, "default", {}, () => [
9
- n(e(r), {
10
- type: e(a),
7
+ setup(u) {
8
+ return (e, _) => (a(), o("div", c, [
9
+ t(e.$slots, "default", {}, () => [
10
+ i(n(s), {
11
+ type: n(d),
11
12
  name: "name",
12
13
  "text-label": "Name",
13
14
  placeholder: "Nennen Sie einen Partner.",
@@ -15,17 +16,12 @@ const m = { class: "dpiV3_Card_Tips" }, c = { class: "action-container" }, b = /
15
16
  "validation-visibility": "submit",
16
17
  "trailing-text": !1
17
18
  }, null, 8, ["type"]),
18
- n(e(r), {
19
- type: e(a),
19
+ i(m, {
20
20
  name: "url",
21
- "text-label": "Website",
22
- placeholder: "www.url.com",
23
- validation: "required|url",
24
- "validation-visibility": "submit",
25
- "trailing-text": !1
26
- }, null, 8, ["type"]),
27
- d("div", c, [
28
- i(t.$slots, "action", {}, void 0, !0)
21
+ required: ""
22
+ }),
23
+ l("div", p, [
24
+ t(e.$slots, "action", {}, void 0, !0)
29
25
  ])
30
26
  ], !0)
31
27
  ]));
@@ -1,7 +1,7 @@
1
1
  import o from "./ScreenshotCard.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-34e0b2a0"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-052fbdb3"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,27 +1,22 @@
1
- import { defineComponent as i, createElementBlock as r, openBlock as n, renderSlot as t, createVNode as a, createElementVNode as l, unref as o } from "vue";
2
- import { FormKit as s } from "@formkit/vue";
3
- import d from "../../data-provider-interface/HappyFlowComponents/ui/InputField/InputFieldDefinition.js";
4
- const c = { class: "dpiV3_Card_Tips" }, m = { class: "action-container" }, v = /* @__PURE__ */ i({
1
+ import { defineComponent as t, createElementBlock as r, openBlock as n, renderSlot as o, createVNode as s, createElementVNode as a } from "vue";
2
+ import "@formkit/vue";
3
+ import c from "../../data-provider-interface/HappyFlowComponents/ui/UrlField.vue.js";
4
+ const i = { class: "dpiV3_Card_Tips" }, d = { class: "action-container" }, f = /* @__PURE__ */ t({
5
5
  __name: "ScreenshotCard",
6
- setup(p) {
7
- return (e, u) => (n(), r("div", c, [
8
- t(e.$slots, "default", {}, () => [
9
- a(o(s), {
10
- type: o(d),
6
+ setup(_) {
7
+ return (e, m) => (n(), r("div", i, [
8
+ o(e.$slots, "default", {}, () => [
9
+ s(c, {
11
10
  name: "homepage",
12
- "text-label": "URL",
13
- "trailing-text": !1,
14
- placeholder: "www.url.com",
15
- validation: "required|url",
16
- "validation-visibility": "submit"
17
- }, null, 8, ["type"]),
18
- l("div", m, [
19
- t(e.$slots, "action", {}, void 0, !0)
11
+ required: ""
12
+ }),
13
+ a("div", d, [
14
+ o(e.$slots, "action", {}, void 0, !0)
20
15
  ])
21
16
  ], !0)
22
17
  ]));
23
18
  }
24
19
  });
25
20
  export {
26
- v as default
21
+ f as default
27
22
  };
@@ -1,8 +1,32 @@
1
- const r = "Bitte geben Sie eine korrekte URL ein.";
2
- function t(e) {
1
+ function f(e) {
3
2
  return `${e} ist erforderlich.`;
4
3
  }
4
+ function s(e) {
5
+ return `${e} ist ungültig.`;
6
+ }
7
+ function n(e) {
8
+ const r = typeof e;
9
+ if (r === "number")
10
+ return !1;
11
+ if (e === void 0)
12
+ return !0;
13
+ if (r === "string")
14
+ return e === "";
15
+ if (r === "object") {
16
+ if (e === null)
17
+ return !0;
18
+ for (const u in e) return !1;
19
+ return !(e instanceof RegExp || e instanceof Date);
20
+ }
21
+ return !1;
22
+ }
23
+ function i(e) {
24
+ const r = e.at("$parent");
25
+ return !r || r.type !== "group" || n(r.value) ? !0 : r.children.some((t) => !n(typeof t.value == "string" ? t.value.trim() : t.value)) ? !n(e.value) : !0;
26
+ }
27
+ i.skipEmpty = !1;
5
28
  export {
6
- r as URL_MSG,
7
- t as generateIsRequiredMsg
29
+ s as generateIsInvalidMsg,
30
+ f as generateIsRequiredMsg,
31
+ i as requireAllIfAny
8
32
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@piveau/dpi",
3
3
  "type": "module",
4
- "version": "0.2.0-alpha.40",
4
+ "version": "0.2.0-alpha.41",
5
5
  "private": false,
6
6
  "sideEffects": [
7
7
  "*.css",