@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
|
@@ -1,12 +1,143 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { pretty as b } from "./vue-components.es37.js";
|
|
2
|
+
import { mapErrorEager as E, runFork as w, match as U } from "./vue-components.es22.js";
|
|
3
|
+
import { isSuccess as v } from "./vue-components.es47.js";
|
|
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
|
|
7
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());
|
|
8
124
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
125
|
+
de as Array,
|
|
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
|
|
12
143
|
};
|
|
@@ -1,57 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
});
|
|
1
|
+
import "vue";
|
|
2
|
+
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
3
|
+
const t = Object.prototype.toString, c = (o) => t.call(o) === "[object Object]";
|
|
55
4
|
export {
|
|
56
|
-
|
|
5
|
+
c as isObject
|
|
57
6
|
};
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { default as t } from "./vue-components.es4.js";
|
|
2
2
|
import { default as o } from "./vue-components.es5.js";
|
|
3
|
-
import { createMeta as u, deepMerge as n, defaultsValueFromSchema as
|
|
4
|
-
import { useOmegaForm as
|
|
3
|
+
import { createMeta as u, deepMerge as n, defaultsValueFromSchema as f, duplicateSchema as p, generateInputStandardSchemaFromFieldMeta as d, generateMetaFromSchema as l, getInputType as s, isNullableOrUndefined as g } from "./vue-components.es12.js";
|
|
4
|
+
import { useOmegaForm as i } from "./vue-components.es10.js";
|
|
5
5
|
import { default as O } from "./vue-components.es6.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { useOnClose as
|
|
10
|
-
import { createUseFormWithCustomInput as
|
|
6
|
+
import { default as I } from "./vue-components.es7.js";
|
|
7
|
+
import { default as S } from "./vue-components.es8.js";
|
|
8
|
+
import { default as M } from "./vue-components.es9.js";
|
|
9
|
+
import { useOnClose as T, usePreventClose as y } from "./vue-components.es11.js";
|
|
10
|
+
import { createUseFormWithCustomInput as b } from "./vue-components.es13.js";
|
|
11
11
|
export {
|
|
12
12
|
t as CommandButton,
|
|
13
13
|
o as Dialog,
|
|
14
14
|
O as OmegaInput,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
S as OmegaTaggedUnion,
|
|
16
|
+
M as OmegaTaggedUnionInternal,
|
|
17
|
+
I as OmegaVuetifyInput,
|
|
18
18
|
u as createMeta,
|
|
19
|
-
|
|
19
|
+
b as createUseFormWithCustomInput,
|
|
20
20
|
n as deepMerge,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
f as defaultsValueFromSchema,
|
|
22
|
+
p as duplicateSchema,
|
|
23
|
+
d as generateInputStandardSchemaFromFieldMeta,
|
|
24
|
+
l as generateMetaFromSchema,
|
|
25
25
|
s as getInputType,
|
|
26
26
|
g as isNullableOrUndefined,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
b as useOnClose,
|
|
27
|
+
i as useOmegaForm,
|
|
28
|
+
T as useOnClose,
|
|
30
29
|
y as usePreventClose
|
|
31
30
|
};
|
|
@@ -1,70 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
labelMap: { type: Function },
|
|
10
|
-
filterMap: { type: Function },
|
|
11
|
-
order: {},
|
|
12
|
-
sort: {}
|
|
13
|
-
},
|
|
14
|
-
setup(i) {
|
|
15
|
-
const p = (e) => (r) => Object.fromEntries(
|
|
16
|
-
Object.entries(r).map(([t, o]) => [t, e(o, t)])
|
|
17
|
-
), a = (e) => (r) => Object.fromEntries(
|
|
18
|
-
Object.entries(r).filter(([t, o]) => e(o, t))
|
|
19
|
-
), m = (e) => (r) => Object.entries(r).reduce(
|
|
20
|
-
(t, [o, c]) => {
|
|
21
|
-
const s = e(c, o);
|
|
22
|
-
return s !== !1 && (t[o] = s), t;
|
|
23
|
-
},
|
|
24
|
-
{}
|
|
25
|
-
), n = i, f = (e, r) => {
|
|
26
|
-
const t = r?.indexOf(e) ?? -1;
|
|
27
|
-
return t === -1 ? Number.MAX_SAFE_INTEGER : t;
|
|
28
|
-
}, d = l.mapInput(
|
|
29
|
-
l.number,
|
|
30
|
-
(e) => f(e.name, n.order || [])
|
|
31
|
-
), b = j(
|
|
32
|
-
() => v(
|
|
33
|
-
n.form.meta,
|
|
34
|
-
// include / exclude
|
|
35
|
-
a(
|
|
36
|
-
(e, r) => n.pick ? n.pick.includes(r) && !n.omit?.includes(r) : !n.omit?.includes(r)
|
|
37
|
-
),
|
|
38
|
-
(e) => e,
|
|
39
|
-
// labelMap and adding name
|
|
40
|
-
p((e, r) => ({
|
|
41
|
-
name: r,
|
|
42
|
-
label: n.labelMap?.(r) || r,
|
|
43
|
-
...e
|
|
44
|
-
})),
|
|
45
|
-
// filterMap
|
|
46
|
-
n.filterMap ? m((e) => {
|
|
47
|
-
const r = n.filterMap?.(e.name, e);
|
|
48
|
-
return r === void 0 || r === !0 ? e : r;
|
|
49
|
-
}) : (e) => e,
|
|
50
|
-
// transform to array
|
|
51
|
-
(e) => Object.values(e),
|
|
52
|
-
// order
|
|
53
|
-
u.sort(d),
|
|
54
|
-
// sort
|
|
55
|
-
n.sort ? u.sort(n.sort) : (e) => e
|
|
56
|
-
)
|
|
57
|
-
);
|
|
58
|
-
return (e, r) => (_(!0), M(E, null, A(b.value, ({ name: t, label: o, ...c }) => F(e.$slots, "default", {
|
|
59
|
-
child: { name: t, label: o, ...c }
|
|
60
|
-
}, () => [
|
|
61
|
-
g(h(i.form).Input, k({
|
|
62
|
-
name: t,
|
|
63
|
-
label: o
|
|
64
|
-
}, { ref_for: !0 }, c), null, 16, ["name", "label"])
|
|
65
|
-
])), 256));
|
|
66
|
-
}
|
|
67
|
-
});
|
|
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.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
|
+
}));
|
|
68
9
|
export {
|
|
69
|
-
|
|
10
|
+
u as clone,
|
|
11
|
+
n as cloneTrait,
|
|
12
|
+
b as runtimeFiberAsPromise
|
|
70
13
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import o from "./vue-components.es37.js";
|
|
5
|
-
const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6b2bf87e"]]);
|
|
1
|
+
import { TaggedError as r } from "./vue-components.es52.js";
|
|
2
|
+
const g = r;
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
g as TaggedError
|
|
8
5
|
};
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
import o from "./vue-components.
|
|
3
|
-
|
|
4
|
-
import m from "./vue-components.es37.js";
|
|
5
|
-
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
|
|
1
|
+
import { EffectTypeId as c } from "./vue-components.es52.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.es40.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;
|
|
6
4
|
export {
|
|
7
|
-
|
|
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
|
|
8
26
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FiberTypeId as o } from "./vue-components.es40.js";
|
|
2
|
+
import { hasProperty as e } from "./vue-components.es42.js";
|
|
3
|
+
const t = (r) => e(r, o);
|
|
3
4
|
export {
|
|
4
|
-
t as
|
|
5
|
+
t as isFiber
|
|
5
6
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
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.es53.js";
|
|
3
|
+
const a = () => m, c = e, r = i, N = t, S = /* @__PURE__ */ n(2, (o, s) => r(o) ? a() : c(s(o.value)));
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
+
r as isNone,
|
|
6
|
+
N as isSome,
|
|
7
|
+
S as map,
|
|
8
|
+
a as none,
|
|
9
|
+
c as some
|
|
5
10
|
};
|
|
@@ -1,4 +1,57 @@
|
|
|
1
|
-
import f from "
|
|
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
|
+
});
|
|
2
55
|
export {
|
|
3
|
-
|
|
56
|
+
N as default
|
|
4
57
|
};
|
|
@@ -1,4 +1,71 @@
|
|
|
1
|
-
import
|
|
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.es90.js";
|
|
4
|
+
const I = /* @__PURE__ */ d({
|
|
5
|
+
__name: "OmegaAutoGen",
|
|
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
|
+
});
|
|
2
69
|
export {
|
|
3
|
-
|
|
70
|
+
I as default
|
|
4
71
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
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.es56.js";
|
|
3
|
+
|
|
4
|
+
import o from "./vue-components.es58.js";
|
|
5
|
+
const e = /* @__PURE__ */ o(r, [["__scopeId", "data-v-4d6b105c"]]);
|
|
2
6
|
export {
|
|
3
|
-
|
|
7
|
+
e as default
|
|
4
8
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
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.es59.js";
|
|
3
|
+
|
|
4
|
+
import m from "./vue-components.es58.js";
|
|
5
|
+
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
|
|
2
6
|
export {
|
|
3
|
-
|
|
7
|
+
a as default
|
|
4
8
|
};
|
|
@@ -1,19 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
-
}
|
|
1
|
+
import { TraceAPI as r } from "./vue-components.es87.js";
|
|
2
|
+
var t = r.getInstance();
|
|
17
3
|
export {
|
|
18
|
-
|
|
4
|
+
t as trace
|
|
19
5
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { provide as
|
|
1
|
+
import { provide as r, inject as o } from "vue";
|
|
2
2
|
const n = /* @__PURE__ */ Symbol(), s = () => {
|
|
3
|
-
const
|
|
4
|
-
if (!
|
|
3
|
+
const t = o(n);
|
|
4
|
+
if (!t)
|
|
5
5
|
throw new Error("useIntl must be used within a IntlProvider");
|
|
6
|
-
return
|
|
7
|
-
},
|
|
8
|
-
function
|
|
9
|
-
return
|
|
6
|
+
return t();
|
|
7
|
+
}, i = (t) => r(n, t);
|
|
8
|
+
function u(t) {
|
|
9
|
+
return t;
|
|
10
10
|
}
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
u as getTransformationFrom,
|
|
13
|
+
i as provideIntl,
|
|
14
14
|
s as useIntl,
|
|
15
15
|
n as useIntlKey
|
|
16
16
|
};
|