@effect-app/vue-components 2.10.0 → 2.10.3
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/useOmegaForm.d.ts +13 -3
- package/dist/vue-components.es10.js +132 -125
- package/dist/vue-components.es17.js +1 -1
- package/dist/vue-components.es20.js +2 -2
- package/dist/vue-components.es21.js +2 -2
- package/dist/vue-components.es30.js +41 -191
- package/dist/vue-components.es31.js +4 -0
- package/dist/vue-components.es32.js +2 -42
- package/dist/vue-components.es33.js +111 -2
- package/dist/vue-components.es35.js +7 -111
- package/dist/vue-components.es36.js +34 -0
- package/dist/vue-components.es38.js +187 -27
- package/dist/vue-components.es40.js +1 -1
- package/dist/vue-components.es7.js +1 -1
- package/package.json +3 -3
- package/src/components/OmegaForm/useOmegaForm.ts +46 -30
- package/dist/vue-components.es34.js +0 -4
- package/dist/vue-components.es37.js +0 -9
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type DeepKeys, DeepValue, StandardSchemaV1Issue, ValidationError, ValidationErrorMap } from "@tanstack/vue-form";
|
|
2
2
|
import { Effect, Order, S } from "effect-app";
|
|
3
|
+
import { UnionToTuples } from "effect-app/utils";
|
|
3
4
|
import { ComputedRef, type InjectionKey } from "vue";
|
|
4
5
|
import { MergedInputProps } from "./InputProps";
|
|
5
6
|
import { BaseProps, DefaultTypeProps, FieldPath, type FormProps, type MetaRecord, type NestedKeyOf, OmegaArrayProps, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState } from "./OmegaFormStuff";
|
|
@@ -24,6 +25,8 @@ export declare class FormErrors<From> extends FormErrors_base<{
|
|
|
24
25
|
}>;
|
|
25
26
|
}> {
|
|
26
27
|
}
|
|
28
|
+
export type Policies = "local" | "session" | "querystring";
|
|
29
|
+
export type defaultValuesPriorityUnion = "tanstack" | "persistency" | "schema";
|
|
27
30
|
export type OmegaConfig<T> = {
|
|
28
31
|
i18nNamespace?: string;
|
|
29
32
|
persistency?: {
|
|
@@ -31,8 +34,8 @@ export type OmegaConfig<T> = {
|
|
|
31
34
|
* - "querystring": Highest priority when persisting
|
|
32
35
|
* - "local" and then "session": Lower priority storage options
|
|
33
36
|
*/
|
|
34
|
-
policies?:
|
|
35
|
-
overrideDefaultValues?:
|
|
37
|
+
policies?: UnionToTuples<Policies>;
|
|
38
|
+
overrideDefaultValues?: "deprecated: use defaultValuesPriority";
|
|
36
39
|
id?: string;
|
|
37
40
|
} & keysRule<T>;
|
|
38
41
|
ignorePreventCloseEvents?: boolean;
|
|
@@ -46,7 +49,14 @@ export type OmegaConfig<T> = {
|
|
|
46
49
|
*/
|
|
47
50
|
preventWindowExit?: "prevent" | "prevent-and-reset" | "nope";
|
|
48
51
|
input?: any;
|
|
49
|
-
|
|
52
|
+
/**
|
|
53
|
+
* Default values order is: Tanstack default values passed as second parameter to useOmegaForm, then persistency
|
|
54
|
+
* default values from querystring or local/session storage, then defaults from schema
|
|
55
|
+
* You can customize the order and with omegaConfig.defaultValuesPriority
|
|
56
|
+
* default value = ['tanstack', 'persistency', 'schema']
|
|
57
|
+
*/
|
|
58
|
+
defaultValuesPriority?: UnionToTuples<defaultValuesPriorityUnion>;
|
|
59
|
+
defaultFromSchema?: "deprecated: use defaultValuesPriority";
|
|
50
60
|
};
|
|
51
61
|
export interface OF<From, To> extends OmegaFormApi<From, To> {
|
|
52
62
|
meta: MetaRecord<From>;
|
|
@@ -1,226 +1,233 @@
|
|
|
1
1
|
import { useForm as B } from "@tanstack/vue-form";
|
|
2
|
-
import { Data as K, S as
|
|
2
|
+
import { Data as K, S as $, Effect as l, Fiber as x, Option as P, Array as F } from "effect-app";
|
|
3
3
|
import { runtimeFiberAsPromise as T } from "./vue-components.es17.js";
|
|
4
|
-
import { computed as
|
|
4
|
+
import { computed as U, onUnmounted as N, onMounted as G, onBeforeUnmount as z, watch as W, ref as Q, h as H } from "vue";
|
|
5
5
|
import X from "./vue-components.es18.js";
|
|
6
6
|
import Y from "./vue-components.es19.js";
|
|
7
7
|
import Z from "./vue-components.es20.js";
|
|
8
|
-
import { generateMetaFromSchema as C, deepMerge as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { trace as
|
|
13
|
-
import { context as
|
|
14
|
-
class
|
|
8
|
+
import { generateMetaFromSchema as C, deepMerge as D, defaultsValueFromSchema as ee } from "./vue-components.es12.js";
|
|
9
|
+
import re from "./vue-components.es6.js";
|
|
10
|
+
import te from "./vue-components.es8.js";
|
|
11
|
+
import se from "./vue-components.es21.js";
|
|
12
|
+
import { trace as R } from "./vue-components.es22.js";
|
|
13
|
+
import { context as L } from "./vue-components.es23.js";
|
|
14
|
+
class ne extends K.TaggedError("FormErrors") {
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const g = (a) => function(n) {
|
|
17
17
|
return {
|
|
18
18
|
render() {
|
|
19
|
-
return H(
|
|
20
|
-
form:
|
|
19
|
+
return H(n, {
|
|
20
|
+
form: a,
|
|
21
21
|
...this.$attrs
|
|
22
22
|
}, this.$slots);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
},
|
|
25
|
+
}, oe = (a) => function(n) {
|
|
26
26
|
return {
|
|
27
27
|
setup() {
|
|
28
|
-
const { fieldMap:
|
|
29
|
-
const
|
|
28
|
+
const { fieldMap: b, form: h } = a, y = h.useStore((d) => d.errors), m = h.useStore((d) => d.fieldMeta), M = h.useStore((d) => d.errorMap), j = U(() => {
|
|
29
|
+
const d = F.filterMap(
|
|
30
30
|
Object.entries(m.value),
|
|
31
|
-
([
|
|
31
|
+
([O, f]) => {
|
|
32
32
|
const S = f.errors ?? [];
|
|
33
|
-
if (!S.length) return
|
|
34
|
-
const
|
|
35
|
-
return
|
|
36
|
-
label:
|
|
37
|
-
inputId:
|
|
33
|
+
if (!S.length) return P.none();
|
|
34
|
+
const c = b.value.get(O);
|
|
35
|
+
return c ? P.some({
|
|
36
|
+
label: c.label,
|
|
37
|
+
inputId: c.id,
|
|
38
38
|
// Only show the first error
|
|
39
39
|
errors: [S[0]?.message].filter(Boolean)
|
|
40
|
-
}) :
|
|
40
|
+
}) : P.none();
|
|
41
41
|
}
|
|
42
|
-
),
|
|
43
|
-
if (
|
|
44
|
-
for (const [
|
|
42
|
+
), o = [];
|
|
43
|
+
if (M.value.onSubmit) {
|
|
44
|
+
for (const [O, f] of Object.entries(M.value.onSubmit))
|
|
45
45
|
if (F.isArray(f) && f.length)
|
|
46
46
|
for (const S of f) {
|
|
47
|
-
const
|
|
48
|
-
if (
|
|
49
|
-
const
|
|
50
|
-
if (!
|
|
51
|
-
|
|
52
|
-
label:
|
|
53
|
-
inputId:
|
|
54
|
-
errors: [
|
|
47
|
+
const c = S;
|
|
48
|
+
if (c?.path && F.isArray(c.path) && c.path.length) {
|
|
49
|
+
const E = c.path.join(".");
|
|
50
|
+
if (!b.value.has(E)) {
|
|
51
|
+
o.push({
|
|
52
|
+
label: E,
|
|
53
|
+
inputId: E,
|
|
54
|
+
errors: [c.message].filter(Boolean)
|
|
55
55
|
});
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
return [...
|
|
61
|
+
return [...d, ...o];
|
|
62
62
|
});
|
|
63
63
|
return {
|
|
64
|
-
generalErrors:
|
|
64
|
+
generalErrors: y,
|
|
65
65
|
errors: j
|
|
66
66
|
};
|
|
67
67
|
},
|
|
68
|
-
render({ errors:
|
|
69
|
-
return H(
|
|
70
|
-
errors:
|
|
71
|
-
generalErrors:
|
|
68
|
+
render({ errors: b, generalErrors: h }) {
|
|
69
|
+
return H(n, {
|
|
70
|
+
errors: b,
|
|
71
|
+
generalErrors: h,
|
|
72
72
|
...this.$attrs
|
|
73
73
|
}, this.$slots);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
},
|
|
77
|
-
if (!
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
return
|
|
81
|
-
const e = window.location.pathname, r = Object.keys(
|
|
76
|
+
}, v = (a, u) => a.includes(u), be = (a, u, n) => {
|
|
77
|
+
if (!a) throw new Error("Schema is required");
|
|
78
|
+
const b = $.standardSchemaV1(a), h = $.decode(a), { meta: y } = C(a), m = U(() => {
|
|
79
|
+
if (n?.persistency?.id)
|
|
80
|
+
return n.persistency.id;
|
|
81
|
+
const e = window.location.pathname, r = Object.keys(y);
|
|
82
82
|
return `${e}-${r.join("-")}`;
|
|
83
|
-
}),
|
|
83
|
+
}), M = () => {
|
|
84
84
|
const e = new URLSearchParams(window.location.search);
|
|
85
85
|
e.delete(m.value);
|
|
86
86
|
const r = new URL(window.location.href);
|
|
87
87
|
r.search = e.toString(), window.history.replaceState({}, "", r.toString());
|
|
88
|
-
}, j =
|
|
88
|
+
}, j = U(() => {
|
|
89
89
|
let e;
|
|
90
|
-
const r =
|
|
90
|
+
const r = n?.persistency;
|
|
91
91
|
if (
|
|
92
92
|
// query string has higher priority than local/session storage
|
|
93
|
-
r?.policies && !e && (r.policies
|
|
93
|
+
r?.policies && !e && (v(r.policies, "local") || v(r.policies, "session"))
|
|
94
94
|
) {
|
|
95
|
-
const
|
|
96
|
-
if (
|
|
95
|
+
const s = v(r.policies, "local") ? localStorage : sessionStorage;
|
|
96
|
+
if (s)
|
|
97
97
|
try {
|
|
98
98
|
const t = JSON.parse(
|
|
99
|
-
|
|
99
|
+
s.getItem(m.value) || "{}"
|
|
100
100
|
);
|
|
101
|
-
|
|
101
|
+
s.removeItem(m.value), e = t;
|
|
102
102
|
} catch (t) {
|
|
103
103
|
console.error(t);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
if (r?.policies && r.policies
|
|
106
|
+
if (r?.policies && v(r.policies, "querystring"))
|
|
107
107
|
try {
|
|
108
108
|
const t = new URLSearchParams(window.location.search).get(m.value);
|
|
109
|
-
|
|
110
|
-
} catch (
|
|
111
|
-
console.error(
|
|
109
|
+
M(), t && (e = D(e || {}, JSON.parse(t)));
|
|
110
|
+
} catch (s) {
|
|
111
|
+
console.error(s);
|
|
112
112
|
}
|
|
113
113
|
e ??= {};
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
const i = {
|
|
115
|
+
tanstack: u?.defaultValues || {},
|
|
116
|
+
persistency: e,
|
|
117
|
+
schema: ee(a)
|
|
118
|
+
};
|
|
119
|
+
return (n?.defaultValuesPriority || ["tanstack", "persistency", "schema"]).reverse().reduce(
|
|
120
|
+
(s, t) => Object.keys(s).length ? D(s, i[t]) : i[t],
|
|
121
|
+
{}
|
|
122
|
+
);
|
|
123
|
+
}), d = (e, r) => e ? L.with(R.setSpan(L.active(), e), r) : r(), o = B({
|
|
124
|
+
...u,
|
|
118
125
|
validators: {
|
|
119
|
-
onSubmit:
|
|
120
|
-
...
|
|
126
|
+
onSubmit: b,
|
|
127
|
+
...u?.validators || {}
|
|
121
128
|
},
|
|
122
|
-
onSubmit:
|
|
123
|
-
const
|
|
129
|
+
onSubmit: u?.onSubmit ? ({ formApi: e, meta: r, value: i }) => d(r?.currentSpan, async () => {
|
|
130
|
+
const s = await l.runPromise(h(i)), t = u.onSubmit({
|
|
124
131
|
formApi: e,
|
|
125
132
|
meta: r,
|
|
126
|
-
value:
|
|
133
|
+
value: s
|
|
127
134
|
});
|
|
128
|
-
return
|
|
135
|
+
return x.isFiber(t) && x.isRuntimeFiber(t) ? await T(t) : l.isEffect(t) ? await l.runPromise(
|
|
129
136
|
t.pipe(
|
|
130
137
|
// meta?.currentSpan
|
|
131
138
|
// ? Effect.withParentSpan(meta.currentSpan)
|
|
132
139
|
// : (_) => _,
|
|
133
|
-
|
|
140
|
+
l.flatMap((p) => x.join(p))
|
|
134
141
|
)
|
|
135
142
|
) : t;
|
|
136
143
|
}) : void 0,
|
|
137
144
|
defaultValues: j.value
|
|
138
|
-
}),
|
|
139
|
-
Object.keys(
|
|
140
|
-
|
|
145
|
+
}), O = () => {
|
|
146
|
+
Object.keys(y).forEach((e) => {
|
|
147
|
+
o.setFieldValue(e, void 0);
|
|
141
148
|
});
|
|
142
|
-
}, f = (e) => e.reduce((r,
|
|
143
|
-
const
|
|
144
|
-
return
|
|
149
|
+
}, f = (e) => e.reduce((r, i) => {
|
|
150
|
+
const s = i.split(".");
|
|
151
|
+
return s.reduce((t, p, A) => (A === s.length - 1 ? t[p] = o.getFieldValue(i) : t[p] = t[p] ?? {}, t[p]), r), r;
|
|
145
152
|
}, {}), S = (e) => {
|
|
146
153
|
if (e) {
|
|
147
154
|
if (F.isArray(e.keys))
|
|
148
155
|
return f(e.keys);
|
|
149
156
|
if (F.isArray(e.banKeys)) {
|
|
150
|
-
const r = Object.keys(
|
|
157
|
+
const r = Object.keys(y).filter((i) => e.banKeys?.includes(i));
|
|
151
158
|
return f(r);
|
|
152
159
|
}
|
|
153
|
-
return
|
|
160
|
+
return o.store.state.values;
|
|
154
161
|
}
|
|
155
|
-
},
|
|
156
|
-
const e =
|
|
157
|
-
if (!(!e?.policies || e.policies.length === 0) && (e.policies
|
|
158
|
-
const r = e.policies
|
|
162
|
+
}, c = () => {
|
|
163
|
+
const e = n?.persistency;
|
|
164
|
+
if (!(!e?.policies || e.policies.length === 0) && (v(e.policies, "local") || v(e.policies, "session"))) {
|
|
165
|
+
const r = v(e.policies, "local") ? localStorage : sessionStorage;
|
|
159
166
|
if (!r) return;
|
|
160
|
-
const
|
|
161
|
-
return r.setItem(m.value, JSON.stringify(
|
|
167
|
+
const i = S(e);
|
|
168
|
+
return r.setItem(m.value, JSON.stringify(i));
|
|
162
169
|
}
|
|
163
|
-
},
|
|
164
|
-
const e =
|
|
165
|
-
if (!(!e?.policies || e.policies.length === 0) && e.policies
|
|
166
|
-
const r = S(e),
|
|
167
|
-
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
+
}, E = () => {
|
|
171
|
+
const e = n?.persistency;
|
|
172
|
+
if (!(!e?.policies || e.policies.length === 0) && v(e.policies, "querystring")) {
|
|
173
|
+
const r = S(e), i = new URLSearchParams(window.location.search);
|
|
174
|
+
i.set(m.value, JSON.stringify(r));
|
|
175
|
+
const s = new URL(window.location.href);
|
|
176
|
+
s.search = i.toString(), window.history.replaceState({}, "", s.toString());
|
|
170
177
|
}
|
|
171
|
-
},
|
|
172
|
-
|
|
178
|
+
}, V = (e) => {
|
|
179
|
+
o.store.state.isDirty && e.preventDefault();
|
|
173
180
|
};
|
|
174
|
-
if (
|
|
175
|
-
window.addEventListener("beforeunload",
|
|
181
|
+
if (N(c), G(() => {
|
|
182
|
+
window.addEventListener("beforeunload", c), window.addEventListener("blur", E), n?.preventWindowExit && n.preventWindowExit !== "nope" && window.addEventListener("beforeunload", V);
|
|
176
183
|
}), z(() => {
|
|
177
|
-
window.removeEventListener("beforeunload",
|
|
178
|
-
}),
|
|
179
|
-
const e =
|
|
180
|
-
|
|
181
|
-
|
|
184
|
+
window.removeEventListener("beforeunload", c), window.removeEventListener("blur", E), n?.preventWindowExit && n.preventWindowExit !== "nope" && window.removeEventListener("beforeunload", V);
|
|
185
|
+
}), n?.preventWindowExit === "prevent-and-reset") {
|
|
186
|
+
const e = o.useStore((t) => t.isSubmitting), r = o.useStore((t) => t.submissionAttempts), i = o.useStore((t) => t.canSubmit), s = o.useStore((t) => t.values);
|
|
187
|
+
W([e, r], ([t, p], [A]) => {
|
|
188
|
+
A && !t && p > 0 && i.value && o.reset(s.value);
|
|
182
189
|
});
|
|
183
190
|
}
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
(r) =>
|
|
191
|
+
const k = (e) => l.currentSpan.pipe(
|
|
192
|
+
l.option,
|
|
193
|
+
l.flatMap(
|
|
194
|
+
(r) => l.promise(() => o.handleSubmit(P.isSome(r) ? { currentSpan: r.value, ...e } : e))
|
|
188
195
|
)
|
|
189
|
-
), J = (e) => e?.checkErrors ?
|
|
190
|
-
const r =
|
|
196
|
+
), J = (e) => e?.checkErrors ? k(e?.meta).pipe(l.flatMap(l.fnUntraced(function* () {
|
|
197
|
+
const r = o.getAllErrors();
|
|
191
198
|
if (Object.keys(r.fields).length || r.form.errors.length)
|
|
192
|
-
return yield* new
|
|
193
|
-
}))) :
|
|
194
|
-
i18nNamespace:
|
|
195
|
-
ignorePreventCloseEvents:
|
|
196
|
-
meta:
|
|
197
|
-
clear:
|
|
199
|
+
return yield* new ne({ form: r.form, fields: r.fields });
|
|
200
|
+
}))) : k(e?.meta), q = o.handleSubmit, _ = Q(/* @__PURE__ */ new Map()), w = Object.assign(o, {
|
|
201
|
+
i18nNamespace: n?.i18nNamespace,
|
|
202
|
+
ignorePreventCloseEvents: n?.ignorePreventCloseEvents,
|
|
203
|
+
meta: y,
|
|
204
|
+
clear: O,
|
|
198
205
|
handleSubmit: (e) => {
|
|
199
|
-
const r =
|
|
206
|
+
const r = R.getSpan(L.active());
|
|
200
207
|
return q({ currentSpan: r, ...e });
|
|
201
208
|
},
|
|
202
209
|
// /** @experimental */
|
|
203
210
|
handleSubmitEffect: J,
|
|
204
211
|
registerField: (e) => {
|
|
205
|
-
|
|
212
|
+
W(e, (r) => _.value.set(r.name, { label: r.label, id: r.id }), { immediate: !0 }), N(() => _.value.delete(e.value.name));
|
|
206
213
|
}
|
|
207
|
-
}),
|
|
208
|
-
return Object.assign(
|
|
214
|
+
}), I = { form: w, fieldMap: _ };
|
|
215
|
+
return Object.assign(w, {
|
|
209
216
|
// Type-level properties for performance optimization (not used at runtime)
|
|
210
217
|
_paths: void 0,
|
|
211
218
|
_keys: void 0,
|
|
212
|
-
_schema:
|
|
213
|
-
errorContext:
|
|
214
|
-
Form:
|
|
215
|
-
Input:
|
|
216
|
-
TaggedUnion:
|
|
217
|
-
Field:
|
|
218
|
-
Errors:
|
|
219
|
-
Array:
|
|
220
|
-
AutoGen:
|
|
219
|
+
_schema: a,
|
|
220
|
+
errorContext: I,
|
|
221
|
+
Form: g(w)(se),
|
|
222
|
+
Input: g(w)(n?.input ?? re),
|
|
223
|
+
TaggedUnion: g(w)(te),
|
|
224
|
+
Field: o.Field,
|
|
225
|
+
Errors: oe(I)(Z),
|
|
226
|
+
Array: g(w)(X),
|
|
227
|
+
AutoGen: g(w)(Y)
|
|
221
228
|
});
|
|
222
229
|
};
|
|
223
230
|
export {
|
|
224
|
-
|
|
225
|
-
|
|
231
|
+
ne as FormErrors,
|
|
232
|
+
be as useOmegaForm
|
|
226
233
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Exit as c, Runtime as u } from "effect";
|
|
2
|
-
import { dual as n, isFunction as m } from "./vue-components.
|
|
2
|
+
import { dual as n, isFunction as m } from "./vue-components.es30.js";
|
|
3
3
|
const i = Symbol.for("clone-trait"), a = n(2, (e, t) => i in e ? e[i](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e)));
|
|
4
4
|
n(2, (e, t) => a(e, { ...e, ...m(t) ? t(e) : t }));
|
|
5
5
|
const p = (e, t) => new Promise((o, s) => e.addObserver((r) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]: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-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),document.head.appendChild(a),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const r=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]: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-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),this.shadowRoot.appendChild(o)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import r from "./vue-components.
|
|
2
|
+
import r from "./vue-components.es33.js";
|
|
3
3
|
|
|
4
|
-
import o from "./vue-components.
|
|
4
|
+
import o from "./vue-components.es35.js";
|
|
5
5
|
const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6b2bf87e"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import o from "./vue-components.
|
|
2
|
+
import o from "./vue-components.es36.js";
|
|
3
3
|
|
|
4
|
-
import m from "./vue-components.
|
|
4
|
+
import m from "./vue-components.es35.js";
|
|
5
5
|
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|