@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,320 +0,0 @@
|
|
|
1
|
-
import { symbol as d, equals as i } from "./vue-components.es64.js";
|
|
2
|
-
import { format as a } from "./vue-components.es38.js";
|
|
3
|
-
import { identity as E, dual as R } from "./vue-components.es39.js";
|
|
4
|
-
import { symbol as g, array as M, combine as f, string as b, hash as l } from "./vue-components.es67.js";
|
|
5
|
-
import { NodeInspectSymbol as O } from "./vue-components.es76.js";
|
|
6
|
-
import { pipeArguments as S } from "./vue-components.es41.js";
|
|
7
|
-
import { hasProperty as I } from "./vue-components.es42.js";
|
|
8
|
-
import { SingleShotGen as T } from "./vue-components.es71.js";
|
|
9
|
-
const o = "~effect/Effect", _ = "~effect/Exit", Y = {
|
|
10
|
-
_A: E,
|
|
11
|
-
_E: E,
|
|
12
|
-
_R: E
|
|
13
|
-
}, $ = `${o}/identifier`, n = `${o}/args`, h = `${o}/evaluate`, m = `${o}/successCont`, u = `${o}/failureCont`, F = `${o}/ensureCont`, dt = /* @__PURE__ */ Symbol.for("effect/Effect/Yield"), U = {
|
|
14
|
-
pipe() {
|
|
15
|
-
return S(this, arguments);
|
|
16
|
-
},
|
|
17
|
-
toJSON() {
|
|
18
|
-
return {
|
|
19
|
-
...this
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
toString() {
|
|
23
|
-
return a(this.toJSON(), {
|
|
24
|
-
ignoreToString: !0,
|
|
25
|
-
space: 2
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
[O]() {
|
|
29
|
-
return this.toJSON();
|
|
30
|
-
}
|
|
31
|
-
}, W = {
|
|
32
|
-
[Symbol.iterator]() {
|
|
33
|
-
return new T(this);
|
|
34
|
-
}
|
|
35
|
-
}, z = {
|
|
36
|
-
...W,
|
|
37
|
-
pipe() {
|
|
38
|
-
return S(this, arguments);
|
|
39
|
-
}
|
|
40
|
-
}, B = {
|
|
41
|
-
[o]: Y,
|
|
42
|
-
...U,
|
|
43
|
-
[Symbol.iterator]() {
|
|
44
|
-
return new T(this);
|
|
45
|
-
},
|
|
46
|
-
asEffect() {
|
|
47
|
-
return this;
|
|
48
|
-
},
|
|
49
|
-
toJSON() {
|
|
50
|
-
return {
|
|
51
|
-
_id: "Effect",
|
|
52
|
-
op: this[$],
|
|
53
|
-
...n in this ? {
|
|
54
|
-
args: this[n]
|
|
55
|
-
} : void 0
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
}, q = (t) => I(t, _), p = "~effect/Cause", y = "~effect/Cause/Reason", v = (t) => I(t, p);
|
|
59
|
-
class C {
|
|
60
|
-
[p];
|
|
61
|
-
reasons;
|
|
62
|
-
constructor(e) {
|
|
63
|
-
this[p] = p, this.reasons = e;
|
|
64
|
-
}
|
|
65
|
-
pipe() {
|
|
66
|
-
return S(this, arguments);
|
|
67
|
-
}
|
|
68
|
-
toJSON() {
|
|
69
|
-
return {
|
|
70
|
-
_id: "Cause",
|
|
71
|
-
failures: this.reasons.map((e) => e.toJSON())
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
toString() {
|
|
75
|
-
return `Cause(${a(this.reasons)})`;
|
|
76
|
-
}
|
|
77
|
-
[O]() {
|
|
78
|
-
return this.toJSON();
|
|
79
|
-
}
|
|
80
|
-
[d](e) {
|
|
81
|
-
return v(e) && this.reasons.length === e.reasons.length && this.reasons.every((r, s) => i(r, e.reasons[s]));
|
|
82
|
-
}
|
|
83
|
-
[g]() {
|
|
84
|
-
return M(this.reasons);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
const P = /* @__PURE__ */ new WeakMap();
|
|
88
|
-
class J {
|
|
89
|
-
[y];
|
|
90
|
-
annotations;
|
|
91
|
-
_tag;
|
|
92
|
-
constructor(e, r, s) {
|
|
93
|
-
if (this[y] = y, this._tag = e, r !== N && typeof s == "object" && s !== null && r.size > 0) {
|
|
94
|
-
const c = P.get(s);
|
|
95
|
-
c && (r = new Map([...c, ...r])), P.set(s, r);
|
|
96
|
-
}
|
|
97
|
-
this.annotations = r;
|
|
98
|
-
}
|
|
99
|
-
annotate(e, r) {
|
|
100
|
-
if (e.mapUnsafe.size === 0) return this;
|
|
101
|
-
const s = new Map(this.annotations);
|
|
102
|
-
e.mapUnsafe.forEach((D, x) => {
|
|
103
|
-
r?.overwrite !== !0 && s.has(x) || s.set(x, D);
|
|
104
|
-
});
|
|
105
|
-
const c = Object.assign(Object.create(Object.getPrototypeOf(this)), this);
|
|
106
|
-
return c.annotations = s, c;
|
|
107
|
-
}
|
|
108
|
-
pipe() {
|
|
109
|
-
return S(this, arguments);
|
|
110
|
-
}
|
|
111
|
-
toString() {
|
|
112
|
-
return a(this);
|
|
113
|
-
}
|
|
114
|
-
[O]() {
|
|
115
|
-
return this.toString();
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const N = /* @__PURE__ */ new Map();
|
|
119
|
-
class G extends J {
|
|
120
|
-
error;
|
|
121
|
-
constructor(e, r = N) {
|
|
122
|
-
super("Fail", r, e), this.error = e;
|
|
123
|
-
}
|
|
124
|
-
toString() {
|
|
125
|
-
return `Fail(${a(this.error)})`;
|
|
126
|
-
}
|
|
127
|
-
toJSON() {
|
|
128
|
-
return {
|
|
129
|
-
_tag: "Fail",
|
|
130
|
-
error: this.error
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
[d](e) {
|
|
134
|
-
return Q(e) && i(this.error, e.error) && i(this.annotations, e.annotations);
|
|
135
|
-
}
|
|
136
|
-
[g]() {
|
|
137
|
-
return f(b(this._tag))(f(l(this.error))(l(this.annotations)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
const K = (t) => new C([new G(t)]);
|
|
141
|
-
class V extends J {
|
|
142
|
-
defect;
|
|
143
|
-
constructor(e, r = N) {
|
|
144
|
-
super("Die", r, e), this.defect = e;
|
|
145
|
-
}
|
|
146
|
-
toString() {
|
|
147
|
-
return `Die(${a(this.defect)})`;
|
|
148
|
-
}
|
|
149
|
-
toJSON() {
|
|
150
|
-
return {
|
|
151
|
-
_tag: "Die",
|
|
152
|
-
defect: this.defect
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
[d](e) {
|
|
156
|
-
return X(e) && i(this.defect, e.defect) && i(this.annotations, e.annotations);
|
|
157
|
-
}
|
|
158
|
-
[g]() {
|
|
159
|
-
return f(b(this._tag))(f(l(this.defect))(l(this.annotations)));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
const H = (t) => new C([new V(t)]), L = /* @__PURE__ */ R((t) => v(t[0]), (t, e, r) => e.mapUnsafe.size === 0 ? t : new C(t.reasons.map((s) => s.annotate(e, r)))), Q = (t) => t._tag === "Fail", X = (t) => t._tag === "Die", gt = (t) => t._tag === "Interrupt";
|
|
163
|
-
function Z(t) {
|
|
164
|
-
return st("Effect.evaluate: Not implemented");
|
|
165
|
-
}
|
|
166
|
-
const A = (t) => ({
|
|
167
|
-
...B,
|
|
168
|
-
[$]: t.op,
|
|
169
|
-
[h]: t[h] ?? Z,
|
|
170
|
-
[m]: t[m],
|
|
171
|
-
[u]: t[u],
|
|
172
|
-
[F]: t[F]
|
|
173
|
-
}), tt = (t) => {
|
|
174
|
-
const e = A(t);
|
|
175
|
-
return function() {
|
|
176
|
-
const r = Object.create(e);
|
|
177
|
-
return r[n] = t.single === !1 ? arguments : arguments[0], r;
|
|
178
|
-
};
|
|
179
|
-
}, j = (t) => {
|
|
180
|
-
const e = {
|
|
181
|
-
...A(t),
|
|
182
|
-
[_]: _,
|
|
183
|
-
_tag: t.op,
|
|
184
|
-
get [t.prop]() {
|
|
185
|
-
return this[n];
|
|
186
|
-
},
|
|
187
|
-
toString() {
|
|
188
|
-
return `${t.op}(${a(this[n])})`;
|
|
189
|
-
},
|
|
190
|
-
toJSON() {
|
|
191
|
-
return {
|
|
192
|
-
_id: "Exit",
|
|
193
|
-
_tag: t.op,
|
|
194
|
-
[t.prop]: this[n]
|
|
195
|
-
};
|
|
196
|
-
},
|
|
197
|
-
[d](r) {
|
|
198
|
-
return q(r) && r._tag === this._tag && i(this[n], r[n]);
|
|
199
|
-
},
|
|
200
|
-
[g]() {
|
|
201
|
-
return f(b(t.op), l(this[n]));
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
return function(r) {
|
|
205
|
-
const s = Object.create(e);
|
|
206
|
-
return s[n] = r, s;
|
|
207
|
-
};
|
|
208
|
-
}, St = /* @__PURE__ */ j({
|
|
209
|
-
op: "Success",
|
|
210
|
-
prop: "value",
|
|
211
|
-
[h](t) {
|
|
212
|
-
const e = t.getCont(m);
|
|
213
|
-
return e ? e[m](this[n], t, this) : t.yieldWith(this);
|
|
214
|
-
}
|
|
215
|
-
}), et = {
|
|
216
|
-
key: "effect/Cause/StackTrace"
|
|
217
|
-
}, Et = {
|
|
218
|
-
key: "effect/Cause/InterruptorStackTrace"
|
|
219
|
-
}, w = /* @__PURE__ */ j({
|
|
220
|
-
op: "Failure",
|
|
221
|
-
prop: "cause",
|
|
222
|
-
[h](t) {
|
|
223
|
-
let e = this[n], r = !1;
|
|
224
|
-
t.currentStackFrame && (e = L(e, {
|
|
225
|
-
mapUnsafe: /* @__PURE__ */ new Map([[et.key, t.currentStackFrame]])
|
|
226
|
-
}), r = !0);
|
|
227
|
-
let s = t.getCont(u);
|
|
228
|
-
for (; t.interruptible && t._interruptedCause && s; )
|
|
229
|
-
s = t.getCont(u);
|
|
230
|
-
return s ? s[u](e, t, r ? void 0 : this) : t.yieldWith(r ? this : w(e));
|
|
231
|
-
}
|
|
232
|
-
}), rt = (t) => w(K(t)), st = (t) => w(H(t)), yt = /* @__PURE__ */ tt({
|
|
233
|
-
op: "WithFiber",
|
|
234
|
-
[h](t) {
|
|
235
|
-
return this[n](t);
|
|
236
|
-
}
|
|
237
|
-
}), nt = /* @__PURE__ */ (function() {
|
|
238
|
-
class t extends globalThis.Error {
|
|
239
|
-
asEffect() {
|
|
240
|
-
return rt(this);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return Object.assign(t.prototype, z), t;
|
|
244
|
-
})(), ot = /* @__PURE__ */ (function() {
|
|
245
|
-
const t = /* @__PURE__ */ Symbol.for("effect/Data/Error/plainArgs");
|
|
246
|
-
return class extends nt {
|
|
247
|
-
constructor(r) {
|
|
248
|
-
super(r?.message, r?.cause ? {
|
|
249
|
-
cause: r.cause
|
|
250
|
-
} : void 0), r && (Object.assign(this, r), Object.defineProperty(this, t, {
|
|
251
|
-
value: r,
|
|
252
|
-
enumerable: !1
|
|
253
|
-
}));
|
|
254
|
-
}
|
|
255
|
-
toJSON() {
|
|
256
|
-
return {
|
|
257
|
-
...this[t],
|
|
258
|
-
...this
|
|
259
|
-
};
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
})(), it = (t) => {
|
|
263
|
-
class e extends ot {
|
|
264
|
-
_tag = t;
|
|
265
|
-
}
|
|
266
|
-
return e.prototype.name = t, e;
|
|
267
|
-
}, k = "~effect/Cause/NoSuchElementError";
|
|
268
|
-
class bt extends (/* @__PURE__ */ it("NoSuchElementError")) {
|
|
269
|
-
[k] = k;
|
|
270
|
-
constructor(e) {
|
|
271
|
-
super({
|
|
272
|
-
message: e
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
export {
|
|
277
|
-
C as CauseImpl,
|
|
278
|
-
y as CauseReasonTypeId,
|
|
279
|
-
p as CauseTypeId,
|
|
280
|
-
V as Die,
|
|
281
|
-
B as EffectProto,
|
|
282
|
-
o as EffectTypeId,
|
|
283
|
-
ot as Error,
|
|
284
|
-
_ as ExitTypeId,
|
|
285
|
-
G as Fail,
|
|
286
|
-
Et as InterruptorStackTrace,
|
|
287
|
-
bt as NoSuchElementError,
|
|
288
|
-
k as NoSuchElementErrorTypeId,
|
|
289
|
-
U as PipeInspectableProto,
|
|
290
|
-
J as ReasonBase,
|
|
291
|
-
et as StackTraceKey,
|
|
292
|
-
it as TaggedError,
|
|
293
|
-
dt as Yield,
|
|
294
|
-
nt as YieldableError,
|
|
295
|
-
z as YieldableErrorProto,
|
|
296
|
-
W as YieldableProto,
|
|
297
|
-
n as args,
|
|
298
|
-
L as causeAnnotate,
|
|
299
|
-
H as causeDie,
|
|
300
|
-
K as causeFail,
|
|
301
|
-
N as constEmptyAnnotations,
|
|
302
|
-
m as contA,
|
|
303
|
-
F as contAll,
|
|
304
|
-
u as contE,
|
|
305
|
-
h as evaluate,
|
|
306
|
-
st as exitDie,
|
|
307
|
-
rt as exitFail,
|
|
308
|
-
w as exitFailCause,
|
|
309
|
-
St as exitSucceed,
|
|
310
|
-
$ as identifier,
|
|
311
|
-
v as isCause,
|
|
312
|
-
X as isDieReason,
|
|
313
|
-
q as isExit,
|
|
314
|
-
Q as isFailReason,
|
|
315
|
-
gt as isInterruptReason,
|
|
316
|
-
j as makeExit,
|
|
317
|
-
tt as makePrimitive,
|
|
318
|
-
A as makePrimitiveProto,
|
|
319
|
-
yt as withFiber
|
|
320
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { symbol as r, equals as c } from "./vue-components.es64.js";
|
|
2
|
-
import { format as m } from "./vue-components.es38.js";
|
|
3
|
-
import { symbol as n, hash as o, combine as u } from "./vue-components.es67.js";
|
|
4
|
-
import { toJson as l } from "./vue-components.es76.js";
|
|
5
|
-
import { hasProperty as p } from "./vue-components.es42.js";
|
|
6
|
-
import { YieldableProto as _, PipeInspectableProto as f, exitFail as g, NoSuchElementError as b, exitSucceed as O } from "./vue-components.es52.js";
|
|
7
|
-
const s = "~effect/data/Option", a = {
|
|
8
|
-
[s]: {
|
|
9
|
-
_A: (t) => t
|
|
10
|
-
},
|
|
11
|
-
...f,
|
|
12
|
-
..._
|
|
13
|
-
}, S = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
|
|
14
|
-
_tag: "Some",
|
|
15
|
-
_op: "Some",
|
|
16
|
-
[r](t) {
|
|
17
|
-
return i(t) && P(t) && c(this.value, t.value);
|
|
18
|
-
},
|
|
19
|
-
[n]() {
|
|
20
|
-
return u(o(this._tag))(o(this.value));
|
|
21
|
-
},
|
|
22
|
-
toString() {
|
|
23
|
-
return `some(${m(this.value)})`;
|
|
24
|
-
},
|
|
25
|
-
toJSON() {
|
|
26
|
-
return {
|
|
27
|
-
_id: "Option",
|
|
28
|
-
_tag: this._tag,
|
|
29
|
-
value: l(this.value)
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
asEffect() {
|
|
33
|
-
return O(this.value);
|
|
34
|
-
}
|
|
35
|
-
}), h = /* @__PURE__ */ o("None"), N = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(a), {
|
|
36
|
-
_tag: "None",
|
|
37
|
-
_op: "None",
|
|
38
|
-
[r](t) {
|
|
39
|
-
return i(t) && v(t);
|
|
40
|
-
},
|
|
41
|
-
[n]() {
|
|
42
|
-
return h;
|
|
43
|
-
},
|
|
44
|
-
toString() {
|
|
45
|
-
return "none()";
|
|
46
|
-
},
|
|
47
|
-
toJSON() {
|
|
48
|
-
return {
|
|
49
|
-
_id: "Option",
|
|
50
|
-
_tag: this._tag
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
asEffect() {
|
|
54
|
-
return g(new b());
|
|
55
|
-
}
|
|
56
|
-
}), i = (t) => p(t, s), v = (t) => t._tag === "None", P = (t) => t._tag === "Some", I = /* @__PURE__ */ Object.create(N), $ = (t) => {
|
|
57
|
-
const e = Object.create(S);
|
|
58
|
-
return e.value = t, e;
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
v as isNone,
|
|
62
|
-
i as isOption,
|
|
63
|
-
P as isSome,
|
|
64
|
-
I as none,
|
|
65
|
-
$ as some
|
|
66
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, getCurrentInstance as V, computed as B, createBlock as i, openBlock as e, Transition as x, withCtx as u, createElementBlock as o, createCommentVNode as p, renderSlot as g, normalizeProps as b, guardReactiveProps as I, resolveDynamicComponent as f, unref as d, normalizeClass as v, createElementVNode as n, toDisplayString as a, Fragment as y, renderList as w, createTextVNode as C } from "vue";
|
|
2
|
-
import { useIntl as L } from "./vue-components.es3.js";
|
|
3
|
-
const M = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "error-alert"
|
|
6
|
-
}, j = { class: "container" }, D = {
|
|
7
|
-
key: 0,
|
|
8
|
-
viewBox: "0 0 24 24",
|
|
9
|
-
fill: "none",
|
|
10
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
11
|
-
}, N = { class: "text-h6" }, z = {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "error-list"
|
|
14
|
-
}, G = ["for"], H = { key: 1 }, T = /* @__PURE__ */ _({
|
|
15
|
-
__name: "OmegaErrorsInternal",
|
|
16
|
-
props: {
|
|
17
|
-
generalErrors: {},
|
|
18
|
-
errors: {},
|
|
19
|
-
hideErrorDetails: { type: Boolean }
|
|
20
|
-
},
|
|
21
|
-
setup(s) {
|
|
22
|
-
const c = V()?.appContext.components.VAlert, h = s, { trans: E } = L(), m = B(() => h.generalErrors ? h.generalErrors.filter((l) => !!l).flatMap(
|
|
23
|
-
(l) => Object.values(l).filter((t) => !!t).flatMap(
|
|
24
|
-
(t) => t.filter(
|
|
25
|
-
(r) => typeof r?.message == "string"
|
|
26
|
-
).map((r) => r.message)
|
|
27
|
-
)
|
|
28
|
-
) : []);
|
|
29
|
-
return (l, t) => (e(), i(x, null, {
|
|
30
|
-
default: u(() => [
|
|
31
|
-
s.errors.length || m.value.length ? (e(), o("div", M, [
|
|
32
|
-
g(l.$slots, "default", b(I({ errors: s.errors, showedGeneralErrors: m.value })), () => [
|
|
33
|
-
(e(), i(f(d(c) ? "v-alert" : "div"), {
|
|
34
|
-
class: v([d(c) ? "mb-4" : "error-alert-content", "mb-4"]),
|
|
35
|
-
type: "error",
|
|
36
|
-
variant: "tonal",
|
|
37
|
-
role: "alert",
|
|
38
|
-
"aria-live": "polite"
|
|
39
|
-
}, {
|
|
40
|
-
default: u(() => [
|
|
41
|
-
n("div", j, [
|
|
42
|
-
g(l.$slots, "icon", {}, () => [
|
|
43
|
-
d(c) ? p("", !0) : (e(), o("svg", D, [...t[0] || (t[0] = [
|
|
44
|
-
n("path", {
|
|
45
|
-
d: "M16 2H8L2 8V16L8 22H16L22 16V8L16 2Z",
|
|
46
|
-
stroke: "currentColor",
|
|
47
|
-
"stroke-width": "2",
|
|
48
|
-
"stroke-linecap": "round",
|
|
49
|
-
"stroke-linejoin": "round"
|
|
50
|
-
}, null, -1),
|
|
51
|
-
n("path", {
|
|
52
|
-
d: "M12 8V12",
|
|
53
|
-
stroke: "currentColor",
|
|
54
|
-
"stroke-width": "2",
|
|
55
|
-
"stroke-linecap": "round",
|
|
56
|
-
"stroke-linejoin": "round"
|
|
57
|
-
}, null, -1),
|
|
58
|
-
n("path", {
|
|
59
|
-
d: "M12 16.0195V16",
|
|
60
|
-
stroke: "currentColor",
|
|
61
|
-
"stroke-width": "2",
|
|
62
|
-
"stroke-linecap": "round",
|
|
63
|
-
"stroke-linejoin": "round"
|
|
64
|
-
}, null, -1)
|
|
65
|
-
])]))
|
|
66
|
-
], !0),
|
|
67
|
-
n("div", null, [
|
|
68
|
-
n("div", N, a(d(E)("form.includes_error")) + ": ", 1),
|
|
69
|
-
s.errors.length ? (e(), o("ul", z, [
|
|
70
|
-
(e(!0), o(y, null, w(s.errors, (r) => (e(), o("li", {
|
|
71
|
-
key: r.inputId,
|
|
72
|
-
class: "error-item"
|
|
73
|
-
}, [
|
|
74
|
-
n("div", null, [
|
|
75
|
-
n("label", {
|
|
76
|
-
for: r.inputId,
|
|
77
|
-
class: "error-link"
|
|
78
|
-
}, a(r.label), 9, G),
|
|
79
|
-
t[1] || (t[1] = C(" " + a(" ") + " ", -1)),
|
|
80
|
-
s.hideErrorDetails ? p("", !0) : (e(), o("div", {
|
|
81
|
-
key: 0,
|
|
82
|
-
class: v(["error-message", r.errors.length < 2 && "single-error"])
|
|
83
|
-
}, [
|
|
84
|
-
(e(), i(f(r.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
|
|
85
|
-
default: u(() => [
|
|
86
|
-
(e(!0), o(y, null, w(r.errors, (k) => (e(), i(f(r.errors.length > 1 ? "li" : "span"), { key: k }, {
|
|
87
|
-
default: u(() => [
|
|
88
|
-
C(a(k), 1)
|
|
89
|
-
]),
|
|
90
|
-
_: 2
|
|
91
|
-
}, 1024))), 128))
|
|
92
|
-
]),
|
|
93
|
-
_: 2
|
|
94
|
-
}, 1024))
|
|
95
|
-
], 2))
|
|
96
|
-
])
|
|
97
|
-
]))), 128))
|
|
98
|
-
])) : (e(), o("span", H, a(m.value[0]), 1))
|
|
99
|
-
])
|
|
100
|
-
])
|
|
101
|
-
]),
|
|
102
|
-
_: 3
|
|
103
|
-
}, 8, ["class"]))
|
|
104
|
-
], !0)
|
|
105
|
-
])) : p("", !0)
|
|
106
|
-
]),
|
|
107
|
-
_: 3
|
|
108
|
-
}));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
export {
|
|
112
|
-
T as default
|
|
113
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, createElementBlock as d, openBlock as u, withModifiers as f, createElementVNode as l, unref as s, renderSlot as a } from "vue";
|
|
2
|
-
import { useStore as b } from "@tanstack/vue-form";
|
|
3
|
-
import { usePreventClose as p } from "./vue-components.es11.js";
|
|
4
|
-
import { getOmegaStore as c } from "./vue-components.es91.js";
|
|
5
|
-
const S = ["disabled"], V = /* @__PURE__ */ m({
|
|
6
|
-
__name: "OmegaWrapper",
|
|
7
|
-
props: {
|
|
8
|
-
form: {},
|
|
9
|
-
disabled: { type: Boolean },
|
|
10
|
-
subscribe: {}
|
|
11
|
-
},
|
|
12
|
-
setup(o) {
|
|
13
|
-
const e = o, i = b(
|
|
14
|
-
e.form.store,
|
|
15
|
-
(t) => t.isSubmitting
|
|
16
|
-
), n = c(
|
|
17
|
-
e.form,
|
|
18
|
-
e.subscribe
|
|
19
|
-
);
|
|
20
|
-
return e.form.ignorePreventCloseEvents || p(() => e.form.useStore((t) => t.isDirty)), (t, r) => (u(), d("form", {
|
|
21
|
-
novalidate: "",
|
|
22
|
-
onSubmit: r[0] || (r[0] = f((v) => o.form.handleSubmit(), ["prevent", "stop"]))
|
|
23
|
-
}, [
|
|
24
|
-
l("fieldset", {
|
|
25
|
-
disabled: s(i) || o.disabled
|
|
26
|
-
}, [
|
|
27
|
-
a(t.$slots, "default", { subscribedValues: s(n) }, void 0, !0)
|
|
28
|
-
], 8, S)
|
|
29
|
-
], 32));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
V as default
|
|
34
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, computed as l, useAttrs as A, inject as M, createBlock as i, openBlock as f, resolveDynamicComponent as S, withCtx as u, createCommentVNode as w, mergeProps as I, unref as L, createSlots as P, renderSlot as c, normalizeProps as d, guardReactiveProps as v } from "vue";
|
|
2
|
-
import { useIntl as j } from "./vue-components.es3.js";
|
|
3
|
-
import { generateInputStandardSchemaFromFieldMeta as B } from "./vue-components.es12.js";
|
|
4
|
-
import E from "./vue-components.es7.js";
|
|
5
|
-
import { useErrorLabel as N } from "./vue-components.es10.js";
|
|
6
|
-
const V = /* @__PURE__ */ F({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "OmegaInput",
|
|
9
|
-
props: {
|
|
10
|
-
form: {},
|
|
11
|
-
label: {},
|
|
12
|
-
validators: {},
|
|
13
|
-
name: {},
|
|
14
|
-
inputClass: {}
|
|
15
|
-
},
|
|
16
|
-
setup(a) {
|
|
17
|
-
const e = a, n = l(() => e.name), p = A(), g = l(() => {
|
|
18
|
-
if (e.inputClass !== null)
|
|
19
|
-
return e.inputClass !== void 0 ? e.inputClass : p.class;
|
|
20
|
-
}), s = M(
|
|
21
|
-
"getMetaFromArray",
|
|
22
|
-
null
|
|
23
|
-
), o = l(() => s?.value && s.value(e.name) ? s.value(n.value) : e.form.meta[n.value]), $ = l(() => {
|
|
24
|
-
const t = o.value;
|
|
25
|
-
if (!t) return n.value;
|
|
26
|
-
const r = t;
|
|
27
|
-
return `${n.value}-${r.type}-${r.minLength ?? ""}-${r.maxLength ?? ""}-${r.minimum ?? ""}-${r.maximum ?? ""}`;
|
|
28
|
-
}), { trans: C } = j(), b = l(() => {
|
|
29
|
-
if (!o.value)
|
|
30
|
-
throw console.log(e.name, Object.keys(e.form.meta), e.form.meta), new Error("Meta is undefined");
|
|
31
|
-
return B(o.value, C);
|
|
32
|
-
}), h = N(e.form);
|
|
33
|
-
return (t, r) => (f(), i(S(a.form.Field), {
|
|
34
|
-
key: $.value,
|
|
35
|
-
name: a.name,
|
|
36
|
-
validators: {
|
|
37
|
-
onChange: b.value,
|
|
38
|
-
...a.validators
|
|
39
|
-
}
|
|
40
|
-
}, {
|
|
41
|
-
default: u(({ field: y, state: k }) => [
|
|
42
|
-
o.value ? (f(), i(E, I({ key: 0 }, { ...t.$attrs, ...t.$props, inputClass: g.value }, {
|
|
43
|
-
field: y,
|
|
44
|
-
state: k,
|
|
45
|
-
register: a.form.registerField,
|
|
46
|
-
label: a.label ?? L(h)(n.value),
|
|
47
|
-
meta: o.value
|
|
48
|
-
}), P({
|
|
49
|
-
default: u((m) => [
|
|
50
|
-
c(t.$slots, "default", d(v(m)))
|
|
51
|
-
]),
|
|
52
|
-
_: 2
|
|
53
|
-
}, [
|
|
54
|
-
t.$slots.label ? {
|
|
55
|
-
name: "label",
|
|
56
|
-
fn: u((m) => [
|
|
57
|
-
c(t.$slots, "label", d(v(m)))
|
|
58
|
-
]),
|
|
59
|
-
key: "0"
|
|
60
|
-
} : void 0
|
|
61
|
-
]), 1040, ["field", "state", "register", "label", "meta"])) : w("", !0)
|
|
62
|
-
]),
|
|
63
|
-
_: 3
|
|
64
|
-
}, 8, ["name", "validators"]));
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
V as default
|
|
69
|
-
};
|