@effect-app/vue-components 3.2.0 → 4.0.0-beta.1
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/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +11 -13
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +6 -4
- package/dist/types/utils/index.d.ts +4 -3
- package/dist/vue-components.es.js +13 -14
- package/dist/vue-components.es10.js +109 -115
- package/dist/vue-components.es100.js +4 -0
- package/dist/vue-components.es11.js +2 -2
- package/dist/vue-components.es12.js +290 -341
- package/dist/vue-components.es16.js +721 -9
- package/dist/vue-components.es17.js +141 -4
- package/dist/vue-components.es18.js +4 -10
- package/dist/vue-components.es19.js +11 -55
- package/dist/vue-components.es2.js +17 -18
- package/dist/vue-components.es20.js +3 -68
- package/dist/vue-components.es21.js +24 -6
- package/dist/vue-components.es22.js +4 -6
- package/dist/vue-components.es23.js +8 -3
- package/dist/vue-components.es24.js +55 -3
- package/dist/vue-components.es25.js +69 -2
- package/dist/vue-components.es26.js +6 -2
- package/dist/vue-components.es27.js +6 -2
- package/dist/vue-components.es28.js +3 -2
- package/dist/vue-components.es29.js +3 -17
- package/dist/vue-components.es3.js +9 -9
- package/dist/vue-components.es30.js +2 -192
- package/dist/vue-components.es31.js +4 -0
- package/dist/vue-components.es32.js +2 -42
- package/dist/vue-components.es33.js +1 -1
- package/dist/vue-components.es34.js +17 -2
- package/dist/vue-components.es35.js +11 -111
- package/dist/vue-components.es36.js +320 -0
- package/dist/vue-components.es37.js +560 -6
- package/dist/vue-components.es38.js +27 -32
- package/dist/vue-components.es39.js +54 -0
- package/dist/vue-components.es40.js +64 -4
- package/dist/vue-components.es41.js +4 -23
- package/dist/vue-components.es42.js +4 -5
- package/dist/vue-components.es43.js +24 -21
- package/dist/vue-components.es44.js +73 -28
- package/dist/vue-components.es45.js +40 -22
- package/dist/vue-components.es46.js +313 -11
- package/dist/vue-components.es47.js +99 -5
- package/dist/vue-components.es48.js +28 -16
- package/dist/vue-components.es49.js +2 -9
- package/dist/vue-components.es5.js +1 -1
- package/dist/vue-components.es50.js +2 -31
- package/dist/vue-components.es51.js +2 -48
- package/dist/vue-components.es52.js +111 -26
- package/dist/vue-components.es54.js +7 -65
- package/dist/vue-components.es55.js +31 -55
- package/dist/vue-components.es57.js +191 -32
- package/dist/vue-components.es59.js +37 -41
- package/dist/vue-components.es60.js +83 -2
- package/dist/vue-components.es61.js +39 -42
- package/dist/vue-components.es62.js +5 -2
- package/dist/vue-components.es63.js +6 -0
- package/dist/vue-components.es64.js +25 -0
- package/dist/vue-components.es65.js +7 -0
- package/dist/vue-components.es66.js +23 -0
- package/dist/vue-components.es67.js +32 -0
- package/dist/vue-components.es68.js +24 -0
- package/dist/vue-components.es69.js +14 -0
- package/dist/vue-components.es7.js +1 -1
- package/dist/vue-components.es70.js +7 -0
- package/dist/vue-components.es71.js +21 -0
- package/dist/vue-components.es72.js +11 -0
- package/dist/vue-components.es73.js +33 -0
- package/dist/vue-components.es74.js +50 -0
- package/dist/vue-components.es75.js +28 -0
- package/dist/vue-components.es76.js +103 -0
- package/dist/vue-components.es77.js +84 -0
- package/dist/vue-components.es78.js +17 -0
- package/dist/vue-components.es79.js +34 -0
- package/dist/vue-components.es80.js +23 -0
- package/dist/vue-components.es81.js +14 -0
- package/dist/vue-components.es82.js +115 -0
- package/dist/vue-components.es83.js +5 -0
- package/dist/vue-components.es84.js +4 -0
- package/dist/vue-components.es85.js +4 -0
- package/dist/vue-components.es86.js +18 -0
- package/dist/vue-components.es87.js +72 -0
- package/dist/vue-components.es88.js +10 -0
- package/dist/vue-components.es89.js +4 -0
- package/dist/vue-components.es90.js +17 -0
- package/dist/vue-components.es92.js +67 -0
- package/dist/vue-components.es93.js +58 -0
- package/dist/{vue-components.es56.js → vue-components.es94.js} +1 -1
- package/dist/vue-components.es95.js +35 -0
- package/dist/{vue-components.es58.js → vue-components.es96.js} +3 -3
- package/dist/vue-components.es97.js +44 -0
- package/dist/vue-components.es98.js +4 -0
- package/dist/vue-components.es99.js +46 -0
- package/package.json +25 -24
- package/src/components/OmegaForm/OmegaAutoGen.vue +11 -10
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +3 -2
- package/src/components/OmegaForm/OmegaFormStuff.ts +249 -274
- package/src/components/OmegaForm/OmegaInternalInput.vue +1 -1
- package/src/components/OmegaForm/useOmegaForm.ts +27 -28
- package/src/utils/index.ts +7 -7
- /package/dist/{vue-components.es53.js → vue-components.es91.js} +0 -0
|
@@ -1,7 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { isArrayNonEmpty as O } from "./vue-components.es59.js";
|
|
2
|
+
import { runSync as I, mapErrorEager as A, runSyncExit as U, flatMapEager as l, fail as E, succeed as _, catchEager as D } from "./vue-components.es21.js";
|
|
3
|
+
import { getSuccess as L } from "./vue-components.es42.js";
|
|
4
|
+
import { memoize as N } from "./vue-components.es39.js";
|
|
5
|
+
import { resolve as h } from "./vue-components.es90.js";
|
|
6
|
+
import { some as V, isSome as S } from "./vue-components.es23.js";
|
|
7
|
+
import { isFunction as b } from "./vue-components.es38.js";
|
|
8
|
+
import { defaultParseOptions as j, toType as R, replaceEncoding as T, ClassTypeId as z, Link as F, isArrays as K, isObjects as M, isDeclaration as Y, collectIssues as v, STRUCTURAL_ANNOTATION_KEY as q } from "./vue-components.es16.js";
|
|
9
|
+
import { InvalidValue as B, Encoding as G, Composite as k } from "./vue-components.es46.js";
|
|
10
|
+
const m = /* @__PURE__ */ N((r) => {
|
|
11
|
+
switch (r._tag) {
|
|
12
|
+
case "Declaration": {
|
|
13
|
+
const n = r.annotations?.[z];
|
|
14
|
+
if (b(n)) {
|
|
15
|
+
const c = n(r.typeParameters), t = m(c.to);
|
|
16
|
+
return T(r, t === c.to ? [c] : [new F(t, c.transformation)]);
|
|
17
|
+
}
|
|
18
|
+
return r;
|
|
19
|
+
}
|
|
20
|
+
case "Objects":
|
|
21
|
+
case "Arrays":
|
|
22
|
+
return r.recur((n) => {
|
|
23
|
+
const c = n.context?.defaultValue;
|
|
24
|
+
return c ? T(m(n), c) : m(n);
|
|
25
|
+
});
|
|
26
|
+
case "Suspend":
|
|
27
|
+
return r.recur(m);
|
|
28
|
+
default:
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function P(r) {
|
|
33
|
+
const n = m(R(r.ast)), c = x(n);
|
|
34
|
+
return (t, e) => c(t, e?.parseOptions);
|
|
35
|
+
}
|
|
36
|
+
function nr(r) {
|
|
37
|
+
const n = P(r);
|
|
38
|
+
return (c, t) => L(U(n(c, t)));
|
|
39
|
+
}
|
|
40
|
+
function tr(r) {
|
|
41
|
+
const n = P(r);
|
|
42
|
+
return (c, t) => I(A(n(c, t), (e) => new Error(e.toString(), {
|
|
43
|
+
cause: e
|
|
44
|
+
})));
|
|
45
|
+
}
|
|
46
|
+
function cr(r) {
|
|
47
|
+
return x(r.ast);
|
|
48
|
+
}
|
|
49
|
+
function x(r) {
|
|
50
|
+
const n = p(r);
|
|
51
|
+
return (c, t) => l(n(V(c), t ?? j), (e) => e._tag === "None" ? E(new B(e)) : _(e.value));
|
|
52
|
+
}
|
|
53
|
+
const p = /* @__PURE__ */ N((r) => {
|
|
54
|
+
let n;
|
|
55
|
+
if (!r.context && !r.encoding && !r.checks)
|
|
56
|
+
return (t, e) => (n ??= r.getParser(p), n(t, h(r)?.parseOptions ?? e));
|
|
57
|
+
const c = K(r) || M(r) || Y(r) && r.typeParameters.length > 0;
|
|
58
|
+
return (t, e) => {
|
|
59
|
+
e = h(r)?.parseOptions ?? e;
|
|
60
|
+
const y = r.encoding;
|
|
61
|
+
let s;
|
|
62
|
+
if (y) {
|
|
63
|
+
const a = y, o = a.length;
|
|
64
|
+
for (let i = o - 1; i >= 0; i--) {
|
|
65
|
+
const u = a[i], g = u.to, w = p(g);
|
|
66
|
+
if (s = s ? l(s, (d) => w(d, e)) : w(t, e), u.transformation._tag === "Transformation") {
|
|
67
|
+
const d = u.transformation.decode;
|
|
68
|
+
s = l(s, (C) => d.run(C, e));
|
|
69
|
+
} else
|
|
70
|
+
s = u.transformation.decode(s, e);
|
|
71
|
+
}
|
|
72
|
+
s = A(s, (i) => new G(r, t, i));
|
|
73
|
+
}
|
|
74
|
+
n ??= r.getParser(p);
|
|
75
|
+
let f = s ? l(s, (a) => n(a, e)) : n(t, e);
|
|
76
|
+
if (r.checks) {
|
|
77
|
+
const a = r.checks;
|
|
78
|
+
e?.errors === "all" && c && S(t) && (f = D(f, (o) => {
|
|
79
|
+
const i = [];
|
|
80
|
+
v(a.filter((g) => g.annotations?.[q]), t.value, i, r, e);
|
|
81
|
+
const u = O(i) ? o._tag === "Composite" && o.ast === r ? new k(r, o.actual, [...o.issues, ...i]) : new k(r, t, [o, ...i]) : o;
|
|
82
|
+
return E(u);
|
|
83
|
+
})), f = l(f, (o) => {
|
|
84
|
+
if (S(o)) {
|
|
85
|
+
const i = o.value, u = [];
|
|
86
|
+
if (v(a, i, u, r, e), O(u))
|
|
87
|
+
return E(new k(r, o, u));
|
|
88
|
+
}
|
|
89
|
+
return _(o);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return f;
|
|
93
|
+
};
|
|
94
|
+
});
|
|
5
95
|
export {
|
|
6
|
-
|
|
96
|
+
cr as decodeUnknownEffect,
|
|
97
|
+
P as makeEffect,
|
|
98
|
+
nr as makeOption,
|
|
99
|
+
tr as makeUnsafe,
|
|
100
|
+
x as run
|
|
7
101
|
};
|
|
@@ -1,21 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { hasProperty as c } from "./vue-components.es38.js";
|
|
2
|
+
import { passthrough as t, Number as d, String as a } from "./vue-components.es45.js";
|
|
3
|
+
const n = "~effect/SchemaTransformation/Transformation";
|
|
4
|
+
class o {
|
|
5
|
+
[n] = n;
|
|
6
|
+
_tag = "Transformation";
|
|
7
|
+
decode;
|
|
8
|
+
encode;
|
|
9
|
+
constructor(r, s) {
|
|
10
|
+
this.decode = r, this.encode = s;
|
|
11
|
+
}
|
|
12
|
+
flip() {
|
|
13
|
+
return new o(this.encode, this.decode);
|
|
14
|
+
}
|
|
15
|
+
compose(r) {
|
|
16
|
+
return new o(this.decode.compose(r.decode), r.encode.compose(this.encode));
|
|
17
|
+
}
|
|
6
18
|
}
|
|
7
|
-
function e
|
|
8
|
-
return
|
|
19
|
+
function h(e) {
|
|
20
|
+
return c(e, n);
|
|
9
21
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
function D(n) {
|
|
14
|
-
return new i(n);
|
|
22
|
+
const f = (e) => h(e) ? e : new o(e.decode, e.encode), i = /* @__PURE__ */ new o(/* @__PURE__ */ t(), /* @__PURE__ */ t());
|
|
23
|
+
function p() {
|
|
24
|
+
return i;
|
|
15
25
|
}
|
|
26
|
+
const g = /* @__PURE__ */ new o(/* @__PURE__ */ d(), /* @__PURE__ */ a());
|
|
16
27
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
28
|
+
o as Transformation,
|
|
29
|
+
h as isTransformation,
|
|
30
|
+
f as make,
|
|
31
|
+
g as numberFromString,
|
|
32
|
+
p as passthrough
|
|
21
33
|
};
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
var a = "0000000000000000", r = "00000000000000000000000000000000", A = {
|
|
3
|
-
traceId: r,
|
|
4
|
-
spanId: a,
|
|
5
|
-
traceFlags: I.NONE
|
|
6
|
-
};
|
|
1
|
+
const o = (a) => a;
|
|
7
2
|
export {
|
|
8
|
-
|
|
9
|
-
A as INVALID_SPAN_CONTEXT,
|
|
10
|
-
r as INVALID_TRACEID
|
|
3
|
+
o as lambda
|
|
11
4
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as v, mergeModels as C, useModel as k, useSlots as V, computed as _, resolveComponent as g, createBlock as y, openBlock as B, unref as a, createSlots as E, withCtx as u, renderSlot as d, renderList as M, normalizeProps as S, guardReactiveProps as w } from "vue";
|
|
2
2
|
import { useOnClose as L } from "./vue-components.es11.js";
|
|
3
|
-
import { onMountedWithCleanup as h } from "./vue-components.
|
|
3
|
+
import { onMountedWithCleanup as h } from "./vue-components.es35.js";
|
|
4
4
|
const z = /* @__PURE__ */ v({
|
|
5
5
|
__name: "Dialog",
|
|
6
6
|
props: /* @__PURE__ */ C({
|
|
@@ -1,33 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
var i = (
|
|
3
|
-
/** @class */
|
|
4
|
-
(function() {
|
|
5
|
-
function t(n) {
|
|
6
|
-
n === void 0 && (n = o), this._spanContext = n;
|
|
7
|
-
}
|
|
8
|
-
return t.prototype.spanContext = function() {
|
|
9
|
-
return this._spanContext;
|
|
10
|
-
}, t.prototype.setAttribute = function(n, e) {
|
|
11
|
-
return this;
|
|
12
|
-
}, t.prototype.setAttributes = function(n) {
|
|
13
|
-
return this;
|
|
14
|
-
}, t.prototype.addEvent = function(n, e) {
|
|
15
|
-
return this;
|
|
16
|
-
}, t.prototype.addLink = function(n) {
|
|
17
|
-
return this;
|
|
18
|
-
}, t.prototype.addLinks = function(n) {
|
|
19
|
-
return this;
|
|
20
|
-
}, t.prototype.setStatus = function(n) {
|
|
21
|
-
return this;
|
|
22
|
-
}, t.prototype.updateName = function(n) {
|
|
23
|
-
return this;
|
|
24
|
-
}, t.prototype.end = function(n) {
|
|
25
|
-
}, t.prototype.isRecording = function() {
|
|
26
|
-
return !1;
|
|
27
|
-
}, t.prototype.recordException = function(n, e) {
|
|
28
|
-
}, t;
|
|
29
|
-
})()
|
|
30
|
-
);
|
|
1
|
+
import f from "./vue-components.es24.js";
|
|
31
2
|
export {
|
|
32
|
-
|
|
3
|
+
f as default
|
|
33
4
|
};
|
|
@@ -1,50 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es57.js";
|
|
3
|
-
import { DiagAPI as u } from "./vue-components.es54.js";
|
|
4
|
-
var y = function(t, e) {
|
|
5
|
-
var a = typeof Symbol == "function" && t[Symbol.iterator];
|
|
6
|
-
if (!a) return t;
|
|
7
|
-
var n = a.call(t), o, r = [], i;
|
|
8
|
-
try {
|
|
9
|
-
for (; (e === void 0 || e-- > 0) && !(o = n.next()).done; ) r.push(o.value);
|
|
10
|
-
} catch (c) {
|
|
11
|
-
i = { error: c };
|
|
12
|
-
} finally {
|
|
13
|
-
try {
|
|
14
|
-
o && !o.done && (a = n.return) && a.call(n);
|
|
15
|
-
} finally {
|
|
16
|
-
if (i) throw i.error;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return r;
|
|
20
|
-
}, d = function(t, e, a) {
|
|
21
|
-
if (a || arguments.length === 2) for (var n = 0, o = e.length, r; n < o; n++)
|
|
22
|
-
(r || !(n in e)) && (r || (r = Array.prototype.slice.call(e, 0, n)), r[n] = e[n]);
|
|
23
|
-
return t.concat(r || Array.prototype.slice.call(e));
|
|
24
|
-
}, l = "context", _ = new f(), A = (
|
|
25
|
-
/** @class */
|
|
26
|
-
(function() {
|
|
27
|
-
function t() {
|
|
28
|
-
}
|
|
29
|
-
return t.getInstance = function() {
|
|
30
|
-
return this._instance || (this._instance = new t()), this._instance;
|
|
31
|
-
}, t.prototype.setGlobalContextManager = function(e) {
|
|
32
|
-
return s(l, e, u.instance());
|
|
33
|
-
}, t.prototype.active = function() {
|
|
34
|
-
return this._getContextManager().active();
|
|
35
|
-
}, t.prototype.with = function(e, a, n) {
|
|
36
|
-
for (var o, r = [], i = 3; i < arguments.length; i++)
|
|
37
|
-
r[i - 3] = arguments[i];
|
|
38
|
-
return (o = this._getContextManager()).with.apply(o, d([e, a, n], y(r), !1));
|
|
39
|
-
}, t.prototype.bind = function(e, a) {
|
|
40
|
-
return this._getContextManager().bind(e, a);
|
|
41
|
-
}, t.prototype._getContextManager = function() {
|
|
42
|
-
return p(l) || _;
|
|
43
|
-
}, t.prototype.disable = function() {
|
|
44
|
-
this._getContextManager().disable(), g(l, u.instance());
|
|
45
|
-
}, t;
|
|
46
|
-
})()
|
|
47
|
-
);
|
|
1
|
+
import f from "./vue-components.es25.js";
|
|
48
2
|
export {
|
|
49
|
-
|
|
3
|
+
f as default
|
|
50
4
|
};
|
|
@@ -1,28 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
1
|
+
import { defineComponent as _, getCurrentInstance as V, computed as B, createBlock as i, openBlock as e, Transition as x, withCtx as u, createElementBlock as o, createCommentVNode as p, renderSlot as g, normalizeProps as b, guardReactiveProps as I, resolveDynamicComponent as f, unref as d, normalizeClass as v, createElementVNode as n, toDisplayString as a, Fragment as y, renderList as w, createTextVNode as C } from "vue";
|
|
2
|
+
import { useIntl as L } from "./vue-components.es3.js";
|
|
3
|
+
const M = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "error-alert"
|
|
6
|
+
}, j = { class: "container" }, D = {
|
|
7
|
+
key: 0,
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
+
}, N = { class: "text-h6" }, z = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "error-list"
|
|
14
|
+
}, G = ["for"], H = { key: 1 }, T = /* @__PURE__ */ _({
|
|
15
|
+
__name: "OmegaErrorsInternal",
|
|
16
|
+
props: {
|
|
17
|
+
generalErrors: {},
|
|
18
|
+
errors: {},
|
|
19
|
+
hideErrorDetails: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
setup(s) {
|
|
22
|
+
const c = V()?.appContext.components.VAlert, h = s, { trans: E } = L(), m = B(() => h.generalErrors ? h.generalErrors.filter((l) => !!l).flatMap(
|
|
23
|
+
(l) => Object.values(l).filter((t) => !!t).flatMap(
|
|
24
|
+
(t) => t.filter(
|
|
25
|
+
(r) => typeof r?.message == "string"
|
|
26
|
+
).map((r) => r.message)
|
|
27
|
+
)
|
|
28
|
+
) : []);
|
|
29
|
+
return (l, t) => (e(), i(x, null, {
|
|
30
|
+
default: u(() => [
|
|
31
|
+
s.errors.length || m.value.length ? (e(), o("div", M, [
|
|
32
|
+
g(l.$slots, "default", b(I({ errors: s.errors, showedGeneralErrors: m.value })), () => [
|
|
33
|
+
(e(), i(f(d(c) ? "v-alert" : "div"), {
|
|
34
|
+
class: v([d(c) ? "mb-4" : "error-alert-content", "mb-4"]),
|
|
35
|
+
type: "error",
|
|
36
|
+
variant: "tonal",
|
|
37
|
+
role: "alert",
|
|
38
|
+
"aria-live": "polite"
|
|
39
|
+
}, {
|
|
40
|
+
default: u(() => [
|
|
41
|
+
n("div", j, [
|
|
42
|
+
g(l.$slots, "icon", {}, () => [
|
|
43
|
+
d(c) ? p("", !0) : (e(), o("svg", D, [...t[0] || (t[0] = [
|
|
44
|
+
n("path", {
|
|
45
|
+
d: "M16 2H8L2 8V16L8 22H16L22 16V8L16 2Z",
|
|
46
|
+
stroke: "currentColor",
|
|
47
|
+
"stroke-width": "2",
|
|
48
|
+
"stroke-linecap": "round",
|
|
49
|
+
"stroke-linejoin": "round"
|
|
50
|
+
}, null, -1),
|
|
51
|
+
n("path", {
|
|
52
|
+
d: "M12 8V12",
|
|
53
|
+
stroke: "currentColor",
|
|
54
|
+
"stroke-width": "2",
|
|
55
|
+
"stroke-linecap": "round",
|
|
56
|
+
"stroke-linejoin": "round"
|
|
57
|
+
}, null, -1),
|
|
58
|
+
n("path", {
|
|
59
|
+
d: "M12 16.0195V16",
|
|
60
|
+
stroke: "currentColor",
|
|
61
|
+
"stroke-width": "2",
|
|
62
|
+
"stroke-linecap": "round",
|
|
63
|
+
"stroke-linejoin": "round"
|
|
64
|
+
}, null, -1)
|
|
65
|
+
])]))
|
|
66
|
+
], !0),
|
|
67
|
+
n("div", null, [
|
|
68
|
+
n("div", N, a(d(E)("form.includes_error")) + ": ", 1),
|
|
69
|
+
s.errors.length ? (e(), o("ul", z, [
|
|
70
|
+
(e(!0), o(y, null, w(s.errors, (r) => (e(), o("li", {
|
|
71
|
+
key: r.inputId,
|
|
72
|
+
class: "error-item"
|
|
73
|
+
}, [
|
|
74
|
+
n("div", null, [
|
|
75
|
+
n("label", {
|
|
76
|
+
for: r.inputId,
|
|
77
|
+
class: "error-link"
|
|
78
|
+
}, a(r.label), 9, G),
|
|
79
|
+
t[1] || (t[1] = C(" " + a(" ") + " ", -1)),
|
|
80
|
+
s.hideErrorDetails ? p("", !0) : (e(), o("div", {
|
|
81
|
+
key: 0,
|
|
82
|
+
class: v(["error-message", r.errors.length < 2 && "single-error"])
|
|
83
|
+
}, [
|
|
84
|
+
(e(), i(f(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
|
|
85
|
+
default: u(() => [
|
|
86
|
+
(e(!0), o(y, null, w(r.errors, (k) => (e(), i(f(r.errors.length > 1 ? "li" : "span"), { key: k }, {
|
|
87
|
+
default: u(() => [
|
|
88
|
+
C(a(k), 1)
|
|
89
|
+
]),
|
|
90
|
+
_: 2
|
|
91
|
+
}, 1024))), 128))
|
|
92
|
+
]),
|
|
93
|
+
_: 2
|
|
94
|
+
}, 1024))
|
|
95
|
+
], 2))
|
|
96
|
+
])
|
|
97
|
+
]))), 128))
|
|
98
|
+
])) : (e(), o("span", H, a(m.value[0]), 1))
|
|
99
|
+
])
|
|
100
|
+
])
|
|
101
|
+
]),
|
|
102
|
+
_: 3
|
|
103
|
+
}, 8, ["class"]))
|
|
104
|
+
], !0)
|
|
105
|
+
])) : p("", !0)
|
|
106
|
+
]),
|
|
107
|
+
_: 3
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
});
|
|
26
111
|
export {
|
|
27
|
-
|
|
112
|
+
T as default
|
|
28
113
|
};
|
|
@@ -1,67 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (!r) return i;
|
|
8
|
-
var t = r.call(i), a, e = [], o;
|
|
9
|
-
try {
|
|
10
|
-
for (; (n === void 0 || n-- > 0) && !(a = t.next()).done; ) e.push(a.value);
|
|
11
|
-
} catch (l) {
|
|
12
|
-
o = { error: l };
|
|
13
|
-
} finally {
|
|
14
|
-
try {
|
|
15
|
-
a && !a.done && (r = t.return) && r.call(t);
|
|
16
|
-
} finally {
|
|
17
|
-
if (o) throw o.error;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return e;
|
|
21
|
-
}, _ = function(i, n, r) {
|
|
22
|
-
if (r || arguments.length === 2) for (var t = 0, a = n.length, e; t < a; t++)
|
|
23
|
-
(e || !(t in n)) && (e || (e = Array.prototype.slice.call(n, 0, t)), e[t] = n[t]);
|
|
24
|
-
return i.concat(e || Array.prototype.slice.call(n));
|
|
25
|
-
}, h = "diag", P = (
|
|
26
|
-
/** @class */
|
|
27
|
-
(function() {
|
|
28
|
-
function i() {
|
|
29
|
-
function n(a) {
|
|
30
|
-
return function() {
|
|
31
|
-
for (var e = [], o = 0; o < arguments.length; o++)
|
|
32
|
-
e[o] = arguments[o];
|
|
33
|
-
var l = v("diag");
|
|
34
|
-
if (l)
|
|
35
|
-
return l[a].apply(l, _([], b(e), !1));
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
var r = this, t = function(a, e) {
|
|
39
|
-
var o, l, g;
|
|
40
|
-
if (e === void 0 && (e = { logLevel: d.INFO }), a === r) {
|
|
41
|
-
var u = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
42
|
-
return r.error((o = u.stack) !== null && o !== void 0 ? o : u.message), !1;
|
|
43
|
-
}
|
|
44
|
-
typeof e == "number" && (e = {
|
|
45
|
-
logLevel: e
|
|
46
|
-
});
|
|
47
|
-
var f = v("diag"), s = y((l = e.logLevel) !== null && l !== void 0 ? l : d.INFO, a);
|
|
48
|
-
if (f && !e.suppressOverrideMessage) {
|
|
49
|
-
var c = (g = new Error().stack) !== null && g !== void 0 ? g : "<failed to generate stacktrace>";
|
|
50
|
-
f.warn("Current logger will be overwritten from " + c), s.warn("Current logger will overwrite one already registered from " + c);
|
|
51
|
-
}
|
|
52
|
-
return w("diag", s, r, !0);
|
|
53
|
-
};
|
|
54
|
-
r.setLogger = t, r.disable = function() {
|
|
55
|
-
p(h, r);
|
|
56
|
-
}, r.createComponentLogger = function(a) {
|
|
57
|
-
return new m(a);
|
|
58
|
-
}, r.verbose = n("verbose"), r.debug = n("debug"), r.info = n("info"), r.warn = n("warn"), r.error = n("error");
|
|
59
|
-
}
|
|
60
|
-
return i.instance = function() {
|
|
61
|
-
return this._instance || (this._instance = new i()), this._instance;
|
|
62
|
-
}, i;
|
|
63
|
-
})()
|
|
64
|
-
);
|
|
1
|
+
const s = (t, e) => {
|
|
2
|
+
const o = t.__vccOpts || t;
|
|
3
|
+
for (const [r, c] of e)
|
|
4
|
+
o[r] = c;
|
|
5
|
+
return o;
|
|
6
|
+
};
|
|
65
7
|
export {
|
|
66
|
-
|
|
8
|
+
s as default
|
|
67
9
|
};
|
|
@@ -1,58 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { defineComponent as m, createElementBlock as d, openBlock as u, withModifiers as f, createElementVNode as l, unref as s, renderSlot as a } from "vue";
|
|
2
|
+
import { useStore as b } from "@tanstack/vue-form";
|
|
3
|
+
import { usePreventClose as p } from "./vue-components.es11.js";
|
|
4
|
+
import { getOmegaStore as c } from "./vue-components.es91.js";
|
|
5
|
+
const S = ["disabled"], V = /* @__PURE__ */ m({
|
|
6
|
+
__name: "OmegaWrapper",
|
|
7
|
+
props: {
|
|
8
|
+
form: {},
|
|
9
|
+
disabled: { type: Boolean },
|
|
10
|
+
subscribe: {}
|
|
11
|
+
},
|
|
12
|
+
setup(o) {
|
|
13
|
+
const e = o, i = b(
|
|
14
|
+
e.form.store,
|
|
15
|
+
(t) => t.isSubmitting
|
|
16
|
+
), n = c(
|
|
17
|
+
e.form,
|
|
18
|
+
e.subscribe
|
|
19
|
+
);
|
|
20
|
+
return e.form.ignorePreventCloseEvents || p(() => e.form.useStore((t) => t.isDirty)), (t, r) => (u(), d("form", {
|
|
21
|
+
novalidate: "",
|
|
22
|
+
onSubmit: r[0] || (r[0] = f((v) => o.form.handleSubmit(), ["prevent", "stop"]))
|
|
23
|
+
}, [
|
|
24
|
+
l("fieldset", {
|
|
25
|
+
disabled: s(i) || o.disabled
|
|
26
|
+
}, [
|
|
27
|
+
a(t.$slots, "default", { subscribedValues: s(n) }, void 0, !0)
|
|
28
|
+
], 8, S)
|
|
29
|
+
], 32));
|
|
16
30
|
}
|
|
17
|
-
|
|
18
|
-
}, l = function(n, e, r) {
|
|
19
|
-
if (r || arguments.length === 2) for (var t = 0, o = e.length, a; t < o; t++)
|
|
20
|
-
(a || !(t in e)) && (a || (a = Array.prototype.slice.call(e, 0, t)), a[t] = e[t]);
|
|
21
|
-
return n.concat(a || Array.prototype.slice.call(e));
|
|
22
|
-
}, i = (
|
|
23
|
-
/** @class */
|
|
24
|
-
(function() {
|
|
25
|
-
function n(e) {
|
|
26
|
-
this._namespace = e.namespace || "DiagComponentLogger";
|
|
27
|
-
}
|
|
28
|
-
return n.prototype.debug = function() {
|
|
29
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
30
|
-
e[r] = arguments[r];
|
|
31
|
-
return u("debug", this._namespace, e);
|
|
32
|
-
}, n.prototype.error = function() {
|
|
33
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
34
|
-
e[r] = arguments[r];
|
|
35
|
-
return u("error", this._namespace, e);
|
|
36
|
-
}, n.prototype.info = function() {
|
|
37
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
38
|
-
e[r] = arguments[r];
|
|
39
|
-
return u("info", this._namespace, e);
|
|
40
|
-
}, n.prototype.warn = function() {
|
|
41
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
42
|
-
e[r] = arguments[r];
|
|
43
|
-
return u("warn", this._namespace, e);
|
|
44
|
-
}, n.prototype.verbose = function() {
|
|
45
|
-
for (var e = [], r = 0; r < arguments.length; r++)
|
|
46
|
-
e[r] = arguments[r];
|
|
47
|
-
return u("verbose", this._namespace, e);
|
|
48
|
-
}, n;
|
|
49
|
-
})()
|
|
50
|
-
);
|
|
51
|
-
function u(n, e, r) {
|
|
52
|
-
var t = f("diag");
|
|
53
|
-
if (t)
|
|
54
|
-
return r.unshift(e), t[n].apply(t, l([], p(r), !1));
|
|
55
|
-
}
|
|
31
|
+
});
|
|
56
32
|
export {
|
|
57
|
-
|
|
33
|
+
V as default
|
|
58
34
|
};
|