@effect-app/vue-components 4.0.0-beta.0 → 4.0.0-beta.2
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/OmegaFormStuff.d.ts +1 -1
- package/dist/vue-components.es10.js +12 -12
- package/dist/vue-components.es11.js +2 -2
- package/dist/vue-components.es12.js +3 -3
- package/dist/vue-components.es16.js +721 -9
- package/dist/vue-components.es17.js +119 -701
- package/dist/vue-components.es18.js +4 -141
- package/dist/vue-components.es19.js +11 -4
- package/dist/vue-components.es20.js +3 -11
- package/dist/vue-components.es21.js +24 -3
- package/dist/vue-components.es22.js +4 -24
- package/dist/vue-components.es23.js +8 -4
- package/dist/vue-components.es24.js +55 -8
- package/dist/vue-components.es25.js +64 -50
- package/dist/vue-components.es26.js +6 -69
- package/dist/vue-components.es27.js +5 -5
- package/dist/vue-components.es28.js +3 -6
- package/dist/vue-components.es29.js +3 -3
- package/dist/vue-components.es30.js +2 -3
- package/dist/vue-components.es31.js +1 -1
- package/dist/vue-components.es32.js +1 -1
- package/dist/vue-components.es33.js +1 -1
- package/dist/vue-components.es34.js +17 -2
- package/dist/vue-components.es35.js +10 -16
- package/dist/vue-components.es36.js +317 -37
- package/dist/vue-components.es37.js +561 -4
- package/dist/vue-components.es38.js +21 -77
- package/dist/vue-components.es39.js +1 -1
- package/dist/vue-components.es40.js +54 -551
- package/dist/vue-components.es41.js +4 -41
- package/dist/vue-components.es42.js +4 -27
- package/dist/vue-components.es43.js +24 -5
- package/dist/vue-components.es44.js +71 -36
- package/dist/vue-components.es45.js +30 -304
- package/dist/vue-components.es46.js +308 -25
- package/dist/vue-components.es47.js +99 -4
- package/dist/vue-components.es48.js +29 -22
- package/dist/vue-components.es49.js +2 -75
- package/dist/vue-components.es5.js +1 -1
- package/dist/vue-components.es50.js +2 -99
- package/dist/vue-components.es51.js +2 -2
- package/dist/vue-components.es52.js +110 -317
- package/dist/vue-components.es54.js +7 -2
- package/dist/vue-components.es55.js +32 -2
- package/dist/vue-components.es57.js +194 -0
- package/dist/vue-components.es59.js +36 -30
- package/dist/vue-components.es60.js +85 -0
- package/dist/vue-components.es61.js +40 -191
- package/dist/vue-components.es62.js +7 -0
- package/dist/vue-components.es63.js +1 -1
- package/dist/vue-components.es64.js +22 -100
- package/dist/vue-components.es65.js +5 -2
- package/dist/vue-components.es66.js +21 -21
- package/dist/vue-components.es67.js +28 -80
- package/dist/vue-components.es68.js +22 -12
- package/dist/vue-components.es69.js +11 -112
- package/dist/vue-components.es7.js +1 -1
- package/dist/vue-components.es70.js +5 -3
- package/dist/vue-components.es71.js +18 -31
- package/dist/vue-components.es72.js +9 -2
- package/dist/vue-components.es73.js +31 -2
- package/dist/vue-components.es74.js +48 -15
- package/dist/vue-components.es75.js +26 -70
- package/dist/vue-components.es76.js +100 -22
- package/dist/vue-components.es77.js +82 -5
- package/dist/vue-components.es78.js +21 -21
- package/dist/vue-components.es79.js +12 -30
- package/dist/vue-components.es80.js +112 -21
- package/dist/vue-components.es81.js +3 -12
- package/dist/vue-components.es82.js +32 -5
- package/dist/vue-components.es83.js +2 -19
- package/dist/vue-components.es84.js +2 -9
- package/dist/vue-components.es85.js +16 -31
- package/dist/vue-components.es86.js +13 -46
- package/dist/vue-components.es87.js +70 -26
- package/dist/vue-components.es88.js +8 -15
- package/dist/vue-components.es89.js +2 -16
- package/dist/vue-components.es90.js +14 -7
- package/dist/vue-components.es92.js +1 -1
- package/dist/vue-components.es94.js +1 -1
- package/dist/vue-components.es96.js +3 -3
- package/dist/vue-components.es97.js +1 -1
- package/package.json +4 -4
- package/src/components/OmegaForm/OmegaFormStuff.ts +6 -6
- package/dist/vue-components.es53.js +0 -66
- package/dist/vue-components.es56.js +0 -113
- package/dist/vue-components.es58.js +0 -9
|
@@ -1,143 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { make as $ } from "./vue-components.es48.js";
|
|
5
|
-
import { MixedScheduler as y } from "./vue-components.es49.js";
|
|
6
|
-
import { makeFilter as F, Arrays as I, Literal as O, union as h, null as T, decodeTo as _, string as A, unknown as L, boolean as N, number as j, undefined as x } from "./vue-components.es17.js";
|
|
7
|
-
import { transform as f } from "./vue-components.es44.js";
|
|
8
|
-
import { makeFormatterStandardSchemaV1 as C } from "./vue-components.es45.js";
|
|
9
|
-
import { decodeUnknownEffect as k } from "./vue-components.es50.js";
|
|
10
|
-
import { make as M, passthrough as P } from "./vue-components.es46.js";
|
|
11
|
-
import { lambda as V } from "./vue-components.es51.js";
|
|
12
|
-
const p = "~effect/Schema/SchemaError";
|
|
13
|
-
class B {
|
|
14
|
-
[p] = p;
|
|
15
|
-
_tag = "SchemaError";
|
|
16
|
-
name = "SchemaError";
|
|
17
|
-
issue;
|
|
18
|
-
constructor(r) {
|
|
19
|
-
this.issue = r;
|
|
20
|
-
}
|
|
21
|
-
get message() {
|
|
22
|
-
return this.issue.toString();
|
|
23
|
-
}
|
|
24
|
-
toString() {
|
|
25
|
-
return `SchemaError(${this.message})`;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function l(e) {
|
|
29
|
-
return v(e) ? e.value : {
|
|
30
|
-
issues: [{
|
|
31
|
-
message: b(e.cause)
|
|
32
|
-
}]
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function oe(e, r) {
|
|
36
|
-
const n = k(e), a = {
|
|
37
|
-
errors: "all",
|
|
38
|
-
...r?.parseOptions
|
|
39
|
-
}, o = C(), i = (s) => {
|
|
40
|
-
const m = new y(), u = w(U(n(s, a), {
|
|
41
|
-
onFailure: o,
|
|
42
|
-
onSuccess: (c) => ({
|
|
43
|
-
value: c
|
|
44
|
-
})
|
|
45
|
-
}), {
|
|
46
|
-
scheduler: m
|
|
47
|
-
});
|
|
48
|
-
m.flush();
|
|
49
|
-
const d = u.pollUnsafe();
|
|
50
|
-
return d ? l(d) : new Promise((c) => {
|
|
51
|
-
u.addObserver((g) => {
|
|
52
|
-
c(l(g));
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
};
|
|
56
|
-
if ("~standard" in e) {
|
|
57
|
-
const s = e;
|
|
58
|
-
return "validate" in s["~standard"] || Object.assign(s["~standard"], {
|
|
59
|
-
validate: i
|
|
60
|
-
}), s;
|
|
61
|
-
} else
|
|
62
|
-
return Object.assign(e, {
|
|
63
|
-
"~standard": {
|
|
64
|
-
version: 1,
|
|
65
|
-
vendor: "effect",
|
|
66
|
-
validate: i
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
function R(e) {
|
|
71
|
-
const r = k(e);
|
|
72
|
-
return (n, a) => E(r(n, a), (o) => new B(o));
|
|
73
|
-
}
|
|
74
|
-
const se = R, t = $;
|
|
75
|
-
function q(e) {
|
|
76
|
-
const r = t(new O(e), {
|
|
77
|
-
literal: e,
|
|
78
|
-
transform(n) {
|
|
79
|
-
return r.pipe(D(q(n), {
|
|
80
|
-
decode: f(() => n),
|
|
81
|
-
encode: f(() => e)
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
return r;
|
|
86
|
-
}
|
|
87
|
-
const ae = /* @__PURE__ */ t(L), ce = /* @__PURE__ */ t(T), ie = /* @__PURE__ */ t(x), me = /* @__PURE__ */ t(A), z = /* @__PURE__ */ t(j), ue = /* @__PURE__ */ t(N), de = /* @__PURE__ */ V((e) => t(new I(!1, [], [e.ast]), {
|
|
88
|
-
schema: e
|
|
89
|
-
}));
|
|
90
|
-
function S(e, r) {
|
|
91
|
-
return t(e, {
|
|
92
|
-
members: r,
|
|
93
|
-
mapMembers(n, a) {
|
|
94
|
-
const o = n(this.members);
|
|
95
|
-
return S(h(o, this.ast.mode, a?.unsafePreserveChecks ? this.ast.checks : void 0), o);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
function fe(e, r) {
|
|
100
|
-
return S(h(e, "anyOf", void 0), e);
|
|
101
|
-
}
|
|
102
|
-
function D(e, r) {
|
|
103
|
-
return (n) => t(_(n.ast, e.ast, r ? M(r) : P()), {
|
|
104
|
-
from: n,
|
|
105
|
-
to: e
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
const G = F;
|
|
109
|
-
function H(e) {
|
|
110
|
-
return G((r) => globalThis.Number.isSafeInteger(r), {
|
|
111
|
-
expected: "an integer",
|
|
112
|
-
meta: {
|
|
113
|
-
_tag: "isInt"
|
|
114
|
-
},
|
|
115
|
-
toArbitraryConstraint: {
|
|
116
|
-
number: {
|
|
117
|
-
isInteger: !0
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
...e
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
const pe = /* @__PURE__ */ z.check(/* @__PURE__ */ H());
|
|
1
|
+
import "vue";
|
|
2
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
3
|
+
const t = Object.prototype.toString, c = (o) => t.call(o) === "[object Object]";
|
|
124
4
|
export {
|
|
125
|
-
|
|
126
|
-
ue as Boolean,
|
|
127
|
-
pe as Int,
|
|
128
|
-
q as Literal,
|
|
129
|
-
ce as Null,
|
|
130
|
-
z as Number,
|
|
131
|
-
B as SchemaError,
|
|
132
|
-
me as String,
|
|
133
|
-
ie as Undefined,
|
|
134
|
-
fe as Union,
|
|
135
|
-
ae as Unknown,
|
|
136
|
-
se as decodeEffect,
|
|
137
|
-
D as decodeTo,
|
|
138
|
-
R as decodeUnknownEffect,
|
|
139
|
-
H as isInt,
|
|
140
|
-
t as make,
|
|
141
|
-
G as makeFilter,
|
|
142
|
-
oe as toStandardSchemaV1
|
|
5
|
+
c as isObject
|
|
143
6
|
};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
import "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Exit as c } from "effect";
|
|
2
|
+
import { dual as i } from "./vue-components.es39.js";
|
|
3
|
+
import { isFunction as m } from "./vue-components.es38.js";
|
|
4
|
+
const n = /* @__PURE__ */ Symbol.for("clone-trait"), u = i(2, (o, t) => n in o ? o[n](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(o)));
|
|
5
|
+
i(2, (o, t) => u(o, { ...o, ...m(t) ? t(o) : t }));
|
|
6
|
+
const b = (o, t) => new Promise((e, s) => o.addObserver((r) => {
|
|
7
|
+
c.isSuccess(r) ? e(r.value) : s(r.cause);
|
|
8
|
+
}));
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
u as clone,
|
|
11
|
+
n as cloneTrait,
|
|
12
|
+
b as runtimeFiberAsPromise
|
|
6
13
|
};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { isFunction as m } from "./vue-components.es42.js";
|
|
4
|
-
const n = /* @__PURE__ */ Symbol.for("clone-trait"), u = i(2, (o, t) => n in o ? o[n](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(o)));
|
|
5
|
-
i(2, (o, t) => u(o, { ...o, ...m(t) ? t(o) : t }));
|
|
6
|
-
const b = (o, t) => new Promise((e, s) => o.addObserver((r) => {
|
|
7
|
-
c.isSuccess(r) ? e(r.value) : s(r.cause);
|
|
8
|
-
}));
|
|
1
|
+
import { TaggedError as r } from "./vue-components.es36.js";
|
|
2
|
+
const g = r;
|
|
9
3
|
export {
|
|
10
|
-
|
|
11
|
-
n as cloneTrait,
|
|
12
|
-
b as runtimeFiberAsPromise
|
|
4
|
+
g as TaggedError
|
|
13
5
|
};
|
|
@@ -1,5 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { EffectTypeId as c } from "./vue-components.es36.js";
|
|
2
|
+
import { currentSpan as n, mapErrorEager as e, runPromise as r, flatMap as t, fnUntraced as s, option as o, promise as p, runFork as u, match as E, fnUntracedEager as f, runSync as i, runSyncExit as m, flatMapEager as $, fail as d, succeed as g, succeedSome as S, succeedNone as l, exit as y, mapEager as x, catchEager as h } from "./vue-components.es37.js";
|
|
3
|
+
const M = c, F = (a) => typeof a == "object" && a !== null && M in a, N = p, P = g, I = l, T = S, b = d, j = t, q = o, v = y, w = E, z = n, A = u, B = r, C = i, D = m, G = s, H = x, J = e, K = $, L = h, O = f;
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
+
L as catchEager,
|
|
6
|
+
z as currentSpan,
|
|
7
|
+
v as exit,
|
|
8
|
+
b as fail,
|
|
9
|
+
j as flatMap,
|
|
10
|
+
K as flatMapEager,
|
|
11
|
+
G as fnUntraced,
|
|
12
|
+
O as fnUntracedEager,
|
|
13
|
+
F as isEffect,
|
|
14
|
+
H as mapEager,
|
|
15
|
+
J as mapErrorEager,
|
|
16
|
+
w as match,
|
|
17
|
+
q as option,
|
|
18
|
+
N as promise,
|
|
19
|
+
A as runFork,
|
|
20
|
+
B as runPromise,
|
|
21
|
+
C as runSync,
|
|
22
|
+
D as runSyncExit,
|
|
23
|
+
P as succeed,
|
|
24
|
+
I as succeedNone,
|
|
25
|
+
T as succeedSome
|
|
5
26
|
};
|
|
@@ -1,26 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { FiberTypeId as o } from "./vue-components.es37.js";
|
|
2
|
+
import { hasProperty as e } from "./vue-components.es38.js";
|
|
3
|
+
const t = (r) => e(r, o);
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
z as currentSpan,
|
|
7
|
-
v as exit,
|
|
8
|
-
b as fail,
|
|
9
|
-
j as flatMap,
|
|
10
|
-
K as flatMapEager,
|
|
11
|
-
G as fnUntraced,
|
|
12
|
-
O as fnUntracedEager,
|
|
13
|
-
F as isEffect,
|
|
14
|
-
H as mapEager,
|
|
15
|
-
J as mapErrorEager,
|
|
16
|
-
w as match,
|
|
17
|
-
q as option,
|
|
18
|
-
N as promise,
|
|
19
|
-
A as runFork,
|
|
20
|
-
B as runPromise,
|
|
21
|
-
C as runSync,
|
|
22
|
-
D as runSyncExit,
|
|
23
|
-
P as succeed,
|
|
24
|
-
I as succeedNone,
|
|
25
|
-
T as succeedSome
|
|
5
|
+
t as isFiber
|
|
26
6
|
};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
1
|
+
import { dual as n } from "./vue-components.es39.js";
|
|
2
|
+
import { some as e, none as m, isNone as i, isSome as t } from "./vue-components.es40.js";
|
|
3
|
+
const a = () => m, c = e, r = i, N = t, S = /* @__PURE__ */ n(2, (o, s) => r(o) ? a() : c(s(o.value)));
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
r as isNone,
|
|
6
|
+
N as isSome,
|
|
7
|
+
S as map,
|
|
8
|
+
a as none,
|
|
9
|
+
c as some
|
|
6
10
|
};
|
|
@@ -1,10 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { defineComponent as F, computed as f, onMounted as M, provide as P, createBlock as c, openBlock as s, resolveDynamicComponent as p, withCtx as g, renderSlot as o, createElementBlock as k, normalizeProps as l, guardReactiveProps as u, Fragment as A, renderList as C, mergeProps as b } from "vue";
|
|
2
|
+
const N = /* @__PURE__ */ F({
|
|
3
|
+
inheritAttrs: !1,
|
|
4
|
+
__name: "OmegaArray",
|
|
5
|
+
props: {
|
|
6
|
+
form: {},
|
|
7
|
+
inputClass: {},
|
|
8
|
+
name: {},
|
|
9
|
+
defaultItems: {},
|
|
10
|
+
items: {}
|
|
11
|
+
},
|
|
12
|
+
setup(n) {
|
|
13
|
+
const a = n, y = a.form.useStore((e) => e.values), i = f(() => {
|
|
14
|
+
const e = a.name.replace(/\[/g, ".").replace(/\]/g, "");
|
|
15
|
+
try {
|
|
16
|
+
return e.split(".").reduce((r, t) => r && r[t], y.value);
|
|
17
|
+
} catch (r) {
|
|
18
|
+
return console.error(r), [];
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
M(async () => {
|
|
22
|
+
a.defaultItems && !i.value && a.form.setFieldValue(a.name, a.defaultItems);
|
|
23
|
+
});
|
|
24
|
+
const $ = f(() => (r) => {
|
|
25
|
+
const t = r.replace(/\[\d+\]/g, "");
|
|
26
|
+
return a.form.meta[t];
|
|
27
|
+
});
|
|
28
|
+
return P("getMetaFromArray", $), (e, r) => (s(), c(p(n.form.Field), { name: n.name }, {
|
|
29
|
+
default: g(({ field: t, state: d }) => [
|
|
30
|
+
o(e.$slots, "pre-array", l(u({ field: t, state: d }))),
|
|
31
|
+
(s(!0), k(A, null, C(i.value, (B, m) => (s(), c(p(n.form.Field), {
|
|
32
|
+
key: `${n.name}[${Number(m)}]`,
|
|
33
|
+
name: (
|
|
34
|
+
// eslint-disable-next-line
|
|
35
|
+
`${n.name}[${Number(m)}]`
|
|
36
|
+
)
|
|
37
|
+
}, {
|
|
38
|
+
default: g(({ field: v, state: h }) => [
|
|
39
|
+
o(e.$slots, "default", b({ ref_for: !0 }, {
|
|
40
|
+
subField: v,
|
|
41
|
+
subState: h,
|
|
42
|
+
index: Number(m),
|
|
43
|
+
field: t
|
|
44
|
+
}))
|
|
45
|
+
]),
|
|
46
|
+
_: 2
|
|
47
|
+
}, 1032, ["name"]))), 128)),
|
|
48
|
+
o(e.$slots, "post-array", l(u({ field: t, state: d }))),
|
|
49
|
+
o(e.$slots, "field", l(u({ field: t })))
|
|
50
|
+
]),
|
|
51
|
+
_: 3
|
|
52
|
+
}, 8, ["name"]));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
4
55
|
export {
|
|
5
|
-
|
|
6
|
-
N as isSome,
|
|
7
|
-
S as map,
|
|
8
|
-
a as none,
|
|
9
|
-
c as some
|
|
56
|
+
N as default
|
|
10
57
|
};
|
|
@@ -1,57 +1,71 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { defineComponent as d, computed as b, createElementBlock as O, openBlock as j, Fragment as M, renderList as _, renderSlot as E, createVNode as N, unref as F, mergeProps as g } from "vue";
|
|
2
|
+
import { pipe as h } from "./vue-components.es39.js";
|
|
3
|
+
import { mapInput as k, Number as v } from "./vue-components.es88.js";
|
|
4
|
+
const I = /* @__PURE__ */ d({
|
|
5
|
+
__name: "OmegaAutoGen",
|
|
5
6
|
props: {
|
|
6
7
|
form: {},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
pick: {},
|
|
9
|
+
omit: {},
|
|
10
|
+
labelMap: { type: Function },
|
|
11
|
+
filterMap: { type: Function },
|
|
12
|
+
order: {},
|
|
13
|
+
sort: {}
|
|
11
14
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
15
|
+
setup(i) {
|
|
16
|
+
const l = (e) => (r) => Object.fromEntries(
|
|
17
|
+
Object.entries(r).map(([t, n]) => [t, e(n, t)])
|
|
18
|
+
), u = (e) => (r) => Object.fromEntries(
|
|
19
|
+
Object.entries(r).filter(([t, n]) => e(n, t))
|
|
20
|
+
), p = (e) => (r) => Object.entries(r).reduce(
|
|
21
|
+
(t, [n, c]) => {
|
|
22
|
+
const s = e(c, n);
|
|
23
|
+
return s !== !1 && (t[n] = s), t;
|
|
24
|
+
},
|
|
25
|
+
{}
|
|
26
|
+
), o = i, m = (e, r) => {
|
|
27
|
+
const t = r?.indexOf(e) ?? -1;
|
|
28
|
+
return t === -1 ? Number.MAX_SAFE_INTEGER : t;
|
|
29
|
+
}, a = k(
|
|
30
|
+
v,
|
|
31
|
+
(e) => m(e.name, o.order || [])
|
|
32
|
+
), f = b(
|
|
33
|
+
() => h(
|
|
34
|
+
o.form.meta,
|
|
35
|
+
// include / exclude
|
|
36
|
+
u(
|
|
37
|
+
(e, r) => o.pick ? o.pick.includes(r) && !o.omit?.includes(r) : !o.omit?.includes(r)
|
|
38
|
+
),
|
|
39
|
+
(e) => e,
|
|
40
|
+
// labelMap and adding name
|
|
41
|
+
l((e, r) => ({
|
|
42
|
+
name: r,
|
|
43
|
+
label: o.labelMap?.(r) || r,
|
|
44
|
+
...e ?? {}
|
|
45
|
+
})),
|
|
46
|
+
// filterMap
|
|
47
|
+
o.filterMap ? p((e) => {
|
|
48
|
+
const r = o.filterMap?.(e.name, e);
|
|
49
|
+
return r === void 0 || r === !0 ? e : r;
|
|
50
|
+
}) : (e) => e,
|
|
51
|
+
// transform to array
|
|
52
|
+
(e) => Object.values(e),
|
|
53
|
+
// order
|
|
54
|
+
(e) => [...e].sort((r, t) => a(r, t)),
|
|
55
|
+
// sort
|
|
56
|
+
o.sort ? (e) => [...e].sort((r, t) => o.sort(r, t)) : (e) => e
|
|
57
|
+
)
|
|
58
|
+
);
|
|
59
|
+
return (e, r) => (j(!0), O(M, null, _(f.value, ({ name: t, label: n, ...c }) => E(e.$slots, "default", {
|
|
60
|
+
child: { name: t, label: n, ...c }
|
|
61
|
+
}, () => [
|
|
62
|
+
N(F(i.form).Input, g({
|
|
63
|
+
name: t,
|
|
64
|
+
label: n
|
|
65
|
+
}, { ref_for: !0 }, c), null, 16, ["name", "label"])
|
|
66
|
+
])), 256));
|
|
53
67
|
}
|
|
54
68
|
});
|
|
55
69
|
export {
|
|
56
|
-
|
|
70
|
+
I as default
|
|
57
71
|
};
|
|
@@ -1,71 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
props: {
|
|
7
|
-
form: {},
|
|
8
|
-
pick: {},
|
|
9
|
-
omit: {},
|
|
10
|
-
labelMap: { type: Function },
|
|
11
|
-
filterMap: { type: Function },
|
|
12
|
-
order: {},
|
|
13
|
-
sort: {}
|
|
14
|
-
},
|
|
15
|
-
setup(i) {
|
|
16
|
-
const l = (e) => (r) => Object.fromEntries(
|
|
17
|
-
Object.entries(r).map(([t, n]) => [t, e(n, t)])
|
|
18
|
-
), u = (e) => (r) => Object.fromEntries(
|
|
19
|
-
Object.entries(r).filter(([t, n]) => e(n, t))
|
|
20
|
-
), p = (e) => (r) => Object.entries(r).reduce(
|
|
21
|
-
(t, [n, c]) => {
|
|
22
|
-
const s = e(c, n);
|
|
23
|
-
return s !== !1 && (t[n] = s), t;
|
|
24
|
-
},
|
|
25
|
-
{}
|
|
26
|
-
), o = i, m = (e, r) => {
|
|
27
|
-
const t = r?.indexOf(e) ?? -1;
|
|
28
|
-
return t === -1 ? Number.MAX_SAFE_INTEGER : t;
|
|
29
|
-
}, a = k(
|
|
30
|
-
v,
|
|
31
|
-
(e) => m(e.name, o.order || [])
|
|
32
|
-
), f = b(
|
|
33
|
-
() => h(
|
|
34
|
-
o.form.meta,
|
|
35
|
-
// include / exclude
|
|
36
|
-
u(
|
|
37
|
-
(e, r) => o.pick ? o.pick.includes(r) && !o.omit?.includes(r) : !o.omit?.includes(r)
|
|
38
|
-
),
|
|
39
|
-
(e) => e,
|
|
40
|
-
// labelMap and adding name
|
|
41
|
-
l((e, r) => ({
|
|
42
|
-
name: r,
|
|
43
|
-
label: o.labelMap?.(r) || r,
|
|
44
|
-
...e ?? {}
|
|
45
|
-
})),
|
|
46
|
-
// filterMap
|
|
47
|
-
o.filterMap ? p((e) => {
|
|
48
|
-
const r = o.filterMap?.(e.name, e);
|
|
49
|
-
return r === void 0 || r === !0 ? e : r;
|
|
50
|
-
}) : (e) => e,
|
|
51
|
-
// transform to array
|
|
52
|
-
(e) => Object.values(e),
|
|
53
|
-
// order
|
|
54
|
-
(e) => [...e].sort((r, t) => a(r, t)),
|
|
55
|
-
// sort
|
|
56
|
-
o.sort ? (e) => [...e].sort((r, t) => o.sort(r, t)) : (e) => e
|
|
57
|
-
)
|
|
58
|
-
);
|
|
59
|
-
return (e, r) => (j(!0), O(M, null, _(f.value, ({ name: t, label: n, ...c }) => E(e.$slots, "default", {
|
|
60
|
-
child: { name: t, label: n, ...c }
|
|
61
|
-
}, () => [
|
|
62
|
-
N(F(i.form).Input, g({
|
|
63
|
-
name: t,
|
|
64
|
-
label: n
|
|
65
|
-
}, { ref_for: !0 }, c), null, 16, ["name", "label"])
|
|
66
|
-
])), 256));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-4d6b105c],.v-leave-to[data-v-4d6b105c]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-4d6b105c],.v-leave-active[data-v-4d6b105c]{display:grid;transition:all .15s}.v-enter-to[data-v-4d6b105c],.v-leave-from[data-v-4d6b105c]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-4d6b105c]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-4d6b105c]{min-height:0}.error-list[data-v-4d6b105c]{list-style-position:inside}.error-list [data-v-4d6b105c]::marker{margin:0;padding:0}.error-alert-content[data-v-4d6b105c]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-4d6b105c]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-4d6b105c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-4d6b105c]{font-weight:700;font-size:1.25em}.error-message[data-v-4d6b105c]{font-style:italic}.error-item[data-v-4d6b105c]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-4d6b105c]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-4d6b105c]{display:flex;gap:1.5em}.container svg[data-v-4d6b105c]{width:3em}.container .single-error[data-v-4d6b105c]{display:inline-block}')),document.head.appendChild(a),window.customElements){const t=window.customElements.define;window.customElements.define=function(d,e){const r=e.prototype.connectedCallback;return e.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-4d6b105c],.v-leave-to[data-v-4d6b105c]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-4d6b105c],.v-leave-active[data-v-4d6b105c]{display:grid;transition:all .15s}.v-enter-to[data-v-4d6b105c],.v-leave-from[data-v-4d6b105c]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-4d6b105c]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-4d6b105c]{min-height:0}.error-list[data-v-4d6b105c]{list-style-position:inside}.error-list [data-v-4d6b105c]::marker{margin:0;padding:0}.error-alert-content[data-v-4d6b105c]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-4d6b105c]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-4d6b105c]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-4d6b105c]{font-weight:700;font-size:1.25em}.error-message[data-v-4d6b105c]{font-style:italic}.error-item[data-v-4d6b105c]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-4d6b105c]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-4d6b105c]{display:flex;gap:1.5em}.container svg[data-v-4d6b105c]{width:3em}.container .single-error[data-v-4d6b105c]{display:inline-block}')),this.shadowRoot.appendChild(o)}},t.call(window.customElements,d,e)}}}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import r from "./vue-components.es52.js";
|
|
3
|
+
|
|
4
|
+
import o from "./vue-components.es54.js";
|
|
5
|
+
const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-4d6b105c"]]);
|
|
69
6
|
export {
|
|
70
|
-
|
|
7
|
+
e as default
|
|
71
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var
|
|
2
|
-
import
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import o from "./vue-components.es55.js";
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import m from "./vue-components.es54.js";
|
|
5
|
+
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import m from "./vue-components.es58.js";
|
|
5
|
-
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
|
|
1
|
+
import { TraceAPI as r } from "./vue-components.es75.js";
|
|
2
|
+
var t = r.getInstance();
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
t as trace
|
|
8
5
|
};
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
function c(t) {
|
|
2
|
+
return { all: t = t || /* @__PURE__ */ new Map(), on: function(e, f) {
|
|
3
|
+
var i = t.get(e);
|
|
4
|
+
i ? i.push(f) : t.set(e, [f]);
|
|
5
|
+
}, off: function(e, f) {
|
|
6
|
+
var i = t.get(e);
|
|
7
|
+
i && (f ? i.splice(i.indexOf(f) >>> 0, 1) : t.set(e, []));
|
|
8
|
+
}, emit: function(e, f) {
|
|
9
|
+
var i = t.get(e);
|
|
10
|
+
i && i.slice().map(function(a) {
|
|
11
|
+
a(f);
|
|
12
|
+
}), (i = t.get("*")) && i.slice().map(function(a) {
|
|
13
|
+
a(e, f);
|
|
14
|
+
});
|
|
15
|
+
} };
|
|
16
|
+
}
|
|
2
17
|
export {
|
|
3
|
-
|
|
18
|
+
c as default
|
|
4
19
|
};
|