@effect-app/vue-components 4.0.0-beta.221 → 4.0.0-beta.222
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/vue-components.es.js +15 -15
- package/dist/vue-components12.es.js +47 -25
- package/dist/vue-components13.es.js +120 -62
- package/dist/vue-components14.es.js +63 -13
- package/dist/vue-components15.es.js +60 -27
- package/dist/vue-components16.es.js +21 -52
- package/dist/vue-components17.es.js +4 -86
- package/dist/vue-components18.es.js +79 -3
- package/dist/vue-components19.es.js +92 -3
- package/dist/vue-components2.es.js +6 -15
- package/dist/vue-components20.es.js +71 -17
- package/dist/vue-components21.es.js +11 -72
- package/dist/vue-components22.es.js +54 -12
- package/dist/vue-components23.es.js +4 -25
- package/dist/vue-components24.es.js +41 -249
- package/dist/vue-components25.es.js +4 -64
- package/dist/vue-components26.es.js +81 -65
- package/dist/vue-components28.es.js +7 -11
- package/dist/vue-components29.es.js +8 -5
- package/dist/vue-components30.es.js +266 -25
- package/dist/vue-components32.es.js +7 -108
- package/dist/vue-components33.es.js +71 -55
- package/dist/vue-components34.es.js +4 -6
- package/dist/vue-components35.es.js +51 -3
- package/dist/vue-components36.es.js +4 -5
- package/dist/vue-components37.es.js +21 -685
- package/dist/vue-components38.es.js +4 -6
- package/dist/vue-components39.es.js +58 -4
- package/dist/vue-components40.es.js +4 -5
- package/dist/vue-components41.es.js +11 -26
- package/dist/vue-components42.es.js +21 -4
- package/dist/vue-components44.es.js +8 -69
- package/dist/vue-components45.es.js +3 -8
- package/dist/vue-components46.es.js +37 -9
- package/dist/vue-components47.es.js +26 -7
- package/dist/vue-components48.es.js +24 -169
- package/dist/vue-components49.es.js +6 -13
- package/dist/vue-components50.es.js +16 -9
- package/dist/vue-components51.es.js +35 -3
- package/dist/vue-components52.es.js +17 -6
- package/dist/vue-components53.es.js +19 -27
- package/dist/vue-components54.es.js +21 -212
- package/dist/vue-components55.es.js +6 -84
- package/dist/vue-components56.es.js +7 -72
- package/dist/vue-components57.es.js +26 -807
- package/dist/vue-components58.es.js +24 -3
- package/dist/vue-components59.es.js +122 -103
- package/dist/vue-components60.es.js +19 -49
- package/dist/vue-components61.es.js +15 -514
- package/dist/vue-components62.es.js +7 -438
- package/dist/vue-components63.es.js +18 -9
- package/dist/vue-components64.es.js +4 -12
- package/dist/vue-components65.es.js +26 -16
- package/dist/vue-components66.es.js +4 -28
- package/dist/vue-components67.es.js +42 -21
- package/dist/vue-components68.es.js +78 -26
- package/dist/vue-components69.es.js +32 -28
- package/dist/vue-components70.es.js +18 -72
- package/dist/vue-components71.es.js +47 -5
- package/package.json +3 -3
- package/dist/vue-components100.es.js +0 -269
- package/dist/vue-components102.es.js +0 -8
- package/dist/vue-components103.es.js +0 -73
- package/dist/vue-components104.es.js +0 -5
- package/dist/vue-components105.es.js +0 -52
- package/dist/vue-components106.es.js +0 -5
- package/dist/vue-components107.es.js +0 -24
- package/dist/vue-components108.es.js +0 -5
- package/dist/vue-components109.es.js +0 -59
- package/dist/vue-components110.es.js +0 -5
- package/dist/vue-components111.es.js +0 -12
- package/dist/vue-components112.es.js +0 -22
- package/dist/vue-components114.es.js +0 -9
- package/dist/vue-components115.es.js +0 -4
- package/dist/vue-components116.es.js +0 -38
- package/dist/vue-components117.es.js +0 -27
- package/dist/vue-components118.es.js +0 -28
- package/dist/vue-components119.es.js +0 -7
- package/dist/vue-components120.es.js +0 -18
- package/dist/vue-components121.es.js +0 -36
- package/dist/vue-components122.es.js +0 -18
- package/dist/vue-components123.es.js +0 -21
- package/dist/vue-components124.es.js +0 -30
- package/dist/vue-components125.es.js +0 -7
- package/dist/vue-components126.es.js +0 -9
- package/dist/vue-components127.es.js +0 -38
- package/dist/vue-components128.es.js +0 -25
- package/dist/vue-components129.es.js +0 -128
- package/dist/vue-components130.es.js +0 -24
- package/dist/vue-components131.es.js +0 -21
- package/dist/vue-components132.es.js +0 -9
- package/dist/vue-components133.es.js +0 -19
- package/dist/vue-components134.es.js +0 -5
- package/dist/vue-components135.es.js +0 -29
- package/dist/vue-components136.es.js +0 -5
- package/dist/vue-components137.es.js +0 -43
- package/dist/vue-components138.es.js +0 -82
- package/dist/vue-components139.es.js +0 -33
- package/dist/vue-components140.es.js +0 -19
- package/dist/vue-components141.es.js +0 -48
- package/dist/vue-components27.es.js +0 -8
- package/dist/vue-components31.es.js +0 -75
- package/dist/vue-components43.es.js +0 -48
- package/dist/vue-components72.es.js +0 -18
- package/dist/vue-components73.es.js +0 -5
- package/dist/vue-components74.es.js +0 -70
- package/dist/vue-components75.es.js +0 -140
- package/dist/vue-components76.es.js +0 -4
- package/dist/vue-components77.es.js +0 -21
- package/dist/vue-components78.es.js +0 -55
- package/dist/vue-components79.es.js +0 -9
- package/dist/vue-components80.es.js +0 -16
- package/dist/vue-components81.es.js +0 -39
- package/dist/vue-components82.es.js +0 -49
- package/dist/vue-components83.es.js +0 -128
- package/dist/vue-components84.es.js +0 -65
- package/dist/vue-components85.es.js +0 -63
- package/dist/vue-components86.es.js +0 -25
- package/dist/vue-components87.es.js +0 -5
- package/dist/vue-components88.es.js +0 -80
- package/dist/vue-components89.es.js +0 -95
- package/dist/vue-components90.es.js +0 -73
- package/dist/vue-components91.es.js +0 -12
- package/dist/vue-components92.es.js +0 -56
- package/dist/vue-components93.es.js +0 -5
- package/dist/vue-components94.es.js +0 -44
- package/dist/vue-components95.es.js +0 -5
- package/dist/vue-components96.es.js +0 -84
- package/dist/vue-components98.es.js +0 -8
- package/dist/vue-components99.es.js +0 -9
|
@@ -1,252 +1,44 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, _ = `${m}/identifier`, v = `${m}/args`, y = `${m}/evaluate`, b = `${m}/successCont`, x = `${m}/failureCont`, S = `${m}/ensureCont`, C = /* @__PURE__ */ Symbol.for("effect/Effect/Yield"), w = {
|
|
15
|
-
pipe() {
|
|
16
|
-
return e(this, arguments);
|
|
1
|
+
import { Fragment as e, computed as t, createElementBlock as n, createVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderList as s, renderSlot as c, unref as l } from "vue";
|
|
2
|
+
import * as u from "effect/Order";
|
|
3
|
+
//#region src/components/OmegaForm/OmegaAutoGen.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var d = /* @__PURE__ */ i({
|
|
5
|
+
__name: "OmegaAutoGen",
|
|
6
|
+
props: {
|
|
7
|
+
form: {},
|
|
8
|
+
pick: {},
|
|
9
|
+
omit: {},
|
|
10
|
+
labelMap: { type: Function },
|
|
11
|
+
filterMap: { type: Function },
|
|
12
|
+
order: {},
|
|
13
|
+
sort: {}
|
|
17
14
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return e(this, arguments);
|
|
36
|
-
}
|
|
37
|
-
}, D = {
|
|
38
|
-
[m]: g,
|
|
39
|
-
...w,
|
|
40
|
-
[Symbol.iterator]() {
|
|
41
|
-
return new p(this);
|
|
42
|
-
},
|
|
43
|
-
asEffect() {
|
|
44
|
-
return this;
|
|
45
|
-
},
|
|
46
|
-
toJSON() {
|
|
47
|
-
return {
|
|
48
|
-
_id: "Effect",
|
|
49
|
-
op: this[_],
|
|
50
|
-
...v in this ? { args: this[v] } : void 0
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}, O = (e) => r(e, m), k = (e) => r(e, h), A = "~effect/Cause", j = "~effect/Cause/Reason", M = (e) => r(e, A), N = class {
|
|
54
|
-
[A];
|
|
55
|
-
reasons;
|
|
56
|
-
constructor(e) {
|
|
57
|
-
this[A] = A, this.reasons = e;
|
|
58
|
-
}
|
|
59
|
-
pipe() {
|
|
60
|
-
return e(this, arguments);
|
|
61
|
-
}
|
|
62
|
-
toJSON() {
|
|
63
|
-
return {
|
|
64
|
-
_id: "Cause",
|
|
65
|
-
failures: this.reasons.map((e) => e.toJSON())
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
toString() {
|
|
69
|
-
return `Cause(${d(this.reasons)})`;
|
|
70
|
-
}
|
|
71
|
-
[f]() {
|
|
72
|
-
return this.toJSON();
|
|
73
|
-
}
|
|
74
|
-
[u](e) {
|
|
75
|
-
return M(e) && this.reasons.length === e.reasons.length && this.reasons.every((t, n) => l(t, e.reasons[n]));
|
|
76
|
-
}
|
|
77
|
-
[c]() {
|
|
78
|
-
return i(this.reasons);
|
|
79
|
-
}
|
|
80
|
-
}, P = /* @__PURE__ */ new WeakMap(), F = class {
|
|
81
|
-
[j];
|
|
82
|
-
annotations;
|
|
83
|
-
_tag;
|
|
84
|
-
constructor(e, t, n) {
|
|
85
|
-
if (this[j] = j, this._tag = e, t !== I && typeof n == "object" && n && t.size > 0) {
|
|
86
|
-
let e = P.get(n);
|
|
87
|
-
e && (t = new Map([...e, ...t])), P.set(n, t);
|
|
88
|
-
}
|
|
89
|
-
this.annotations = t;
|
|
90
|
-
}
|
|
91
|
-
annotate(e, t) {
|
|
92
|
-
if (e.mapUnsafe.size === 0) return this;
|
|
93
|
-
let n = new Map(this.annotations);
|
|
94
|
-
e.mapUnsafe.forEach((e, r) => {
|
|
95
|
-
t?.overwrite !== !0 && n.has(r) || n.set(r, e);
|
|
15
|
+
setup(i) {
|
|
16
|
+
let d = (e) => (t) => Object.fromEntries(Object.entries(t).map(([t, n]) => [t, e(n, t)])), f = (e) => (t) => Object.fromEntries(Object.entries(t).filter(([t, n]) => e(n, t))), p = (e) => (t) => Object.entries(t).reduce((t, [n, r]) => {
|
|
17
|
+
let i = e(r, n);
|
|
18
|
+
return i !== !1 && (t[n] = i), t;
|
|
19
|
+
}, {}), m = i, h = (e, t) => {
|
|
20
|
+
let n = t?.indexOf(e) ?? -1;
|
|
21
|
+
return n === -1 ? 2 ** 53 - 1 : n;
|
|
22
|
+
}, g = u.mapInput(u.Number, (e) => h(e.name, m.order || [])), _ = t(() => {
|
|
23
|
+
let e = f((e, t) => !!e && (m.pick ? m.pick.includes(t) && !m.omit?.includes(t) : !m.omit?.includes(t)))(m.form.meta), t = d((e, t) => ({
|
|
24
|
+
name: t,
|
|
25
|
+
label: m.labelMap?.(t) || t,
|
|
26
|
+
...e
|
|
27
|
+
}))(e), n = m.filterMap ? p((e) => {
|
|
28
|
+
let t = m.filterMap?.(e.name, e);
|
|
29
|
+
return t === void 0 || t === !0 ? e : t;
|
|
30
|
+
})(t) : t, r = [...Object.values(n)].sort(g);
|
|
31
|
+
return m.sort ? r.sort(m.sort) : r;
|
|
96
32
|
});
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return this.toString();
|
|
108
|
-
}
|
|
109
|
-
}, I = /* @__PURE__ */ new Map(), L = class extends F {
|
|
110
|
-
error;
|
|
111
|
-
constructor(e, t = I) {
|
|
112
|
-
super("Fail", t, e), this.error = e;
|
|
113
|
-
}
|
|
114
|
-
toString() {
|
|
115
|
-
return `Fail(${d(this.error)})`;
|
|
116
|
-
}
|
|
117
|
-
toJSON() {
|
|
118
|
-
return {
|
|
119
|
-
_tag: "Fail",
|
|
120
|
-
error: this.error
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
[u](e) {
|
|
124
|
-
return z(e) && l(this.error, e.error) && l(this.annotations, e.annotations);
|
|
125
|
-
}
|
|
126
|
-
[c]() {
|
|
127
|
-
return a(s(this._tag))(a(o(this.error))(o(this.annotations)));
|
|
128
|
-
}
|
|
129
|
-
}, ee = (e) => new N(e), te = (e) => new N([new L(e)]), ne = class extends F {
|
|
130
|
-
defect;
|
|
131
|
-
constructor(e, t = I) {
|
|
132
|
-
super("Die", t, e), this.defect = e;
|
|
133
|
-
}
|
|
134
|
-
toString() {
|
|
135
|
-
return `Die(${d(this.defect)})`;
|
|
136
|
-
}
|
|
137
|
-
toJSON() {
|
|
138
|
-
return {
|
|
139
|
-
_tag: "Die",
|
|
140
|
-
defect: this.defect
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
[u](e) {
|
|
144
|
-
return B(e) && l(this.defect, e.defect) && l(this.annotations, e.annotations);
|
|
145
|
-
}
|
|
146
|
-
[c]() {
|
|
147
|
-
return a(s(this._tag))(a(o(this.defect))(o(this.annotations)));
|
|
148
|
-
}
|
|
149
|
-
}, re = (e) => new N([new ne(e)]), R = /* @__PURE__ */ t((e) => M(e[0]), (e, t, n) => t.mapUnsafe.size === 0 ? e : new N(e.reasons.map((e) => e.annotate(t, n)))), z = (e) => e._tag === "Fail", B = (e) => e._tag === "Die", V = (e) => e._tag === "Interrupt";
|
|
150
|
-
function H(e) {
|
|
151
|
-
return Z("Effect.evaluate: Not implemented");
|
|
152
|
-
}
|
|
153
|
-
var U = (e) => ({
|
|
154
|
-
...D,
|
|
155
|
-
[_]: e.op,
|
|
156
|
-
[y]: e[y] ?? H,
|
|
157
|
-
[b]: e[b],
|
|
158
|
-
[x]: e[x],
|
|
159
|
-
[S]: e[S]
|
|
160
|
-
}), W = (e) => {
|
|
161
|
-
let t = U(e);
|
|
162
|
-
return function() {
|
|
163
|
-
let n = Object.create(t);
|
|
164
|
-
return n[v] = e.single === !1 ? arguments : arguments[0], n;
|
|
165
|
-
};
|
|
166
|
-
}, G = (e) => {
|
|
167
|
-
let t = {
|
|
168
|
-
...U(e),
|
|
169
|
-
[h]: h,
|
|
170
|
-
_tag: e.op,
|
|
171
|
-
get [e.prop]() {
|
|
172
|
-
return this[v];
|
|
173
|
-
},
|
|
174
|
-
toString() {
|
|
175
|
-
return `${e.op}(${d(this[v])})`;
|
|
176
|
-
},
|
|
177
|
-
toJSON() {
|
|
178
|
-
return {
|
|
179
|
-
_id: "Exit",
|
|
180
|
-
_tag: e.op,
|
|
181
|
-
[e.prop]: this[v]
|
|
182
|
-
};
|
|
183
|
-
},
|
|
184
|
-
[u](e) {
|
|
185
|
-
return k(e) && e._tag === this._tag && l(this[v], e[v]);
|
|
186
|
-
},
|
|
187
|
-
[c]() {
|
|
188
|
-
return a(s(e.op), o(this[v]));
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
return function(e) {
|
|
192
|
-
let n = Object.create(t);
|
|
193
|
-
return n[v] = e, n;
|
|
194
|
-
};
|
|
195
|
-
}, K = /* @__PURE__ */ G({
|
|
196
|
-
op: "Success",
|
|
197
|
-
prop: "value",
|
|
198
|
-
[y](e) {
|
|
199
|
-
let t = e.getCont(b);
|
|
200
|
-
return t ? t[b](this[v], e, this) : e.yieldWith(this);
|
|
201
|
-
}
|
|
202
|
-
}), q = { key: "effect/Cause/StackTrace" }, J = { key: "effect/Cause/InterruptorStackTrace" }, Y = /* @__PURE__ */ G({
|
|
203
|
-
op: "Failure",
|
|
204
|
-
prop: "cause",
|
|
205
|
-
[y](e) {
|
|
206
|
-
let t = this[v], n = !1;
|
|
207
|
-
e.currentStackFrame && (t = R(t, { mapUnsafe: new Map([[q.key, e.currentStackFrame]]) }), n = !0);
|
|
208
|
-
let r = e.getCont(x);
|
|
209
|
-
for (; e.interruptible && e._interruptedCause && r;) r = e.getCont(x);
|
|
210
|
-
return r ? r[x](t, e, n ? void 0 : this) : e.yieldWith(n ? this : Y(t));
|
|
211
|
-
}
|
|
212
|
-
}), X = (e) => Y(te(e)), Z = (e) => Y(re(e)), ie = /* @__PURE__ */ W({
|
|
213
|
-
op: "WithFiber",
|
|
214
|
-
[y](e) {
|
|
215
|
-
return this[v](e);
|
|
216
|
-
}
|
|
217
|
-
}), ae = /* @__PURE__ */ function() {
|
|
218
|
-
class e extends globalThis.Error {
|
|
219
|
-
asEffect() {
|
|
220
|
-
return X(this);
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return Object.assign(e.prototype, E), e;
|
|
224
|
-
}(), oe = /* @__PURE__ */ function() {
|
|
225
|
-
let e = /* @__PURE__ */ Symbol.for("effect/Data/Error/plainArgs");
|
|
226
|
-
return class extends ae {
|
|
227
|
-
constructor(t) {
|
|
228
|
-
super(t?.message, t?.cause ? { cause: t.cause } : void 0), t && (Object.assign(this, t), Object.defineProperty(this, e, {
|
|
229
|
-
value: t,
|
|
230
|
-
enumerable: !1
|
|
231
|
-
}));
|
|
232
|
-
}
|
|
233
|
-
toJSON() {
|
|
234
|
-
return {
|
|
235
|
-
...this[e],
|
|
236
|
-
...this
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
}(), Q = (e) => {
|
|
241
|
-
class t extends oe {
|
|
242
|
-
_tag = e;
|
|
243
|
-
}
|
|
244
|
-
return t.prototype.name = e, t;
|
|
245
|
-
}, $ = "~effect/Cause/NoSuchElementError", se = class extends Q("NoSuchElementError") {
|
|
246
|
-
[$] = $;
|
|
247
|
-
constructor(e) {
|
|
248
|
-
super({ message: e });
|
|
249
|
-
}
|
|
250
|
-
};
|
|
33
|
+
return (t, u) => (o(!0), n(e, null, s(_.value, ({ name: e, label: n, ...o }) => c(t.$slots, "default", { child: {
|
|
34
|
+
name: e,
|
|
35
|
+
label: n,
|
|
36
|
+
...o
|
|
37
|
+
} }, () => [r(l(i.form).Input, a({
|
|
38
|
+
name: e,
|
|
39
|
+
label: n
|
|
40
|
+
}, { ref_for: !0 }, o), null, 16, ["name", "label"])])), 256));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
251
43
|
//#endregion
|
|
252
|
-
export {
|
|
44
|
+
export { d as default };
|
|
@@ -1,65 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { format as o } from "./vue-components21.es.js";
|
|
5
|
-
import { toJson as s } from "./vue-components22.es.js";
|
|
6
|
-
import { NoSuchElementError as c, PipeInspectableProto as l, YieldableProto as u, exitFail as d, exitSucceed as f } from "./vue-components24.es.js";
|
|
7
|
-
//#region ../../node_modules/.pnpm/effect@4.0.0-beta.62/node_modules/effect/dist/internal/option.js
|
|
8
|
-
var p = "~effect/data/Option", m = {
|
|
9
|
-
[p]: { _A: (e) => e },
|
|
10
|
-
...l,
|
|
11
|
-
...u
|
|
12
|
-
}, h = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(m), {
|
|
13
|
-
_tag: "Some",
|
|
14
|
-
_op: "Some",
|
|
15
|
-
[a](e) {
|
|
16
|
-
return v(e) && b(e) && i(this.value, e.value);
|
|
17
|
-
},
|
|
18
|
-
[r]() {
|
|
19
|
-
return t(n(this._tag))(n(this.value));
|
|
20
|
-
},
|
|
21
|
-
toString() {
|
|
22
|
-
return `some(${o(this.value)})`;
|
|
23
|
-
},
|
|
24
|
-
toJSON() {
|
|
25
|
-
return {
|
|
26
|
-
_id: "Option",
|
|
27
|
-
_tag: this._tag,
|
|
28
|
-
value: s(this.value)
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
asEffect() {
|
|
32
|
-
return f(this.value);
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
Object.defineProperty(h, "valueOrUndefined", { get() {
|
|
36
|
-
return this.value;
|
|
37
|
-
} });
|
|
38
|
-
var g = /* @__PURE__ */ n("None"), _ = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(m), {
|
|
39
|
-
_tag: "None",
|
|
40
|
-
_op: "None",
|
|
41
|
-
valueOrUndefined: void 0,
|
|
42
|
-
[a](e) {
|
|
43
|
-
return v(e) && y(e);
|
|
44
|
-
},
|
|
45
|
-
[r]() {
|
|
46
|
-
return g;
|
|
47
|
-
},
|
|
48
|
-
toString() {
|
|
49
|
-
return "none()";
|
|
50
|
-
},
|
|
51
|
-
toJSON() {
|
|
52
|
-
return {
|
|
53
|
-
_id: "Option",
|
|
54
|
-
_tag: this._tag
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
asEffect() {
|
|
58
|
-
return d(new c());
|
|
59
|
-
}
|
|
60
|
-
}), v = (t) => e(t, p), y = (e) => e._tag === "None", b = (e) => e._tag === "Some", x = /* @__PURE__ */ Object.create(_), S = (e) => {
|
|
61
|
-
let t = Object.create(h);
|
|
62
|
-
return t.value = e, t;
|
|
63
|
-
};
|
|
1
|
+
import e from "./vue-components24.es.js";
|
|
2
|
+
//#region src/components/OmegaForm/OmegaAutoGen.vue
|
|
3
|
+
var t = e;
|
|
64
4
|
//#endregion
|
|
65
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -1,68 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { useIntl as e } from "./vue-components6.es.js";
|
|
2
|
+
import { Fragment as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, getCurrentInstance as u, guardReactiveProps as d, normalizeClass as f, normalizeProps as p, openBlock as m, renderList as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
3
|
+
//#region src/components/OmegaForm/OmegaErrorsInternal.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var x = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "error-alert"
|
|
7
|
+
}, S = { class: "container" }, C = {
|
|
8
|
+
key: 0,
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, w = { class: "text-h6" }, T = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "error-list"
|
|
15
|
+
}, E = ["for"], D = { key: 1 }, O = /* @__PURE__ */ l({
|
|
16
|
+
__name: "OmegaErrorsInternal",
|
|
17
|
+
props: {
|
|
18
|
+
generalErrors: {},
|
|
19
|
+
errors: {},
|
|
20
|
+
hideErrorDetails: { type: Boolean }
|
|
13
21
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
22
|
+
setup(l) {
|
|
23
|
+
let O = u()?.appContext.components.VAlert, k = l, { trans: A } = e(), j = r(() => k.generalErrors ? k.generalErrors.filter((e) => !!e).flatMap((e) => Object.values(e).filter((e) => !!e).flatMap((e) => e.filter((e) => !!e?.message).map((e) => e.message))) : []);
|
|
24
|
+
return (e, r) => (m(), i(n, null, {
|
|
25
|
+
default: b(() => [l.errors.length || j.value.length ? (m(), o("div", x, [g(e.$slots, "default", p(d({
|
|
26
|
+
errors: l.errors,
|
|
27
|
+
showedGeneralErrors: j.value
|
|
28
|
+
})), () => [(m(), i(_(y(O) ? "v-alert" : "div"), {
|
|
29
|
+
class: f([y(O) ? "mb-4" : "error-alert-content", "mb-4"]),
|
|
30
|
+
type: "error",
|
|
31
|
+
variant: "tonal",
|
|
32
|
+
role: "alert",
|
|
33
|
+
"aria-live": "polite"
|
|
34
|
+
}, {
|
|
35
|
+
default: b(() => [s("div", S, [g(e.$slots, "icon", {}, () => [y(O) ? a("", !0) : (m(), o("svg", C, [...r[0] ||= [
|
|
36
|
+
s("path", {
|
|
37
|
+
d: "M16 2H8L2 8V16L8 22H16L22 16V8L16 2Z",
|
|
38
|
+
stroke: "currentColor",
|
|
39
|
+
"stroke-width": "2",
|
|
40
|
+
"stroke-linecap": "round",
|
|
41
|
+
"stroke-linejoin": "round"
|
|
42
|
+
}, null, -1),
|
|
43
|
+
s("path", {
|
|
44
|
+
d: "M12 8V12",
|
|
45
|
+
stroke: "currentColor",
|
|
46
|
+
"stroke-width": "2",
|
|
47
|
+
"stroke-linecap": "round",
|
|
48
|
+
"stroke-linejoin": "round"
|
|
49
|
+
}, null, -1),
|
|
50
|
+
s("path", {
|
|
51
|
+
d: "M12 16.0195V16",
|
|
52
|
+
stroke: "currentColor",
|
|
53
|
+
"stroke-width": "2",
|
|
54
|
+
"stroke-linecap": "round",
|
|
55
|
+
"stroke-linejoin": "round"
|
|
56
|
+
}, null, -1)
|
|
57
|
+
]]))], !0), s("div", null, [s("div", w, v(y(A)("form.includes_error")) + ": ", 1), l.errors.length ? (m(), o("ul", T, [(m(!0), o(t, null, h(l.errors, (e) => (m(), o("li", {
|
|
58
|
+
key: e.inputId,
|
|
59
|
+
class: "error-item"
|
|
60
|
+
}, [s("div", null, [
|
|
61
|
+
s("label", {
|
|
62
|
+
for: e.inputId,
|
|
63
|
+
class: "error-link"
|
|
64
|
+
}, v(e.label), 9, E),
|
|
65
|
+
r[1] ||= c(" " + v(" ") + " ", -1),
|
|
66
|
+
l.hideErrorDetails ? a("", !0) : (m(), o("div", {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: f(["error-message", e.errors.length < 2 && "single-error"])
|
|
69
|
+
}, [(m(), i(_(e.errors.length > 1 ? "ul" : "div"), { class: "error-list" }, {
|
|
70
|
+
default: b(() => [(m(!0), o(t, null, h(e.errors, (t) => (m(), i(_(e.errors.length > 1 ? "li" : "span"), { key: t }, {
|
|
71
|
+
default: b(() => [c(v(t), 1)]),
|
|
72
|
+
_: 2
|
|
73
|
+
}, 1024))), 128))]),
|
|
74
|
+
_: 2
|
|
75
|
+
}, 1024))], 2))
|
|
76
|
+
])]))), 128))])) : (m(), o("span", D, v(j.value[0]), 1))])])]),
|
|
77
|
+
_: 3
|
|
78
|
+
}, 8, ["class"]))], !0)])) : a("", !0)]),
|
|
79
|
+
_: 3
|
|
80
|
+
}));
|
|
59
81
|
}
|
|
60
|
-
})
|
|
61
|
-
let t = Object.create(h);
|
|
62
|
-
return t.failure = e, t;
|
|
63
|
-
}, b = (e) => {
|
|
64
|
-
let t = Object.create(m);
|
|
65
|
-
return t.success = e, t;
|
|
66
|
-
};
|
|
82
|
+
});
|
|
67
83
|
//#endregion
|
|
68
|
-
export {
|
|
84
|
+
export { O as default };
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} catch {
|
|
8
|
-
return a();
|
|
9
|
-
}
|
|
10
|
-
}, f = /* @__PURE__ */ e(2, (e, t) => s(e) ? a() : o(t(e.value))), p = /* @__PURE__ */ e(2, (e, t) => s(e) ? a() : t(e.value) ? o(e.value) : a());
|
|
1
|
+
//#region \0plugin-vue:export-helper
|
|
2
|
+
var e = (e, t) => {
|
|
3
|
+
let n = e.__vccOpts || e;
|
|
4
|
+
for (let [e, r] of t) n[e] = r;
|
|
5
|
+
return n;
|
|
6
|
+
};
|
|
11
7
|
//#endregion
|
|
12
|
-
export {
|
|
8
|
+
export { e as default };
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);if(e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),document.head.appendChild(e),window.customElements){let e=window.customElements.define;window.customElements.define=function(t,n){let r=n.prototype.connectedCallback;return n.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){let e=document.createElement(`style`);e.appendChild(document.createTextNode(`.v-enter-from[data-v-5278f8d3],.v-leave-to[data-v-5278f8d3]{opacity:0;grid-template-rows:0fr;max-height:0}.v-enter-active[data-v-5278f8d3],.v-leave-active[data-v-5278f8d3]{transition:all .15s;display:grid}.v-enter-to[data-v-5278f8d3],.v-leave-from[data-v-5278f8d3]{opacity:1;grid-template-rows:1fr;max-height:50vh}.error-alert[data-v-5278f8d3]{transition-behavior:allow-discrete;min-height:0;display:grid;overflow:hidden}.error-alert>[data-v-5278f8d3]{min-height:0}.error-list[data-v-5278f8d3]{list-style-position:inside}.error-list [data-v-5278f8d3]::marker{margin:0;padding:0}.error-alert-content[data-v-5278f8d3]{background-color:var(--error-background,#fff5f5);color:var(--error-color,#c92a2a);padding:1em}.error-link[data-v-5278f8d3]{color:var(--error-color,#c92a2a);cursor:pointer;font-weight:700;position:relative}.error-link[data-v-5278f8d3]:after{content:"";background:rgba(from var(--error-color,#c92a2a) r g b / .5);height:1px;position:absolute;bottom:0;left:0;right:0}.text-h6[data-v-5278f8d3]{font-size:1.25em;font-weight:700}.error-message[data-v-5278f8d3]{font-style:italic}.error-item[data-v-5278f8d3]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-5278f8d3]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-5278f8d3]{gap:1.5em;display:flex}.container svg[data-v-5278f8d3]{width:3em}.container .single-error[data-v-5278f8d3]{display:inline-block}`)),this.shadowRoot.appendChild(e)}},e.call(window.customElements,t,n)}}}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
3
|
+
import e from "./vue-components26.es.js";
|
|
4
|
+
|
|
5
|
+
import t from "./vue-components28.es.js";
|
|
6
|
+
//#region src/components/OmegaForm/OmegaErrorsInternal.vue
|
|
7
|
+
var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-5278f8d3"]]);
|
|
5
8
|
//#endregion
|
|
6
|
-
export {
|
|
9
|
+
export { n as default };
|