@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { memoize as t } from "./vue-components.es39.js";
|
|
2
|
+
function r(e) {
|
|
3
|
+
return e.checks ? e.checks[e.checks.length - 1].annotations : e.annotations;
|
|
4
|
+
}
|
|
5
|
+
function o(e) {
|
|
6
|
+
return (n) => r(n)?.[e];
|
|
7
|
+
}
|
|
8
|
+
const i = /* @__PURE__ */ o("identifier"), c = /* @__PURE__ */ t((e) => {
|
|
9
|
+
const n = i(e);
|
|
10
|
+
return typeof n == "string" ? n : e.getExpected(c);
|
|
11
|
+
});
|
|
12
|
+
export {
|
|
13
|
+
c as getExpected,
|
|
14
|
+
r as resolve,
|
|
15
|
+
o as resolveAt,
|
|
16
|
+
i as resolveIdentifier
|
|
17
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { DiagComponentLogger as m } from "./vue-components.es93.js";
|
|
2
|
+
import { createLogLevelDiagLogger as y } from "./vue-components.es94.js";
|
|
3
|
+
import { DiagLogLevel as d } from "./vue-components.es65.js";
|
|
4
|
+
import { unregisterGlobal as p, getGlobal as v, registerGlobal as w } from "./vue-components.es95.js";
|
|
5
|
+
var b = function(i, n) {
|
|
6
|
+
var r = typeof Symbol == "function" && i[Symbol.iterator];
|
|
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
|
+
);
|
|
65
|
+
export {
|
|
66
|
+
P as DiagAPI
|
|
67
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { getGlobal as f } from "./vue-components.es95.js";
|
|
2
|
+
var p = function(n, e) {
|
|
3
|
+
var r = typeof Symbol == "function" && n[Symbol.iterator];
|
|
4
|
+
if (!r) return n;
|
|
5
|
+
var t = r.call(n), o, a = [], g;
|
|
6
|
+
try {
|
|
7
|
+
for (; (e === void 0 || e-- > 0) && !(o = t.next()).done; ) a.push(o.value);
|
|
8
|
+
} catch (s) {
|
|
9
|
+
g = { error: s };
|
|
10
|
+
} finally {
|
|
11
|
+
try {
|
|
12
|
+
o && !o.done && (r = t.return) && r.call(t);
|
|
13
|
+
} finally {
|
|
14
|
+
if (g) throw g.error;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
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
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
i as DiagComponentLogger
|
|
58
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { VERSION as t } from "./vue-components.es98.js";
|
|
2
|
+
import { isCompatible as f } from "./vue-components.es99.js";
|
|
3
|
+
import { _globalThis as m } from "./vue-components.es100.js";
|
|
4
|
+
var u = t.split(".")[0], n = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + u), l = m;
|
|
5
|
+
function d(r, o, e, i) {
|
|
6
|
+
var v;
|
|
7
|
+
i === void 0 && (i = !1);
|
|
8
|
+
var s = l[n] = (v = l[n]) !== null && v !== void 0 ? v : {
|
|
9
|
+
version: t
|
|
10
|
+
};
|
|
11
|
+
if (!i && s[r]) {
|
|
12
|
+
var a = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + r);
|
|
13
|
+
return e.error(a.stack || a.message), !1;
|
|
14
|
+
}
|
|
15
|
+
if (s.version !== t) {
|
|
16
|
+
var a = new Error("@opentelemetry/api: Registration of version v" + s.version + " for " + r + " does not match previously registered API v" + t);
|
|
17
|
+
return e.error(a.stack || a.message), !1;
|
|
18
|
+
}
|
|
19
|
+
return s[r] = o, e.debug("@opentelemetry/api: Registered a global for " + r + " v" + t + "."), !0;
|
|
20
|
+
}
|
|
21
|
+
function E(r) {
|
|
22
|
+
var o, e, i = (o = l[n]) === null || o === void 0 ? void 0 : o.version;
|
|
23
|
+
if (!(!i || !f(i)))
|
|
24
|
+
return (e = l[n]) === null || e === void 0 ? void 0 : e[r];
|
|
25
|
+
}
|
|
26
|
+
function _(r, o) {
|
|
27
|
+
o.debug("@opentelemetry/api: Unregistering a global for " + r + " v" + t + ".");
|
|
28
|
+
var e = l[n];
|
|
29
|
+
e && delete e[r];
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
E as getGlobal,
|
|
33
|
+
d as registerGlobal,
|
|
34
|
+
_ as unregisterGlobal
|
|
35
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createContextKey as o } from "./vue-components.
|
|
2
|
-
import { NonRecordingSpan as a } from "./vue-components.
|
|
3
|
-
import { ContextAPI as u } from "./vue-components.
|
|
1
|
+
import { createContextKey as o } from "./vue-components.es64.js";
|
|
2
|
+
import { NonRecordingSpan as a } from "./vue-components.es73.js";
|
|
3
|
+
import { ContextAPI as u } from "./vue-components.es74.js";
|
|
4
4
|
var n = o("OpenTelemetry Context Key SPAN");
|
|
5
5
|
function r(e) {
|
|
6
6
|
return e.getValue(n) || void 0;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ROOT_CONTEXT as l } from "./vue-components.es64.js";
|
|
2
|
+
var c = function(t, o) {
|
|
3
|
+
var n = typeof Symbol == "function" && t[Symbol.iterator];
|
|
4
|
+
if (!n) return t;
|
|
5
|
+
var e = n.call(t), a, r = [], u;
|
|
6
|
+
try {
|
|
7
|
+
for (; (o === void 0 || o-- > 0) && !(a = e.next()).done; ) r.push(a.value);
|
|
8
|
+
} catch (i) {
|
|
9
|
+
u = { error: i };
|
|
10
|
+
} finally {
|
|
11
|
+
try {
|
|
12
|
+
a && !a.done && (n = e.return) && n.call(e);
|
|
13
|
+
} finally {
|
|
14
|
+
if (u) throw u.error;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return r;
|
|
18
|
+
}, p = function(t, o, n) {
|
|
19
|
+
if (n || arguments.length === 2) for (var e = 0, a = o.length, r; e < a; e++)
|
|
20
|
+
(r || !(e in o)) && (r || (r = Array.prototype.slice.call(o, 0, e)), r[e] = o[e]);
|
|
21
|
+
return t.concat(r || Array.prototype.slice.call(o));
|
|
22
|
+
}, y = (
|
|
23
|
+
/** @class */
|
|
24
|
+
(function() {
|
|
25
|
+
function t() {
|
|
26
|
+
}
|
|
27
|
+
return t.prototype.active = function() {
|
|
28
|
+
return l;
|
|
29
|
+
}, t.prototype.with = function(o, n, e) {
|
|
30
|
+
for (var a = [], r = 3; r < arguments.length; r++)
|
|
31
|
+
a[r - 3] = arguments[r];
|
|
32
|
+
return n.call.apply(n, p([e], c(a), !1));
|
|
33
|
+
}, t.prototype.bind = function(o, n) {
|
|
34
|
+
return n;
|
|
35
|
+
}, t.prototype.enable = function() {
|
|
36
|
+
return this;
|
|
37
|
+
}, t.prototype.disable = function() {
|
|
38
|
+
return this;
|
|
39
|
+
}, t;
|
|
40
|
+
})()
|
|
41
|
+
);
|
|
42
|
+
export {
|
|
43
|
+
y as NoopContextManager
|
|
44
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { VERSION as d } from "./vue-components.es98.js";
|
|
2
|
+
var h = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
3
|
+
function s(c) {
|
|
4
|
+
var m = /* @__PURE__ */ new Set([c]), f = /* @__PURE__ */ new Set(), t = c.match(h);
|
|
5
|
+
if (!t)
|
|
6
|
+
return function() {
|
|
7
|
+
return !1;
|
|
8
|
+
};
|
|
9
|
+
var e = {
|
|
10
|
+
major: +t[1],
|
|
11
|
+
minor: +t[2],
|
|
12
|
+
patch: +t[3],
|
|
13
|
+
prerelease: t[4]
|
|
14
|
+
};
|
|
15
|
+
if (e.prerelease != null)
|
|
16
|
+
return function(r) {
|
|
17
|
+
return r === c;
|
|
18
|
+
};
|
|
19
|
+
function a(n) {
|
|
20
|
+
return f.add(n), !1;
|
|
21
|
+
}
|
|
22
|
+
function p(n) {
|
|
23
|
+
return m.add(n), !0;
|
|
24
|
+
}
|
|
25
|
+
return function(r) {
|
|
26
|
+
if (m.has(r))
|
|
27
|
+
return !0;
|
|
28
|
+
if (f.has(r))
|
|
29
|
+
return !1;
|
|
30
|
+
var i = r.match(h);
|
|
31
|
+
if (!i)
|
|
32
|
+
return a(r);
|
|
33
|
+
var u = {
|
|
34
|
+
major: +i[1],
|
|
35
|
+
minor: +i[2],
|
|
36
|
+
patch: +i[3],
|
|
37
|
+
prerelease: i[4]
|
|
38
|
+
};
|
|
39
|
+
return u.prerelease != null || e.major !== u.major ? a(r) : e.major === 0 ? e.minor === u.minor && e.patch <= u.patch ? p(r) : a(r) : e.minor <= u.minor ? p(r) : a(r);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
var v = s(d);
|
|
43
|
+
export {
|
|
44
|
+
s as _makeCompatibilityCheck,
|
|
45
|
+
v as isCompatible
|
|
46
|
+
};
|
package/package.json
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
|
-
"effect": "^
|
|
7
|
-
"intl-messageformat": "^11.1.
|
|
6
|
+
"effect": "^4.0.0-beta.25",
|
|
7
|
+
"intl-messageformat": "^11.1.2",
|
|
8
8
|
"mdi-js": "^1.0.1",
|
|
9
9
|
"primeflex": "^4.0.0",
|
|
10
10
|
"primeicons": "^7.0.0",
|
|
11
11
|
"primevue": "^4.5.4",
|
|
12
|
-
"vue": "^3.5.
|
|
13
|
-
"vuetify": "^
|
|
12
|
+
"vue": "^3.5.29",
|
|
13
|
+
"vuetify": "^4.0.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@storybook/vue3": "^10.
|
|
17
|
-
"@storybook/vue3-vite": "^10.
|
|
18
|
-
"@types/node": "^25.
|
|
19
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
16
|
+
"@storybook/vue3": "^10.2.13",
|
|
17
|
+
"@storybook/vue3-vite": "^10.2.13",
|
|
18
|
+
"@types/node": "^25.3.3",
|
|
19
|
+
"@vitejs/plugin-vue": "^6.0.4",
|
|
20
20
|
"@vue/test-utils": "^2.4.6",
|
|
21
|
-
"@vueuse/core": "^14.1
|
|
22
|
-
"dprint": "^0.
|
|
23
|
-
"jsdom": "^
|
|
24
|
-
"rimraf": "^6.1.
|
|
25
|
-
"sass": "^1.97.
|
|
26
|
-
"storybook": "^10.
|
|
21
|
+
"@vueuse/core": "^14.2.1",
|
|
22
|
+
"dprint": "^0.52.0",
|
|
23
|
+
"jsdom": "^28.1.0",
|
|
24
|
+
"rimraf": "^6.1.3",
|
|
25
|
+
"sass": "^1.97.3",
|
|
26
|
+
"storybook": "^10.2.13",
|
|
27
27
|
"typescript": "~5.9.3",
|
|
28
28
|
"vite": "^7.3.1",
|
|
29
|
-
"vite-plugin-css-injected-by-js": "^
|
|
29
|
+
"vite-plugin-css-injected-by-js": "^4.0.1",
|
|
30
30
|
"vitepress": "^1.6.4",
|
|
31
|
-
"vitest": "^4.0.
|
|
32
|
-
"vue-router": "^
|
|
31
|
+
"vitest": "^4.0.18",
|
|
32
|
+
"vue-router": "^5.0.3",
|
|
33
33
|
"vue-toastification": "^2.0.0-rc.5",
|
|
34
|
-
"vue-tsc": "^3.2.
|
|
35
|
-
"vuetify": "^
|
|
36
|
-
"@effect-app/eslint-shared-config": "0.5.
|
|
34
|
+
"vue-tsc": "^3.2.5",
|
|
35
|
+
"vuetify": "^4.0.0",
|
|
36
|
+
"@effect-app/eslint-shared-config": "0.5.7-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"src",
|
|
@@ -53,10 +53,11 @@
|
|
|
53
53
|
"highlight.js": "^11.11.1",
|
|
54
54
|
"mitt": "^3.0.1",
|
|
55
55
|
"vue3-highlightjs": "^1.0.5",
|
|
56
|
-
"
|
|
57
|
-
"effect-app": "
|
|
56
|
+
"effect-app": "4.0.0-beta.1",
|
|
57
|
+
"@effect-app/vue": "4.0.0-beta.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
+
"check": "vue-tsc",
|
|
60
61
|
"build": "pnpm build:run",
|
|
61
62
|
"build:run": "rimraf dist && vue-tsc && vite build",
|
|
62
63
|
"docs:dev": "vitepress dev docs",
|
|
@@ -65,7 +66,7 @@
|
|
|
65
66
|
"lint": "NODE_OPTIONS=--max-old-space-size=8192 eslint src stories .storybook",
|
|
66
67
|
"ncu": "ncu",
|
|
67
68
|
"clean": "rm -rf dist",
|
|
68
|
-
"
|
|
69
|
+
"lint-fix": "pnpm lint --fix",
|
|
69
70
|
"storybook": "storybook dev -p 6006",
|
|
70
71
|
"build-storybook": "storybook build",
|
|
71
72
|
"test": "vitest",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
Name extends DeepKeys<From>"
|
|
21
21
|
>
|
|
22
22
|
import { type DeepKeys } from "@tanstack/vue-form"
|
|
23
|
-
import {
|
|
23
|
+
import { pipe } from "effect/Function"
|
|
24
|
+
import * as Order from "effect/Order"
|
|
24
25
|
import { computed } from "vue"
|
|
25
26
|
import { type FieldMeta, type FieldPath, type OmegaAutoGenMeta, type OmegaInputProps } from "./OmegaFormStuff"
|
|
26
27
|
|
|
@@ -66,7 +67,7 @@ const namePosition = (name: DeepKeys<From>, order: DeepKeys<From>[]) => {
|
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
const orderBy: Order.Order<NewMeta> = Order.mapInput(
|
|
69
|
-
Order.
|
|
70
|
+
Order.Number,
|
|
70
71
|
(x: NewMeta) => namePosition(x.name, props.order || [])
|
|
71
72
|
)
|
|
72
73
|
|
|
@@ -79,26 +80,26 @@ const children = computed<NewMeta[]>(() =>
|
|
|
79
80
|
? props.pick.includes(metaKey) && !props.omit?.includes(metaKey)
|
|
80
81
|
: !props.omit?.includes(metaKey)
|
|
81
82
|
),
|
|
82
|
-
(x) => x,
|
|
83
|
+
(x: Record<DeepKeys<From>, FieldMeta | undefined>) => x,
|
|
83
84
|
// labelMap and adding name
|
|
84
85
|
mapObject((metaValue, metaKey) => ({
|
|
85
|
-
name: metaKey,
|
|
86
|
+
name: metaKey as Name,
|
|
86
87
|
label: props.labelMap?.(metaKey) || metaKey,
|
|
87
|
-
...metaValue
|
|
88
|
+
...(metaValue ?? {})
|
|
88
89
|
})),
|
|
89
90
|
// filterMap
|
|
90
91
|
props.filterMap
|
|
91
|
-
? filterMapRecord((m) => {
|
|
92
|
+
? filterMapRecord((m: NewMeta) => {
|
|
92
93
|
const result = props.filterMap?.(m.name!, m as NewMeta)
|
|
93
94
|
return result === undefined || result === true ? m : result
|
|
94
95
|
})
|
|
95
|
-
: (x) => x,
|
|
96
|
+
: (x: Record<DeepKeys<From>, NewMeta>) => x,
|
|
96
97
|
// transform to array
|
|
97
|
-
(obj) => Object.values(obj) as NewMeta[],
|
|
98
|
+
(obj: Record<DeepKeys<From>, NewMeta>) => Object.values(obj) as NewMeta[],
|
|
98
99
|
// order
|
|
99
|
-
|
|
100
|
+
(items: NewMeta[]) => [...items].sort((a, b) => orderBy(a, b)),
|
|
100
101
|
// sort
|
|
101
|
-
props.sort ?
|
|
102
|
+
props.sort ? (items: NewMeta[]) => [...items].sort((a, b) => props.sort!(a, b)) : (x: NewMeta[]) => x
|
|
102
103
|
)
|
|
103
104
|
)
|
|
104
105
|
|
|
@@ -130,9 +130,10 @@ const showedGeneralErrors = computed(() => {
|
|
|
130
130
|
.flatMap((issues) =>
|
|
131
131
|
issues
|
|
132
132
|
.filter(
|
|
133
|
-
(issue): issue is StandardSchemaV1Issue & { message: string } =>
|
|
133
|
+
(issue): issue is StandardSchemaV1Issue & { message: string } =>
|
|
134
|
+
typeof (issue as { message?: unknown })?.message === "string"
|
|
134
135
|
)
|
|
135
|
-
.map((issue) => issue.message)
|
|
136
|
+
.map((issue) => (issue as StandardSchemaV1Issue & { message: string }).message)
|
|
136
137
|
)
|
|
137
138
|
)
|
|
138
139
|
})
|