@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,70 +0,0 @@
|
|
|
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
|
-
}
|
|
69
|
-
//#endregion
|
|
70
|
-
export { s as ConfigProvider };
|
|
@@ -1,140 +0,0 @@
|
|
|
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 };
|
|
@@ -1,21 +0,0 @@
|
|
|
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 };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { dual as e, pipe as t } from "./vue-components13.es.js";
|
|
2
|
-
import { getOrElse as n } from "./vue-components28.es.js";
|
|
3
|
-
import { pick as r } from "./vue-components32.es.js";
|
|
4
|
-
import { context as i, fnUntraced as a, provide as o, runSync as s, succeed as c, sync as l } from "./vue-components46.es.js";
|
|
5
|
-
import { dateFromString as u } from "./vue-components56.es.js";
|
|
6
|
-
import { Boolean as d, Date as f, DateValid as p, Finite as m, NullOr as h, Number as g, String as _, Union as v, decodeSync as y, decodeTo as b, isDateValid as x, middlewareDecoding as S, middlewareEncoding as C, withConstructorDefault as w, withDecodingDefaultType as T } from "./vue-components62.es.js";
|
|
7
|
-
import { literal as E, number as D, option as O, orElse as k } from "./vue-components75.es.js";
|
|
8
|
-
import { extendM as A } from "./vue-components76.es.js";
|
|
9
|
-
var j = { concurrency: n(s(E("unbounded", "SCHEMA_CONCURRENCY").pipe(k(() => D("SCHEMA_CONCURRENCY")), O).asEffect()), () => "unbounded") }, M = { parseOptions: j }, N = (e, t = j) => ((n) => {
|
|
10
|
-
let r = e(n);
|
|
11
|
-
return (e, n) => r(e, {
|
|
12
|
-
...t,
|
|
13
|
-
...n
|
|
14
|
-
});
|
|
15
|
-
}), P = _.annotate({
|
|
16
|
-
identifier: "Date",
|
|
17
|
-
description: "a string in ISO 8601 format that will be decoded as a Date",
|
|
18
|
-
format: "date-time"
|
|
19
|
-
}).pipe(b(f, u)), F = Object.assign(P, {
|
|
20
|
-
withConstructorDefault: P.pipe(w(l(() => new global.Date()))),
|
|
21
|
-
withDecodingDefaultType: P.pipe(T(l(() => new global.Date())))
|
|
22
|
-
});
|
|
23
|
-
Object.assign(F.check(x()), {
|
|
24
|
-
withConstructorDefault: P.pipe(w(l(() => new global.Date()))),
|
|
25
|
-
withDecodingDefaultType: P.pipe(T(l(() => new global.Date())))
|
|
26
|
-
}), Object.assign(d, {
|
|
27
|
-
withConstructorDefault: d.pipe(w(c(!1))),
|
|
28
|
-
withDecodingDefaultType: d.pipe(T(c(!1)))
|
|
29
|
-
}), Object.assign(g, {
|
|
30
|
-
withConstructorDefault: g.pipe(w(c(0))),
|
|
31
|
-
withDecodingDefaultType: g.pipe(T(c(0)))
|
|
32
|
-
}), Object.assign(m, {
|
|
33
|
-
withConstructorDefault: m.pipe(w(c(0))),
|
|
34
|
-
withDecodingDefaultType: m.pipe(T(c(0)))
|
|
35
|
-
});
|
|
36
|
-
var I = (e) => t(h(e), (e) => Object.assign(e, {
|
|
37
|
-
withConstructorDefault: e.pipe(w(c(null))),
|
|
38
|
-
withDecodingDefaultType: e.pipe(T(c(null)))
|
|
39
|
-
})), L = (e) => {
|
|
40
|
-
let t = Object.assign(y(e), e);
|
|
41
|
-
return Object.setPrototypeOf(t, e), t;
|
|
42
|
-
};
|
|
43
|
-
A(v([p, F]), (e) => ({
|
|
44
|
-
withConstructorDefault: e.pipe(w(l(() => new globalThis.Date()))),
|
|
45
|
-
withDecodingDefaultType: e.pipe(T(l(() => new globalThis.Date())))
|
|
46
|
-
}));
|
|
47
|
-
var R = e(2, (e, t) => {
|
|
48
|
-
let n = o(t);
|
|
49
|
-
return e.pipe(S((e) => n(e)), C((e) => n(e)));
|
|
50
|
-
});
|
|
51
|
-
a(function* (e, ...t) {
|
|
52
|
-
return R(e, r(...t)(yield* i()));
|
|
53
|
-
});
|
|
54
|
-
//#endregion
|
|
55
|
-
export { F as Date, P as DateFromString, j as DefaultParseOptions, I as NullOr, M as concurrencyUnbounded, R as provide, L as withDefaultMake, N as withDefaultParseOptions };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { String as e, annotate as t, refine as n } from "./vue-components62.es.js";
|
|
2
|
-
import { isValidPhone as r } from "./vue-components71.es.js";
|
|
3
|
-
import { withDefaultMake as i } from "./vue-components78.es.js";
|
|
4
|
-
import { Numbers as a } from "./vue-components79.es.js";
|
|
5
|
-
//#region ../effect-app/dist/Schema/phoneNumber.js
|
|
6
|
-
var o = e.pipe(t({
|
|
7
|
-
title: "PhoneNumber",
|
|
8
|
-
description: "a phone number with at least 7 digits",
|
|
9
|
-
format: "phone"
|
|
10
|
-
}), n(r, {
|
|
11
|
-
identifier: "PhoneNumber",
|
|
12
|
-
description: "a phone number with at least 7 digits",
|
|
13
|
-
jsonSchema: { format: "phone" }
|
|
14
|
-
}), t({ toArbitrary: () => (e) => a(7, 10)(e).map((e) => e) }), i);
|
|
15
|
-
//#endregion
|
|
16
|
-
export { o as PhoneNumber };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import "./vue-components2.es.js";
|
|
2
|
-
import "./vue-components60.es.js";
|
|
3
|
-
import { Struct as e, annotate as t, decodeEffect as n, decodeSync as r, decodeUnknownEffect as i } from "./vue-components62.es.js";
|
|
4
|
-
import { fakerArb as a } from "./vue-components63.es.js";
|
|
5
|
-
import { Email as o } from "./vue-components72.es.js";
|
|
6
|
-
import { copy as s } from "./vue-components77.es.js";
|
|
7
|
-
import { concurrencyUnbounded as c, withDefaultMake as l, withDefaultParseOptions as u } from "./vue-components78.es.js";
|
|
8
|
-
import { PhoneNumber as d } from "./vue-components80.es.js";
|
|
9
|
-
u(n);
|
|
10
|
-
var f = u(i);
|
|
11
|
-
function p(t) {
|
|
12
|
-
let n = e(t).annotate(c), r = (e) => {
|
|
13
|
-
let t = e.make, n = e.makeOption, r = e.makeEffect;
|
|
14
|
-
return e.make = function(e, n) {
|
|
15
|
-
return t.call(this, e === void 0 ? {} : e, n);
|
|
16
|
-
}, e.makeOption = function(e, t) {
|
|
17
|
-
return n.call(this, e === void 0 ? {} : e, t);
|
|
18
|
-
}, e.makeEffect = function(e, t) {
|
|
19
|
-
return r.call(this, e === void 0 ? {} : e, t);
|
|
20
|
-
}, e;
|
|
21
|
-
}, i = n.mapFields, a = n.annotate, o = n.annotateKey, l = (e) => (e.copy = s, e.mapFields = function(e, t) {
|
|
22
|
-
return n.mapFields.call(this, e, t);
|
|
23
|
-
}, e.annotate = function(e) {
|
|
24
|
-
return n.annotate.call(this, e);
|
|
25
|
-
}, e.annotateKey = function(e) {
|
|
26
|
-
return n.annotateKey.call(this, e);
|
|
27
|
-
}, r(e));
|
|
28
|
-
return n.mapFields = function(e, t) {
|
|
29
|
-
return l(i.call(this, e, t).annotate(c));
|
|
30
|
-
}, n.annotate = function(e) {
|
|
31
|
-
return l(a.call(this, e));
|
|
32
|
-
}, n.annotateKey = function(e) {
|
|
33
|
-
return l(o.call(this, e));
|
|
34
|
-
}, n.copy = s, r(n), n;
|
|
35
|
-
}
|
|
36
|
-
var m = r(o), h = r(d);
|
|
37
|
-
o.pipe(t({ toArbitrary: () => (e) => a((e) => e.internet.exampleEmail)(e).map(m) }), l), d.pipe(t({ toArbitrary: () => (e) => a((e) => e.phone.number)(e).map(h) }), l);
|
|
38
|
-
//#endregion
|
|
39
|
-
export { p as Struct, f as decodeUnknownEffectConcurrently };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { isBoolean as e, isDeclaration as t, isNumber as n, isString as r, resolveDescription as i } from "./vue-components57.es.js";
|
|
2
|
-
//#region src/components/OmegaForm/meta/checks.ts
|
|
3
|
-
var a = (e) => (e.checks ?? []).flatMap((e) => {
|
|
4
|
-
if (e._tag === "FilterGroup") return e.checks.flatMap((e) => {
|
|
5
|
-
let t = e.annotations?.meta;
|
|
6
|
-
return t && typeof t == "object" ? [t] : [];
|
|
7
|
-
});
|
|
8
|
-
let t = e.annotations?.meta;
|
|
9
|
-
return t && typeof t == "object" ? [t] : [];
|
|
10
|
-
}), o = (o) => {
|
|
11
|
-
let s = { description: i(o) }, c = a(o);
|
|
12
|
-
if (r(o)) {
|
|
13
|
-
s.type = "string";
|
|
14
|
-
for (let e of c) switch (e._tag) {
|
|
15
|
-
case "isMinLength":
|
|
16
|
-
s.minLength = e.minLength;
|
|
17
|
-
break;
|
|
18
|
-
case "isMaxLength":
|
|
19
|
-
s.maxLength = e.maxLength;
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
o.annotations?.format === "email" && (s.format = "email");
|
|
23
|
-
} else if (n(o)) {
|
|
24
|
-
s.type = "number";
|
|
25
|
-
for (let e of c) switch (e._tag) {
|
|
26
|
-
case "isInt":
|
|
27
|
-
s.refinement = "int";
|
|
28
|
-
break;
|
|
29
|
-
case "isGreaterThanOrEqualTo":
|
|
30
|
-
s.minimum = e.minimum;
|
|
31
|
-
break;
|
|
32
|
-
case "isLessThanOrEqualTo":
|
|
33
|
-
s.maximum = e.maximum;
|
|
34
|
-
break;
|
|
35
|
-
case "isBetween":
|
|
36
|
-
s.minimum = e.minimum, s.maximum = e.maximum;
|
|
37
|
-
break;
|
|
38
|
-
case "isGreaterThan":
|
|
39
|
-
s.exclusiveMinimum = e.exclusiveMinimum;
|
|
40
|
-
break;
|
|
41
|
-
case "isLessThan":
|
|
42
|
-
s.exclusiveMaximum = e.exclusiveMaximum;
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
} else e(o) ? s.type = "boolean" : t(o) && o.annotations?.typeConstructor?._tag === "Date" ? s.type = "date" : s.type = "unknown";
|
|
46
|
-
return s;
|
|
47
|
-
};
|
|
48
|
-
//#endregion
|
|
49
|
-
export { o as getFieldMetadataFromAst };
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { isArrays as e, isLiteral as t, isNull as n, isObjects as r, isString as i, isUndefined as a, isUnion as o } from "./vue-components57.es.js";
|
|
2
|
-
import { getFieldMetadataFromAst as s } from "./vue-components82.es.js";
|
|
3
|
-
import { isNullableOrUndefined as c, unwrapDeclaration as l } from "./vue-components84.es.js";
|
|
4
|
-
//#region src/components/OmegaForm/meta/walker.ts
|
|
5
|
-
var u = (e) => a(e) || n(e), d = (e) => o(e) && e.types.length === 1 && t(e.types[0]) ? e.types[0] : e, f = (e) => e.flatMap((e) => o(e) ? f(e.types) : [e]), p = (n, r) => {
|
|
6
|
-
let { nullableOrUndefined: i, required: a } = r;
|
|
7
|
-
return e(n) ? {
|
|
8
|
-
required: a,
|
|
9
|
-
nullableOrUndefined: i,
|
|
10
|
-
type: "multiple",
|
|
11
|
-
members: n.elements,
|
|
12
|
-
rest: n.rest
|
|
13
|
-
} : t(n) ? {
|
|
14
|
-
required: a,
|
|
15
|
-
nullableOrUndefined: i,
|
|
16
|
-
type: "select",
|
|
17
|
-
members: [n.literal]
|
|
18
|
-
} : {
|
|
19
|
-
...s(n),
|
|
20
|
-
required: a,
|
|
21
|
-
nullableOrUndefined: i
|
|
22
|
-
};
|
|
23
|
-
}, m = (e, t, n, r) => {
|
|
24
|
-
for (let i of e) {
|
|
25
|
-
let e = t ? `${t}.${i.name.toString()}` : i.name.toString(), a = c(i.type), o = i.type.context?.isOptional === !0, s;
|
|
26
|
-
s = n.isNullableDiscriminatedUnion && i.name.toString() === "_tag" ? !1 : n.required ? o ? !1 : !a : !1, g(i.type, e, {
|
|
27
|
-
required: s,
|
|
28
|
-
nullableOrUndefined: a,
|
|
29
|
-
isOptionalKey: o
|
|
30
|
-
}, r);
|
|
31
|
-
}
|
|
32
|
-
}, h = (n, i, a, o) => {
|
|
33
|
-
let { acc: s } = o, c = f(n.types).map(l), h = c.filter((e) => !u(e));
|
|
34
|
-
if (h.length === 1 && t(h[0]) && typeof h[0].literal == "boolean") {
|
|
35
|
-
s[i] = p(h[0], a);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
if (h.some(r)) {
|
|
39
|
-
let e = !!a.nullableOrUndefined && h.length > 1;
|
|
40
|
-
if (!a.nullableOrUndefined && i) {
|
|
41
|
-
let e = h.find((e) => !r(e));
|
|
42
|
-
e && (s[i] = p(e, a));
|
|
43
|
-
}
|
|
44
|
-
let n = [], c = e ? {
|
|
45
|
-
required: !0,
|
|
46
|
-
nullableOrUndefined: !1,
|
|
47
|
-
isNullableDiscriminatedUnion: !0
|
|
48
|
-
} : {
|
|
49
|
-
required: !0,
|
|
50
|
-
nullableOrUndefined: !1
|
|
51
|
-
};
|
|
52
|
-
for (let e of h) {
|
|
53
|
-
if (!r(e)) continue;
|
|
54
|
-
let a = e.propertySignatures.find((e) => e.name.toString() === "_tag"), l = a ? d(a.type) : null, u = null;
|
|
55
|
-
l && t(l) && (u = l.literal, n.includes(u) || n.push(u));
|
|
56
|
-
let f = {
|
|
57
|
-
acc: {},
|
|
58
|
-
unionMeta: o.unionMeta
|
|
59
|
-
};
|
|
60
|
-
if (m(e.propertySignatures, i, c, f), u) {
|
|
61
|
-
let e = o.unionMeta[u];
|
|
62
|
-
e ? Object.assign(e, f.acc) : o.unionMeta[u] = f.acc;
|
|
63
|
-
}
|
|
64
|
-
for (let [e, t] of Object.entries(f.acc)) {
|
|
65
|
-
let n = s[e];
|
|
66
|
-
n && n.type === "select" && t?.type === "select" ? n.members = [...n.members, ...t.members.filter((e) => !n.members.includes(e))] : s[e] = t;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
if (n.length > 0) {
|
|
70
|
-
let t = i ? `${i}._tag` : "_tag", r = s[t];
|
|
71
|
-
if (r && r.type === "select") for (let e of n) r.members.includes(e) || r.members.push(e);
|
|
72
|
-
else s[t] = {
|
|
73
|
-
type: "select",
|
|
74
|
-
members: n,
|
|
75
|
-
required: !e
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
let _ = h.find(e);
|
|
81
|
-
if (_) {
|
|
82
|
-
g(_, i, a, o);
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
let v = c.map(d);
|
|
86
|
-
if (v.every((e) => u(e) || t(e))) {
|
|
87
|
-
let { isOptionalKey: e, nullableOrUndefined: n, required: r } = a, o = {
|
|
88
|
-
required: r,
|
|
89
|
-
nullableOrUndefined: n,
|
|
90
|
-
type: "select",
|
|
91
|
-
members: v.filter(t).map((e) => e.literal)
|
|
92
|
-
};
|
|
93
|
-
e && (o.isOptionalKey = !0), s[i] = o;
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
let y = h[0];
|
|
97
|
-
y && g(y, i, a, o);
|
|
98
|
-
}, g = (t, n, a, c) => {
|
|
99
|
-
t = l(t);
|
|
100
|
-
let { acc: u } = c;
|
|
101
|
-
if (r(t)) {
|
|
102
|
-
m(t.propertySignatures, n, a, c);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (o(t)) {
|
|
106
|
-
h(t, n, a, c);
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
if (e(t)) {
|
|
110
|
-
let e = t.rest.length > 0 ? l(t.rest[0]) : null;
|
|
111
|
-
if (e && r(e)) {
|
|
112
|
-
m(e.propertySignatures, n, {
|
|
113
|
-
required: !0,
|
|
114
|
-
nullableOrUndefined: !1
|
|
115
|
-
}, c);
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
u[n] = p(t, a);
|
|
119
|
-
return;
|
|
120
|
-
}
|
|
121
|
-
let { isOptionalKey: d, nullableOrUndefined: f, required: g } = a, _ = {
|
|
122
|
-
required: g && (!i(t) || !!s(t).minLength),
|
|
123
|
-
nullableOrUndefined: f
|
|
124
|
-
}, v = p(t, _);
|
|
125
|
-
d && (v.isOptionalKey = !0), u[n] = v;
|
|
126
|
-
};
|
|
127
|
-
//#endregion
|
|
128
|
-
export { h as classifyAndWalkUnion, p as leafMetaForAst, m as walkStruct };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { getTransformationFrom as e } from "./vue-components6.es.js";
|
|
2
|
-
import { isDeclaration as t, isNull as n, isObjects as r, isUndefined as i, isUnion as a } from "./vue-components57.es.js";
|
|
3
|
-
import { classifyAndWalkUnion as o, leafMetaForAst as s, walkStruct as c } from "./vue-components83.es.js";
|
|
4
|
-
//#region src/components/OmegaForm/meta/createMeta.ts
|
|
5
|
-
var l = (n) => {
|
|
6
|
-
let r = e(n);
|
|
7
|
-
for (; t(r) && r.typeParameters.length > 0;) r = e(r.typeParameters[0]);
|
|
8
|
-
return r;
|
|
9
|
-
}, u = (e) => !e || !a(e) ? !1 : e.types.find((e) => i(e)) ? "undefined" : e.types.find((e) => n(e)) ? "null" : !1, d = ({ meta: e = {}, parent: t = "", property: n, propertySignatures: i }, d = {}) => {
|
|
10
|
-
let f = {
|
|
11
|
-
acc: d,
|
|
12
|
-
unionMeta: {}
|
|
13
|
-
};
|
|
14
|
-
if (i) return c(i, t, {
|
|
15
|
-
required: e.required !== !1,
|
|
16
|
-
nullableOrUndefined: e.nullableOrUndefined ?? !1
|
|
17
|
-
}, f), d;
|
|
18
|
-
if (n) {
|
|
19
|
-
let i = u(n), p = l(n), m = {
|
|
20
|
-
required: Object.hasOwnProperty.call(e, "required") ? e.required : !i,
|
|
21
|
-
nullableOrUndefined: e.nullableOrUndefined ?? i
|
|
22
|
-
};
|
|
23
|
-
if (r(p)) return c(p.propertySignatures, t, m, f), d;
|
|
24
|
-
if (a(p)) {
|
|
25
|
-
let e = {
|
|
26
|
-
acc: {},
|
|
27
|
-
unionMeta: {}
|
|
28
|
-
};
|
|
29
|
-
o(p, t, m, e);
|
|
30
|
-
let n = e.acc[t];
|
|
31
|
-
if (n) return n;
|
|
32
|
-
}
|
|
33
|
-
return s(p, m);
|
|
34
|
-
}
|
|
35
|
-
return d;
|
|
36
|
-
}, f = (e) => {
|
|
37
|
-
let t = l(e.ast), n = {}, i = {}, s = {}, u = {
|
|
38
|
-
acc: n,
|
|
39
|
-
unionMeta: s
|
|
40
|
-
};
|
|
41
|
-
return a(t) ? (o(t, "", {
|
|
42
|
-
required: !0,
|
|
43
|
-
nullableOrUndefined: !1
|
|
44
|
-
}, u), {
|
|
45
|
-
meta: n,
|
|
46
|
-
defaultValues: i,
|
|
47
|
-
unionMeta: s
|
|
48
|
-
}) : (r(t) && c(t.propertySignatures, "", {
|
|
49
|
-
required: !0,
|
|
50
|
-
nullableOrUndefined: !1
|
|
51
|
-
}, u), {
|
|
52
|
-
meta: n,
|
|
53
|
-
defaultValues: i,
|
|
54
|
-
unionMeta: s
|
|
55
|
-
});
|
|
56
|
-
}, p = (e) => {
|
|
57
|
-
let { meta: t, unionMeta: n } = f(e);
|
|
58
|
-
return {
|
|
59
|
-
schema: e,
|
|
60
|
-
meta: t,
|
|
61
|
-
unionMeta: n
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
//#endregion
|
|
65
|
-
export { d as createMeta, p as generateMetaFromSchema, u as isNullableOrUndefined, f as metadataFromAst, l as unwrapDeclaration };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { isSome as e, none as t } from "./vue-components28.es.js";
|
|
2
|
-
import { runSync as n } from "./vue-components46.es.js";
|
|
3
|
-
import { isBoolean as r, isDeclaration as i, isObjects as a, isString as o, isUnion as s } from "./vue-components57.es.js";
|
|
4
|
-
import { make as c } from "./vue-components62.es.js";
|
|
5
|
-
import { isNullableOrUndefined as l, unwrapDeclaration as u } from "./vue-components84.es.js";
|
|
6
|
-
//#region src/components/OmegaForm/meta/defaults.ts
|
|
7
|
-
var d = (r) => {
|
|
8
|
-
if (r?.transformation?.decode?.run) try {
|
|
9
|
-
let i = n(r.transformation.decode.run(t()));
|
|
10
|
-
return e(i) ? i.value : void 0;
|
|
11
|
-
} catch {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
}, f = (e) => {
|
|
15
|
-
let t = e.context?.defaultValue?.[0], n = d(t);
|
|
16
|
-
if (n !== void 0) return n;
|
|
17
|
-
let r = e.encoding?.[0];
|
|
18
|
-
if (r && e.context?.isOptional) return d(r);
|
|
19
|
-
};
|
|
20
|
-
function p(e) {
|
|
21
|
-
return e && "members" in e && Array.isArray(e.members);
|
|
22
|
-
}
|
|
23
|
-
var m = (e, t = {}) => {
|
|
24
|
-
let n = e.ast, d = f(n);
|
|
25
|
-
if (d !== void 0) return d;
|
|
26
|
-
if (l(e.ast) === "null") return null;
|
|
27
|
-
if (l(e.ast) === "undefined") return;
|
|
28
|
-
let h = a(n) ? n : i(n) ? u(n) : void 0;
|
|
29
|
-
if (h && a(h)) {
|
|
30
|
-
let e = {};
|
|
31
|
-
for (let n of h.propertySignatures) {
|
|
32
|
-
let r = n.name.toString(), i = n.type, a = f(i);
|
|
33
|
-
if (a !== void 0) {
|
|
34
|
-
e[r] = a;
|
|
35
|
-
continue;
|
|
36
|
-
}
|
|
37
|
-
let o = m(c(i), t[r] || {});
|
|
38
|
-
o === void 0 ? l(i) === "undefined" && (e[r] = void 0) : e[r] = o;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
...e,
|
|
42
|
-
...t
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
let g = s(n) ? n.types : p(e) ? e.members.map((e) => e.ast) : void 0;
|
|
46
|
-
if (g) {
|
|
47
|
-
let e = {};
|
|
48
|
-
for (let t of g) {
|
|
49
|
-
let n = u(t);
|
|
50
|
-
if (a(n)) for (let t of n.propertySignatures) {
|
|
51
|
-
let n = t.name.toString(), r = f(t.type), i = e[n] ? f(e[n].ast) : void 0;
|
|
52
|
-
(!e[n] || r !== void 0 && i === void 0) && (e[n] = { ast: t.type });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return Object.keys(e).length === 0 ? Object.keys(t).length > 0 ? t : void 0 : Object.entries(e).reduce((e, [n, { ast: r }]) => (e[n] = m(c(r), t[n] || {}), e), t);
|
|
56
|
-
}
|
|
57
|
-
if (Object.keys(t).length === 0) {
|
|
58
|
-
if (o(n)) return "";
|
|
59
|
-
if (r(n)) return !1;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
//#endregion
|
|
63
|
-
export { m as defaultsValueFromSchema };
|