@effect-app/vue-components 4.0.0-beta.221 → 4.0.0-beta.223
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,128 +0,0 @@
|
|
|
1
|
-
import "./vue-components126.es.js";
|
|
2
|
-
import { NonRecordingSpan as e } from "./vue-components127.es.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
|
|
4
|
-
var t = new Uint8Array([
|
|
5
|
-
0,
|
|
6
|
-
0,
|
|
7
|
-
0,
|
|
8
|
-
0,
|
|
9
|
-
0,
|
|
10
|
-
0,
|
|
11
|
-
0,
|
|
12
|
-
0,
|
|
13
|
-
0,
|
|
14
|
-
0,
|
|
15
|
-
0,
|
|
16
|
-
0,
|
|
17
|
-
0,
|
|
18
|
-
0,
|
|
19
|
-
0,
|
|
20
|
-
0,
|
|
21
|
-
0,
|
|
22
|
-
0,
|
|
23
|
-
0,
|
|
24
|
-
0,
|
|
25
|
-
0,
|
|
26
|
-
0,
|
|
27
|
-
0,
|
|
28
|
-
0,
|
|
29
|
-
0,
|
|
30
|
-
0,
|
|
31
|
-
0,
|
|
32
|
-
0,
|
|
33
|
-
0,
|
|
34
|
-
0,
|
|
35
|
-
0,
|
|
36
|
-
0,
|
|
37
|
-
0,
|
|
38
|
-
0,
|
|
39
|
-
0,
|
|
40
|
-
0,
|
|
41
|
-
0,
|
|
42
|
-
0,
|
|
43
|
-
0,
|
|
44
|
-
0,
|
|
45
|
-
0,
|
|
46
|
-
0,
|
|
47
|
-
0,
|
|
48
|
-
0,
|
|
49
|
-
0,
|
|
50
|
-
0,
|
|
51
|
-
0,
|
|
52
|
-
0,
|
|
53
|
-
1,
|
|
54
|
-
1,
|
|
55
|
-
1,
|
|
56
|
-
1,
|
|
57
|
-
1,
|
|
58
|
-
1,
|
|
59
|
-
1,
|
|
60
|
-
1,
|
|
61
|
-
1,
|
|
62
|
-
1,
|
|
63
|
-
0,
|
|
64
|
-
0,
|
|
65
|
-
0,
|
|
66
|
-
0,
|
|
67
|
-
0,
|
|
68
|
-
0,
|
|
69
|
-
0,
|
|
70
|
-
1,
|
|
71
|
-
1,
|
|
72
|
-
1,
|
|
73
|
-
1,
|
|
74
|
-
1,
|
|
75
|
-
1,
|
|
76
|
-
0,
|
|
77
|
-
0,
|
|
78
|
-
0,
|
|
79
|
-
0,
|
|
80
|
-
0,
|
|
81
|
-
0,
|
|
82
|
-
0,
|
|
83
|
-
0,
|
|
84
|
-
0,
|
|
85
|
-
0,
|
|
86
|
-
0,
|
|
87
|
-
0,
|
|
88
|
-
0,
|
|
89
|
-
0,
|
|
90
|
-
0,
|
|
91
|
-
0,
|
|
92
|
-
0,
|
|
93
|
-
0,
|
|
94
|
-
0,
|
|
95
|
-
0,
|
|
96
|
-
0,
|
|
97
|
-
0,
|
|
98
|
-
0,
|
|
99
|
-
0,
|
|
100
|
-
0,
|
|
101
|
-
0,
|
|
102
|
-
1,
|
|
103
|
-
1,
|
|
104
|
-
1,
|
|
105
|
-
1,
|
|
106
|
-
1,
|
|
107
|
-
1
|
|
108
|
-
]);
|
|
109
|
-
function n(e, n) {
|
|
110
|
-
if (typeof e != "string" || e.length !== n) return !1;
|
|
111
|
-
let r = 0;
|
|
112
|
-
for (let n = 0; n < e.length; n += 4) r += (t[e.charCodeAt(n)] | 0) + (t[e.charCodeAt(n + 1)] | 0) + (t[e.charCodeAt(n + 2)] | 0) + (t[e.charCodeAt(n + 3)] | 0);
|
|
113
|
-
return r === n;
|
|
114
|
-
}
|
|
115
|
-
function r(e) {
|
|
116
|
-
return n(e, 32) && e !== "00000000000000000000000000000000";
|
|
117
|
-
}
|
|
118
|
-
function i(e) {
|
|
119
|
-
return n(e, 16) && e !== "0000000000000000";
|
|
120
|
-
}
|
|
121
|
-
function a(e) {
|
|
122
|
-
return r(e.traceId) && i(e.spanId);
|
|
123
|
-
}
|
|
124
|
-
function o(t) {
|
|
125
|
-
return new e(t);
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
export { a as isSpanContextValid, o as wrapSpanContext };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ContextAPI as e } from "./vue-components124.es.js";
|
|
2
|
-
import { NonRecordingSpan as t } from "./vue-components127.es.js";
|
|
3
|
-
import { getSpanContext as n, setSpan as r } from "./vue-components128.es.js";
|
|
4
|
-
import { isSpanContextValid as i } from "./vue-components129.es.js";
|
|
5
|
-
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
|
|
6
|
-
var a = e.getInstance(), o = class {
|
|
7
|
-
startSpan(e, r, o = a.active()) {
|
|
8
|
-
if (r?.root) return new t();
|
|
9
|
-
let c = o && n(o);
|
|
10
|
-
return s(c) && i(c) ? new t(c) : new t();
|
|
11
|
-
}
|
|
12
|
-
startActiveSpan(e, t, n, i) {
|
|
13
|
-
let o, s, c;
|
|
14
|
-
if (arguments.length < 2) return;
|
|
15
|
-
arguments.length === 2 ? c = t : arguments.length === 3 ? (o = t, c = n) : (o = t, s = n, c = i);
|
|
16
|
-
let l = s ?? a.active(), u = this.startSpan(e, o, l), d = r(l, u);
|
|
17
|
-
return a.with(d, c, void 0, u);
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
function s(e) {
|
|
21
|
-
return typeof e == "object" && !!e && "spanId" in e && typeof e.spanId == "string" && "traceId" in e && typeof e.traceId == "string" && "traceFlags" in e && typeof e.traceFlags == "number";
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
export { o as NoopTracer };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NoopTracer as e } from "./vue-components130.es.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
|
|
3
|
-
var t = new e(), n = class {
|
|
4
|
-
constructor(e, t, n, r) {
|
|
5
|
-
this._provider = e, this.name = t, this.version = n, this.options = r;
|
|
6
|
-
}
|
|
7
|
-
startSpan(e, t, n) {
|
|
8
|
-
return this._getTracer().startSpan(e, t, n);
|
|
9
|
-
}
|
|
10
|
-
startActiveSpan(e, t, n, r) {
|
|
11
|
-
let i = this._getTracer();
|
|
12
|
-
return Reflect.apply(i.startActiveSpan, i, arguments);
|
|
13
|
-
}
|
|
14
|
-
_getTracer() {
|
|
15
|
-
if (this._delegate) return this._delegate;
|
|
16
|
-
let e = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
|
17
|
-
return e ? (this._delegate = e, this._delegate) : t;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { n as ProxyTracer };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NoopTracer as e } from "./vue-components130.es.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
|
|
3
|
-
var t = class {
|
|
4
|
-
getTracer(t, n, r) {
|
|
5
|
-
return new e();
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { t as NoopTracerProvider };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ProxyTracer as e } from "./vue-components131.es.js";
|
|
2
|
-
import { NoopTracerProvider as t } from "./vue-components132.es.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
|
|
4
|
-
var n = new t(), r = class {
|
|
5
|
-
getTracer(t, n, r) {
|
|
6
|
-
return this.getDelegateTracer(t, n, r) ?? new e(this, t, n, r);
|
|
7
|
-
}
|
|
8
|
-
getDelegate() {
|
|
9
|
-
return this._delegate ?? n;
|
|
10
|
-
}
|
|
11
|
-
setDelegate(e) {
|
|
12
|
-
this._delegate = e;
|
|
13
|
-
}
|
|
14
|
-
getDelegateTracer(e, t, n) {
|
|
15
|
-
return this._delegate?.getTracer(e, t, n);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
//#endregion
|
|
19
|
-
export { r as ProxyTracerProvider };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { getGlobal as e, registerGlobal as t, unregisterGlobal as n } from "./vue-components117.es.js";
|
|
2
|
-
import { DiagAPI as r } from "./vue-components121.es.js";
|
|
3
|
-
import { deleteSpan as i, getActiveSpan as a, getSpan as o, getSpanContext as s, setSpan as c, setSpanContext as l } from "./vue-components128.es.js";
|
|
4
|
-
import { isSpanContextValid as u, wrapSpanContext as d } from "./vue-components129.es.js";
|
|
5
|
-
import { ProxyTracerProvider as f } from "./vue-components133.es.js";
|
|
6
|
-
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/trace.js
|
|
7
|
-
var p = "trace", m = class m {
|
|
8
|
-
constructor() {
|
|
9
|
-
this._proxyTracerProvider = new f(), this.wrapSpanContext = d, this.isSpanContextValid = u, this.deleteSpan = i, this.getSpan = o, this.getActiveSpan = a, this.getSpanContext = s, this.setSpan = c, this.setSpanContext = l;
|
|
10
|
-
}
|
|
11
|
-
static getInstance() {
|
|
12
|
-
return this._instance ||= new m(), this._instance;
|
|
13
|
-
}
|
|
14
|
-
setGlobalTracerProvider(e) {
|
|
15
|
-
let n = t(p, this._proxyTracerProvider, r.instance());
|
|
16
|
-
return n && this._proxyTracerProvider.setDelegate(e), n;
|
|
17
|
-
}
|
|
18
|
-
getTracerProvider() {
|
|
19
|
-
return e(p) || this._proxyTracerProvider;
|
|
20
|
-
}
|
|
21
|
-
getTracer(e, t) {
|
|
22
|
-
return this.getTracerProvider().getTracer(e, t);
|
|
23
|
-
}
|
|
24
|
-
disable() {
|
|
25
|
-
n(p, r.instance()), this._proxyTracerProvider = new f();
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { m as TraceAPI };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { isSome as e } from "./vue-components28.es.js";
|
|
2
|
-
import { TaggedError as t } from "./vue-components39.es.js";
|
|
3
|
-
import { currentSpan as n, fail as r, flatMap as i, fnUntraced as a, isEffect as o, option as s, promise as c } from "./vue-components46.es.js";
|
|
4
|
-
import { isFiber as l } from "./vue-components73.es.js";
|
|
5
|
-
import { runtimeFiberAsPromise as u } from "./vue-components77.es.js";
|
|
6
|
-
import { context as d } from "./vue-components134.es.js";
|
|
7
|
-
import { trace as f } from "./vue-components136.es.js";
|
|
8
|
-
//#region src/components/OmegaForm/submit.ts
|
|
9
|
-
var p = class extends t("FormErrors") {}, m = (e, t) => e ? d.with(f.setSpan(d.active(), e), t) : t(), h = (e, t, n) => {
|
|
10
|
-
if (e) return ({ formApi: r, meta: i, value: a }) => m(i?.currentSpan, async () => {
|
|
11
|
-
let s = e({
|
|
12
|
-
formApi: r,
|
|
13
|
-
meta: i,
|
|
14
|
-
value: await n(t(a))
|
|
15
|
-
});
|
|
16
|
-
if (l(s)) return await u(s);
|
|
17
|
-
if (o(s)) {
|
|
18
|
-
let e = await n(s);
|
|
19
|
-
return l(e) ? await u(e) : e;
|
|
20
|
-
}
|
|
21
|
-
return s;
|
|
22
|
-
});
|
|
23
|
-
}, g = (t) => {
|
|
24
|
-
let o = t.handleSubmit.bind(t), l = async (e) => await o(e), u = (e) => l({
|
|
25
|
-
currentSpan: f.getSpan(d.active()),
|
|
26
|
-
...e
|
|
27
|
-
}), m = (t) => n.pipe(s, i((n) => c(() => l(e(n) ? {
|
|
28
|
-
currentSpan: n.value,
|
|
29
|
-
...t
|
|
30
|
-
} : t))));
|
|
31
|
-
return {
|
|
32
|
-
handleSubmit: u,
|
|
33
|
-
handleSubmitEffect: (e) => e?.checkErrors ? m(e?.meta).pipe(i(a(function* () {
|
|
34
|
-
let e = t.getAllErrors();
|
|
35
|
-
if (Object.keys(e.fields).length || e.form.errors.length) return yield* r(new p({
|
|
36
|
-
form: e.form,
|
|
37
|
-
fields: e.fields
|
|
38
|
-
}));
|
|
39
|
-
}))) : m(e?.meta)
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
//#endregion
|
|
43
|
-
export { p as FormErrors, g as makeSubmitHandlers, h as wrapOnSubmit };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { useIntl as e } from "./vue-components6.es.js";
|
|
2
|
-
import { empty as t } from "./vue-components32.es.js";
|
|
3
|
-
import { decodeUnknownEffectConcurrently as n } from "./vue-components81.es.js";
|
|
4
|
-
import { generateMetaFromSchema as r } from "./vue-components84.es.js";
|
|
5
|
-
import { defaultsValueFromSchema as i } from "./vue-components85.es.js";
|
|
6
|
-
import { toFormSchema as a } from "./vue-components86.es.js";
|
|
7
|
-
import { usePersistency as o } from "./vue-components88.es.js";
|
|
8
|
-
import { annotateLiteralUnionMessages as s, toLocalizedStandardSchemaV1 as c } from "./vue-components89.es.js";
|
|
9
|
-
import { eHoc as l, makeFieldMap as u } from "./vue-components90.es.js";
|
|
10
|
-
import { fHoc as d } from "./vue-components91.es.js";
|
|
11
|
-
import f from "./vue-components93.es.js";
|
|
12
|
-
import p from "./vue-components95.es.js";
|
|
13
|
-
import m from "./vue-components99.es.js";
|
|
14
|
-
import h from "./vue-components106.es.js";
|
|
15
|
-
import g from "./vue-components110.es.js";
|
|
16
|
-
import _ from "./vue-components114.es.js";
|
|
17
|
-
import { makeSubmitHandlers as v, wrapOnSubmit as y } from "./vue-components137.es.js";
|
|
18
|
-
import { watch as b } from "vue";
|
|
19
|
-
import { revalidateLogic as x, useForm as S } from "@tanstack/vue-form";
|
|
20
|
-
import { makeRunPromise as C } from "@effect-app/vue/runtime";
|
|
21
|
-
//#region src/components/OmegaForm/useOmegaForm.ts
|
|
22
|
-
var w = Symbol("OmegaForm"), T = C(t()), E = (t, C, w) => {
|
|
23
|
-
if (!t) throw Error("Schema is required");
|
|
24
|
-
let { trans: E } = e(), D = a(t), O = c(s(D, E), E), k = n(D), { meta: A, unionMeta: j } = r(D), M = { form: void 0 }, N = o({
|
|
25
|
-
meta: A,
|
|
26
|
-
persistency: w?.persistency,
|
|
27
|
-
preventWindowExit: w?.preventWindowExit,
|
|
28
|
-
defaultValuesPriority: w?.defaultValuesPriority,
|
|
29
|
-
tanstackDefaultValues: C?.defaultValues,
|
|
30
|
-
schemaDefaultValues: () => i(t),
|
|
31
|
-
getForm: () => M.form
|
|
32
|
-
}), P = S({
|
|
33
|
-
...C,
|
|
34
|
-
validationLogic: x(),
|
|
35
|
-
validators: {
|
|
36
|
-
onDynamic: O,
|
|
37
|
-
...C?.validators
|
|
38
|
-
},
|
|
39
|
-
onSubmit: y(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
|
-
});
|
|
47
|
-
};
|
|
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
|
-
b([e, t], ([e, t], [i]) => {
|
|
51
|
-
i && !e && t > 0 && n.value && P.reset(r.value);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
let { handleSubmit: I, handleSubmitEffect: L } = v(P), { fieldMap: R, registerField: z } = u(), 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: t,
|
|
71
|
-
errorContext: V,
|
|
72
|
-
Form: d(B)(_),
|
|
73
|
-
Input: d(B)(w?.input ?? h),
|
|
74
|
-
TaggedUnion: d(B)(g),
|
|
75
|
-
Field: P.Field,
|
|
76
|
-
Errors: l(V)(m),
|
|
77
|
-
Array: d(B)(f),
|
|
78
|
-
AutoGen: d(B)(p)
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
//#endregion
|
|
82
|
-
export { w as OmegaFormKey, E as useOmegaForm };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import e from "./vue-components106.es.js";
|
|
2
|
-
import { useOmegaForm as t } from "./vue-components138.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
|
-
};
|
|
32
|
-
//#endregion
|
|
33
|
-
export { r as createUseFormWithCustomInput };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import "./vue-components8.es.js";
|
|
2
|
-
import "./vue-components11.es.js";
|
|
3
|
-
import "./vue-components84.es.js";
|
|
4
|
-
import "./vue-components85.es.js";
|
|
5
|
-
import "./vue-components86.es.js";
|
|
6
|
-
import "./vue-components88.es.js";
|
|
7
|
-
import "./vue-components89.es.js";
|
|
8
|
-
import "./vue-components90.es.js";
|
|
9
|
-
import "./vue-components104.es.js";
|
|
10
|
-
import "./vue-components106.es.js";
|
|
11
|
-
import "./vue-components108.es.js";
|
|
12
|
-
import "./vue-components110.es.js";
|
|
13
|
-
import "./vue-components137.es.js";
|
|
14
|
-
import "./vue-components138.es.js";
|
|
15
|
-
import "./vue-components139.es.js";
|
|
16
|
-
//#region src/components/OmegaForm/index.ts
|
|
17
|
-
var e = (e) => e;
|
|
18
|
-
//#endregion
|
|
19
|
-
export { e as duplicateSchema };
|
|
@@ -1,48 +0,0 @@
|
|
|
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-components84.es.js";
|
|
7
|
-
import { defaultsValueFromSchema as u } from "./vue-components85.es.js";
|
|
8
|
-
import { toFormSchema as d } from "./vue-components86.es.js";
|
|
9
|
-
import { deepMerge as f } from "./vue-components88.es.js";
|
|
10
|
-
import { makeStandardSchemaV1Hooks as p, toLocalizedStandardSchemaV1 as m } from "./vue-components89.es.js";
|
|
11
|
-
import { useErrorLabel as h } from "./vue-components90.es.js";
|
|
12
|
-
import g from "./vue-components104.es.js";
|
|
13
|
-
import _ from "./vue-components106.es.js";
|
|
14
|
-
import v from "./vue-components108.es.js";
|
|
15
|
-
import y from "./vue-components110.es.js";
|
|
16
|
-
import { FormErrors as b } from "./vue-components137.es.js";
|
|
17
|
-
import { OmegaFormKey as x, useOmegaForm as S } from "./vue-components138.es.js";
|
|
18
|
-
import { createUseFormWithCustomInput as C } from "./vue-components139.es.js";
|
|
19
|
-
import { duplicateSchema as w } from "./vue-components140.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
|
-
});
|
|
47
|
-
//#endregion
|
|
48
|
-
export { T as components_exports };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { dual as e } from "./vue-components13.es.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Order.js
|
|
3
|
-
function t(e) {
|
|
4
|
-
return (t, n) => t === n ? 0 : e(t, n);
|
|
5
|
-
}
|
|
6
|
-
var n = /* @__PURE__ */ t((e, t) => globalThis.Number.isNaN(e) && globalThis.Number.isNaN(t) ? 0 : globalThis.Number.isNaN(e) ? -1 : globalThis.Number.isNaN(t) ? 1 : e < t ? -1 : 1), r = /* @__PURE__ */ t((e, t) => e < t ? -1 : 1), i = /* @__PURE__ */ e(2, (e, n) => t((t, r) => e(n(t), n(r)))), a = /* @__PURE__ */ i(n, (e) => e.getTime()), o = (t) => e(2, (e, n) => t(e, n) === -1), s = (t) => e(2, (e, n) => t(e, n) === 1), c = (t) => e(2, (e, n) => t(e, n) !== 1), l = (t) => e(2, (e, n) => t(e, n) !== -1);
|
|
7
|
-
//#endregion
|
|
8
|
-
export { r as BigInt, a as Date, n as Number, s as isGreaterThan, l as isGreaterThanOrEqualTo, o as isLessThan, c as isLessThanOrEqualTo, t as make, i as mapInput };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { pipeArguments as e } from "./vue-components12.es.js";
|
|
2
|
-
import { dual as t } from "./vue-components13.es.js";
|
|
3
|
-
import { hasProperty as n } from "./vue-components15.es.js";
|
|
4
|
-
import { combine as r, hash as i, number as a, symbol as o } from "./vue-components16.es.js";
|
|
5
|
-
import { symbol as s } from "./vue-components17.es.js";
|
|
6
|
-
import { make as c } from "./vue-components18.es.js";
|
|
7
|
-
import { NodeInspectSymbol as l } from "./vue-components22.es.js";
|
|
8
|
-
import { BigInt as u, Number as d, make as f } from "./vue-components27.es.js";
|
|
9
|
-
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/BigDecimal.js
|
|
10
|
-
var p = "~effect/BigDecimal", m = {
|
|
11
|
-
[p]: p,
|
|
12
|
-
[o]() {
|
|
13
|
-
let e = x(this);
|
|
14
|
-
return r(i(e.value), a(e.scale));
|
|
15
|
-
},
|
|
16
|
-
[s](e) {
|
|
17
|
-
return h(e) && D(this, e);
|
|
18
|
-
},
|
|
19
|
-
toString() {
|
|
20
|
-
return `BigDecimal(${O(this)})`;
|
|
21
|
-
},
|
|
22
|
-
toJSON() {
|
|
23
|
-
return {
|
|
24
|
-
_id: "BigDecimal",
|
|
25
|
-
value: String(this.value),
|
|
26
|
-
scale: this.scale
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
[l]() {
|
|
30
|
-
return this.toJSON();
|
|
31
|
-
},
|
|
32
|
-
pipe() {
|
|
33
|
-
return e(this, arguments);
|
|
34
|
-
}
|
|
35
|
-
}, h = (e) => n(e, p), g = (e, t) => {
|
|
36
|
-
let n = Object.create(m);
|
|
37
|
-
return n.value = e, n.scale = t, n;
|
|
38
|
-
}, _ = (e, t) => {
|
|
39
|
-
if (e !== v && e % y === v) throw RangeError("Value must be normalized");
|
|
40
|
-
let n = g(e, t);
|
|
41
|
-
return n.normalized = n, n;
|
|
42
|
-
}, v = /* @__PURE__ */ BigInt(0), y = /* @__PURE__ */ BigInt(10), b = /* @__PURE__ */ _(v, 0), x = (e) => {
|
|
43
|
-
if (e.normalized === void 0) if (e.value === v) e.normalized = b;
|
|
44
|
-
else {
|
|
45
|
-
let t = `${e.value}`, n = 0;
|
|
46
|
-
for (let e = t.length - 1; e >= 0 && t[e] === "0"; e--) n++;
|
|
47
|
-
n === 0 && (e.normalized = e), e.normalized = _(BigInt(t.substring(0, t.length - n)), e.scale - n);
|
|
48
|
-
}
|
|
49
|
-
return e.normalized;
|
|
50
|
-
}, S = /* @__PURE__ */ t(2, (e, t) => t > e.scale ? g(e.value * y ** BigInt(t - e.scale), t) : t < e.scale ? g(e.value / y ** BigInt(e.scale - t), t) : e), C = /* @__PURE__ */ f((e, t) => {
|
|
51
|
-
let n = d(w(e), w(t));
|
|
52
|
-
return n === 0 ? e.scale > t.scale ? u(e.value, S(t, e.scale).value) : e.scale < t.scale ? u(S(e, t.scale).value, t.value) : u(e.value, t.value) : n;
|
|
53
|
-
}), w = (e) => e.value === v ? 0 : e.value < v ? -1 : 1, T = (e) => e.value < v ? g(-e.value, e.scale) : e, E = /* @__PURE__ */ c((e, t) => e.scale > t.scale ? S(t, e.scale).value === e.value : e.scale < t.scale ? S(e, t.scale).value === t.value : e.value === t.value), D = /* @__PURE__ */ t(2, (e, t) => E(e, t)), O = (e) => {
|
|
54
|
-
let t = x(e);
|
|
55
|
-
if (Math.abs(t.scale) >= 16) return k(t);
|
|
56
|
-
let n = t.value < v, r = n ? `${t.value}`.substring(1) : `${t.value}`, i, a;
|
|
57
|
-
if (t.scale >= r.length) i = "0", a = "0".repeat(t.scale - r.length) + r;
|
|
58
|
-
else {
|
|
59
|
-
let e = r.length - t.scale;
|
|
60
|
-
if (e > r.length) {
|
|
61
|
-
let t = e - r.length;
|
|
62
|
-
i = `${r}${"0".repeat(t)}`, a = "";
|
|
63
|
-
} else a = r.slice(e), i = r.slice(0, e);
|
|
64
|
-
}
|
|
65
|
-
let o = a === "" ? i : `${i}.${a}`;
|
|
66
|
-
return n ? `-${o}` : o;
|
|
67
|
-
}, k = (e) => {
|
|
68
|
-
if (A(e)) return "0e+0";
|
|
69
|
-
let t = x(e), n = `${T(t).value}`, r = n.slice(0, 1), i = n.slice(1), a = `${j(t) ? "-" : ""}${r}`;
|
|
70
|
-
i !== "" && (a += `.${i}`);
|
|
71
|
-
let o = i.length - t.scale;
|
|
72
|
-
return `${a}e${o >= 0 ? "+" : ""}${o}`;
|
|
73
|
-
}, A = (e) => e.value === v, j = (e) => e.value < v;
|
|
74
|
-
//#endregion
|
|
75
|
-
export { C as Order, O as format };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { pipeArguments as e } from "./vue-components12.es.js";
|
|
2
|
-
import { dual as t, identity as n } from "./vue-components13.es.js";
|
|
3
|
-
import { withFiber as r } from "./vue-components24.es.js";
|
|
4
|
-
import { Service as i, add as a, getOrElse as o, mergeAll as s } from "./vue-components32.es.js";
|
|
5
|
-
import { andThen as c, flatMap as l, forEach as u, map as d, onExit as f, provideService as p, scopeAddFinalizerExit as m, suspend as h, void_ as g } from "./vue-components37.es.js";
|
|
6
|
-
import { _await as _, done as v, makeUnsafe as y } from "./vue-components41.es.js";
|
|
7
|
-
import { close as b, forkUnsafe as x, makeUnsafe as S } from "./vue-components42.es.js";
|
|
8
|
-
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/Layer.js
|
|
9
|
-
var C = "~effect/Layer", w = "~effect/Layer/MemoMap", T = {
|
|
10
|
-
[C]: {
|
|
11
|
-
_ROut: n,
|
|
12
|
-
_E: n,
|
|
13
|
-
_RIn: n
|
|
14
|
-
},
|
|
15
|
-
pipe() {
|
|
16
|
-
return e(this, arguments);
|
|
17
|
-
}
|
|
18
|
-
}, E = (e) => {
|
|
19
|
-
let t = Object.create(T);
|
|
20
|
-
return t.build = e, t;
|
|
21
|
-
}, D = (e) => E((t, n) => {
|
|
22
|
-
let r = x(n);
|
|
23
|
-
return f(e(t, r), (e) => e._tag === "Failure" ? b(r, e) : g);
|
|
24
|
-
}), O = class {
|
|
25
|
-
get [w]() {
|
|
26
|
-
return w;
|
|
27
|
-
}
|
|
28
|
-
map = /* @__PURE__ */ new Map();
|
|
29
|
-
getOrElseMemoize(e, t, n) {
|
|
30
|
-
if (this.map.has(e)) {
|
|
31
|
-
let n = this.map.get(e);
|
|
32
|
-
return n.observers++, c(m(t, (e) => n.finalizer(e)), n.effect);
|
|
33
|
-
}
|
|
34
|
-
let r = S(), i = y(), a = {
|
|
35
|
-
observers: 1,
|
|
36
|
-
effect: _(i),
|
|
37
|
-
finalizer: (t) => h(() => (a.observers--, a.observers === 0 ? (this.map.delete(e), b(r, t)) : g))
|
|
38
|
-
};
|
|
39
|
-
return this.map.set(e, a), m(t, a.finalizer).pipe(l(() => n(this, r)), f((e) => (a.effect = e, v(i, e))));
|
|
40
|
-
}
|
|
41
|
-
}, k = () => new O(), A = class extends i()("effect/Layer/CurrentMemoMap") {
|
|
42
|
-
static getOrCreate = /* @__PURE__ */ o(this, k);
|
|
43
|
-
}, j = /* @__PURE__ */ t(3, (e, t, n) => p(d(e.build(t, n), a(A, t)), A, t)), M = /* @__PURE__ */ t(2, (e, t) => r((n) => j(e, A.getOrCreate(n.context), t))), N = (e, t, n) => {
|
|
44
|
-
let r = x(n, "parallel");
|
|
45
|
-
return u(e, (e) => e.build(t, x(r, "sequential")), { concurrency: e.length }).pipe(d((e) => s(...e)));
|
|
46
|
-
}, P = (...e) => D((t, n) => N(e, t, n));
|
|
47
|
-
//#endregion
|
|
48
|
-
export { j as buildWithMemoMap, M as buildWithScope, k as makeMemoMapUnsafe, P as mergeAll };
|
|
@@ -1,18 +0,0 @@
|
|
|
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) }));
|
|
17
|
-
//#endregion
|
|
18
|
-
export { s as Email };
|