@effect-app/vue-components 4.0.0-beta.0 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +1 -1
- package/dist/vue-components.es10.js +12 -12
- package/dist/vue-components.es11.js +2 -2
- package/dist/vue-components.es12.js +3 -3
- package/dist/vue-components.es16.js +721 -9
- package/dist/vue-components.es17.js +119 -701
- package/dist/vue-components.es18.js +4 -141
- package/dist/vue-components.es19.js +11 -4
- package/dist/vue-components.es20.js +3 -11
- package/dist/vue-components.es21.js +24 -3
- package/dist/vue-components.es22.js +4 -24
- package/dist/vue-components.es23.js +8 -4
- package/dist/vue-components.es24.js +55 -8
- package/dist/vue-components.es25.js +64 -50
- package/dist/vue-components.es26.js +6 -69
- package/dist/vue-components.es27.js +5 -5
- package/dist/vue-components.es28.js +3 -6
- package/dist/vue-components.es29.js +3 -3
- package/dist/vue-components.es30.js +2 -3
- package/dist/vue-components.es31.js +1 -1
- package/dist/vue-components.es32.js +1 -1
- package/dist/vue-components.es33.js +1 -1
- package/dist/vue-components.es34.js +17 -2
- package/dist/vue-components.es35.js +10 -16
- package/dist/vue-components.es36.js +317 -37
- package/dist/vue-components.es37.js +561 -4
- package/dist/vue-components.es38.js +21 -77
- package/dist/vue-components.es39.js +1 -1
- package/dist/vue-components.es40.js +54 -551
- package/dist/vue-components.es41.js +4 -41
- package/dist/vue-components.es42.js +4 -27
- package/dist/vue-components.es43.js +24 -5
- package/dist/vue-components.es44.js +71 -36
- package/dist/vue-components.es45.js +30 -304
- package/dist/vue-components.es46.js +308 -25
- package/dist/vue-components.es47.js +99 -4
- package/dist/vue-components.es48.js +29 -22
- package/dist/vue-components.es49.js +2 -75
- package/dist/vue-components.es5.js +1 -1
- package/dist/vue-components.es50.js +2 -99
- package/dist/vue-components.es51.js +2 -2
- package/dist/vue-components.es52.js +110 -317
- package/dist/vue-components.es54.js +7 -2
- package/dist/vue-components.es55.js +32 -2
- package/dist/vue-components.es57.js +194 -0
- package/dist/vue-components.es59.js +36 -30
- package/dist/vue-components.es60.js +85 -0
- package/dist/vue-components.es61.js +40 -191
- package/dist/vue-components.es62.js +7 -0
- package/dist/vue-components.es63.js +1 -1
- package/dist/vue-components.es64.js +22 -100
- package/dist/vue-components.es65.js +5 -2
- package/dist/vue-components.es66.js +21 -21
- package/dist/vue-components.es67.js +28 -80
- package/dist/vue-components.es68.js +22 -12
- package/dist/vue-components.es69.js +11 -112
- package/dist/vue-components.es7.js +1 -1
- package/dist/vue-components.es70.js +5 -3
- package/dist/vue-components.es71.js +18 -31
- package/dist/vue-components.es72.js +9 -2
- package/dist/vue-components.es73.js +31 -2
- package/dist/vue-components.es74.js +48 -15
- package/dist/vue-components.es75.js +26 -70
- package/dist/vue-components.es76.js +100 -22
- package/dist/vue-components.es77.js +82 -5
- package/dist/vue-components.es78.js +21 -21
- package/dist/vue-components.es79.js +12 -30
- package/dist/vue-components.es80.js +112 -21
- package/dist/vue-components.es81.js +3 -12
- package/dist/vue-components.es82.js +32 -5
- package/dist/vue-components.es83.js +2 -19
- package/dist/vue-components.es84.js +2 -9
- package/dist/vue-components.es85.js +16 -31
- package/dist/vue-components.es86.js +13 -46
- package/dist/vue-components.es87.js +70 -26
- package/dist/vue-components.es88.js +8 -15
- package/dist/vue-components.es89.js +2 -16
- package/dist/vue-components.es90.js +14 -7
- package/dist/vue-components.es92.js +1 -1
- package/dist/vue-components.es94.js +1 -1
- package/dist/vue-components.es96.js +3 -3
- package/dist/vue-components.es97.js +1 -1
- package/package.json +4 -4
- package/src/components/OmegaForm/OmegaFormStuff.ts +6 -6
- package/dist/vue-components.es53.js +0 -66
- package/dist/vue-components.es56.js +0 -113
- package/dist/vue-components.es58.js +0 -9
|
@@ -1,28 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)
|
|
1
|
+
import { symbol as r, equals as c } from "./vue-components.es76.js";
|
|
2
|
+
import { format as i } from "./vue-components.es60.js";
|
|
3
|
+
import { symbol as o, combine as u, hash as e } from "./vue-components.es77.js";
|
|
4
|
+
import { toJson as a } from "./vue-components.es86.js";
|
|
5
|
+
import { hasProperty as m } from "./vue-components.es38.js";
|
|
6
|
+
import { YieldableProto as _, PipeInspectableProto as g, exitSucceed as h, exitFail as p } from "./vue-components.es36.js";
|
|
7
|
+
const n = "~effect/data/Result", l = {
|
|
8
|
+
[n]: {
|
|
9
|
+
/* v8 ignore next 2 */
|
|
10
|
+
_A: (s) => s,
|
|
11
|
+
_E: (s) => s
|
|
12
|
+
},
|
|
13
|
+
...g,
|
|
14
|
+
..._
|
|
15
|
+
}, b = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(l), {
|
|
16
|
+
_tag: "Success",
|
|
17
|
+
_op: "Success",
|
|
18
|
+
[r](s) {
|
|
19
|
+
return f(s) && d(s) && c(this.success, s.success);
|
|
20
|
+
},
|
|
21
|
+
[o]() {
|
|
22
|
+
return u(e(this._tag))(e(this.success));
|
|
23
|
+
},
|
|
24
|
+
toString() {
|
|
25
|
+
return `success(${i(this.success)})`;
|
|
26
|
+
},
|
|
27
|
+
toJSON() {
|
|
28
|
+
return {
|
|
29
|
+
_id: "Result",
|
|
30
|
+
_tag: this._tag,
|
|
31
|
+
value: a(this.success)
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
asEffect() {
|
|
35
|
+
return h(this.success);
|
|
36
|
+
}
|
|
37
|
+
}), S = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(l), {
|
|
38
|
+
_tag: "Failure",
|
|
39
|
+
_op: "Failure",
|
|
40
|
+
[r](s) {
|
|
41
|
+
return f(s) && O(s) && c(this.failure, s.failure);
|
|
42
|
+
},
|
|
43
|
+
[o]() {
|
|
44
|
+
return u(e(this._tag))(e(this.failure));
|
|
45
|
+
},
|
|
46
|
+
toString() {
|
|
47
|
+
return `failure(${i(this.failure)})`;
|
|
48
|
+
},
|
|
49
|
+
toJSON() {
|
|
50
|
+
return {
|
|
51
|
+
_id: "Result",
|
|
52
|
+
_tag: this._tag,
|
|
53
|
+
failure: a(this.failure)
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
asEffect() {
|
|
57
|
+
return p(this.failure);
|
|
58
|
+
}
|
|
59
|
+
}), f = (s) => m(s, n), O = (s) => s._tag === "Failure", d = (s) => s._tag === "Success", E = (s) => {
|
|
60
|
+
const t = Object.create(S);
|
|
61
|
+
return t.failure = s, t;
|
|
62
|
+
}, J = (s) => {
|
|
63
|
+
const t = Object.create(b);
|
|
64
|
+
return t.success = s, t;
|
|
65
|
+
};
|
|
26
66
|
export {
|
|
27
|
-
|
|
67
|
+
E as fail,
|
|
68
|
+
O as isFailure,
|
|
69
|
+
f as isResult,
|
|
70
|
+
d as isSuccess,
|
|
71
|
+
J as succeed
|
|
28
72
|
};
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return r.toJSON();
|
|
7
|
-
if (Array.isArray(r))
|
|
8
|
-
return r.map(s);
|
|
9
|
-
} catch {
|
|
10
|
-
return "[toJSON threw]";
|
|
11
|
-
}
|
|
12
|
-
return e(r);
|
|
13
|
-
};
|
|
1
|
+
import { dual as o } from "./vue-components.es39.js";
|
|
2
|
+
function N(i) {
|
|
3
|
+
return (r, u) => r === u ? 0 : i(r, u);
|
|
4
|
+
}
|
|
5
|
+
const e = /* @__PURE__ */ N((i, r) => globalThis.Number.isNaN(i) && globalThis.Number.isNaN(r) ? 0 : globalThis.Number.isNaN(i) ? -1 : globalThis.Number.isNaN(r) ? 1 : i < r ? -1 : 1), m = /* @__PURE__ */ o(2, (i, r) => N((u, n) => i(r(u), r(n))));
|
|
14
6
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
e as Number,
|
|
8
|
+
N as make,
|
|
9
|
+
m as mapInput
|
|
17
10
|
};
|
|
@@ -1,18 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const e = new Set(Reflect.ownKeys(t));
|
|
3
|
-
if (t.constructor === Object) return e;
|
|
4
|
-
t instanceof Error && e.delete("stack");
|
|
5
|
-
const n = Object.getPrototypeOf(t);
|
|
6
|
-
let o = n;
|
|
7
|
-
for (; o !== null && o !== Object.prototype; ) {
|
|
8
|
-
const r = Reflect.ownKeys(o);
|
|
9
|
-
for (let c = 0; c < r.length; c++)
|
|
10
|
-
e.add(r[c]);
|
|
11
|
-
o = Object.getPrototypeOf(o);
|
|
12
|
-
}
|
|
13
|
-
return e.has("constructor") && typeof t.constructor == "function" && n === t.constructor.prototype && e.delete("constructor"), e;
|
|
14
|
-
}, f = /* @__PURE__ */ new WeakSet();
|
|
1
|
+
const n = (t) => t.length > 0;
|
|
15
2
|
export {
|
|
16
|
-
|
|
17
|
-
s as getAllObjectKeys
|
|
3
|
+
n as isArrayNonEmpty
|
|
18
4
|
};
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
return
|
|
1
|
+
import { memoize as t } from "./vue-components.es39.js";
|
|
2
|
+
function r(e) {
|
|
3
|
+
return e.checks ? e.checks[e.checks.length - 1].annotations : e.annotations;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
function o(e) {
|
|
6
|
+
return (n) => r(n)?.[e];
|
|
7
|
+
}
|
|
8
|
+
const i = /* @__PURE__ */ o("identifier"), c = /* @__PURE__ */ t((e) => {
|
|
9
|
+
const n = i(e);
|
|
10
|
+
return typeof n == "string" ? n : e.getExpected(c);
|
|
11
|
+
});
|
|
6
12
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
c as getExpected,
|
|
14
|
+
r as resolve,
|
|
15
|
+
o as resolveAt,
|
|
16
|
+
i as resolveIdentifier
|
|
10
17
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DiagComponentLogger as m } from "./vue-components.es93.js";
|
|
2
2
|
import { createLogLevelDiagLogger as y } from "./vue-components.es94.js";
|
|
3
|
-
import { DiagLogLevel as d } from "./vue-components.
|
|
3
|
+
import { DiagLogLevel as d } from "./vue-components.es65.js";
|
|
4
4
|
import { unregisterGlobal as p, getGlobal as v, registerGlobal as w } from "./vue-components.es95.js";
|
|
5
5
|
var b = function(i, n) {
|
|
6
6
|
var r = typeof Symbol == "function" && i[Symbol.iterator];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createContextKey as o } from "./vue-components.
|
|
2
|
-
import { NonRecordingSpan as a } from "./vue-components.
|
|
3
|
-
import { ContextAPI as u } from "./vue-components.
|
|
1
|
+
import { createContextKey as o } from "./vue-components.es64.js";
|
|
2
|
+
import { NonRecordingSpan as a } from "./vue-components.es73.js";
|
|
3
|
+
import { ContextAPI as u } from "./vue-components.es74.js";
|
|
4
4
|
var n = o("OpenTelemetry Context Key SPAN");
|
|
5
5
|
function r(e) {
|
|
6
6
|
return e.getValue(n) || void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"effect": "^4.0.0-beta.25",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"vue-toastification": "^2.0.0-rc.5",
|
|
34
34
|
"vue-tsc": "^3.2.5",
|
|
35
35
|
"vuetify": "^4.0.0",
|
|
36
|
-
"@effect-app/eslint-shared-config": "0.5.7-beta.
|
|
36
|
+
"@effect-app/eslint-shared-config": "0.5.7-beta.1"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"src",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"highlight.js": "^11.11.1",
|
|
54
54
|
"mitt": "^3.0.1",
|
|
55
55
|
"vue3-highlightjs": "^1.0.5",
|
|
56
|
-
"effect-app": "4.0.0-beta.
|
|
57
|
-
"
|
|
56
|
+
"@effect-app/vue": "4.0.0-beta.2",
|
|
57
|
+
"effect-app": "4.0.0-beta.2"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"check": "vue-tsc",
|
|
@@ -711,7 +711,7 @@ const flattenMeta = <T>(meta: MetaRecord<T> | FieldMeta, parentKey: string = "")
|
|
|
711
711
|
return result
|
|
712
712
|
}
|
|
713
713
|
|
|
714
|
-
const _schemaFromAst = (ast: AST.AST): S.
|
|
714
|
+
const _schemaFromAst = (ast: AST.AST): S.Codec<any> => S.make(ast)
|
|
715
715
|
|
|
716
716
|
const metadataFromAst = <_From, To>(
|
|
717
717
|
schema: any // v4 Schema type is complex, use any for now
|
|
@@ -833,7 +833,7 @@ export const generateInputStandardSchemaFromFieldMeta = (
|
|
|
833
833
|
if (!trans) {
|
|
834
834
|
trans = useIntl().trans
|
|
835
835
|
}
|
|
836
|
-
let schema: S.
|
|
836
|
+
let schema: S.Codec<any>
|
|
837
837
|
|
|
838
838
|
switch (meta.type) {
|
|
839
839
|
case "string": {
|
|
@@ -982,9 +982,9 @@ export const generateInputStandardSchemaFromFieldMeta = (
|
|
|
982
982
|
|
|
983
983
|
// TODO: Fix v4 migration - nullableInput transformation needs proper type handling
|
|
984
984
|
// export const nullableInput = <A>(
|
|
985
|
-
// schema: S.
|
|
985
|
+
// schema: S.Codec<A>,
|
|
986
986
|
// defaultValue: () => A
|
|
987
|
-
// ): S.
|
|
987
|
+
// ): S.Codec<A> =>
|
|
988
988
|
// S.NullOr(schema).pipe(
|
|
989
989
|
// S.decodeTo(
|
|
990
990
|
// schema,
|
|
@@ -1057,7 +1057,7 @@ function hasMembers(schema: any): schema is SchemaWithMembers {
|
|
|
1057
1057
|
|
|
1058
1058
|
// Internal implementation with WeakSet tracking
|
|
1059
1059
|
export const defaultsValueFromSchema = (
|
|
1060
|
-
schema: S.
|
|
1060
|
+
schema: S.Codec<any>,
|
|
1061
1061
|
record: Record<string, any> = {}
|
|
1062
1062
|
): any => {
|
|
1063
1063
|
const ast = schema.ast
|
|
@@ -1079,7 +1079,7 @@ export const defaultsValueFromSchema = (
|
|
|
1079
1079
|
|
|
1080
1080
|
// Get the property schema from the original schema's fields if available
|
|
1081
1081
|
// This preserves schema wrappers like withDefaultConstructor
|
|
1082
|
-
let propSchema: S.
|
|
1082
|
+
let propSchema: S.Codec<any>
|
|
1083
1083
|
if ((schema as any).fields && (schema as any).fields[key]) {
|
|
1084
1084
|
propSchema = (schema as any).fields[key]
|
|
1085
1085
|
} else {
|
|
@@ -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.es88.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
|
-
};
|