@effect-app/vue-components 4.0.0-beta.298 → 4.0.0-beta.299
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/FixedNuxtErrorBoundary.vue.d.ts +39 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/vue-components.es.js +19 -18
- package/dist/vue-components11.es.js +55 -19
- package/dist/vue-components12.es.js +4 -48
- package/dist/vue-components13.es.js +19 -127
- package/dist/vue-components14.es.js +46 -62
- package/dist/vue-components15.es.js +115 -101
- package/dist/vue-components16.es.js +63 -20
- package/dist/vue-components17.es.js +113 -4
- package/dist/vue-components18.es.js +20 -78
- package/dist/vue-components19.es.js +4 -92
- package/dist/vue-components20.es.js +75 -68
- package/dist/vue-components21.es.js +91 -10
- package/dist/vue-components22.es.js +72 -56
- package/dist/vue-components23.es.js +11 -4
- package/dist/vue-components24.es.js +49 -36
- package/dist/vue-components25.es.js +1 -1
- package/dist/vue-components26.es.js +39 -79
- package/dist/vue-components27.es.js +5 -0
- package/dist/vue-components28.es.js +83 -7
- package/dist/vue-components30.es.js +7 -23
- package/dist/vue-components31.es.js +8 -299
- package/dist/vue-components32.es.js +24 -0
- package/dist/vue-components33.es.js +299 -7
- package/dist/vue-components35.es.js +5 -2
- package/dist/vue-components36.es.js +61 -52
- package/dist/vue-components37.es.js +1 -1
- package/dist/vue-components38.es.js +58 -18
- package/dist/vue-components39.es.js +1 -1
- package/dist/vue-components40.es.js +18 -53
- package/dist/vue-components41.es.js +1 -1
- package/dist/vue-components42.es.js +58 -11
- package/dist/vue-components43.es.js +4 -21
- package/dist/vue-components44.es.js +12 -0
- package/dist/vue-components45.es.js +21 -8
- package/dist/vue-components47.es.js +8 -37
- package/dist/vue-components48.es.js +3 -26
- package/dist/vue-components49.es.js +34 -24
- package/dist/vue-components50.es.js +26 -6
- package/dist/vue-components51.es.js +25 -15
- package/dist/vue-components52.es.js +6 -35
- package/dist/vue-components53.es.js +16 -16
- package/dist/vue-components54.es.js +32 -17
- package/dist/vue-components55.es.js +16 -28
- package/dist/vue-components56.es.js +20 -6
- package/dist/vue-components57.es.js +28 -7
- package/dist/vue-components58.es.js +6 -37
- package/dist/vue-components59.es.js +8 -24
- package/dist/vue-components60.es.js +37 -127
- package/dist/vue-components61.es.js +22 -21
- package/dist/vue-components62.es.js +127 -20
- package/dist/vue-components63.es.js +21 -6
- package/dist/vue-components64.es.js +15 -13
- package/dist/vue-components65.es.js +8 -4
- package/dist/vue-components66.es.js +13 -23
- package/dist/vue-components67.es.js +3 -3
- package/dist/vue-components68.es.js +27 -41
- package/dist/vue-components69.es.js +4 -100
- package/dist/vue-components70.es.js +39 -32
- package/dist/vue-components71.es.js +100 -18
- package/dist/vue-components72.es.js +35 -47
- package/dist/vue-components73.es.js +19 -0
- package/dist/vue-components74.es.js +50 -0
- package/package.json +9 -3
- package/src/components/FixedNuxtErrorBoundary.vue +112 -0
- package/src/components/index.ts +1 -0
- package/dist/vue-components29.es.js +0 -9
- package/dist/vue-components34.es.js +0 -73
- package/dist/vue-components46.es.js +0 -4
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import e from "./vue-components33.es.js";
|
|
2
|
-
import { computed as t, createBlock as n, createCommentVNode as r, createElementVNode as i, createSlots as a, defineComponent as o, getCurrentInstance as s, guardReactiveProps as c, mergeProps as l, normalizeClass as u, normalizeProps as d, openBlock as f, renderSlot as p, resolveDynamicComponent as m, useAttrs as h, useId as g, useSlots as _, withCtx as v } from "vue";
|
|
3
|
-
import { useStore as y } from "@tanstack/vue-form";
|
|
4
|
-
//#region src/components/OmegaForm/OmegaInternalInput.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var b = /*@__PURE__*/ o({
|
|
6
|
-
inheritAttrs: !1,
|
|
7
|
-
__name: "OmegaInternalInput",
|
|
8
|
-
props: {
|
|
9
|
-
field: {},
|
|
10
|
-
state: {},
|
|
11
|
-
meta: {},
|
|
12
|
-
label: {},
|
|
13
|
-
type: { default: void 0 },
|
|
14
|
-
required: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: void 0
|
|
17
|
-
},
|
|
18
|
-
inputClass: { default: void 0 },
|
|
19
|
-
register: {},
|
|
20
|
-
options: { default: void 0 },
|
|
21
|
-
inputs: { default: void 0 }
|
|
22
|
-
},
|
|
23
|
-
setup(o) {
|
|
24
|
-
let b = o, x = t(() => b.required ?? b?.meta?.required), S = s()?.appContext.components.VTextField, C = h(), w = _(), T = t(() => {
|
|
25
|
-
let { class: e, ...t } = C;
|
|
26
|
-
return t;
|
|
27
|
-
}), E = t(() => C.class), D = g(), O = b.field;
|
|
28
|
-
y(O.store, (e) => e);
|
|
29
|
-
let k = y(O.form.store, (e) => e.fieldMeta), A = t(() => b.type ? b.type : b.meta?.type === "string" ? b.meta.format === "email" ? "email" : "string" : b.meta?.type || "unknown"), j = t(() => b.inputs?.[A.value] ?? (S ? e : void 0));
|
|
30
|
-
b.register(t(() => ({
|
|
31
|
-
name: b.field.name,
|
|
32
|
-
label: b.label,
|
|
33
|
-
id: D
|
|
34
|
-
})));
|
|
35
|
-
let M = t(() => k.value[b.field.name]?.errors ?? []), N = t(() => M.value.map((e) => e?.message).filter(Boolean)), P = (e) => e == null || e === !1 || e === "" || Number.isNaN(e), F = (e) => {
|
|
36
|
-
P(e) && b.meta?.type !== "boolean" ? b.meta?.nullableOrUndefined ? b.field.handleChange(b.meta.nullableOrUndefined === "undefined" ? void 0 : null) : b.meta?.isOptionalKey ? b.field.form.deleteField(b.field.name) : b.field.handleChange(e) : b.field.handleChange(e), b.field.form.normalizeNullableStructs?.();
|
|
37
|
-
}, I = (e) => new Proxy(e, { get(e, t, n) {
|
|
38
|
-
return t === "handleChange" ? F : Reflect.get(...arguments);
|
|
39
|
-
} }), L = t(() => ({
|
|
40
|
-
inputProps: {
|
|
41
|
-
id: D,
|
|
42
|
-
required: x.value,
|
|
43
|
-
minLength: b.meta?.type === "string" && b.meta?.minLength,
|
|
44
|
-
maxLength: b.meta?.type === "string" && b.meta?.maxLength,
|
|
45
|
-
max: b.meta?.type === "number" ? b.meta?.maximum ?? (typeof b.meta?.exclusiveMaximum == "number" ? b.meta.exclusiveMaximum - 1 : void 0) : void 0,
|
|
46
|
-
min: b.meta?.type === "number" ? b.meta?.minimum ?? (typeof b.meta?.exclusiveMinimum == "number" ? b.meta.exclusiveMinimum + 1 : void 0) : void 0,
|
|
47
|
-
errorMessages: N.value,
|
|
48
|
-
error: !!N.value.length,
|
|
49
|
-
type: A.value,
|
|
50
|
-
label: w.label ? b.label : `${b.label}${x.value ? " *" : ""}`,
|
|
51
|
-
options: b.options,
|
|
52
|
-
inputClass: b.inputClass
|
|
53
|
-
},
|
|
54
|
-
state: b.state,
|
|
55
|
-
field: I(b.field)
|
|
56
|
-
}));
|
|
57
|
-
return (e, t) => p(e.$slots, "default", d(c({
|
|
58
|
-
...L.value.inputProps,
|
|
59
|
-
field: L.value.field,
|
|
60
|
-
state: L.value.state
|
|
61
|
-
})), () => [i("div", { class: u(E.value) }, [j.value ? (f(), n(m(j.value), d(l({ key: 0 }, {
|
|
62
|
-
...T.value,
|
|
63
|
-
...L.value,
|
|
64
|
-
class: b.inputClass
|
|
65
|
-
})), a({ _: 2 }, [e.$slots.label ? {
|
|
66
|
-
name: "label",
|
|
67
|
-
fn: v((t) => [p(e.$slots, "label", d(c(t)))]),
|
|
68
|
-
key: "0"
|
|
69
|
-
} : void 0]), 1040)) : r("", !0)], 2)]);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
//#endregion
|
|
73
|
-
export { b as default };
|