@effect-app/vue-components 4.0.0-beta.221 → 4.0.0-beta.222
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/vue-components.es.js +15 -15
- package/dist/vue-components12.es.js +47 -25
- package/dist/vue-components13.es.js +120 -62
- package/dist/vue-components14.es.js +63 -13
- package/dist/vue-components15.es.js +60 -27
- package/dist/vue-components16.es.js +21 -52
- package/dist/vue-components17.es.js +4 -86
- package/dist/vue-components18.es.js +79 -3
- package/dist/vue-components19.es.js +92 -3
- package/dist/vue-components2.es.js +6 -15
- package/dist/vue-components20.es.js +71 -17
- package/dist/vue-components21.es.js +11 -72
- package/dist/vue-components22.es.js +54 -12
- package/dist/vue-components23.es.js +4 -25
- package/dist/vue-components24.es.js +41 -249
- package/dist/vue-components25.es.js +4 -64
- package/dist/vue-components26.es.js +81 -65
- package/dist/vue-components28.es.js +7 -11
- package/dist/vue-components29.es.js +8 -5
- package/dist/vue-components30.es.js +266 -25
- package/dist/vue-components32.es.js +7 -108
- package/dist/vue-components33.es.js +71 -55
- package/dist/vue-components34.es.js +4 -6
- package/dist/vue-components35.es.js +51 -3
- package/dist/vue-components36.es.js +4 -5
- package/dist/vue-components37.es.js +21 -685
- package/dist/vue-components38.es.js +4 -6
- package/dist/vue-components39.es.js +58 -4
- package/dist/vue-components40.es.js +4 -5
- package/dist/vue-components41.es.js +11 -26
- package/dist/vue-components42.es.js +21 -4
- package/dist/vue-components44.es.js +8 -69
- package/dist/vue-components45.es.js +3 -8
- package/dist/vue-components46.es.js +37 -9
- package/dist/vue-components47.es.js +26 -7
- package/dist/vue-components48.es.js +24 -169
- package/dist/vue-components49.es.js +6 -13
- package/dist/vue-components50.es.js +16 -9
- package/dist/vue-components51.es.js +35 -3
- package/dist/vue-components52.es.js +17 -6
- package/dist/vue-components53.es.js +19 -27
- package/dist/vue-components54.es.js +21 -212
- package/dist/vue-components55.es.js +6 -84
- package/dist/vue-components56.es.js +7 -72
- package/dist/vue-components57.es.js +26 -807
- package/dist/vue-components58.es.js +24 -3
- package/dist/vue-components59.es.js +122 -103
- package/dist/vue-components60.es.js +19 -49
- package/dist/vue-components61.es.js +15 -514
- package/dist/vue-components62.es.js +7 -438
- package/dist/vue-components63.es.js +18 -9
- package/dist/vue-components64.es.js +4 -12
- package/dist/vue-components65.es.js +26 -16
- package/dist/vue-components66.es.js +4 -28
- package/dist/vue-components67.es.js +42 -21
- package/dist/vue-components68.es.js +78 -26
- package/dist/vue-components69.es.js +32 -28
- package/dist/vue-components70.es.js +18 -72
- package/dist/vue-components71.es.js +47 -5
- package/package.json +3 -3
- package/dist/vue-components100.es.js +0 -269
- package/dist/vue-components102.es.js +0 -8
- package/dist/vue-components103.es.js +0 -73
- package/dist/vue-components104.es.js +0 -5
- package/dist/vue-components105.es.js +0 -52
- package/dist/vue-components106.es.js +0 -5
- package/dist/vue-components107.es.js +0 -24
- package/dist/vue-components108.es.js +0 -5
- package/dist/vue-components109.es.js +0 -59
- package/dist/vue-components110.es.js +0 -5
- package/dist/vue-components111.es.js +0 -12
- package/dist/vue-components112.es.js +0 -22
- package/dist/vue-components114.es.js +0 -9
- package/dist/vue-components115.es.js +0 -4
- package/dist/vue-components116.es.js +0 -38
- package/dist/vue-components117.es.js +0 -27
- package/dist/vue-components118.es.js +0 -28
- package/dist/vue-components119.es.js +0 -7
- package/dist/vue-components120.es.js +0 -18
- package/dist/vue-components121.es.js +0 -36
- package/dist/vue-components122.es.js +0 -18
- package/dist/vue-components123.es.js +0 -21
- package/dist/vue-components124.es.js +0 -30
- package/dist/vue-components125.es.js +0 -7
- package/dist/vue-components126.es.js +0 -9
- package/dist/vue-components127.es.js +0 -38
- package/dist/vue-components128.es.js +0 -25
- package/dist/vue-components129.es.js +0 -128
- package/dist/vue-components130.es.js +0 -24
- package/dist/vue-components131.es.js +0 -21
- package/dist/vue-components132.es.js +0 -9
- package/dist/vue-components133.es.js +0 -19
- package/dist/vue-components134.es.js +0 -5
- package/dist/vue-components135.es.js +0 -29
- package/dist/vue-components136.es.js +0 -5
- package/dist/vue-components137.es.js +0 -43
- package/dist/vue-components138.es.js +0 -82
- package/dist/vue-components139.es.js +0 -33
- package/dist/vue-components140.es.js +0 -19
- package/dist/vue-components141.es.js +0 -48
- package/dist/vue-components27.es.js +0 -8
- package/dist/vue-components31.es.js +0 -75
- package/dist/vue-components43.es.js +0 -48
- package/dist/vue-components72.es.js +0 -18
- package/dist/vue-components73.es.js +0 -5
- package/dist/vue-components74.es.js +0 -70
- package/dist/vue-components75.es.js +0 -140
- package/dist/vue-components76.es.js +0 -4
- package/dist/vue-components77.es.js +0 -21
- package/dist/vue-components78.es.js +0 -55
- package/dist/vue-components79.es.js +0 -9
- package/dist/vue-components80.es.js +0 -16
- package/dist/vue-components81.es.js +0 -39
- package/dist/vue-components82.es.js +0 -49
- package/dist/vue-components83.es.js +0 -128
- package/dist/vue-components84.es.js +0 -65
- package/dist/vue-components85.es.js +0 -63
- package/dist/vue-components86.es.js +0 -25
- package/dist/vue-components87.es.js +0 -5
- package/dist/vue-components88.es.js +0 -80
- package/dist/vue-components89.es.js +0 -95
- package/dist/vue-components90.es.js +0 -73
- package/dist/vue-components91.es.js +0 -12
- package/dist/vue-components92.es.js +0 -56
- package/dist/vue-components93.es.js +0 -5
- package/dist/vue-components94.es.js +0 -44
- package/dist/vue-components95.es.js +0 -5
- package/dist/vue-components96.es.js +0 -84
- package/dist/vue-components98.es.js +0 -8
- package/dist/vue-components99.es.js +0 -9
|
@@ -1,30 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { useIntl as e } from "./vue-components6.es.js";
|
|
2
|
+
import { generateMetaFromSchema as t } from "./vue-components14.es.js";
|
|
3
|
+
import { defaultsValueFromSchema as n } from "./vue-components15.es.js";
|
|
4
|
+
import { toFormSchema as r } from "./vue-components16.es.js";
|
|
5
|
+
import { usePersistency as i } from "./vue-components18.es.js";
|
|
6
|
+
import { annotateLiteralUnionMessages as a, toLocalizedStandardSchemaV1 as o } from "./vue-components19.es.js";
|
|
7
|
+
import { eHoc as s, makeFieldMap as c } from "./vue-components20.es.js";
|
|
8
|
+
import { fHoc as l } from "./vue-components21.es.js";
|
|
9
|
+
import u from "./vue-components23.es.js";
|
|
10
|
+
import d from "./vue-components25.es.js";
|
|
11
|
+
import f from "./vue-components29.es.js";
|
|
12
|
+
import p from "./vue-components36.es.js";
|
|
13
|
+
import m from "./vue-components40.es.js";
|
|
14
|
+
import h from "./vue-components44.es.js";
|
|
15
|
+
import { makeSubmitHandlers as g, wrapOnSubmit as _ } from "./vue-components67.es.js";
|
|
16
|
+
import { watch as v } from "vue";
|
|
17
|
+
import * as y from "effect-app/Schema";
|
|
18
|
+
import { revalidateLogic as b, useForm as x } from "@tanstack/vue-form";
|
|
19
|
+
import * as S from "effect-app/Context";
|
|
20
|
+
import { makeRunPromise as C } from "@effect-app/vue/runtime";
|
|
21
|
+
//#region src/components/OmegaForm/useOmegaForm.ts
|
|
22
|
+
var w = Symbol("OmegaForm"), T = C(S.empty()), E = (S, C, w) => {
|
|
23
|
+
if (!S) throw Error("Schema is required");
|
|
24
|
+
let { trans: E } = e(), D = r(S), O = o(a(D, E), E), k = y.decodeUnknownEffectConcurrently(D), { meta: A, unionMeta: j } = t(D), M = { form: void 0 }, N = i({
|
|
25
|
+
meta: A,
|
|
26
|
+
persistency: w?.persistency,
|
|
27
|
+
preventWindowExit: w?.preventWindowExit,
|
|
28
|
+
defaultValuesPriority: w?.defaultValuesPriority,
|
|
29
|
+
tanstackDefaultValues: C?.defaultValues,
|
|
30
|
+
schemaDefaultValues: () => n(S),
|
|
31
|
+
getForm: () => M.form
|
|
32
|
+
}), P = x({
|
|
33
|
+
...C,
|
|
34
|
+
validationLogic: b(),
|
|
35
|
+
validators: {
|
|
36
|
+
onDynamic: O,
|
|
37
|
+
...C?.validators
|
|
38
|
+
},
|
|
39
|
+
onSubmit: _(C?.onSubmit, k, T),
|
|
40
|
+
defaultValues: N.defaultValues.value
|
|
41
|
+
});
|
|
42
|
+
M.form = P;
|
|
43
|
+
let F = () => {
|
|
44
|
+
Object.keys(A).forEach((e) => {
|
|
45
|
+
P.setFieldValue(e, void 0);
|
|
46
|
+
});
|
|
18
47
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return !(e.length > 63 && !t.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e) || /[\uff01-\uff5e]/.test(e) || /^-|-$/.test(e) || !t.allow_underscores && /_/.test(e));
|
|
48
|
+
if (w?.preventWindowExit === "prevent-and-reset") {
|
|
49
|
+
let e = P.useStore((e) => e.isSubmitting), t = P.useStore((e) => e.submissionAttempts), n = P.useStore((e) => e.canSubmit), r = P.useStore((e) => e.values);
|
|
50
|
+
v([e, t], ([e, t], [i]) => {
|
|
51
|
+
i && !e && t > 0 && n.value && P.reset(r.value);
|
|
24
52
|
});
|
|
25
53
|
}
|
|
26
|
-
|
|
27
|
-
|
|
54
|
+
let { handleSubmit: I, handleSubmitEffect: L } = g(P), { fieldMap: R, registerField: z } = c(), B = Object.assign(P, {
|
|
55
|
+
i18nNamespace: w?.i18nNamespace,
|
|
56
|
+
ignorePreventCloseEvents: w?.ignorePreventCloseEvents,
|
|
57
|
+
meta: A,
|
|
58
|
+
unionMeta: j,
|
|
59
|
+
clear: F,
|
|
60
|
+
handleSubmit: I,
|
|
61
|
+
handleSubmitEffect: L,
|
|
62
|
+
registerField: z
|
|
63
|
+
}), V = {
|
|
64
|
+
form: B,
|
|
65
|
+
fieldMap: R
|
|
66
|
+
};
|
|
67
|
+
return Object.assign(B, {
|
|
68
|
+
_paths: void 0,
|
|
69
|
+
_keys: void 0,
|
|
70
|
+
_schema: S,
|
|
71
|
+
errorContext: V,
|
|
72
|
+
Form: l(B)(h),
|
|
73
|
+
Input: l(B)(w?.input ?? p),
|
|
74
|
+
TaggedUnion: l(B)(m),
|
|
75
|
+
Field: P.Field,
|
|
76
|
+
Errors: s(V)(f),
|
|
77
|
+
Array: l(B)(u),
|
|
78
|
+
AutoGen: l(B)(d)
|
|
79
|
+
});
|
|
80
|
+
};
|
|
28
81
|
//#endregion
|
|
29
|
-
export
|
|
30
|
-
export { r as require_isFQDN };
|
|
82
|
+
export { w as OmegaFormKey, E as useOmegaForm };
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
1
|
+
import e from "./vue-components36.es.js";
|
|
2
|
+
import { useOmegaForm as t } from "./vue-components68.es.js";
|
|
3
|
+
import { h as n } from "vue";
|
|
4
|
+
//#region src/components/OmegaForm/createUseFormWithCustomInput.ts
|
|
5
|
+
var r = (r) => (...i) => {
|
|
6
|
+
let [a, o, s] = i, c = {
|
|
7
|
+
name: "WrappedInput",
|
|
8
|
+
inheritAttrs: !1,
|
|
9
|
+
setup(t, { attrs: i, slots: a }) {
|
|
10
|
+
return () => n(e, {
|
|
11
|
+
...t,
|
|
12
|
+
...i
|
|
13
|
+
}, {
|
|
14
|
+
default: ({ field: e, state: t, ...o }) => n(r, {
|
|
15
|
+
...Object.fromEntries(Object.entries(i).filter(([e]) => !Object.prototype.hasOwnProperty.call(o, e) && e !== "form")),
|
|
16
|
+
field: e,
|
|
17
|
+
state: t,
|
|
18
|
+
inputProps: o
|
|
19
|
+
}, {
|
|
20
|
+
...a.label && { label: (e) => a.label(e) },
|
|
21
|
+
...a.default && { default: (e) => a.default(e) }
|
|
22
|
+
}),
|
|
23
|
+
...a.label && { label: (e) => a.label(e) }
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
return t(a, o, {
|
|
28
|
+
...s,
|
|
29
|
+
input: c
|
|
30
|
+
});
|
|
31
|
+
};
|
|
27
32
|
//#endregion
|
|
28
|
-
export
|
|
29
|
-
export { n as require_isIP };
|
|
33
|
+
export { r as createUseFormWithCustomInput };
|
|
@@ -1,73 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
require_display_name: !1,
|
|
19
|
-
allow_utf8_local_part: !0,
|
|
20
|
-
require_tld: !0,
|
|
21
|
-
blacklisted_chars: "",
|
|
22
|
-
ignore_max_length: !1,
|
|
23
|
-
host_blacklist: [],
|
|
24
|
-
host_whitelist: []
|
|
25
|
-
}, g = /^([^\x00-\x1F\x7F-\x9F\cX]+)</i, _ = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i, v = /^[a-z\d]+$/, y = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i, b = /^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i, x = /^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i, S = 254;
|
|
26
|
-
function C(e) {
|
|
27
|
-
var t = e.replace(/^"(.+)"$/, "$1");
|
|
28
|
-
return !(!t.trim() || /[\.";<>]/.test(t) && (t === e || t.split("\"").length !== t.split("\\\"").length));
|
|
29
|
-
}
|
|
30
|
-
function w(e, t) {
|
|
31
|
-
if ((0, c.default)(e), t = (0, p.default)(t, h), t.require_display_name || t.allow_display_name) {
|
|
32
|
-
var n = e.match(g);
|
|
33
|
-
if (n) {
|
|
34
|
-
var r = n[1];
|
|
35
|
-
if (e = e.replace(r, "").replace(/(^<|>$)/g, ""), r.endsWith(" ") && (r = r.slice(0, -1)), !C(r)) return !1;
|
|
36
|
-
} else if (t.require_display_name) return !1;
|
|
37
|
-
}
|
|
38
|
-
if (!t.ignore_max_length && e.length > S) return !1;
|
|
39
|
-
var i = e.split("@"), a = i.pop(), o = a.toLowerCase();
|
|
40
|
-
if (t.host_blacklist.length > 0 && (0, l.default)(o, t.host_blacklist) || t.host_whitelist.length > 0 && !(0, l.default)(o, t.host_whitelist)) return !1;
|
|
41
|
-
var s = i.join("@");
|
|
42
|
-
if (t.domain_specific_validation && (o === "gmail.com" || o === "googlemail.com")) {
|
|
43
|
-
s = s.toLowerCase();
|
|
44
|
-
var m = s.split("+")[0];
|
|
45
|
-
if (!(0, u.default)(m.replace(/\./g, ""), {
|
|
46
|
-
min: 6,
|
|
47
|
-
max: 30
|
|
48
|
-
})) return !1;
|
|
49
|
-
for (var w = m.split("."), T = 0; T < w.length; T++) if (!v.test(w[T])) return !1;
|
|
50
|
-
}
|
|
51
|
-
if (t.ignore_max_length === !1 && (!(0, u.default)(s, { max: 64 }) || !(0, u.default)(a, { max: 254 }))) return !1;
|
|
52
|
-
if (!(0, d.default)(a, {
|
|
53
|
-
require_tld: t.require_tld,
|
|
54
|
-
ignore_max_length: t.ignore_max_length,
|
|
55
|
-
allow_underscores: t.allow_underscores
|
|
56
|
-
})) {
|
|
57
|
-
if (!t.allow_ip_domain) return !1;
|
|
58
|
-
if (!(0, f.default)(a)) {
|
|
59
|
-
if (!a.startsWith("[") || !a.endsWith("]")) return !1;
|
|
60
|
-
var E = a.slice(1, -1);
|
|
61
|
-
if (E.length === 0 || !(0, f.default)(E)) return !1;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
if (t.blacklisted_chars && s.search(RegExp(`[${t.blacklisted_chars}]+`, "g")) !== -1) return !1;
|
|
65
|
-
if (s[0] === "\"" && s[s.length - 1] === "\"") return s = s.slice(1, s.length - 1), t.allow_utf8_local_part ? x.test(s) : y.test(s);
|
|
66
|
-
for (var D = t.allow_utf8_local_part ? b : _, O = s.split("."), k = 0; k < O.length; k++) if (!D.test(O[k])) return !1;
|
|
67
|
-
return !0;
|
|
68
|
-
}
|
|
69
|
-
s.exports = e.default, s.exports.default = e.default;
|
|
70
|
-
}));
|
|
1
|
+
import "./vue-components8.es.js";
|
|
2
|
+
import "./vue-components11.es.js";
|
|
3
|
+
import "./vue-components14.es.js";
|
|
4
|
+
import "./vue-components15.es.js";
|
|
5
|
+
import "./vue-components16.es.js";
|
|
6
|
+
import "./vue-components18.es.js";
|
|
7
|
+
import "./vue-components19.es.js";
|
|
8
|
+
import "./vue-components20.es.js";
|
|
9
|
+
import "./vue-components34.es.js";
|
|
10
|
+
import "./vue-components36.es.js";
|
|
11
|
+
import "./vue-components38.es.js";
|
|
12
|
+
import "./vue-components40.es.js";
|
|
13
|
+
import "./vue-components67.es.js";
|
|
14
|
+
import "./vue-components68.es.js";
|
|
15
|
+
import "./vue-components69.es.js";
|
|
16
|
+
//#region src/components/OmegaForm/index.ts
|
|
17
|
+
var e = (e) => e;
|
|
71
18
|
//#endregion
|
|
72
|
-
export
|
|
73
|
-
export { s as require_isEmail };
|
|
19
|
+
export { e as duplicateSchema };
|
|
@@ -1,6 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { __exportAll as e } from "./vue-components2.es.js";
|
|
2
|
+
import t from "./vue-components4.es.js";
|
|
3
|
+
import { useOnClose as n, usePreventClose as r } from "./vue-components8.es.js";
|
|
4
|
+
import i from "./vue-components10.es.js";
|
|
5
|
+
import { getInputType as a } from "./vue-components11.es.js";
|
|
6
|
+
import { createMeta as o, generateMetaFromSchema as s, isNullableOrUndefined as c, metadataFromAst as l } from "./vue-components14.es.js";
|
|
7
|
+
import { defaultsValueFromSchema as u } from "./vue-components15.es.js";
|
|
8
|
+
import { toFormSchema as d } from "./vue-components16.es.js";
|
|
9
|
+
import { deepMerge as f } from "./vue-components18.es.js";
|
|
10
|
+
import { makeStandardSchemaV1Hooks as p, toLocalizedStandardSchemaV1 as m } from "./vue-components19.es.js";
|
|
11
|
+
import { useErrorLabel as h } from "./vue-components20.es.js";
|
|
12
|
+
import g from "./vue-components34.es.js";
|
|
13
|
+
import _ from "./vue-components36.es.js";
|
|
14
|
+
import v from "./vue-components38.es.js";
|
|
15
|
+
import y from "./vue-components40.es.js";
|
|
16
|
+
import { FormErrors as b } from "./vue-components67.es.js";
|
|
17
|
+
import { OmegaFormKey as x, useOmegaForm as S } from "./vue-components68.es.js";
|
|
18
|
+
import { createUseFormWithCustomInput as C } from "./vue-components69.es.js";
|
|
19
|
+
import { duplicateSchema as w } from "./vue-components70.es.js";
|
|
20
|
+
//#region src/components/index.ts
|
|
21
|
+
var T = /* @__PURE__ */ e({
|
|
22
|
+
CommandButton: () => t,
|
|
23
|
+
Dialog: () => i,
|
|
24
|
+
FormErrors: () => b,
|
|
25
|
+
OmegaFormKey: () => x,
|
|
26
|
+
OmegaInput: () => _,
|
|
27
|
+
OmegaTaggedUnion: () => y,
|
|
28
|
+
OmegaTaggedUnionInternal: () => v,
|
|
29
|
+
OmegaVuetifyInput: () => g,
|
|
30
|
+
createMeta: () => o,
|
|
31
|
+
createUseFormWithCustomInput: () => C,
|
|
32
|
+
deepMerge: () => f,
|
|
33
|
+
defaultsValueFromSchema: () => u,
|
|
34
|
+
duplicateSchema: () => w,
|
|
35
|
+
generateMetaFromSchema: () => s,
|
|
36
|
+
getInputType: () => a,
|
|
37
|
+
isNullableOrUndefined: () => c,
|
|
38
|
+
makeStandardSchemaV1Hooks: () => p,
|
|
39
|
+
metadataFromAst: () => l,
|
|
40
|
+
toFormSchema: () => d,
|
|
41
|
+
toLocalizedStandardSchemaV1: () => m,
|
|
42
|
+
useErrorLabel: () => h,
|
|
43
|
+
useOmegaForm: () => S,
|
|
44
|
+
useOnClose: () => n,
|
|
45
|
+
usePreventClose: () => r
|
|
46
|
+
});
|
|
5
47
|
//#endregion
|
|
6
|
-
export {
|
|
48
|
+
export { T as components_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.222",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"effect": "^4.0.0-beta.62",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"highlight.js": "^11.11.1",
|
|
58
58
|
"mitt": "^3.0.1",
|
|
59
59
|
"vue3-highlightjs": "^1.0.5",
|
|
60
|
-
"@effect-app/vue": "4.0.0-beta.
|
|
61
|
-
"effect-app": "4.0.0-beta.
|
|
60
|
+
"@effect-app/vue": "4.0.0-beta.222",
|
|
61
|
+
"effect-app": "4.0.0-beta.222"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"check": "vue-tsc",
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { getInputType as e } from "./vue-components11.es.js";
|
|
2
|
-
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createSlots as a, defineComponent as o, guardReactiveProps as s, mergeProps as c, normalizeProps as l, openBlock as u, renderList as d, renderSlot as f, resolveComponent as p, resolveDynamicComponent as m, unref as h, withCtx as g } from "vue";
|
|
3
|
-
//#region src/components/OmegaForm/OmegaInputVuetify.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
-
var _ = /* @__PURE__ */ o({
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "OmegaInputVuetify",
|
|
7
|
-
props: {
|
|
8
|
-
inputProps: {},
|
|
9
|
-
field: {},
|
|
10
|
-
state: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["focus", "blur"],
|
|
13
|
-
setup(o) {
|
|
14
|
-
return (_, v) => {
|
|
15
|
-
let y = p("v-text-field"), b = p("v-textarea"), x = p("v-radio"), S = p("v-radio-group"), C = p("v-select"), w = p("v-autocomplete");
|
|
16
|
-
return u(), i("div", {
|
|
17
|
-
class: "omega-input",
|
|
18
|
-
onFocusout: v[4] ||= (e) => {
|
|
19
|
-
_.$emit("blur", e), o.field.handleBlur();
|
|
20
|
-
},
|
|
21
|
-
onFocusin: v[5] ||= (e) => _.$emit("focus", e)
|
|
22
|
-
}, [
|
|
23
|
-
o.inputProps.type === "boolean" || o.inputProps.type === "switch" ? (u(), n(m(o.inputProps.type === "boolean" ? "v-checkbox" : "v-switch"), c({
|
|
24
|
-
key: 0,
|
|
25
|
-
id: o.inputProps.id,
|
|
26
|
-
name: o.field.name,
|
|
27
|
-
label: o.inputProps.label,
|
|
28
|
-
"error-messages": o.inputProps.errorMessages,
|
|
29
|
-
error: o.inputProps.error,
|
|
30
|
-
ripple: ""
|
|
31
|
-
}, _.$attrs, {
|
|
32
|
-
"model-value": o.state.value,
|
|
33
|
-
onChange: v[0] ||= (e) => o.field.handleChange(e.target.checked)
|
|
34
|
-
}), a({ _: 2 }, [_.$slots.label ? {
|
|
35
|
-
name: "label",
|
|
36
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
37
|
-
required: o.inputProps.required,
|
|
38
|
-
id: o.inputProps.id,
|
|
39
|
-
label: o.inputProps.label
|
|
40
|
-
})))]),
|
|
41
|
-
key: "0"
|
|
42
|
-
} : void 0]), 1040, [
|
|
43
|
-
"id",
|
|
44
|
-
"name",
|
|
45
|
-
"label",
|
|
46
|
-
"error-messages",
|
|
47
|
-
"error",
|
|
48
|
-
"model-value"
|
|
49
|
-
])) : r("", !0),
|
|
50
|
-
o.inputProps.type === "email" || o.inputProps.type === "string" || o.inputProps.type === "password" || o.inputProps.type === "date" ? (u(), n(y, c({
|
|
51
|
-
key: 1,
|
|
52
|
-
id: o.inputProps.id,
|
|
53
|
-
required: o.inputProps.required,
|
|
54
|
-
"min-length": o.inputProps.minLength,
|
|
55
|
-
"max-length": o.inputProps.maxLength,
|
|
56
|
-
type: h(e)(o.inputProps.type),
|
|
57
|
-
name: o.field.name,
|
|
58
|
-
label: o.inputProps.label,
|
|
59
|
-
"error-messages": o.inputProps.errorMessages,
|
|
60
|
-
error: o.inputProps.error
|
|
61
|
-
}, _.$attrs, {
|
|
62
|
-
"model-value": o.state.value,
|
|
63
|
-
"onUpdate:modelValue": o.field.handleChange
|
|
64
|
-
}), a({ _: 2 }, [_.$slots.label ? {
|
|
65
|
-
name: "label",
|
|
66
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
67
|
-
required: o.inputProps.required,
|
|
68
|
-
id: o.inputProps.id,
|
|
69
|
-
label: o.inputProps.label
|
|
70
|
-
})))]),
|
|
71
|
-
key: "0"
|
|
72
|
-
} : void 0]), 1040, [
|
|
73
|
-
"id",
|
|
74
|
-
"required",
|
|
75
|
-
"min-length",
|
|
76
|
-
"max-length",
|
|
77
|
-
"type",
|
|
78
|
-
"name",
|
|
79
|
-
"label",
|
|
80
|
-
"error-messages",
|
|
81
|
-
"error",
|
|
82
|
-
"model-value",
|
|
83
|
-
"onUpdate:modelValue"
|
|
84
|
-
])) : r("", !0),
|
|
85
|
-
o.inputProps.type === "text" ? (u(), n(b, c({
|
|
86
|
-
key: 2,
|
|
87
|
-
id: o.inputProps.id,
|
|
88
|
-
required: o.inputProps.required,
|
|
89
|
-
"min-length": o.inputProps.minLength,
|
|
90
|
-
"max-length": o.inputProps.maxLength,
|
|
91
|
-
name: o.field.name,
|
|
92
|
-
label: o.inputProps.label,
|
|
93
|
-
"error-messages": o.inputProps.errorMessages,
|
|
94
|
-
error: o.inputProps.error
|
|
95
|
-
}, _.$attrs, {
|
|
96
|
-
"model-value": o.state.value,
|
|
97
|
-
"onUpdate:modelValue": o.field.handleChange
|
|
98
|
-
}), a({ _: 2 }, [_.$slots.label ? {
|
|
99
|
-
name: "label",
|
|
100
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
101
|
-
required: o.inputProps.required,
|
|
102
|
-
id: o.inputProps.id,
|
|
103
|
-
label: o.inputProps.label
|
|
104
|
-
})))]),
|
|
105
|
-
key: "0"
|
|
106
|
-
} : void 0]), 1040, [
|
|
107
|
-
"id",
|
|
108
|
-
"required",
|
|
109
|
-
"min-length",
|
|
110
|
-
"max-length",
|
|
111
|
-
"name",
|
|
112
|
-
"label",
|
|
113
|
-
"error-messages",
|
|
114
|
-
"error",
|
|
115
|
-
"model-value",
|
|
116
|
-
"onUpdate:modelValue"
|
|
117
|
-
])) : r("", !0),
|
|
118
|
-
o.inputProps.type === "number" || o.inputProps.type === "range" ? (u(), n(m(o.inputProps.type === "range" ? "v-slider" : "v-text-field"), c({
|
|
119
|
-
key: 3,
|
|
120
|
-
id: o.inputProps.id,
|
|
121
|
-
required: o.inputProps.required,
|
|
122
|
-
min: o.inputProps.min,
|
|
123
|
-
max: o.inputProps.max,
|
|
124
|
-
type: o.inputProps.type,
|
|
125
|
-
name: o.field.name,
|
|
126
|
-
label: o.inputProps.label,
|
|
127
|
-
"error-messages": o.inputProps.errorMessages,
|
|
128
|
-
error: o.inputProps.error
|
|
129
|
-
}, _.$attrs, {
|
|
130
|
-
"model-value": o.state.value,
|
|
131
|
-
"onUpdate:modelValue": v[1] ||= (e) => {
|
|
132
|
-
e || e === 0 ? o.field.handleChange(Number(e)) : o.field.handleChange(void 0);
|
|
133
|
-
}
|
|
134
|
-
}), a({ _: 2 }, [_.$slots.label ? {
|
|
135
|
-
name: "label",
|
|
136
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
137
|
-
required: o.inputProps.required,
|
|
138
|
-
id: o.inputProps.id,
|
|
139
|
-
label: o.inputProps.label
|
|
140
|
-
})))]),
|
|
141
|
-
key: "0"
|
|
142
|
-
} : void 0]), 1040, [
|
|
143
|
-
"id",
|
|
144
|
-
"required",
|
|
145
|
-
"min",
|
|
146
|
-
"max",
|
|
147
|
-
"type",
|
|
148
|
-
"name",
|
|
149
|
-
"label",
|
|
150
|
-
"error-messages",
|
|
151
|
-
"error",
|
|
152
|
-
"model-value"
|
|
153
|
-
])) : r("", !0),
|
|
154
|
-
o.inputProps.type === "radio" ? (u(), n(S, c({
|
|
155
|
-
key: 4,
|
|
156
|
-
id: o.inputProps.id,
|
|
157
|
-
name: o.field.name,
|
|
158
|
-
label: o.inputProps.label,
|
|
159
|
-
"error-messages": o.inputProps.errorMessages,
|
|
160
|
-
error: o.inputProps.error
|
|
161
|
-
}, _.$attrs, {
|
|
162
|
-
"model-value": o.state.value,
|
|
163
|
-
"onUpdate:modelValue": o.field.handleChange
|
|
164
|
-
}), a({
|
|
165
|
-
default: g(() => [(u(!0), i(t, null, d(o.inputProps.options, (e) => (u(), n(x, {
|
|
166
|
-
key: e.value,
|
|
167
|
-
label: e.title,
|
|
168
|
-
value: e.value
|
|
169
|
-
}, null, 8, ["label", "value"]))), 128))]),
|
|
170
|
-
_: 2
|
|
171
|
-
}, [_.$slots.label ? {
|
|
172
|
-
name: "label",
|
|
173
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
174
|
-
required: o.inputProps.required,
|
|
175
|
-
id: o.inputProps.id,
|
|
176
|
-
label: o.inputProps.label
|
|
177
|
-
})))]),
|
|
178
|
-
key: "0"
|
|
179
|
-
} : void 0]), 1040, [
|
|
180
|
-
"id",
|
|
181
|
-
"name",
|
|
182
|
-
"label",
|
|
183
|
-
"error-messages",
|
|
184
|
-
"error",
|
|
185
|
-
"model-value",
|
|
186
|
-
"onUpdate:modelValue"
|
|
187
|
-
])) : r("", !0),
|
|
188
|
-
o.inputProps.type === "select" || o.inputProps.type === "multiple" ? (u(), n(C, c({
|
|
189
|
-
key: 5,
|
|
190
|
-
id: o.inputProps.id,
|
|
191
|
-
clearable: o.inputProps.type === "select",
|
|
192
|
-
required: o.inputProps.required,
|
|
193
|
-
multiple: o.inputProps.type === "multiple",
|
|
194
|
-
chips: o.inputProps.type === "multiple",
|
|
195
|
-
name: o.field.name,
|
|
196
|
-
label: o.inputProps.label,
|
|
197
|
-
items: o.inputProps.options,
|
|
198
|
-
"error-messages": o.inputProps.errorMessages,
|
|
199
|
-
error: o.inputProps.error
|
|
200
|
-
}, _.$attrs, {
|
|
201
|
-
"model-value": o.state.value,
|
|
202
|
-
onClear: v[2] ||= (e) => o.field.handleChange(void 0),
|
|
203
|
-
"onUpdate:modelValue": o.field.handleChange
|
|
204
|
-
}), a({ _: 2 }, [_.$slots.label ? {
|
|
205
|
-
name: "label",
|
|
206
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
207
|
-
required: o.inputProps.required,
|
|
208
|
-
id: o.inputProps.id,
|
|
209
|
-
label: o.inputProps.label
|
|
210
|
-
})))]),
|
|
211
|
-
key: "0"
|
|
212
|
-
} : void 0]), 1040, [
|
|
213
|
-
"id",
|
|
214
|
-
"clearable",
|
|
215
|
-
"required",
|
|
216
|
-
"multiple",
|
|
217
|
-
"chips",
|
|
218
|
-
"name",
|
|
219
|
-
"label",
|
|
220
|
-
"items",
|
|
221
|
-
"error-messages",
|
|
222
|
-
"error",
|
|
223
|
-
"model-value",
|
|
224
|
-
"onUpdate:modelValue"
|
|
225
|
-
])) : r("", !0),
|
|
226
|
-
o.inputProps.type === "autocomplete" || o.inputProps.type === "autocompletemultiple" ? (u(), n(w, c({
|
|
227
|
-
key: 6,
|
|
228
|
-
id: o.inputProps.id,
|
|
229
|
-
clearable: o.inputProps.type === "autocomplete",
|
|
230
|
-
multiple: o.inputProps.type === "autocompletemultiple",
|
|
231
|
-
required: o.inputProps.required,
|
|
232
|
-
name: o.field.name,
|
|
233
|
-
label: o.inputProps.label,
|
|
234
|
-
items: o.inputProps.options,
|
|
235
|
-
"error-messages": o.inputProps.errorMessages,
|
|
236
|
-
error: o.inputProps.error,
|
|
237
|
-
chips: o.inputProps.type === "autocompletemultiple"
|
|
238
|
-
}, _.$attrs, {
|
|
239
|
-
"model-value": o.state.value,
|
|
240
|
-
onClear: v[3] ||= (e) => o.field.handleChange(void 0),
|
|
241
|
-
"onUpdate:modelValue": o.field.handleChange
|
|
242
|
-
}), a({ _: 2 }, [_.$slots.label ? {
|
|
243
|
-
name: "label",
|
|
244
|
-
fn: g(() => [f(_.$slots, "label", l(s({
|
|
245
|
-
required: o.inputProps.required,
|
|
246
|
-
id: o.inputProps.id,
|
|
247
|
-
label: o.inputProps.label
|
|
248
|
-
})))]),
|
|
249
|
-
key: "0"
|
|
250
|
-
} : void 0]), 1040, [
|
|
251
|
-
"id",
|
|
252
|
-
"clearable",
|
|
253
|
-
"multiple",
|
|
254
|
-
"required",
|
|
255
|
-
"name",
|
|
256
|
-
"label",
|
|
257
|
-
"items",
|
|
258
|
-
"error-messages",
|
|
259
|
-
"error",
|
|
260
|
-
"chips",
|
|
261
|
-
"model-value",
|
|
262
|
-
"onUpdate:modelValue"
|
|
263
|
-
])) : r("", !0)
|
|
264
|
-
], 32);
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
//#endregion
|
|
269
|
-
export { _ as default };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.omega-input .v-input__details:has(.v-messages:empty){grid-template-rows:0fr;transition:all .2s}.omega-input .v-messages:empty{min-height:0}.omega-input .v-input__details:has(.v-messages){grid-template-rows:1fr;min-height:0;transition:all .2s;display:grid;overflow:hidden}.omega-input .v-messages{transition:all .2s}.omega-input .v-messages>*{transition-duration:0s!important}.omega-input [role=alert]:has(.v-messages:empty){padding:0}.omega-input .v-btn{cursor:pointer;appearance:none;width:auto;box-shadow:none;min-width:auto;height:auto;padding:.5em .5em .5em 1em;display:block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
3
|
-
import e from "./vue-components100.es.js";
|
|
4
|
-
|
|
5
|
-
//#region src/components/OmegaForm/OmegaInputVuetify.vue
|
|
6
|
-
var t = e;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t as default };
|