@effect-app/vue-components 3.2.0 → 4.0.0-beta.0
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.es11.js +1 -1
- package/dist/vue-components.es12.js +290 -341
- package/dist/vue-components.es17.js +723 -4
- package/dist/vue-components.es18.js +140 -9
- package/dist/vue-components.es19.js +4 -55
- package/dist/vue-components.es2.js +17 -18
- package/dist/vue-components.es20.js +11 -68
- package/dist/vue-components.es21.js +3 -6
- package/dist/vue-components.es22.js +24 -6
- package/dist/vue-components.es23.js +4 -3
- package/dist/vue-components.es24.js +8 -3
- package/dist/vue-components.es25.js +55 -2
- package/dist/vue-components.es26.js +69 -2
- package/dist/vue-components.es27.js +6 -2
- package/dist/vue-components.es28.js +6 -2
- package/dist/vue-components.es29.js +3 -17
- package/dist/vue-components.es3.js +9 -9
- package/dist/vue-components.es30.js +3 -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 +1 -1
- package/dist/vue-components.es35.js +17 -111
- package/dist/vue-components.es36.js +40 -0
- package/dist/vue-components.es37.js +4 -7
- package/dist/vue-components.es38.js +82 -31
- package/dist/vue-components.es39.js +54 -0
- package/dist/vue-components.es40.js +561 -4
- package/dist/vue-components.es41.js +40 -22
- package/dist/vue-components.es42.js +27 -5
- package/dist/vue-components.es43.js +5 -21
- package/dist/vue-components.es44.js +39 -29
- package/dist/vue-components.es45.js +313 -21
- package/dist/vue-components.es46.js +31 -12
- package/dist/vue-components.es47.js +4 -5
- package/dist/vue-components.es48.js +23 -18
- package/dist/vue-components.es49.js +74 -8
- package/dist/vue-components.es50.js +98 -30
- package/dist/vue-components.es51.js +2 -48
- package/dist/vue-components.es52.js +317 -25
- package/dist/vue-components.es53.js +64 -11
- package/dist/vue-components.es54.js +2 -65
- package/dist/vue-components.es55.js +2 -56
- package/dist/vue-components.es56.js +110 -16
- package/dist/vue-components.es58.js +7 -29
- package/dist/vue-components.es59.js +31 -41
- package/dist/vue-components.es61.js +190 -42
- package/dist/vue-components.es63.js +6 -0
- package/dist/vue-components.es64.js +103 -0
- package/dist/vue-components.es65.js +4 -0
- package/dist/vue-components.es66.js +23 -0
- package/dist/vue-components.es67.js +84 -0
- package/dist/vue-components.es68.js +14 -0
- package/dist/vue-components.es69.js +115 -0
- package/dist/vue-components.es7.js +1 -1
- package/dist/vue-components.es70.js +5 -0
- package/dist/vue-components.es71.js +34 -0
- package/dist/vue-components.es72.js +4 -0
- package/dist/vue-components.es73.js +4 -0
- package/dist/vue-components.es74.js +17 -0
- package/dist/vue-components.es75.js +72 -0
- package/dist/vue-components.es76.js +25 -0
- package/dist/vue-components.es77.js +7 -0
- package/dist/vue-components.es78.js +23 -0
- package/dist/vue-components.es79.js +32 -0
- package/dist/vue-components.es80.js +24 -0
- package/dist/vue-components.es81.js +14 -0
- package/dist/vue-components.es82.js +7 -0
- package/dist/vue-components.es83.js +21 -0
- package/dist/vue-components.es84.js +11 -0
- package/dist/vue-components.es85.js +33 -0
- package/dist/vue-components.es86.js +50 -0
- package/dist/vue-components.es87.js +28 -0
- package/dist/vue-components.es88.js +17 -0
- package/dist/vue-components.es89.js +18 -0
- package/dist/vue-components.es90.js +10 -0
- package/dist/vue-components.es91.js +13 -0
- package/dist/vue-components.es92.js +67 -0
- package/dist/vue-components.es93.js +58 -0
- package/dist/vue-components.es94.js +19 -0
- package/dist/{vue-components.es57.js → vue-components.es95.js} +3 -3
- package/dist/vue-components.es96.js +31 -0
- package/dist/vue-components.es97.js +44 -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.es62.js → vue-components.es100.js} +0 -0
- /package/dist/{vue-components.es60.js → vue-components.es98.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es95.js";
|
|
2
|
+
import { ProxyTracerProvider as i } from "./vue-components.es80.js";
|
|
3
|
+
import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es83.js";
|
|
4
|
+
import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es96.js";
|
|
5
|
+
import { DiagAPI as o } from "./vue-components.es92.js";
|
|
6
|
+
var n = "trace", y = (
|
|
7
|
+
/** @class */
|
|
8
|
+
(function() {
|
|
9
|
+
function t() {
|
|
10
|
+
this._proxyTracerProvider = new i(), this.wrapSpanContext = c, this.isSpanContextValid = h, this.deleteSpan = g, this.getSpan = S, this.getActiveSpan = x, this.getSpanContext = d, this.setSpan = f, this.setSpanContext = l;
|
|
11
|
+
}
|
|
12
|
+
return t.getInstance = function() {
|
|
13
|
+
return this._instance || (this._instance = new t()), this._instance;
|
|
14
|
+
}, t.prototype.setGlobalTracerProvider = function(r) {
|
|
15
|
+
var e = a(n, this._proxyTracerProvider, o.instance());
|
|
16
|
+
return e && this._proxyTracerProvider.setDelegate(r), e;
|
|
17
|
+
}, t.prototype.getTracerProvider = function() {
|
|
18
|
+
return p(n) || this._proxyTracerProvider;
|
|
19
|
+
}, t.prototype.getTracer = function(r, e) {
|
|
20
|
+
return this.getTracerProvider().getTracer(r, e);
|
|
21
|
+
}, t.prototype.disable = function() {
|
|
22
|
+
s(n, o.instance()), this._proxyTracerProvider = new i();
|
|
23
|
+
}, t;
|
|
24
|
+
})()
|
|
25
|
+
);
|
|
26
|
+
export {
|
|
27
|
+
y as TraceAPI
|
|
28
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { hasProperty as o, isFunction as t } from "./vue-components.es42.js";
|
|
2
|
+
import { redact as e } from "./vue-components.es66.js";
|
|
3
|
+
const n = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), s = (r) => {
|
|
4
|
+
try {
|
|
5
|
+
if (o(r, "toJSON") && t(r.toJSON) && r.toJSON.length === 0)
|
|
6
|
+
return r.toJSON();
|
|
7
|
+
if (Array.isArray(r))
|
|
8
|
+
return r.map(s);
|
|
9
|
+
} catch {
|
|
10
|
+
return "[toJSON threw]";
|
|
11
|
+
}
|
|
12
|
+
return e(r);
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
n as NodeInspectSymbol,
|
|
16
|
+
s as toJson
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const s = (t) => {
|
|
2
|
+
const e = new Set(Reflect.ownKeys(t));
|
|
3
|
+
if (t.constructor === Object) return e;
|
|
4
|
+
t instanceof Error && e.delete("stack");
|
|
5
|
+
const n = Object.getPrototypeOf(t);
|
|
6
|
+
let o = n;
|
|
7
|
+
for (; o !== null && o !== Object.prototype; ) {
|
|
8
|
+
const r = Reflect.ownKeys(o);
|
|
9
|
+
for (let c = 0; c < r.length; c++)
|
|
10
|
+
e.add(r[c]);
|
|
11
|
+
o = Object.getPrototypeOf(o);
|
|
12
|
+
}
|
|
13
|
+
return e.has("constructor") && typeof t.constructor == "function" && n === t.constructor.prototype && e.delete("constructor"), e;
|
|
14
|
+
}, f = /* @__PURE__ */ new WeakSet();
|
|
15
|
+
export {
|
|
16
|
+
f as byReferenceInstances,
|
|
17
|
+
s as getAllObjectKeys
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { dual as o } from "./vue-components.es39.js";
|
|
2
|
+
function N(i) {
|
|
3
|
+
return (r, u) => r === u ? 0 : i(r, u);
|
|
4
|
+
}
|
|
5
|
+
const e = /* @__PURE__ */ N((i, r) => globalThis.Number.isNaN(i) && globalThis.Number.isNaN(r) ? 0 : globalThis.Number.isNaN(i) ? -1 : globalThis.Number.isNaN(r) ? 1 : i < r ? -1 : 1), m = /* @__PURE__ */ o(2, (i, r) => N((u, n) => i(r(u), r(n))));
|
|
6
|
+
export {
|
|
7
|
+
e as Number,
|
|
8
|
+
N as make,
|
|
9
|
+
m as mapInput
|
|
10
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useStore as u } from "@tanstack/vue-form";
|
|
2
|
+
import { computed as f } from "vue";
|
|
3
|
+
function c(o, t) {
|
|
4
|
+
return f(() => t ? u(o.store, (n) => {
|
|
5
|
+
const r = {};
|
|
6
|
+
for (const e of t)
|
|
7
|
+
r[e] = n[e];
|
|
8
|
+
return r;
|
|
9
|
+
}).value : {});
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as getOmegaStore
|
|
13
|
+
};
|
|
@@ -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.es77.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,19 @@
|
|
|
1
|
+
import { DiagLogLevel as r } from "./vue-components.es77.js";
|
|
2
|
+
function c(n, o) {
|
|
3
|
+
n < r.NONE ? n = r.NONE : n > r.ALL && (n = r.ALL), o = o || {};
|
|
4
|
+
function i(t, f) {
|
|
5
|
+
var e = o[t];
|
|
6
|
+
return typeof e == "function" && n >= f ? e.bind(o) : function() {
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
error: i("error", r.ERROR),
|
|
11
|
+
warn: i("warn", r.WARN),
|
|
12
|
+
info: i("info", r.INFO),
|
|
13
|
+
debug: i("debug", r.DEBUG),
|
|
14
|
+
verbose: i("verbose", r.VERBOSE)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as createLogLevelDiagLogger
|
|
19
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VERSION as t } from "./vue-components.
|
|
2
|
-
import { isCompatible as f } from "./vue-components.
|
|
3
|
-
import { _globalThis as m } from "./vue-components.
|
|
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
4
|
var u = t.split(".")[0], n = /* @__PURE__ */ Symbol.for("opentelemetry.js.api." + u), l = m;
|
|
5
5
|
function d(r, o, e, i) {
|
|
6
6
|
var v;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createContextKey as o } from "./vue-components.es76.js";
|
|
2
|
+
import { NonRecordingSpan as a } from "./vue-components.es85.js";
|
|
3
|
+
import { ContextAPI as u } from "./vue-components.es86.js";
|
|
4
|
+
var n = o("OpenTelemetry Context Key SPAN");
|
|
5
|
+
function r(e) {
|
|
6
|
+
return e.getValue(n) || void 0;
|
|
7
|
+
}
|
|
8
|
+
function S() {
|
|
9
|
+
return r(u.getInstance().active());
|
|
10
|
+
}
|
|
11
|
+
function i(e, t) {
|
|
12
|
+
return e.setValue(n, t);
|
|
13
|
+
}
|
|
14
|
+
function l(e) {
|
|
15
|
+
return e.deleteValue(n);
|
|
16
|
+
}
|
|
17
|
+
function d(e, t) {
|
|
18
|
+
return i(e, new a(t));
|
|
19
|
+
}
|
|
20
|
+
function m(e) {
|
|
21
|
+
var t;
|
|
22
|
+
return (t = r(e)) === null || t === void 0 ? void 0 : t.spanContext();
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
l as deleteSpan,
|
|
26
|
+
S as getActiveSpan,
|
|
27
|
+
r as getSpan,
|
|
28
|
+
m as getSpanContext,
|
|
29
|
+
i as setSpan,
|
|
30
|
+
d as setSpanContext
|
|
31
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ROOT_CONTEXT as l } from "./vue-components.es76.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.0",
|
|
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.0"
|
|
34
|
+
"vue-tsc": "^3.2.5",
|
|
35
|
+
"vuetify": "^4.0.0",
|
|
36
|
+
"@effect-app/eslint-shared-config": "0.5.7-beta.0"
|
|
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.0",
|
|
57
|
+
"@effect-app/vue": "4.0.0-beta.0"
|
|
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
|
})
|