@effect-app/vue-components 4.0.0-beta.9 → 4.0.0-beta.90
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/README.md +24 -0
- package/dist/reset.css +52 -0
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +1 -1
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +22 -15
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +3 -5
- package/dist/types/utils/index.d.ts +3 -4
- package/dist/vue-components.es.js +21 -44
- package/dist/vue-components10.es.js +5 -0
- package/dist/vue-components11.es.js +13 -0
- package/dist/vue-components12.es.js +444 -0
- package/dist/vue-components13.es.js +4 -0
- package/dist/vue-components14.es.js +38 -0
- package/dist/vue-components15.es.js +27 -0
- package/dist/vue-components16.es.js +28 -0
- package/dist/vue-components17.es.js +7 -0
- package/dist/vue-components18.es.js +18 -0
- package/dist/vue-components19.es.js +36 -0
- package/dist/vue-components2.es.js +11 -0
- package/dist/vue-components20.es.js +18 -0
- package/dist/vue-components21.es.js +21 -0
- package/dist/vue-components22.es.js +30 -0
- package/dist/vue-components23.es.js +7 -0
- package/dist/vue-components24.es.js +9 -0
- package/dist/vue-components25.es.js +38 -0
- package/dist/vue-components26.es.js +25 -0
- package/dist/vue-components27.es.js +128 -0
- package/dist/vue-components28.es.js +24 -0
- package/dist/vue-components29.es.js +21 -0
- package/dist/vue-components3.es.js +54 -0
- package/dist/vue-components30.es.js +9 -0
- package/dist/vue-components31.es.js +19 -0
- package/dist/vue-components32.es.js +5 -0
- package/dist/vue-components33.es.js +29 -0
- package/dist/vue-components34.es.js +5 -0
- package/dist/vue-components35.es.js +29 -0
- package/dist/vue-components36.es.js +6 -0
- package/dist/vue-components37.es.js +18 -0
- package/dist/vue-components38.es.js +56 -0
- package/dist/vue-components39.es.js +5 -0
- package/dist/vue-components4.es.js +5 -0
- package/dist/vue-components40.es.js +44 -0
- package/dist/vue-components41.es.js +5 -0
- package/dist/vue-components42.es.js +84 -0
- package/dist/vue-components44.es.js +8 -0
- package/dist/vue-components45.es.js +7 -0
- package/dist/vue-components46.es.js +267 -0
- package/dist/vue-components48.es.js +6 -0
- package/dist/vue-components49.es.js +79 -0
- package/dist/vue-components5.es.js +24 -0
- package/dist/vue-components50.es.js +5 -0
- package/dist/vue-components51.es.js +66 -0
- package/dist/vue-components52.es.js +5 -0
- package/dist/vue-components53.es.js +24 -0
- package/dist/vue-components54.es.js +5 -0
- package/dist/vue-components55.es.js +59 -0
- package/dist/vue-components56.es.js +5 -0
- package/dist/vue-components57.es.js +12 -0
- package/dist/vue-components58.es.js +22 -0
- package/dist/vue-components6.es.js +13 -0
- package/dist/vue-components60.es.js +7 -0
- package/dist/vue-components61.es.js +235 -0
- package/dist/vue-components62.es.js +33 -0
- package/dist/vue-components63.es.js +8 -0
- package/dist/vue-components64.es.js +36 -0
- package/dist/vue-components7.es.js +28 -0
- package/dist/vue-components8.es.js +47 -0
- package/dist/vue-components9.es.js +5 -0
- package/package.json +30 -25
- package/src/components/CommandButton.vue +1 -1
- package/src/components/OmegaForm/OmegaAutoGen.vue +25 -30
- package/src/components/OmegaForm/OmegaErrorsInternal.vue +2 -3
- package/src/components/OmegaForm/OmegaFormStuff.ts +504 -355
- package/src/components/OmegaForm/OmegaInternalInput.vue +9 -5
- package/src/components/OmegaForm/useOmegaForm.ts +57 -36
- package/src/reset.css +52 -0
- package/src/utils/index.ts +4 -8
- package/dist/vue-components.es10.js +0 -237
- package/dist/vue-components.es100.js +0 -4
- package/dist/vue-components.es11.js +0 -32
- package/dist/vue-components.es12.js +0 -439
- package/dist/vue-components.es13.js +0 -49
- package/dist/vue-components.es14.js +0 -4
- package/dist/vue-components.es15.js +0 -4
- package/dist/vue-components.es16.js +0 -725
- package/dist/vue-components.es17.js +0 -143
- package/dist/vue-components.es18.js +0 -6
- package/dist/vue-components.es19.js +0 -13
- package/dist/vue-components.es2.js +0 -30
- package/dist/vue-components.es20.js +0 -5
- package/dist/vue-components.es21.js +0 -26
- package/dist/vue-components.es22.js +0 -6
- package/dist/vue-components.es23.js +0 -10
- package/dist/vue-components.es24.js +0 -57
- package/dist/vue-components.es25.js +0 -71
- package/dist/vue-components.es26.js +0 -8
- package/dist/vue-components.es27.js +0 -8
- package/dist/vue-components.es28.js +0 -5
- package/dist/vue-components.es29.js +0 -5
- package/dist/vue-components.es3.js +0 -16
- package/dist/vue-components.es30.js +0 -4
- package/dist/vue-components.es31.js +0 -4
- package/dist/vue-components.es32.js +0 -4
- package/dist/vue-components.es33.js +0 -4
- package/dist/vue-components.es34.js +0 -19
- package/dist/vue-components.es35.js +0 -13
- package/dist/vue-components.es36.js +0 -40
- package/dist/vue-components.es37.js +0 -6
- package/dist/vue-components.es38.js +0 -85
- package/dist/vue-components.es39.js +0 -54
- package/dist/vue-components.es4.js +0 -52
- package/dist/vue-components.es40.js +0 -563
- package/dist/vue-components.es41.js +0 -43
- package/dist/vue-components.es42.js +0 -29
- package/dist/vue-components.es43.js +0 -7
- package/dist/vue-components.es44.js +0 -42
- package/dist/vue-components.es45.js +0 -316
- package/dist/vue-components.es46.js +0 -33
- package/dist/vue-components.es47.js +0 -6
- package/dist/vue-components.es48.js +0 -26
- package/dist/vue-components.es49.js +0 -77
- package/dist/vue-components.es5.js +0 -52
- package/dist/vue-components.es50.js +0 -101
- package/dist/vue-components.es51.js +0 -4
- package/dist/vue-components.es52.js +0 -320
- package/dist/vue-components.es53.js +0 -66
- package/dist/vue-components.es54.js +0 -4
- package/dist/vue-components.es55.js +0 -4
- package/dist/vue-components.es56.js +0 -113
- package/dist/vue-components.es58.js +0 -9
- package/dist/vue-components.es59.js +0 -34
- package/dist/vue-components.es6.js +0 -69
- package/dist/vue-components.es61.js +0 -194
- package/dist/vue-components.es63.js +0 -6
- package/dist/vue-components.es64.js +0 -103
- package/dist/vue-components.es65.js +0 -4
- package/dist/vue-components.es66.js +0 -23
- package/dist/vue-components.es67.js +0 -84
- package/dist/vue-components.es68.js +0 -14
- package/dist/vue-components.es69.js +0 -115
- package/dist/vue-components.es7.js +0 -83
- package/dist/vue-components.es70.js +0 -5
- package/dist/vue-components.es71.js +0 -34
- package/dist/vue-components.es72.js +0 -4
- package/dist/vue-components.es73.js +0 -4
- package/dist/vue-components.es74.js +0 -17
- package/dist/vue-components.es75.js +0 -72
- package/dist/vue-components.es76.js +0 -17
- package/dist/vue-components.es77.js +0 -18
- package/dist/vue-components.es78.js +0 -10
- package/dist/vue-components.es79.js +0 -25
- package/dist/vue-components.es8.js +0 -63
- package/dist/vue-components.es80.js +0 -7
- package/dist/vue-components.es81.js +0 -23
- package/dist/vue-components.es82.js +0 -32
- package/dist/vue-components.es83.js +0 -24
- package/dist/vue-components.es84.js +0 -14
- package/dist/vue-components.es85.js +0 -7
- package/dist/vue-components.es86.js +0 -21
- package/dist/vue-components.es87.js +0 -11
- package/dist/vue-components.es88.js +0 -33
- package/dist/vue-components.es89.js +0 -50
- package/dist/vue-components.es9.js +0 -21
- package/dist/vue-components.es90.js +0 -28
- package/dist/vue-components.es91.js +0 -13
- package/dist/vue-components.es92.js +0 -67
- package/dist/vue-components.es93.js +0 -58
- package/dist/vue-components.es94.js +0 -19
- package/dist/vue-components.es95.js +0 -35
- package/dist/vue-components.es96.js +0 -31
- package/dist/vue-components.es97.js +0 -44
- package/dist/vue-components.es98.js +0 -4
- package/dist/vue-components.es99.js +0 -46
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { pretty as b } from "./vue-components.es37.js";
|
|
2
|
-
import { mapErrorEager as E, runFork as w, match as U } from "./vue-components.es21.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.es16.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());
|
|
124
|
-
export {
|
|
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
|
|
143
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}));
|
|
9
|
-
export {
|
|
10
|
-
u as clone,
|
|
11
|
-
n as cloneTrait,
|
|
12
|
-
b as runtimeFiberAsPromise
|
|
13
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { default as t } from "./vue-components.es4.js";
|
|
2
|
-
import { default as o } from "./vue-components.es5.js";
|
|
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
|
-
import { default as O } from "./vue-components.es6.js";
|
|
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
|
-
export {
|
|
12
|
-
t as CommandButton,
|
|
13
|
-
o as Dialog,
|
|
14
|
-
O as OmegaInput,
|
|
15
|
-
S as OmegaTaggedUnion,
|
|
16
|
-
M as OmegaTaggedUnionInternal,
|
|
17
|
-
I as OmegaVuetifyInput,
|
|
18
|
-
u as createMeta,
|
|
19
|
-
b as createUseFormWithCustomInput,
|
|
20
|
-
n as deepMerge,
|
|
21
|
-
f as defaultsValueFromSchema,
|
|
22
|
-
p as duplicateSchema,
|
|
23
|
-
d as generateInputStandardSchemaFromFieldMeta,
|
|
24
|
-
l as generateMetaFromSchema,
|
|
25
|
-
s as getInputType,
|
|
26
|
-
g as isNullableOrUndefined,
|
|
27
|
-
i as useOmegaForm,
|
|
28
|
-
T as useOnClose,
|
|
29
|
-
y as usePreventClose
|
|
30
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
4
|
-
export {
|
|
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
|
|
26
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
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)));
|
|
4
|
-
export {
|
|
5
|
-
r as isNone,
|
|
6
|
-
N as isSome,
|
|
7
|
-
S as map,
|
|
8
|
-
a as none,
|
|
9
|
-
c as some
|
|
10
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
N as default
|
|
57
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
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.es78.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
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
I as default
|
|
71
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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"]]);
|
|
6
|
-
export {
|
|
7
|
-
e as default
|
|
8
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
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"]]);
|
|
6
|
-
export {
|
|
7
|
-
a as default
|
|
8
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { provide as r, inject as o } from "vue";
|
|
2
|
-
const n = /* @__PURE__ */ Symbol(), s = () => {
|
|
3
|
-
const t = o(n);
|
|
4
|
-
if (!t)
|
|
5
|
-
throw new Error("useIntl must be used within a IntlProvider");
|
|
6
|
-
return t();
|
|
7
|
-
}, i = (t) => r(n, t);
|
|
8
|
-
function u(t) {
|
|
9
|
-
return t;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
u as getTransformationFrom,
|
|
13
|
-
i as provideIntl,
|
|
14
|
-
s as useIntl,
|
|
15
|
-
n as useIntlKey
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
c as default
|
|
19
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { asEquivalence as y } from "./vue-components.es64.js";
|
|
2
|
-
import { dual as s } from "./vue-components.es39.js";
|
|
3
|
-
import { isArrayNonEmpty as p } from "./vue-components.es65.js";
|
|
4
|
-
const c = globalThis.Array, a = (t) => c.isArray(t) ? t : c.from(t), w = /* @__PURE__ */ s(2, (t, n) => [...t, n]), d = /* @__PURE__ */ s(2, (t, n) => a(t).concat(a(n))), x = p, u = p;
|
|
5
|
-
function m(t, n) {
|
|
6
|
-
return t < 0 || t >= n.length;
|
|
7
|
-
}
|
|
8
|
-
const h = /* @__PURE__ */ s(2, (t, n) => {
|
|
9
|
-
const o = Math.floor(n);
|
|
10
|
-
if (m(o, t))
|
|
11
|
-
throw new Error(`Index out of bounds: ${o}`);
|
|
12
|
-
return t[o];
|
|
13
|
-
}), A = /* @__PURE__ */ h(0), E = (t) => t.slice(1), l = /* @__PURE__ */ s(3, (t, n, o) => {
|
|
14
|
-
const r = a(t), e = a(n);
|
|
15
|
-
return u(r) ? u(e) ? N(o)(d(r, e)) : r : e;
|
|
16
|
-
}), I = /* @__PURE__ */ s(2, (t, n) => l(t, n, y())), N = /* @__PURE__ */ s(2, (t, n) => {
|
|
17
|
-
const o = a(t);
|
|
18
|
-
if (u(o)) {
|
|
19
|
-
const r = [A(o)], e = E(o);
|
|
20
|
-
for (const i of e)
|
|
21
|
-
r.every((f) => !n(i, f)) && r.push(i);
|
|
22
|
-
return r;
|
|
23
|
-
}
|
|
24
|
-
return [];
|
|
25
|
-
});
|
|
26
|
-
export {
|
|
27
|
-
c as Array,
|
|
28
|
-
w as append,
|
|
29
|
-
d as appendAll,
|
|
30
|
-
N as dedupeWith,
|
|
31
|
-
a as fromIterable,
|
|
32
|
-
h as getUnsafe,
|
|
33
|
-
A as headNonEmpty,
|
|
34
|
-
x as isArrayNonEmpty,
|
|
35
|
-
m as isOutOfBounds,
|
|
36
|
-
u as isReadonlyArrayNonEmpty,
|
|
37
|
-
E as tailNonEmpty,
|
|
38
|
-
I as union,
|
|
39
|
-
l as unionWith
|
|
40
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { hasProperty as b } from "./vue-components.es42.js";
|
|
2
|
-
import { symbolRedactable as h, getRedacted as l, redact as j } from "./vue-components.es66.js";
|
|
3
|
-
function w(n, i) {
|
|
4
|
-
const c = i?.space ?? 0, s = /* @__PURE__ */ new WeakSet(), a = c ? typeof c == "number" ? " ".repeat(c) : c : "", o = (t) => a.repeat(t), g = (t, r) => {
|
|
5
|
-
const e = t?.constructor;
|
|
6
|
-
return e && e !== Object.prototype.constructor && e.name ? `${e.name}(${r})` : r;
|
|
7
|
-
}, $ = (t) => {
|
|
8
|
-
try {
|
|
9
|
-
return Reflect.ownKeys(t);
|
|
10
|
-
} catch {
|
|
11
|
-
return ["[ownKeys threw]"];
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
function f(t, r = 0) {
|
|
15
|
-
if (Array.isArray(t)) {
|
|
16
|
-
if (s.has(t)) return m;
|
|
17
|
-
if (s.add(t), !a || t.length <= 1) return `[${t.map((u) => f(u, r)).join(",")}]`;
|
|
18
|
-
const e = t.map((u) => f(u, r + 1)).join(`,
|
|
19
|
-
` + o(r + 1));
|
|
20
|
-
return `[
|
|
21
|
-
${o(r + 1)}${e}
|
|
22
|
-
${o(r)}]`;
|
|
23
|
-
}
|
|
24
|
-
if (t instanceof Date) return d(t);
|
|
25
|
-
if (!i?.ignoreToString && b(t, "toString") && typeof t.toString == "function" && t.toString !== Object.prototype.toString && t.toString !== Array.prototype.toString) {
|
|
26
|
-
const e = O(t);
|
|
27
|
-
return t instanceof Error && t.cause ? `${e} (cause: ${f(t.cause, r)})` : e;
|
|
28
|
-
}
|
|
29
|
-
if (typeof t == "string") return JSON.stringify(t);
|
|
30
|
-
if (typeof t == "number" || t == null || typeof t == "boolean" || typeof t == "symbol") return String(t);
|
|
31
|
-
if (typeof t == "bigint") return String(t) + "n";
|
|
32
|
-
if (typeof t == "object" || typeof t == "function") {
|
|
33
|
-
if (s.has(t)) return m;
|
|
34
|
-
if (s.add(t), h in t) return w(l(t));
|
|
35
|
-
if (Symbol.iterator in t)
|
|
36
|
-
return `${t.constructor.name}(${f(Array.from(t), r)})`;
|
|
37
|
-
const e = $(t);
|
|
38
|
-
if (!a || e.length <= 1) {
|
|
39
|
-
const y = `{${e.map((S) => `${p(S)}:${f(t[S], r)}`).join(",")}}`;
|
|
40
|
-
return g(t, y);
|
|
41
|
-
}
|
|
42
|
-
const u = `{
|
|
43
|
-
${e.map((y) => `${o(r + 1)}${p(y)}: ${f(t[y], r + 1)}`).join(`,
|
|
44
|
-
`)}
|
|
45
|
-
${o(r)}}`;
|
|
46
|
-
return g(t, u);
|
|
47
|
-
}
|
|
48
|
-
return String(t);
|
|
49
|
-
}
|
|
50
|
-
return f(n, 0);
|
|
51
|
-
}
|
|
52
|
-
const m = "[Circular]";
|
|
53
|
-
function p(n) {
|
|
54
|
-
return typeof n == "string" ? JSON.stringify(n) : String(n);
|
|
55
|
-
}
|
|
56
|
-
function J(n) {
|
|
57
|
-
return n.map((i) => `[${p(i)}]`).join("");
|
|
58
|
-
}
|
|
59
|
-
function d(n) {
|
|
60
|
-
try {
|
|
61
|
-
return n.toISOString();
|
|
62
|
-
} catch {
|
|
63
|
-
return "Invalid Date";
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function O(n) {
|
|
67
|
-
try {
|
|
68
|
-
const i = n.toString();
|
|
69
|
-
return typeof i == "string" ? i : String(i);
|
|
70
|
-
} catch {
|
|
71
|
-
return "[toString threw]";
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function K(n, i) {
|
|
75
|
-
let c = [];
|
|
76
|
-
const s = JSON.stringify(n, (a, o) => typeof o == "object" && o !== null ? c.includes(o) ? void 0 : c.push(o) && j(o) : o, i?.space);
|
|
77
|
-
return c = void 0, s;
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
w as format,
|
|
81
|
-
d as formatDate,
|
|
82
|
-
K as formatJson,
|
|
83
|
-
J as formatPath,
|
|
84
|
-
p as formatPropertyKey
|
|
85
|
-
};
|