@effect-app/vue-components 4.0.0-beta.66 → 4.0.0-beta.68
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/package.json +3 -3
- package/src/reset.css +39 -38
- package/dist/reset.css +0 -51
- package/dist/types/components/CommandButton.vue.d.ts +0 -42
- package/dist/types/components/Dialog.vue.d.ts +0 -28
- package/dist/types/components/OmegaForm/InputProps.d.ts +0 -60
- package/dist/types/components/OmegaForm/OmegaArray.vue.d.ts +0 -41
- package/dist/types/components/OmegaForm/OmegaAutoGen.vue.d.ts +0 -34
- package/dist/types/components/OmegaForm/OmegaErrorsInternal.vue.d.ts +0 -25
- package/dist/types/components/OmegaForm/OmegaFormInput.vue.d.ts +0 -23
- package/dist/types/components/OmegaForm/OmegaFormStuff.d.ts +0 -164
- package/dist/types/components/OmegaForm/OmegaInput.vue.d.ts +0 -27
- package/dist/types/components/OmegaForm/OmegaInputVuetify.vue.d.ts +0 -68
- package/dist/types/components/OmegaForm/OmegaInternalInput.vue.d.ts +0 -62
- package/dist/types/components/OmegaForm/OmegaTaggedUnion.vue.d.ts +0 -41
- package/dist/types/components/OmegaForm/OmegaTaggedUnionInternal.vue.d.ts +0 -31
- package/dist/types/components/OmegaForm/OmegaWrapper.vue.d.ts +0 -28
- package/dist/types/components/OmegaForm/blockDialog.d.ts +0 -12
- package/dist/types/components/OmegaForm/createUseFormWithCustomInput.d.ts +0 -4
- package/dist/types/components/OmegaForm/getOmegaStore.d.ts +0 -3
- package/dist/types/components/OmegaForm/index.d.ts +0 -10
- package/dist/types/components/OmegaForm/onMountedWithCleanup.d.ts +0 -6
- package/dist/types/components/OmegaForm/useOmegaForm.d.ts +0 -214
- package/dist/types/components/OmegaForm/useRegisterField.d.ts +0 -7
- package/dist/types/components/index.d.ts +0 -3
- package/dist/types/constants/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -9
- package/dist/types/utils/index.d.ts +0 -19
- package/dist/vue-components.es.js +0 -22
- package/dist/vue-components10.es.js +0 -5
- package/dist/vue-components11.es.js +0 -13
- package/dist/vue-components12.es.js +0 -440
- package/dist/vue-components13.es.js +0 -4
- package/dist/vue-components14.es.js +0 -38
- package/dist/vue-components15.es.js +0 -27
- package/dist/vue-components16.es.js +0 -28
- package/dist/vue-components17.es.js +0 -7
- package/dist/vue-components18.es.js +0 -18
- package/dist/vue-components19.es.js +0 -36
- package/dist/vue-components2.es.js +0 -11
- package/dist/vue-components20.es.js +0 -18
- package/dist/vue-components21.es.js +0 -21
- package/dist/vue-components22.es.js +0 -30
- package/dist/vue-components23.es.js +0 -7
- package/dist/vue-components24.es.js +0 -9
- package/dist/vue-components25.es.js +0 -38
- package/dist/vue-components26.es.js +0 -25
- package/dist/vue-components27.es.js +0 -128
- package/dist/vue-components28.es.js +0 -24
- package/dist/vue-components29.es.js +0 -21
- package/dist/vue-components3.es.js +0 -54
- package/dist/vue-components30.es.js +0 -9
- package/dist/vue-components31.es.js +0 -19
- package/dist/vue-components32.es.js +0 -5
- package/dist/vue-components33.es.js +0 -29
- package/dist/vue-components34.es.js +0 -5
- package/dist/vue-components35.es.js +0 -29
- package/dist/vue-components36.es.js +0 -6
- package/dist/vue-components37.es.js +0 -18
- package/dist/vue-components38.es.js +0 -56
- package/dist/vue-components39.es.js +0 -5
- package/dist/vue-components4.es.js +0 -5
- package/dist/vue-components40.es.js +0 -44
- package/dist/vue-components41.es.js +0 -5
- package/dist/vue-components42.es.js +0 -84
- package/dist/vue-components44.es.js +0 -8
- package/dist/vue-components45.es.js +0 -7
- package/dist/vue-components46.es.js +0 -267
- package/dist/vue-components48.es.js +0 -6
- package/dist/vue-components49.es.js +0 -79
- package/dist/vue-components5.es.js +0 -24
- package/dist/vue-components50.es.js +0 -5
- package/dist/vue-components51.es.js +0 -66
- package/dist/vue-components52.es.js +0 -5
- package/dist/vue-components53.es.js +0 -24
- package/dist/vue-components54.es.js +0 -5
- package/dist/vue-components55.es.js +0 -59
- package/dist/vue-components56.es.js +0 -5
- package/dist/vue-components57.es.js +0 -12
- package/dist/vue-components58.es.js +0 -22
- package/dist/vue-components6.es.js +0 -13
- package/dist/vue-components60.es.js +0 -7
- package/dist/vue-components61.es.js +0 -235
- package/dist/vue-components62.es.js +0 -33
- package/dist/vue-components63.es.js +0 -8
- package/dist/vue-components64.es.js +0 -36
- package/dist/vue-components7.es.js +0 -28
- package/dist/vue-components8.es.js +0 -47
- package/dist/vue-components9.es.js +0 -5
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type DeepKeys } from "@tanstack/vue-form";
|
|
2
|
-
import { type OmegaInputPropsBase } from "./OmegaFormStuff";
|
|
3
|
-
declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<OmegaInputPropsBase<From, To, Name>> & (typeof globalThis extends {
|
|
5
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
6
|
-
} ? P : {});
|
|
7
|
-
expose: (exposed: {}) => void;
|
|
8
|
-
attrs: any;
|
|
9
|
-
slots: {
|
|
10
|
-
label?: (props: {
|
|
11
|
-
required?: boolean;
|
|
12
|
-
id: string;
|
|
13
|
-
label: string;
|
|
14
|
-
}) => any;
|
|
15
|
-
default?: (props: any) => any;
|
|
16
|
-
};
|
|
17
|
-
emit: {};
|
|
18
|
-
}>) => import("vue").VNode & {
|
|
19
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: typeof __VLS_export;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
24
|
-
[K in keyof T]: T[K];
|
|
25
|
-
} : {
|
|
26
|
-
[K in keyof T as K]: T[K];
|
|
27
|
-
}) & {};
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { type DeepKeys } from "@tanstack/vue-form";
|
|
2
|
-
import type { VuetifyInputProps } from "./InputProps";
|
|
3
|
-
declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<VuetifyInputProps<From, Name> & {
|
|
5
|
-
onBlur?: ((event: Event) => any) | undefined;
|
|
6
|
-
onFocus?: ((event: Event) => any) | undefined;
|
|
7
|
-
}> & (typeof globalThis extends {
|
|
8
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
-
} ? P : {});
|
|
10
|
-
expose: (exposed: {}) => void;
|
|
11
|
-
attrs: any;
|
|
12
|
-
slots: {
|
|
13
|
-
label?: (props: {
|
|
14
|
-
required: boolean | undefined;
|
|
15
|
-
id: string;
|
|
16
|
-
label: string;
|
|
17
|
-
}) => any;
|
|
18
|
-
} & {
|
|
19
|
-
label?: (props: {
|
|
20
|
-
required: boolean | undefined;
|
|
21
|
-
id: string;
|
|
22
|
-
label: string;
|
|
23
|
-
}) => any;
|
|
24
|
-
} & {
|
|
25
|
-
label?: (props: {
|
|
26
|
-
required: boolean | undefined;
|
|
27
|
-
id: string;
|
|
28
|
-
label: string;
|
|
29
|
-
}) => any;
|
|
30
|
-
} & {
|
|
31
|
-
label?: (props: {
|
|
32
|
-
required: boolean | undefined;
|
|
33
|
-
id: string;
|
|
34
|
-
label: string;
|
|
35
|
-
}) => any;
|
|
36
|
-
} & {
|
|
37
|
-
label?: (props: {
|
|
38
|
-
required: boolean | undefined;
|
|
39
|
-
id: string;
|
|
40
|
-
label: string;
|
|
41
|
-
}) => any;
|
|
42
|
-
} & {
|
|
43
|
-
label?: (props: {
|
|
44
|
-
required: boolean | undefined;
|
|
45
|
-
id: string;
|
|
46
|
-
label: string;
|
|
47
|
-
}) => any;
|
|
48
|
-
} & {
|
|
49
|
-
label?: (props: {
|
|
50
|
-
required: boolean | undefined;
|
|
51
|
-
id: string;
|
|
52
|
-
label: string;
|
|
53
|
-
}) => any;
|
|
54
|
-
};
|
|
55
|
-
emit: {
|
|
56
|
-
(e: "focus", event: Event): void;
|
|
57
|
-
(e: "blur", event: Event): void;
|
|
58
|
-
};
|
|
59
|
-
}>) => import("vue").VNode & {
|
|
60
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
61
|
-
};
|
|
62
|
-
declare const _default: typeof __VLS_export;
|
|
63
|
-
export default _default;
|
|
64
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
65
|
-
[K in keyof T]: T[K];
|
|
66
|
-
} : {
|
|
67
|
-
[K in keyof T as K]: T[K];
|
|
68
|
-
}) & {};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { type DeepKeys } from "@tanstack/vue-form";
|
|
2
|
-
import { type ComputedRef } from "vue";
|
|
3
|
-
import type { OmegaFieldInternalApi } from "./InputProps";
|
|
4
|
-
import type { FieldValidators, MetaRecord, NestedKeyOf, TypeOverride } from "./OmegaFormStuff";
|
|
5
|
-
declare const __VLS_export: <From extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
7
|
-
field: OmegaFieldInternalApi<From, Name>;
|
|
8
|
-
state: OmegaFieldInternalApi<From, Name>["state"];
|
|
9
|
-
meta: MetaRecord<From>[NestedKeyOf<From>];
|
|
10
|
-
label: string;
|
|
11
|
-
type?: TypeOverride;
|
|
12
|
-
validators?: FieldValidators<From>;
|
|
13
|
-
required?: boolean;
|
|
14
|
-
inputClass?: string | null;
|
|
15
|
-
register: (field: ComputedRef<{
|
|
16
|
-
name: string;
|
|
17
|
-
label: string;
|
|
18
|
-
id: string;
|
|
19
|
-
}>) => void;
|
|
20
|
-
options?: {
|
|
21
|
-
title: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}[];
|
|
24
|
-
}> & (typeof globalThis extends {
|
|
25
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
26
|
-
} ? P : {});
|
|
27
|
-
expose: (exposed: {}) => void;
|
|
28
|
-
attrs: any;
|
|
29
|
-
slots: {
|
|
30
|
-
default?: (props: {
|
|
31
|
-
field: OmegaFieldInternalApi<From, Name>;
|
|
32
|
-
state: import("@tanstack/vue-form").FieldState<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>, import("@tanstack/vue-form").FieldValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>> | undefined, import("@tanstack/vue-form").StandardSchemaV1<import("@tanstack/vue-form").DeepValue<From, Name>, unknown> | import("@tanstack/vue-form").FieldValidateFn<From, Name>, import("@tanstack/vue-form").StandardSchemaV1<import("@tanstack/vue-form").DeepValue<From, Name>, unknown> | import("@tanstack/vue-form").FieldValidateAsyncFn<From, Name>, import("@tanstack/vue-form").FieldValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>>, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>>, import("@tanstack/vue-form").FieldValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, Name, import("@tanstack/vue-form").DeepValue<From, Name>> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, any, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined>;
|
|
33
|
-
id: string;
|
|
34
|
-
required?: boolean;
|
|
35
|
-
minLength?: number | false;
|
|
36
|
-
maxLength?: number | false;
|
|
37
|
-
max?: number | false;
|
|
38
|
-
min?: number | false;
|
|
39
|
-
errorMessages: string[];
|
|
40
|
-
error: boolean;
|
|
41
|
-
label: string;
|
|
42
|
-
type: string;
|
|
43
|
-
inputClass: string | undefined | null;
|
|
44
|
-
}) => any;
|
|
45
|
-
} & {
|
|
46
|
-
label?: (props: {
|
|
47
|
-
required: boolean | undefined;
|
|
48
|
-
id: string;
|
|
49
|
-
label: string;
|
|
50
|
-
}) => any;
|
|
51
|
-
};
|
|
52
|
-
emit: {};
|
|
53
|
-
}>) => import("vue").VNode & {
|
|
54
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
55
|
-
};
|
|
56
|
-
declare const _default: typeof __VLS_export;
|
|
57
|
-
export default _default;
|
|
58
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
59
|
-
[K in keyof T]: T[K];
|
|
60
|
-
} : {
|
|
61
|
-
[K in keyof T as K]: T[K];
|
|
62
|
-
}) & {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type DeepKeys } from "@tanstack/vue-form";
|
|
2
|
-
import { type TaggedUnionOption } from "./InputProps";
|
|
3
|
-
import { type useOmegaForm } from "./useOmegaForm";
|
|
4
|
-
declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From> | undefined = DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
6
|
-
name?: Name;
|
|
7
|
-
form: ReturnType<typeof useOmegaForm<From, To>>;
|
|
8
|
-
type?: "select" | "radio";
|
|
9
|
-
options: TaggedUnionOption<From, Name>[];
|
|
10
|
-
label?: string;
|
|
11
|
-
}> & (typeof globalThis extends {
|
|
12
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
13
|
-
} ? P : {});
|
|
14
|
-
expose: (exposed: {}) => void;
|
|
15
|
-
attrs: any;
|
|
16
|
-
slots: {
|
|
17
|
-
[x: string]: ((props: {
|
|
18
|
-
field: import("./InputProps").OmegaFieldInternalApi<From, "_tag" | `${NonNullable<Name>}._tag`>;
|
|
19
|
-
state: NonNullable<import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>>;
|
|
20
|
-
}) => any) | undefined;
|
|
21
|
-
} & {
|
|
22
|
-
OmegaCustomInput?: (props: {
|
|
23
|
-
field: import("@tanstack/vue-form").FieldApi<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").StandardSchemaV1<From, To>, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, Record<string, any> | undefined>;
|
|
24
|
-
state: import("@tanstack/vue-form").FieldState<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, "_tag" | `${NonNullable<Name>}._tag`, import("@tanstack/vue-form").DeepValue<From, "_tag" | `${NonNullable<Name>}._tag`>> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").StandardSchemaV1<From, To>, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined>;
|
|
25
|
-
}) => any;
|
|
26
|
-
} & {
|
|
27
|
-
default?: (props: {}) => any;
|
|
28
|
-
} & {
|
|
29
|
-
OmegaCommon?: (props: {}) => any;
|
|
30
|
-
};
|
|
31
|
-
emit: {};
|
|
32
|
-
}>) => import("vue").VNode & {
|
|
33
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
34
|
-
};
|
|
35
|
-
declare const _default: typeof __VLS_export;
|
|
36
|
-
export default _default;
|
|
37
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
38
|
-
[K in keyof T]: T[K];
|
|
39
|
-
} : {
|
|
40
|
-
[K in keyof T as K]: T[K];
|
|
41
|
-
}) & {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type DeepKeys, type DeepValue } from "@tanstack/vue-form";
|
|
2
|
-
import { type OmegaFieldInternalApi } from "./InputProps";
|
|
3
|
-
import { type useOmegaForm } from "./useOmegaForm";
|
|
4
|
-
declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
6
|
-
state: DeepValue<From, Name>;
|
|
7
|
-
field: OmegaFieldInternalApi<From, Name>;
|
|
8
|
-
name?: DeepKeys<From>;
|
|
9
|
-
form: ReturnType<typeof useOmegaForm<From, To>>;
|
|
10
|
-
}> & (typeof globalThis extends {
|
|
11
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
12
|
-
} ? P : {});
|
|
13
|
-
expose: (exposed: {}) => void;
|
|
14
|
-
attrs: any;
|
|
15
|
-
slots: {
|
|
16
|
-
[x: string]: ((props: {
|
|
17
|
-
field: OmegaFieldInternalApi<From, Name>;
|
|
18
|
-
state: NonNullable<DeepValue<From, Name>>;
|
|
19
|
-
}) => any) | undefined;
|
|
20
|
-
};
|
|
21
|
-
emit: {};
|
|
22
|
-
}>) => import("vue").VNode & {
|
|
23
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
|
-
};
|
|
25
|
-
declare const _default: typeof __VLS_export;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
-
[K in keyof T]: T[K];
|
|
29
|
-
} : {
|
|
30
|
-
[K in keyof T as K]: T[K];
|
|
31
|
-
}) & {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type DefaultTypeProps, type OmegaFormState } from "./OmegaFormStuff";
|
|
2
|
-
import { type OmegaFormReturn } from "./useOmegaForm";
|
|
3
|
-
declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, K extends keyof OmegaFormState<From, To> = keyof OmegaFormState<From, To>, Props = DefaultTypeProps>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
-
form: OmegaFormReturn<From, To, Props>;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
subscribe?: K[];
|
|
8
|
-
}> & (typeof globalThis extends {
|
|
9
|
-
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
-
} ? P : {});
|
|
11
|
-
expose: (exposed: {}) => void;
|
|
12
|
-
attrs: any;
|
|
13
|
-
slots: {
|
|
14
|
-
default(props: {
|
|
15
|
-
subscribedValues: K[] extends undefined[] ? Record<string, never> : Pick<OmegaFormState<From, To>, K>;
|
|
16
|
-
}): void;
|
|
17
|
-
};
|
|
18
|
-
emit: {};
|
|
19
|
-
}>) => import("vue").VNode & {
|
|
20
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
21
|
-
};
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
25
|
-
[K in keyof T]: T[K];
|
|
26
|
-
} : {
|
|
27
|
-
[K in keyof T as K]: T[K];
|
|
28
|
-
}) & {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type Ref } from "vue";
|
|
2
|
-
export type DialogClosing = {
|
|
3
|
-
prevent?: boolean | Promise<boolean>;
|
|
4
|
-
};
|
|
5
|
-
export declare const injectBus: () => import("mitt").Emitter<{
|
|
6
|
-
"dialog-closing": DialogClosing;
|
|
7
|
-
}> | null;
|
|
8
|
-
export declare const provideBus: () => import("mitt").Emitter<{
|
|
9
|
-
"dialog-closing": DialogClosing;
|
|
10
|
-
}>;
|
|
11
|
-
export declare const usePreventClose: (mkIsDirty: () => Ref<boolean>) => void;
|
|
12
|
-
export declare const useOnClose: (close: () => void) => () => void;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Component } from "vue";
|
|
2
|
-
import { type DefaultTypeProps } from "./OmegaFormStuff";
|
|
3
|
-
import { useOmegaForm } from "./useOmegaForm";
|
|
4
|
-
export declare const createUseFormWithCustomInput: <TypeProps = DefaultTypeProps>(CustomInputComponent: Component) => <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(...args: Parameters<typeof useOmegaForm<From, To>>) => import("./useOmegaForm").OmegaFormReturn<From, To, TypeProps>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type Ref } from "vue";
|
|
2
|
-
import type { OmegaFormApi, OmegaFormState } from "./OmegaFormStuff";
|
|
3
|
-
export declare function getOmegaStore<To, From, K extends keyof OmegaFormState<To, From> = keyof OmegaFormState<To, From>>(form: OmegaFormApi<To, From>, subscribe?: K[]): Ref<K[] extends undefined[] ? Record<string, never> : Pick<OmegaFormState<To, From>, K>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from "./OmegaFormStuff";
|
|
2
|
-
export { type OmegaConfig, type OmegaFormReturn, useOmegaForm } from "./useOmegaForm";
|
|
3
|
-
export { type ExtractTagValue, type ExtractUnionBranch, type InputProps, type MergedInputProps, type TaggedUnionOption, type TaggedUnionOptionsArray, type TaggedUnionProps } from "./InputProps";
|
|
4
|
-
export { default as OmegaInput } from "./OmegaInput.vue";
|
|
5
|
-
export { default as OmegaVuetifyInput } from "./OmegaInternalInput.vue";
|
|
6
|
-
export { default as OmegaTaggedUnion } from "./OmegaTaggedUnion.vue";
|
|
7
|
-
export { default as OmegaTaggedUnionInternal } from "./OmegaTaggedUnionInternal.vue";
|
|
8
|
-
export { useOnClose, usePreventClose } from "./blockDialog";
|
|
9
|
-
export { getInputType } from "./OmegaFormStuff";
|
|
10
|
-
export { createUseFormWithCustomInput } from "./createUseFormWithCustomInput";
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { type DeepKeys, DeepValue, StandardSchemaV1Issue, ValidationError, ValidationErrorMap } from "@tanstack/vue-form";
|
|
2
|
-
import { Effect, Order, S } from "effect-app";
|
|
3
|
-
import { UnionToTuples } from "effect-app/utils";
|
|
4
|
-
import { ComputedRef, type InjectionKey } from "vue";
|
|
5
|
-
import { MergedInputProps } from "./InputProps";
|
|
6
|
-
import { BaseProps, DefaultTypeProps, FieldPath, type FormProps, type MetaRecord, type NestedKeyOf, OmegaArrayProps, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState } from "./OmegaFormStuff";
|
|
7
|
-
type keysRule<T> = {
|
|
8
|
-
keys?: NestedKeyOf<T>[];
|
|
9
|
-
banKeys?: "You should only use one of banKeys or keys, not both, moron";
|
|
10
|
-
} | {
|
|
11
|
-
keys?: "You should only use one of banKeys or keys, not both, moron";
|
|
12
|
-
banKeys?: NestedKeyOf<T>[];
|
|
13
|
-
};
|
|
14
|
-
declare const FormErrors_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
15
|
-
readonly _tag: "FormErrors";
|
|
16
|
-
} & Readonly<A>;
|
|
17
|
-
export declare class FormErrors<From> extends FormErrors_base<{
|
|
18
|
-
form: {
|
|
19
|
-
errors: (Record<string, StandardSchemaV1Issue[]> | undefined)[];
|
|
20
|
-
errorMap: ValidationErrorMap<undefined, undefined, Record<string, StandardSchemaV1Issue[]>, undefined, undefined, undefined, undefined, undefined, undefined, undefined>;
|
|
21
|
-
};
|
|
22
|
-
fields: Record<DeepKeys<From>, {
|
|
23
|
-
errors: ValidationError[];
|
|
24
|
-
errorMap: ValidationErrorMap;
|
|
25
|
-
}>;
|
|
26
|
-
}> {
|
|
27
|
-
}
|
|
28
|
-
export declare const useErrorLabel: (form: OF<any, any>) => (propsName: string) => string;
|
|
29
|
-
export type Policies = "local" | "session" | "querystring";
|
|
30
|
-
export type defaultValuesPriorityUnion = "tanstack" | "persistency" | "schema";
|
|
31
|
-
export type OmegaConfig<T> = {
|
|
32
|
-
i18nNamespace?: string;
|
|
33
|
-
persistency?: {
|
|
34
|
-
/** Order of importance:
|
|
35
|
-
* - "querystring": Highest priority when persisting
|
|
36
|
-
* - "local" and then "session": Lower priority storage options
|
|
37
|
-
*/
|
|
38
|
-
policies?: UnionToTuples<Policies>;
|
|
39
|
-
overrideDefaultValues?: "deprecated: use defaultValuesPriority";
|
|
40
|
-
id?: string;
|
|
41
|
-
} & keysRule<T>;
|
|
42
|
-
ignorePreventCloseEvents?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Prevents browser window/tab exit when form has unsaved changes.
|
|
45
|
-
* Shows native browser "Leave site?" dialog.
|
|
46
|
-
*
|
|
47
|
-
* @remarks
|
|
48
|
-
* - Opt-in only: Must explicitly enable
|
|
49
|
-
* - Independent from data persistence feature
|
|
50
|
-
*/
|
|
51
|
-
preventWindowExit?: "prevent" | "prevent-and-reset" | "nope";
|
|
52
|
-
input?: any;
|
|
53
|
-
/**
|
|
54
|
-
* Default values order is: Tanstack default values passed as second parameter to useOmegaForm, then persistency
|
|
55
|
-
* default values from querystring or local/session storage, then defaults from schema
|
|
56
|
-
* You can customize the order and with omegaConfig.defaultValuesPriority
|
|
57
|
-
* default value = ['tanstack', 'persistency', 'schema']
|
|
58
|
-
*/
|
|
59
|
-
defaultValuesPriority?: UnionToTuples<defaultValuesPriorityUnion>;
|
|
60
|
-
defaultFromSchema?: "deprecated: use defaultValuesPriority";
|
|
61
|
-
};
|
|
62
|
-
export interface OF<From, To> extends OmegaFormApi<From, To> {
|
|
63
|
-
meta: MetaRecord<From>;
|
|
64
|
-
unionMeta: Record<string, MetaRecord<From>>;
|
|
65
|
-
clear: () => void;
|
|
66
|
-
i18nNamespace?: string;
|
|
67
|
-
ignorePreventCloseEvents?: boolean;
|
|
68
|
-
registerField: (field: ComputedRef<{
|
|
69
|
-
name: string;
|
|
70
|
-
label: string;
|
|
71
|
-
id: string;
|
|
72
|
-
}>) => void;
|
|
73
|
-
/** @experimental */
|
|
74
|
-
handleSubmitEffect: {
|
|
75
|
-
/**
|
|
76
|
-
* when `checkErrors` is true, the Effect will fail with `FormErrors<From>` when there are validation errors
|
|
77
|
-
* @experimental */
|
|
78
|
-
(options: {
|
|
79
|
-
checkErrors: true;
|
|
80
|
-
meta?: Record<string, any>;
|
|
81
|
-
}): Effect.Effect<void, FormErrors<From>>;
|
|
82
|
-
/** @experimental */
|
|
83
|
-
(options?: {
|
|
84
|
-
meta?: Record<string, any>;
|
|
85
|
-
}): Effect.Effect<void>;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export declare const OmegaFormKey: InjectionKey<OF<any, any>>;
|
|
89
|
-
type __VLS_PrettifyLocal<T> = {
|
|
90
|
-
[K in keyof T]: T[K];
|
|
91
|
-
} & {};
|
|
92
|
-
type CachedFieldApi<From, To, TypeProps = DefaultTypeProps> = import("@tanstack/vue-form").FieldApi<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").StandardSchemaV1<From, To>, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, Record<string, any> | undefined>;
|
|
93
|
-
type CachedFieldState<From, To, TypeProps = DefaultTypeProps> = import("@tanstack/vue-form").FieldState<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FieldAsyncValidateOrFn<From, OmegaFormReturn<From, To, TypeProps>["_keys"], DeepValue<From, OmegaFormReturn<From, To, TypeProps>["_keys"]>> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").StandardSchemaV1<From, To>, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormValidateOrFn<From> | undefined, import("@tanstack/vue-form").FormAsyncValidateOrFn<From> | undefined>;
|
|
94
|
-
export interface OmegaFormReturn<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> extends OF<From, To> {
|
|
95
|
-
_paths: FieldPath<From>;
|
|
96
|
-
_keys: NestedKeyOf<From>;
|
|
97
|
-
_schema: S.Codec<To, From, never>;
|
|
98
|
-
Input: <Name extends OmegaFormReturn<From, To, TypeProps>["_paths"]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
99
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & TypeProps & Partial<{}>> & BaseProps<From, Name> & import("vue").PublicProps;
|
|
100
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
101
|
-
attrs: any;
|
|
102
|
-
slots: {
|
|
103
|
-
default?(props: MergedInputProps<From, Name>): void;
|
|
104
|
-
label?: (props: {
|
|
105
|
-
required: boolean;
|
|
106
|
-
id: string;
|
|
107
|
-
label: string;
|
|
108
|
-
}) => void;
|
|
109
|
-
};
|
|
110
|
-
emit: {};
|
|
111
|
-
}>) => import("vue").VNode & {
|
|
112
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
113
|
-
};
|
|
114
|
-
Errors: (__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
115
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}>> & import("vue").PublicProps;
|
|
116
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
117
|
-
attrs: any;
|
|
118
|
-
slots: {
|
|
119
|
-
default: (props: {
|
|
120
|
-
errors: readonly OmegaError[];
|
|
121
|
-
showedGeneralErrors: string[];
|
|
122
|
-
}) => void;
|
|
123
|
-
};
|
|
124
|
-
emit: {};
|
|
125
|
-
}>) => import("vue").VNode & {
|
|
126
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
127
|
-
};
|
|
128
|
-
TaggedUnion: <Name extends OmegaFormReturn<From, To, TypeProps>["_keys"]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
129
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
130
|
-
name?: Name;
|
|
131
|
-
type?: "select" | "radio";
|
|
132
|
-
options: import("./InputProps").TaggedUnionOptionsArray<From, Name>;
|
|
133
|
-
_debugName?: [NoInfer<Name>];
|
|
134
|
-
label?: string;
|
|
135
|
-
} & {}> & import("vue").PublicProps;
|
|
136
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
137
|
-
attrs: any;
|
|
138
|
-
slots: Record<string, (props: {
|
|
139
|
-
field: import("@tanstack/vue-form").FieldApi<From, Name, DeepValue<From, Name>, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
140
|
-
state: import("@tanstack/vue-form").FieldState<From, Name, DeepValue<From, Name>, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
141
|
-
}) => any>;
|
|
142
|
-
emit: {};
|
|
143
|
-
}>) => import("vue").VNode & {
|
|
144
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
145
|
-
};
|
|
146
|
-
Array: <Name extends OmegaFormReturn<From, To, TypeProps>["_keys"]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
147
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & (Omit<OmegaArrayProps<From, To, Name>, "form">) & {}> & import("vue").PublicProps;
|
|
148
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
149
|
-
attrs: any;
|
|
150
|
-
slots: {
|
|
151
|
-
"pre-array"?: (props: {
|
|
152
|
-
field: CachedFieldApi<From, To, TypeProps>;
|
|
153
|
-
state: CachedFieldState<From, To, TypeProps>;
|
|
154
|
-
}) => any;
|
|
155
|
-
} & {
|
|
156
|
-
default?: (props: {
|
|
157
|
-
subField: CachedFieldApi<From, To, TypeProps>;
|
|
158
|
-
subState: CachedFieldState<From, To, TypeProps>;
|
|
159
|
-
index: number;
|
|
160
|
-
field: CachedFieldApi<From, To, TypeProps>;
|
|
161
|
-
}) => any;
|
|
162
|
-
} & {
|
|
163
|
-
"post-array"?: (props: {
|
|
164
|
-
field: CachedFieldApi<From, To, TypeProps>;
|
|
165
|
-
state: CachedFieldState<From, To, TypeProps>;
|
|
166
|
-
}) => any;
|
|
167
|
-
} & {
|
|
168
|
-
field?: (props: {
|
|
169
|
-
field: CachedFieldApi<From, To, TypeProps>;
|
|
170
|
-
}) => any;
|
|
171
|
-
};
|
|
172
|
-
emit: {};
|
|
173
|
-
}>) => import("vue").VNode & {
|
|
174
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
175
|
-
};
|
|
176
|
-
AutoGen: <Name extends OmegaFormReturn<From, To, TypeProps>["_keys"]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
177
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
178
|
-
pick?: OmegaFormReturn<From, To, TypeProps>["_keys"][];
|
|
179
|
-
omit?: OmegaFormReturn<From, To, TypeProps>["_keys"][];
|
|
180
|
-
labelMap?: (key: OmegaFormReturn<From, To, TypeProps>["_keys"]) => string | undefined;
|
|
181
|
-
filterMap?: <M extends OmegaAutoGenMeta<From, To, Name>>(key: OmegaFormReturn<From, To, TypeProps>["_keys"], meta: M) => boolean | M;
|
|
182
|
-
order?: OmegaFormReturn<From, To, TypeProps>["_keys"][];
|
|
183
|
-
sort?: Order.Order<OmegaAutoGenMeta<From, To, Name>>;
|
|
184
|
-
} & {}> & import("vue").PublicProps;
|
|
185
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
186
|
-
attrs: any;
|
|
187
|
-
slots: {
|
|
188
|
-
default(props: {
|
|
189
|
-
child: OmegaAutoGenMeta<From, To, Name>;
|
|
190
|
-
}): void;
|
|
191
|
-
};
|
|
192
|
-
emit: {};
|
|
193
|
-
}>) => import("vue").VNode & {
|
|
194
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
195
|
-
};
|
|
196
|
-
Form: <K extends keyof OmegaFormState<To, From>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
197
|
-
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
|
|
198
|
-
disabled?: boolean;
|
|
199
|
-
subscribe?: K[];
|
|
200
|
-
} & {}> & import("vue").PublicProps;
|
|
201
|
-
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
202
|
-
attrs: any;
|
|
203
|
-
slots: {
|
|
204
|
-
default(props: {
|
|
205
|
-
subscribedValues: K[] extends undefined[] ? Record<string, never> : Pick<OmegaFormState<From, To>, K>;
|
|
206
|
-
}): void;
|
|
207
|
-
};
|
|
208
|
-
emit: {};
|
|
209
|
-
}>) => import("vue").VNode & {
|
|
210
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
211
|
-
};
|
|
212
|
-
}
|
|
213
|
-
export declare const useOmegaForm: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps>(schema: S.Codec<To, From, never>, tanstackFormOptions?: NoInfer<FormProps<From, To>>, omegaConfig?: OmegaConfig<To>) => OmegaFormReturn<From, To, TypeProps>;
|
|
214
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type makeIntl } from "@effect-app/vue";
|
|
2
|
-
import { S } from "effect-app";
|
|
3
|
-
import { type InjectionKey } from "vue";
|
|
4
|
-
export declare const useIntlKey: InjectionKey<ReturnType<typeof makeIntl>["useIntl"]>;
|
|
5
|
-
export declare const useIntl: () => {
|
|
6
|
-
locale: import("vue").Ref<string, string>;
|
|
7
|
-
trans: (id: string, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>>) => string;
|
|
8
|
-
readonly formatMessage: (descriptor: import("@formatjs/intl").MessageDescriptor, values?: Record<string, import("intl-messageformat").PrimitiveType | import("intl-messageformat").FormatXMLElementFn<string, string>>, opts?: import("intl-messageformat").Options) => string;
|
|
9
|
-
readonly intl: import("@effect-app/vue").IntlShape<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare const provideIntl: (intl: ReturnType<typeof makeIntl>["useIntl"]) => void;
|
|
12
|
-
/**
|
|
13
|
-
* Recursively extracts the source AST from a transformation chain.
|
|
14
|
-
* If the provided AST is a transformation, it follows the chain to find the original source AST.
|
|
15
|
-
*
|
|
16
|
-
* @param ast - The AST node to extract the transformation source from
|
|
17
|
-
* @returns The source AST at the end of the transformation chain
|
|
18
|
-
*/
|
|
19
|
-
export declare function getTransformationFrom(ast: S.AST.AST): S.AST.AST;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import e from "./vue-components4.es.js";
|
|
2
|
-
import { useOnClose as t, usePreventClose as n } from "./vue-components7.es.js";
|
|
3
|
-
import r from "./vue-components9.es.js";
|
|
4
|
-
import { getTransformationFrom as i, provideIntl as a, useIntl as o, useIntlKey as s } from "./vue-components11.es.js";
|
|
5
|
-
import { createMeta as c, deepMerge as l, defaultsValueFromSchema as u, duplicateSchema as d, generateInputStandardSchemaFromFieldMeta as f, generateMetaFromSchema as p, getInputType as m, isNullableOrUndefined as h, toFormSchema as g } from "./vue-components12.es.js";
|
|
6
|
-
import _ from "./vue-components50.es.js";
|
|
7
|
-
import v from "./vue-components52.es.js";
|
|
8
|
-
import y from "./vue-components54.es.js";
|
|
9
|
-
import b from "./vue-components56.es.js";
|
|
10
|
-
import { useOmegaForm as x } from "./vue-components61.es.js";
|
|
11
|
-
import { createUseFormWithCustomInput as S } from "./vue-components62.es.js";
|
|
12
|
-
import { components_exports as C } from "./vue-components64.es.js";
|
|
13
|
-
//#region src/index.ts
|
|
14
|
-
function w(e) {
|
|
15
|
-
for (let t in C) if (Object.prototype.hasOwnProperty.call(C, t)) {
|
|
16
|
-
let n = C[t];
|
|
17
|
-
n && typeof n == "object" && e.component(t, n);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
var T = { install: w };
|
|
21
|
-
//#endregion
|
|
22
|
-
export { e as CommandButton, r as Dialog, v as OmegaInput, b as OmegaTaggedUnion, y as OmegaTaggedUnionInternal, _ as OmegaVuetifyInput, c as createMeta, S as createUseFormWithCustomInput, l as deepMerge, T as default, u as defaultsValueFromSchema, d as duplicateSchema, f as generateInputStandardSchemaFromFieldMeta, p as generateMetaFromSchema, m as getInputType, i as getTransformationFrom, h as isNullableOrUndefined, a as provideIntl, g as toFormSchema, o as useIntl, s as useIntlKey, x as useOmegaForm, t as useOnClose, n as usePreventClose };
|