@effect-app/vue-components 4.0.0-beta.220 → 4.0.0-beta.221
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/types/components/CommandButton.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/index.d.ts +1 -1
- package/dist/types/components/OmegaForm/meta/checks.d.ts +1 -1
- package/dist/types/components/OmegaForm/meta/createMeta.d.ts +2 -1
- package/dist/types/components/OmegaForm/meta/defaults.d.ts +1 -1
- package/dist/types/components/OmegaForm/meta/redacted.d.ts +1 -1
- package/dist/types/components/OmegaForm/meta/types.d.ts +1 -1
- package/dist/types/components/OmegaForm/meta/walker.d.ts +1 -1
- package/dist/types/components/OmegaForm/submit.d.ts +1 -1
- package/dist/types/components/OmegaForm/types.d.ts +3 -1
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +1 -1
- package/dist/types/components/OmegaForm/validation/localized.d.ts +1 -1
- package/dist/types/utils/index.d.ts +3 -3
- package/dist/vue-components.es.js +15 -15
- package/dist/vue-components100.es.js +269 -0
- package/dist/vue-components102.es.js +8 -0
- package/dist/vue-components103.es.js +73 -0
- package/dist/vue-components104.es.js +5 -0
- package/dist/vue-components105.es.js +52 -0
- package/dist/vue-components106.es.js +5 -0
- package/dist/vue-components107.es.js +24 -0
- package/dist/vue-components108.es.js +5 -0
- package/dist/vue-components109.es.js +59 -0
- package/dist/vue-components110.es.js +5 -0
- package/dist/vue-components111.es.js +12 -0
- package/dist/vue-components112.es.js +22 -0
- package/dist/vue-components114.es.js +9 -0
- package/dist/vue-components115.es.js +4 -0
- package/dist/vue-components116.es.js +38 -0
- package/dist/vue-components117.es.js +27 -0
- package/dist/vue-components118.es.js +28 -0
- package/dist/vue-components119.es.js +7 -0
- package/dist/vue-components12.es.js +25 -47
- package/dist/vue-components120.es.js +18 -0
- package/dist/vue-components121.es.js +36 -0
- package/dist/vue-components122.es.js +18 -0
- package/dist/vue-components123.es.js +21 -0
- package/dist/vue-components124.es.js +30 -0
- package/dist/vue-components125.es.js +7 -0
- package/dist/vue-components126.es.js +9 -0
- package/dist/vue-components127.es.js +38 -0
- package/dist/vue-components128.es.js +25 -0
- package/dist/vue-components129.es.js +128 -0
- package/dist/vue-components13.es.js +62 -120
- package/dist/vue-components130.es.js +24 -0
- package/dist/vue-components131.es.js +21 -0
- package/dist/vue-components132.es.js +9 -0
- package/dist/vue-components133.es.js +19 -0
- package/dist/vue-components134.es.js +5 -0
- package/dist/vue-components135.es.js +29 -0
- package/dist/vue-components136.es.js +5 -0
- package/dist/vue-components137.es.js +43 -0
- package/dist/vue-components138.es.js +82 -0
- package/dist/vue-components139.es.js +33 -0
- package/dist/vue-components14.es.js +13 -63
- package/dist/vue-components140.es.js +19 -0
- package/dist/vue-components141.es.js +48 -0
- package/dist/vue-components15.es.js +27 -58
- package/dist/vue-components16.es.js +52 -21
- package/dist/vue-components17.es.js +86 -4
- package/dist/vue-components18.es.js +3 -79
- package/dist/vue-components19.es.js +3 -91
- package/dist/vue-components2.es.js +15 -6
- package/dist/vue-components20.es.js +17 -71
- package/dist/vue-components21.es.js +72 -11
- package/dist/vue-components22.es.js +12 -54
- package/dist/vue-components23.es.js +25 -4
- package/dist/vue-components24.es.js +249 -41
- package/dist/vue-components25.es.js +64 -4
- package/dist/vue-components26.es.js +65 -81
- package/dist/vue-components27.es.js +8 -0
- package/dist/vue-components28.es.js +11 -7
- package/dist/vue-components29.es.js +5 -8
- package/dist/vue-components30.es.js +25 -266
- package/dist/vue-components31.es.js +75 -0
- package/dist/vue-components32.es.js +108 -7
- package/dist/vue-components33.es.js +55 -71
- package/dist/vue-components34.es.js +6 -4
- package/dist/vue-components35.es.js +3 -51
- package/dist/vue-components36.es.js +5 -4
- package/dist/vue-components37.es.js +685 -21
- package/dist/vue-components38.es.js +6 -4
- package/dist/vue-components39.es.js +4 -58
- package/dist/vue-components40.es.js +5 -4
- package/dist/vue-components41.es.js +26 -11
- package/dist/vue-components42.es.js +4 -21
- package/dist/vue-components43.es.js +48 -0
- package/dist/vue-components44.es.js +69 -8
- package/dist/vue-components45.es.js +8 -3
- package/dist/vue-components46.es.js +9 -37
- package/dist/vue-components47.es.js +7 -26
- package/dist/vue-components48.es.js +169 -24
- package/dist/vue-components49.es.js +13 -6
- package/dist/vue-components50.es.js +9 -16
- package/dist/vue-components51.es.js +3 -35
- package/dist/vue-components52.es.js +6 -17
- package/dist/vue-components53.es.js +27 -19
- package/dist/vue-components54.es.js +212 -21
- package/dist/vue-components55.es.js +84 -6
- package/dist/vue-components56.es.js +72 -7
- package/dist/vue-components57.es.js +807 -26
- package/dist/vue-components58.es.js +3 -24
- package/dist/vue-components59.es.js +103 -122
- package/dist/vue-components60.es.js +49 -19
- package/dist/vue-components61.es.js +514 -15
- package/dist/vue-components62.es.js +438 -7
- package/dist/vue-components63.es.js +9 -18
- package/dist/vue-components64.es.js +12 -4
- package/dist/vue-components65.es.js +16 -26
- package/dist/vue-components66.es.js +28 -4
- package/dist/vue-components67.es.js +20 -27
- package/dist/vue-components68.es.js +29 -5
- package/dist/vue-components69.es.js +27 -16
- package/dist/vue-components70.es.js +71 -38
- package/dist/vue-components71.es.js +5 -80
- package/dist/vue-components72.es.js +17 -32
- package/dist/vue-components73.es.js +4 -18
- package/dist/vue-components74.es.js +69 -47
- package/dist/vue-components75.es.js +140 -0
- package/dist/vue-components76.es.js +4 -0
- package/dist/vue-components77.es.js +21 -0
- package/dist/vue-components78.es.js +55 -0
- package/dist/vue-components79.es.js +9 -0
- package/dist/vue-components80.es.js +16 -0
- package/dist/vue-components81.es.js +39 -0
- package/dist/vue-components82.es.js +49 -0
- package/dist/vue-components83.es.js +128 -0
- package/dist/vue-components84.es.js +65 -0
- package/dist/vue-components85.es.js +63 -0
- package/dist/vue-components86.es.js +25 -0
- package/dist/vue-components87.es.js +5 -0
- package/dist/vue-components88.es.js +80 -0
- package/dist/vue-components89.es.js +95 -0
- package/dist/vue-components90.es.js +73 -0
- package/dist/vue-components91.es.js +12 -0
- package/dist/vue-components92.es.js +56 -0
- package/dist/vue-components93.es.js +5 -0
- package/dist/vue-components94.es.js +44 -0
- package/dist/vue-components95.es.js +5 -0
- package/dist/vue-components96.es.js +84 -0
- package/dist/vue-components98.es.js +8 -0
- package/dist/vue-components99.es.js +9 -0
- package/package.json +3 -3
- package/src/components/CommandButton.vue +1 -1
- package/src/components/OmegaForm/OmegaAutoGen.vue +1 -1
- package/src/components/OmegaForm/index.ts +1 -1
- package/src/components/OmegaForm/meta/checks.ts +2 -1
- package/src/components/OmegaForm/meta/createMeta.ts +3 -1
- package/src/components/OmegaForm/meta/defaults.ts +3 -1
- package/src/components/OmegaForm/meta/redacted.ts +1 -1
- package/src/components/OmegaForm/meta/types.ts +1 -1
- package/src/components/OmegaForm/meta/walker.ts +1 -1
- package/src/components/OmegaForm/submit.ts +4 -1
- package/src/components/OmegaForm/types.ts +3 -1
- package/src/components/OmegaForm/useOmegaForm.ts +2 -1
- package/src/components/OmegaForm/useRegisterField.ts +1 -1
- package/src/components/OmegaForm/validation/localized.ts +2 -1
- package/src/utils/index.ts +2 -2
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { __commonJSMin as e } from "./vue-components2.es.js";
|
|
2
|
+
import { require_assertString as t } from "./vue-components64.es.js";
|
|
3
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/lib/isIP.js
|
|
4
|
+
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = d;
|
|
6
|
+
var r = i(t());
|
|
7
|
+
function i(e) {
|
|
8
|
+
return e && e.__esModule ? e : { default: e };
|
|
9
|
+
}
|
|
10
|
+
function a(e) {
|
|
11
|
+
"@babel/helpers - typeof";
|
|
12
|
+
return a = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
13
|
+
return typeof e;
|
|
14
|
+
} : function(e) {
|
|
15
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
16
|
+
}, a(e);
|
|
17
|
+
}
|
|
18
|
+
var o = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", s = `(${o}[.]){3}${o}`, c = RegExp(`^${s}\$`), l = "(?:[0-9a-fA-F]{1,4})", u = RegExp(`^((?:${l}:){7}(?:${l}|:)|(?:${l}:){6}(?:${s}|:${l}|:)|(?:${l}:){5}(?::${s}|(:${l}){1,2}|:)|(?:${l}:){4}(?:(:${l}){0,1}:${s}|(:${l}){1,3}|:)|(?:${l}:){3}(?:(:${l}){0,2}:${s}|(:${l}){1,4}|:)|(?:${l}:){2}(?:(:${l}){0,3}:${s}|(:${l}){1,5}|:)|(?:${l}:){1}(?:(:${l}){0,4}:${s}|(:${l}){1,6}|:)|(?::((?::${l}){0,5}:${s}|(?::${l}){1,7}|:)))(%[0-9a-zA-Z.]{1,})?\$`);
|
|
19
|
+
function d(e) {
|
|
20
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
21
|
+
(0, r.default)(e);
|
|
22
|
+
var n = (a(t) === "object" ? t.version : arguments[1]) || "";
|
|
23
|
+
return n ? n.toString() === "4" ? c.test(e) : n.toString() === "6" ? u.test(e) : !1 : d(e, { version: 4 }) || d(e, { version: 6 });
|
|
24
|
+
}
|
|
25
|
+
n.exports = e.default, n.exports.default = e.default;
|
|
9
26
|
}));
|
|
10
|
-
var c = (e, t) => {
|
|
11
|
-
let n = () => r.runSync(a.interrupt(e));
|
|
12
|
-
return t.aborted ? (n(), e) : (t.addEventListener("abort", n), e);
|
|
13
|
-
}, l = (e, t) => (t && c(e, t), new Promise((t, r) => e.addObserver((e) => {
|
|
14
|
-
i.isSuccess(e) ? t(e.value) : r(n.squash(e.cause));
|
|
15
|
-
})));
|
|
16
|
-
(function* () {}).constructor;
|
|
17
27
|
//#endregion
|
|
18
|
-
export
|
|
28
|
+
export default n();
|
|
29
|
+
export { n as require_isIP };
|
|
@@ -1,40 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { __commonJSMin as e } from "./vue-components2.es.js";
|
|
2
|
+
import { require_assertString as t } from "./vue-components64.es.js";
|
|
3
|
+
import { require_checkHost as n } from "./vue-components65.es.js";
|
|
4
|
+
import { require_isByteLength as r } from "./vue-components66.es.js";
|
|
5
|
+
import { require_merge as i } from "./vue-components67.es.js";
|
|
6
|
+
import { require_isFQDN as a } from "./vue-components68.es.js";
|
|
7
|
+
import { require_isIP as o } from "./vue-components69.es.js";
|
|
8
|
+
//#region ../../node_modules/.pnpm/validator@13.15.35/node_modules/validator/lib/isEmail.js
|
|
9
|
+
var s = /* @__PURE__ */ e(((e, s) => {
|
|
10
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = w;
|
|
11
|
+
var c = m(t()), l = m(n()), u = m(r()), d = m(a()), f = m(o()), p = m(i());
|
|
12
|
+
function m(e) {
|
|
13
|
+
return e && e.__esModule ? e : { default: e };
|
|
14
|
+
}
|
|
15
|
+
var h = {
|
|
16
|
+
allow_display_name: !1,
|
|
17
|
+
allow_underscores: !1,
|
|
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;
|
|
17
37
|
}
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}))
|
|
37
|
-
|
|
38
|
-
|
|
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
|
+
}));
|
|
39
71
|
//#endregion
|
|
40
|
-
export
|
|
72
|
+
export default s();
|
|
73
|
+
export { s as require_isEmail };
|
|
@@ -1,81 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
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-components70.es.js";
|
|
16
|
-
import { watch as v } from "vue";
|
|
17
|
-
import { Context as y, S as b } from "effect-app";
|
|
18
|
-
import { revalidateLogic as x, useForm as S } from "@tanstack/vue-form";
|
|
19
|
-
import { makeRunPromise as C } from "@effect-app/vue/runtime";
|
|
20
|
-
//#region src/components/OmegaForm/useOmegaForm.ts
|
|
21
|
-
var w = Symbol("OmegaForm"), T = C(y.empty()), E = (y, C, w) => {
|
|
22
|
-
if (!y) throw Error("Schema is required");
|
|
23
|
-
let { trans: E } = e(), D = r(y), O = o(a(D, E), E), k = b.decodeUnknownEffectConcurrently(D), { meta: A, unionMeta: j } = t(D), M = { form: void 0 }, N = i({
|
|
24
|
-
meta: A,
|
|
25
|
-
persistency: w?.persistency,
|
|
26
|
-
preventWindowExit: w?.preventWindowExit,
|
|
27
|
-
defaultValuesPriority: w?.defaultValuesPriority,
|
|
28
|
-
tanstackDefaultValues: C?.defaultValues,
|
|
29
|
-
schemaDefaultValues: () => n(y),
|
|
30
|
-
getForm: () => M.form
|
|
31
|
-
}), P = S({
|
|
32
|
-
...C,
|
|
33
|
-
validationLogic: x(),
|
|
34
|
-
validators: {
|
|
35
|
-
onDynamic: O,
|
|
36
|
-
...C?.validators
|
|
37
|
-
},
|
|
38
|
-
onSubmit: _(C?.onSubmit, k, T),
|
|
39
|
-
defaultValues: N.defaultValues.value
|
|
40
|
-
});
|
|
41
|
-
M.form = P;
|
|
42
|
-
let F = () => {
|
|
43
|
-
Object.keys(A).forEach((e) => {
|
|
44
|
-
P.setFieldValue(e, void 0);
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
if (w?.preventWindowExit === "prevent-and-reset") {
|
|
48
|
-
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);
|
|
49
|
-
v([e, t], ([e, t], [i]) => {
|
|
50
|
-
i && !e && t > 0 && n.value && P.reset(r.value);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
let { handleSubmit: I, handleSubmitEffect: L } = g(P), { fieldMap: R, registerField: z } = c(), B = Object.assign(P, {
|
|
54
|
-
i18nNamespace: w?.i18nNamespace,
|
|
55
|
-
ignorePreventCloseEvents: w?.ignorePreventCloseEvents,
|
|
56
|
-
meta: A,
|
|
57
|
-
unionMeta: j,
|
|
58
|
-
clear: F,
|
|
59
|
-
handleSubmit: I,
|
|
60
|
-
handleSubmitEffect: L,
|
|
61
|
-
registerField: z
|
|
62
|
-
}), V = {
|
|
63
|
-
form: B,
|
|
64
|
-
fieldMap: R
|
|
65
|
-
};
|
|
66
|
-
return Object.assign(B, {
|
|
67
|
-
_paths: void 0,
|
|
68
|
-
_keys: void 0,
|
|
69
|
-
_schema: y,
|
|
70
|
-
errorContext: V,
|
|
71
|
-
Form: l(B)(h),
|
|
72
|
-
Input: l(B)(w?.input ?? p),
|
|
73
|
-
TaggedUnion: l(B)(m),
|
|
74
|
-
Field: P.Field,
|
|
75
|
-
Errors: s(V)(f),
|
|
76
|
-
Array: l(B)(u),
|
|
77
|
-
AutoGen: l(B)(d)
|
|
78
|
-
});
|
|
79
|
-
};
|
|
1
|
+
import { __toESM as e } from "./vue-components2.es.js";
|
|
2
|
+
import { require_isEmail as t } from "./vue-components70.es.js";
|
|
3
|
+
//#region ../effect-app/dist/validation/validators.js
|
|
4
|
+
var n = /* @__PURE__ */ e(t(), 1), r = /^\+?[\d-/ ]*$/, i = 7, a = n.default, o = (e) => !(!r.test(e) || !(e.split("").filter((e) => !isNaN(Number(e))).length >= i));
|
|
80
5
|
//#endregion
|
|
81
|
-
export {
|
|
6
|
+
export { a as isValidEmail, o as isValidPhone };
|
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
import e from "./vue-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
};
|
|
1
|
+
import { String as e, annotate as t, check as n, isMaxLength as r, isMinLength as i, refine as a } from "./vue-components62.es.js";
|
|
2
|
+
import { isValidEmail as o } from "./vue-components71.es.js";
|
|
3
|
+
//#region ../effect-app/dist/Schema/email.js
|
|
4
|
+
var s = e.pipe(t({
|
|
5
|
+
title: "Email",
|
|
6
|
+
description: "an email according to RFC 5322",
|
|
7
|
+
format: "email"
|
|
8
|
+
}), n(i(3), r(998)), a(o, {
|
|
9
|
+
identifier: "Email",
|
|
10
|
+
description: "an email according to RFC 5322",
|
|
11
|
+
jsonSchema: {
|
|
12
|
+
format: "email",
|
|
13
|
+
minLength: 3,
|
|
14
|
+
maxLength: 998
|
|
15
|
+
}
|
|
16
|
+
}), t({ toArbitrary: () => (e) => e.emailAddress().map((e) => e) }));
|
|
32
17
|
//#endregion
|
|
33
|
-
export {
|
|
18
|
+
export { s as Email };
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
import "./vue-
|
|
2
|
-
import "./vue-
|
|
3
|
-
|
|
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-components70.es.js";
|
|
14
|
-
import "./vue-components71.es.js";
|
|
15
|
-
import "./vue-components72.es.js";
|
|
16
|
-
//#region src/components/OmegaForm/index.ts
|
|
17
|
-
var e = (e) => e;
|
|
1
|
+
import { hasProperty as e } from "./vue-components15.es.js";
|
|
2
|
+
import { FiberTypeId as t, fiberInterrupt as n } from "./vue-components37.es.js";
|
|
3
|
+
var r = n, i = (n) => e(n, t);
|
|
18
4
|
//#endregion
|
|
19
|
-
export {
|
|
5
|
+
export { r as interrupt, i as isFiber };
|
|
@@ -1,48 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "./vue-
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import { PipeInspectableProto as e } from "./vue-components24.es.js";
|
|
2
|
+
import { Reference as t } from "./vue-components32.es.js";
|
|
3
|
+
import { TaggedError as n } from "./vue-components39.es.js";
|
|
4
|
+
import { succeed as r } from "./vue-components46.es.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/ConfigProvider.js
|
|
6
|
+
function i(e) {
|
|
7
|
+
return {
|
|
8
|
+
_tag: "Value",
|
|
9
|
+
value: e
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
function a(e, t) {
|
|
13
|
+
return {
|
|
14
|
+
_tag: "Record",
|
|
15
|
+
keys: e,
|
|
16
|
+
value: t
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function o(e, t) {
|
|
20
|
+
return {
|
|
21
|
+
_tag: "Array",
|
|
22
|
+
length: e,
|
|
23
|
+
value: t
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
n("SourceError");
|
|
27
|
+
var s = /* @__PURE__ */ t("effect/ConfigProvider", { defaultValue: () => u() }), c = {
|
|
28
|
+
...e,
|
|
29
|
+
toJSON() {
|
|
30
|
+
return { _id: "ConfigProvider" };
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
function l(e, t, n) {
|
|
34
|
+
let r = Object.create(c);
|
|
35
|
+
return r.get = e, r.mapInput = t, r.prefix = n, r.load = (r) => (t && (r = t(r)), n && (r = [...n, ...r]), e(r)), r;
|
|
36
|
+
}
|
|
37
|
+
function u(e) {
|
|
38
|
+
let t = e?.env ?? {
|
|
39
|
+
...globalThis?.process?.env,
|
|
40
|
+
BASE_URL: "/",
|
|
41
|
+
DEV: !1,
|
|
42
|
+
MODE: "production",
|
|
43
|
+
PROD: !0,
|
|
44
|
+
SSR: !1
|
|
45
|
+
}, n = d(t);
|
|
46
|
+
return l((e) => r(p(n, t, e)));
|
|
47
|
+
}
|
|
48
|
+
function d(e) {
|
|
49
|
+
let t = {};
|
|
50
|
+
for (let [n, r] of Object.entries(e)) {
|
|
51
|
+
if (r === void 0) continue;
|
|
52
|
+
let e = n.split("_"), i = t;
|
|
53
|
+
for (let t of e) i.children ??= {}, i = i.children[t] ??= {};
|
|
54
|
+
i.value = r;
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
}
|
|
58
|
+
var f = /^(0|[1-9][0-9]*)$/;
|
|
59
|
+
function p(e, t, n) {
|
|
60
|
+
let r = t[n.map(String).join("_")], s = m(e, n), c = s?.children ? Object.keys(s.children) : [];
|
|
61
|
+
return c.length === 0 ? r === void 0 ? void 0 : i(r) : c.every((e) => f.test(e)) ? o(Math.max(...c.map((e) => parseInt(e, 10))) + 1, r) : a(new Set(c), r);
|
|
62
|
+
}
|
|
63
|
+
function m(e, t) {
|
|
64
|
+
if (t.length === 0) return e;
|
|
65
|
+
let n = e;
|
|
66
|
+
for (let e of t) if (n = n?.children?.[String(e)], !n) return;
|
|
67
|
+
return n;
|
|
68
|
+
}
|
|
47
69
|
//#endregion
|
|
48
|
-
export {
|
|
70
|
+
export { s as ConfigProvider };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
+
import { PipeInspectableProto as t, YieldableProto as n } from "./vue-components24.es.js";
|
|
3
|
+
import { isNone as r, isSome as i, none as a, some as o } from "./vue-components28.es.js";
|
|
4
|
+
import { catch_ as s, fail as c, flatMap as l, flatMapEager as u, fnUntraced as d, map as f, mapErrorEager as p, succeed as m } from "./vue-components46.es.js";
|
|
5
|
+
import { Pointer as h } from "./vue-components54.es.js";
|
|
6
|
+
import { toEncoded as g } from "./vue-components57.es.js";
|
|
7
|
+
import { _is as _, decodeUnknownEffect as v } from "./vue-components59.es.js";
|
|
8
|
+
import { SchemaError as y } from "./vue-components60.es.js";
|
|
9
|
+
import { Literal as b, Number as x, isSchemaError as S, toCodecStringTree as C } from "./vue-components62.es.js";
|
|
10
|
+
import { ConfigProvider as w } from "./vue-components74.es.js";
|
|
11
|
+
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Config.js
|
|
12
|
+
var T = "~effect/Config", E = class {
|
|
13
|
+
_tag = "ConfigError";
|
|
14
|
+
name = "ConfigError";
|
|
15
|
+
cause;
|
|
16
|
+
constructor(e) {
|
|
17
|
+
this.cause = e;
|
|
18
|
+
}
|
|
19
|
+
get message() {
|
|
20
|
+
return this.cause.toString();
|
|
21
|
+
}
|
|
22
|
+
toString() {
|
|
23
|
+
return `ConfigError(${this.message})`;
|
|
24
|
+
}
|
|
25
|
+
}, D = {
|
|
26
|
+
...t,
|
|
27
|
+
...n,
|
|
28
|
+
[T]: T,
|
|
29
|
+
asEffect() {
|
|
30
|
+
return l(w.asEffect(), (e) => this.parse(e));
|
|
31
|
+
},
|
|
32
|
+
toJSON() {
|
|
33
|
+
return { _id: "Config" };
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
function O(e) {
|
|
37
|
+
let t = Object.create(D);
|
|
38
|
+
return t.parse = e, t;
|
|
39
|
+
}
|
|
40
|
+
var k = /* @__PURE__ */ e(2, (e, t) => O((n) => f(e.parse(n), t))), A = /* @__PURE__ */ e(2, (e, t) => O((n) => s(e.parse(n), (e) => t(e).parse(n))));
|
|
41
|
+
function j(e) {
|
|
42
|
+
switch (e._tag) {
|
|
43
|
+
case "MissingKey": return !0;
|
|
44
|
+
case "InvalidType":
|
|
45
|
+
case "InvalidValue": return r(e.actual) || i(e.actual) && e.actual.value === void 0;
|
|
46
|
+
case "OneOf": return e.actual === void 0;
|
|
47
|
+
case "Encoding": return r(e.actual) || i(e.actual) && e.actual.value === void 0 ? !0 : j(e.issue);
|
|
48
|
+
case "Pointer":
|
|
49
|
+
case "Filter": return j(e.issue);
|
|
50
|
+
case "UnexpectedKey": return !1;
|
|
51
|
+
case "Forbidden": return !1;
|
|
52
|
+
case "Composite":
|
|
53
|
+
case "AnyOf": return e.issues.every(j);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
var M = /* @__PURE__ */ e(2, (e, t) => A(e, (e) => {
|
|
57
|
+
if (S(e.cause)) {
|
|
58
|
+
let n = e.cause.issue;
|
|
59
|
+
if (j(n)) return R(t);
|
|
60
|
+
}
|
|
61
|
+
return L(e.cause);
|
|
62
|
+
})), N = (e) => e.pipe(k(o), M(a())), P = /* @__PURE__ */ d(function* (e, t) {
|
|
63
|
+
let n = yield* e.load(t);
|
|
64
|
+
if (n !== void 0) switch (n._tag) {
|
|
65
|
+
case "Value": return n.value;
|
|
66
|
+
case "Record": {
|
|
67
|
+
if (n.value !== void 0) return n.value;
|
|
68
|
+
let r = {};
|
|
69
|
+
for (let i of n.keys) {
|
|
70
|
+
let n = yield* P(e, [...t, i]);
|
|
71
|
+
n !== void 0 && (r[i] = n);
|
|
72
|
+
}
|
|
73
|
+
return r;
|
|
74
|
+
}
|
|
75
|
+
case "Array": {
|
|
76
|
+
if (n.value !== void 0) return n.value;
|
|
77
|
+
let r = [];
|
|
78
|
+
for (let i = 0; i < n.length; i++) r.push(yield* P(e, [...t, i]));
|
|
79
|
+
return r;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}), F = /* @__PURE__ */ d(function* (e, t, n) {
|
|
83
|
+
switch (e._tag) {
|
|
84
|
+
case "Objects": {
|
|
85
|
+
let r = {};
|
|
86
|
+
for (let i of e.propertySignatures) {
|
|
87
|
+
let e = i.name;
|
|
88
|
+
if (typeof e == "string") {
|
|
89
|
+
let a = yield* F(i.type, t, [...n, e]);
|
|
90
|
+
a !== void 0 && (r[e] = a);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (e.indexSignatures.length > 0) {
|
|
94
|
+
let i = yield* t.load(n);
|
|
95
|
+
if (i && i._tag === "Record") for (let a of e.indexSignatures) {
|
|
96
|
+
let e = _(a.parameter);
|
|
97
|
+
for (let o of i.keys) if (!Object.hasOwn(r, o) && e(o)) {
|
|
98
|
+
let e = yield* F(a.type, t, [...n, o]);
|
|
99
|
+
e !== void 0 && (r[o] = e);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return r;
|
|
104
|
+
}
|
|
105
|
+
case "Arrays": {
|
|
106
|
+
let r = yield* t.load(n);
|
|
107
|
+
if (r && r._tag === "Value") return r.value;
|
|
108
|
+
let i = [];
|
|
109
|
+
for (let r = 0; r < e.elements.length; r++) i.push(yield* F(e.elements[r], t, [...n, r]));
|
|
110
|
+
return i;
|
|
111
|
+
}
|
|
112
|
+
case "Union": return yield* P(t, n);
|
|
113
|
+
case "Suspend": return yield* F(e.thunk(), t, n);
|
|
114
|
+
default: {
|
|
115
|
+
let e = yield* t.load(n);
|
|
116
|
+
return e === void 0 ? void 0 : e._tag === "Value" || e._tag === "Record" && e.value !== void 0 || e._tag === "Array" && e.value !== void 0 ? e.value : void 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
function I(e, t) {
|
|
121
|
+
let n = C(e), r = v(n), i = g(n.ast), a = typeof t == "string" ? [t] : t ?? [];
|
|
122
|
+
return O((e) => {
|
|
123
|
+
let t = e.prefix ? [...e.prefix, ...a] : a;
|
|
124
|
+
return F(i, e, a).pipe(u((e) => r(e).pipe(p((e) => new y(t.length > 0 ? new h(t, e) : e)))), p((e) => new E(e)));
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function L(e) {
|
|
128
|
+
return O(() => c(new E(e)));
|
|
129
|
+
}
|
|
130
|
+
function R(e) {
|
|
131
|
+
return O(() => m(e));
|
|
132
|
+
}
|
|
133
|
+
function z(e) {
|
|
134
|
+
return I(x, e);
|
|
135
|
+
}
|
|
136
|
+
function B(e, t) {
|
|
137
|
+
return I(b(e), t);
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { B as literal, z as number, N as option, A as orElse };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
+
import { isFunction as t } from "./vue-components15.es.js";
|
|
3
|
+
import "./vue-components23.es.js";
|
|
4
|
+
import { squash as n } from "./vue-components38.es.js";
|
|
5
|
+
import { isSuccess as r } from "./vue-components40.es.js";
|
|
6
|
+
import { runSync as i } from "./vue-components46.es.js";
|
|
7
|
+
import { interrupt as a } from "./vue-components73.es.js";
|
|
8
|
+
import "./vue-components76.es.js";
|
|
9
|
+
//#region ../effect-app/dist/utils.js
|
|
10
|
+
var o = Symbol.for("clone-trait"), s = e(2, (e, t) => o in e ? e[o](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e))), c = e(2, (e, n) => s(e, {
|
|
11
|
+
...e,
|
|
12
|
+
...t(n) ? n(e) : n
|
|
13
|
+
})), l = (e, t) => {
|
|
14
|
+
let n = () => i(a(e));
|
|
15
|
+
return t.aborted ? (n(), e) : (t.addEventListener("abort", n), e);
|
|
16
|
+
}, u = (e, t) => (t && l(e, t), new Promise((t, i) => e.addObserver((e) => {
|
|
17
|
+
r(e) ? t(e.value) : i(n(e.cause));
|
|
18
|
+
})));
|
|
19
|
+
(function* () {}).constructor;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { c as copy, u as runtimeFiberAsPromise };
|