@effect-app/vue-components 2.4.9 → 2.4.10

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.
@@ -1,7 +1,7 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { type OmegaArrayProps } from "./OmegaFormStuff";
3
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__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<{
4
- props: __VLS_PrettifyLocal<OmegaArrayProps<From, To>> & import("vue").PublicProps;
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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<OmegaArrayProps<From, To, Name>> & import("vue").PublicProps;
5
5
  expose: (exposed: {}) => void;
6
6
  attrs: any;
7
7
  slots: {
@@ -1,21 +1,21 @@
1
1
  import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import { Order } from "effect-app";
3
3
  import { type OmegaAutoGenMeta, type OmegaInputProps } from "./OmegaFormStuff";
4
- declare const __VLS_export: <From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>>(__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<{
4
+ declare const __VLS_export: <From extends Record<PropertyKey, string>, To extends Record<PropertyKey, string>, 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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<{
6
- form: OmegaInputProps<From, To>["form"];
6
+ form: OmegaInputProps<From, To, Name>["form"];
7
7
  pick?: DeepKeys<From>[];
8
8
  omit?: DeepKeys<From>[];
9
9
  labelMap?: (key: DeepKeys<From>) => string | undefined;
10
- filterMap?: <M extends OmegaAutoGenMeta<From, To>>(key: DeepKeys<From>, meta: M) => boolean | M;
10
+ filterMap?: <M extends OmegaAutoGenMeta<From, To, Name>>(key: DeepKeys<From>, meta: M) => boolean | M;
11
11
  order?: DeepKeys<From>[];
12
- sort?: Order.Order<OmegaAutoGenMeta<From, To>>;
12
+ sort?: Order.Order<OmegaAutoGenMeta<From, To, Name>>;
13
13
  }> & import("vue").PublicProps;
14
14
  expose: (exposed: {}) => void;
15
15
  attrs: any;
16
16
  slots: {
17
17
  default(props: {
18
- child: OmegaAutoGenMeta<From, To>;
18
+ child: OmegaAutoGenMeta<From, To, Name>;
19
19
  }): void;
20
20
  };
21
21
  emit: {};
@@ -2,7 +2,7 @@ import { type DeepKeys } from "@tanstack/vue-form";
2
2
  import type { MergedInputProps } from "./InputProps";
3
3
  import type { BaseProps, DefaultTypeProps } from "./OmegaFormStuff";
4
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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
- props: __VLS_PrettifyLocal<BaseProps<From> & DefaultTypeProps> & import("vue").PublicProps;
5
+ props: __VLS_PrettifyLocal<BaseProps<From, Name> & DefaultTypeProps> & import("vue").PublicProps;
6
6
  expose: (exposed: {}) => void;
7
7
  attrs: any;
8
8
  slots: {
@@ -3,16 +3,13 @@ import { type DeepKeys, type DeepValue, type FieldAsyncValidateOrFn, type FieldV
3
3
  import { type RuntimeFiber } from "effect/Fiber";
4
4
  import { type OmegaFieldInternalApi } from "./InputProps";
5
5
  import { type OF, type OmegaFormReturn } from "./useOmegaForm";
6
- type Compute<T> = {
7
- [K in keyof T]: T[K];
8
- } & {};
9
- export type FieldPath<T> = unknown extends T ? string : T extends string | boolean | number | null | undefined | symbol | bigint ? "" : T extends ReadonlyArray<infer U> ? Compute<FieldPath_<U, `[${number}]`>> : {
10
- [K in keyof T]: Compute<FieldPath_<T[K], `${K & string}`>>;
6
+ export type FieldPath<T> = unknown extends T ? string : T extends string | boolean | number | null | undefined | symbol | bigint ? "" : T extends ReadonlyArray<infer U> ? FieldPath_<U, `[${number}]`> : {
7
+ [K in keyof T]: FieldPath_<T[K], `${K & string}`>;
11
8
  }[keyof T];
12
- export type FieldPath_<T, Path extends string> = unknown extends T ? string : T extends string | boolean | number | null | undefined | symbol | bigint ? Path : T extends ReadonlyArray<infer U> ? Compute<FieldPath_<U, `${Path}[${number}]`>> | Path : {
13
- [K in keyof T]: Compute<FieldPath_<T[K], `${Path}.${K & string}`>>;
9
+ export type FieldPath_<T, Path extends string> = unknown extends T ? string : T extends string | boolean | number | null | undefined | symbol | bigint ? Path : T extends ReadonlyArray<infer U> ? FieldPath_<U, `${Path}[${number}]`> | Path : {
10
+ [K in keyof T]: FieldPath_<T[K], `${Path}.${K & string}`>;
14
11
  }[keyof T];
15
- export type BaseProps<From, TName extends FieldPath<From> = FieldPath<From>> = {
12
+ export type BaseProps<From, TName extends FieldPath<From>> = {
16
13
  /**
17
14
  * Will fallback to i18n when not specified.
18
15
  * Can also be provided via #label slot for custom HTML labels.
@@ -40,19 +37,19 @@ export type DefaultTypeProps = {
40
37
  value: unknown;
41
38
  }[];
42
39
  };
43
- export type OmegaInputPropsBase<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>> = {
40
+ export type OmegaInputPropsBase<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>> = {
44
41
  form: OF<From, To> & {
45
42
  meta: MetaRecord<From>;
46
43
  i18nNamespace?: string;
47
44
  };
48
- } & BaseProps<From>;
49
- export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> = {
45
+ } & BaseProps<From, Name>;
46
+ export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>, TypeProps = DefaultTypeProps> = {
50
47
  form: OmegaFormReturn<From, To, TypeProps> & {
51
48
  meta: MetaRecord<From>;
52
49
  i18nNamespace?: string;
53
50
  };
54
- } & BaseProps<From>;
55
- export type OmegaArrayProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>> = Omit<OmegaInputProps<From, To>, "validators" | "options" | "label" | "type" | "items" | "name"> & {
51
+ } & BaseProps<From, Name>;
52
+ export type OmegaArrayProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>> = Omit<OmegaInputProps<From, To, Name>, "validators" | "options" | "label" | "type" | "items" | "name"> & {
56
53
  name: DeepKeys<From>;
57
54
  defaultItems?: DeepValue<From, DeepKeys<From>>;
58
55
  items?: "please use `defaultItems` instead";
@@ -149,7 +146,7 @@ export declare const generateInputStandardSchemaFromFieldMeta: (meta: FieldMeta)
149
146
  export declare const nullableInput: <A, I, R>(schema: S.Schema<A, I, R>, defaultValue: () => A) => S.transform<import("effect/Schema").NullOr<S.Schema<A, I, R>> & {
150
147
  withDefault: S.PropertySignature<":", A | null, never, ":", I | null, true, R>;
151
148
  }, S.SchemaClass<A, A, never>>;
152
- export type OmegaAutoGenMeta<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>> = Omit<OmegaInputProps<From, To>, "form">;
149
+ export type OmegaAutoGenMeta<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>> = Omit<OmegaInputProps<From, To, Name>, "form">;
153
150
  declare const supportedInputs: readonly ["button", "checkbox", "color", "date", "email", "number", "password", "radio", "range", "search", "submit", "tel", "text", "time", "url"];
154
151
  export type SupportedInputs = typeof supportedInputs[number];
155
152
  export declare const getInputType: (input: string) => SupportedInputs;
@@ -1,6 +1,7 @@
1
+ import { type DeepKeys } from "@tanstack/vue-form";
1
2
  import { type OmegaInputPropsBase } from "./OmegaFormStuff";
2
- declare const __VLS_export: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>>(__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<{
3
- props: __VLS_PrettifyLocal<OmegaInputPropsBase<From, To>> & import("vue").PublicProps;
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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
+ props: __VLS_PrettifyLocal<OmegaInputPropsBase<From, To, Name>> & import("vue").PublicProps;
4
5
  expose: (exposed: {}) => void;
5
6
  attrs: any;
6
7
  slots: {
@@ -2,7 +2,7 @@ import { type DeepKeys, DeepValue, StandardSchemaV1Issue, ValidationError, Valid
2
2
  import { Effect, Order, S } from "effect-app";
3
3
  import { ComputedRef, type InjectionKey } from "vue";
4
4
  import { MergedInputProps } from "./InputProps";
5
- import { BaseProps, DefaultTypeProps, FieldPath, type FormProps, type MetaRecord, type NestedKeyOf, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState } from "./OmegaFormStuff";
5
+ import { BaseProps, DefaultTypeProps, FieldPath, type FormProps, type MetaRecord, type NestedKeyOf, OmegaArrayProps, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState } from "./OmegaFormStuff";
6
6
  type keysRule<T> = {
7
7
  keys?: NestedKeyOf<T>[];
8
8
  banKeys?: "You should only use one of banKeys or keys, not both, moron";
@@ -73,104 +73,127 @@ export interface OF<From, To> extends OmegaFormApi<From, To> {
73
73
  };
74
74
  }
75
75
  export declare const OmegaFormKey: InjectionKey<OF<any, any>>;
76
+ type __VLS_PrettifyLocal<T> = {
77
+ [K in keyof T]: T[K];
78
+ } & {};
79
+ 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>;
80
+ 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>;
76
81
  export interface OmegaFormReturn<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> extends OF<From, To> {
77
- Input: <Name extends FieldPath<From>>(props: BaseProps<From, Name> & TypeProps & {
78
- key?: string | number;
79
- ref?: any;
80
- }, context?: {
81
- slots?: {
82
- default?(props: MergedInputProps<From, Name>): any;
82
+ _paths: FieldPath<From>;
83
+ _keys: DeepKeys<From>;
84
+ 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<{
85
+ 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;
86
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
87
+ attrs: any;
88
+ slots: {
89
+ default?(props: MergedInputProps<From, Name>): void;
83
90
  label?: (props: {
84
91
  required: boolean;
85
92
  id: string;
86
93
  label: string;
87
- }) => any;
94
+ }) => void;
88
95
  };
89
- attrs?: Record<string, any>;
90
- }) => import("vue").VNode;
91
- Errors: (props?: {
92
- key?: string | number;
93
- ref?: any;
94
- }, context?: {
95
- slots?: {
96
+ emit: {};
97
+ }>) => import("vue").VNode & {
98
+ __ctx?: Awaited<typeof __VLS_setup>;
99
+ };
100
+ 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<{
101
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & Partial<{}>> & import("vue").PublicProps;
102
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
103
+ attrs: any;
104
+ slots: {
96
105
  default: (props: {
97
106
  errors: readonly OmegaError[];
98
107
  showedGeneralErrors: string[];
99
- }) => any;
108
+ }) => void;
100
109
  };
101
- attrs?: Record<string, any>;
102
- }) => import("vue").VNode;
103
- TaggedUnion: <Name extends DeepKeys<From>>(props: {
104
- name: Name;
105
- type?: "select" | "radio";
106
- options: import("./InputProps").TaggedUnionOptionsArray<From, Name>;
107
- label?: string;
108
- key?: string | number;
109
- ref?: any;
110
- }, context?: {
111
- slots?: Record<string, (props: {
110
+ emit: {};
111
+ }>) => import("vue").VNode & {
112
+ __ctx?: Awaited<typeof __VLS_setup>;
113
+ };
114
+ 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<{
115
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
116
+ name: Name;
117
+ type?: "select" | "radio";
118
+ options: import("./InputProps").TaggedUnionOptionsArray<From, Name>;
119
+ label?: string;
120
+ } & {}> & import("vue").PublicProps;
121
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
122
+ attrs: any;
123
+ slots: Record<string, (props: {
112
124
  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>;
113
125
  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>;
114
126
  }) => any>;
115
- attrs?: Record<string, any>;
116
- }) => import("vue").VNode;
117
- Array: <Name extends DeepKeys<From>>(props: {
118
- name: Name;
119
- defaultItems?: DeepValue<From, Name>;
120
- key?: string | number;
121
- ref?: any;
122
- }, context?: {
123
- slots?: {
127
+ emit: {};
128
+ }>) => import("vue").VNode & {
129
+ __ctx?: Awaited<typeof __VLS_setup>;
130
+ };
131
+ 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<{
132
+ 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;
133
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
134
+ attrs: any;
135
+ slots: {
124
136
  "pre-array"?: (props: {
125
- field: any;
126
- state: any;
137
+ field: CachedFieldApi<From, To, TypeProps>;
138
+ state: CachedFieldState<From, To, TypeProps>;
127
139
  }) => any;
140
+ } & {
128
141
  default?: (props: {
129
- subField: any;
130
- subState: any;
142
+ subField: CachedFieldApi<From, To, TypeProps>;
143
+ subState: CachedFieldState<From, To, TypeProps>;
131
144
  index: number;
132
- field: any;
145
+ field: CachedFieldApi<From, To, TypeProps>;
133
146
  }) => any;
147
+ } & {
134
148
  "post-array"?: (props: {
135
- field: any;
136
- state: any;
149
+ field: CachedFieldApi<From, To, TypeProps>;
150
+ state: CachedFieldState<From, To, TypeProps>;
137
151
  }) => any;
152
+ } & {
138
153
  field?: (props: {
139
- field: any;
154
+ field: CachedFieldApi<From, To, TypeProps>;
140
155
  }) => any;
141
156
  };
142
- attrs?: Record<string, any>;
143
- }) => import("vue").VNode;
144
- AutoGen: (props: {
145
- pick?: DeepKeys<From>[];
146
- omit?: DeepKeys<From>[];
147
- labelMap?: (key: DeepKeys<From>) => string | undefined;
148
- filterMap?: <M extends OmegaAutoGenMeta<From, To>>(key: DeepKeys<From>, meta: M) => boolean | M;
149
- order?: DeepKeys<From>[];
150
- sort?: Order.Order<OmegaAutoGenMeta<From, To>>;
151
- key?: string | number;
152
- ref?: any;
153
- }, context?: {
154
- slots?: {
157
+ emit: {};
158
+ }>) => import("vue").VNode & {
159
+ __ctx?: Awaited<typeof __VLS_setup>;
160
+ };
161
+ 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<{
162
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
163
+ pick?: OmegaFormReturn<From, To, TypeProps>["_keys"][];
164
+ omit?: OmegaFormReturn<From, To, TypeProps>["_keys"][];
165
+ labelMap?: (key: OmegaFormReturn<From, To, TypeProps>["_keys"]) => string | undefined;
166
+ filterMap?: <M extends OmegaAutoGenMeta<From, To, Name>>(key: OmegaFormReturn<From, To, TypeProps>["_keys"], meta: M) => boolean | M;
167
+ order?: OmegaFormReturn<From, To, TypeProps>["_keys"][];
168
+ sort?: Order.Order<OmegaAutoGenMeta<From, To, Name>>;
169
+ } & {}> & import("vue").PublicProps;
170
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
171
+ attrs: any;
172
+ slots: {
155
173
  default(props: {
156
- child: OmegaAutoGenMeta<From, To>;
157
- }): any;
174
+ child: OmegaAutoGenMeta<From, To, Name>;
175
+ }): void;
158
176
  };
159
- attrs?: Record<string, any>;
160
- }) => import("vue").VNode;
161
- Form: <K extends keyof OmegaFormState<From, To>>(props: {
162
- disabled?: boolean;
163
- subscribe?: K[];
164
- key?: string | number;
165
- ref?: any;
166
- }, context?: {
167
- slots?: {
177
+ emit: {};
178
+ }>) => import("vue").VNode & {
179
+ __ctx?: Awaited<typeof __VLS_setup>;
180
+ };
181
+ 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<{
182
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, never> & {
183
+ disabled?: boolean;
184
+ subscribe?: K[];
185
+ } & {}> & import("vue").PublicProps;
186
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
187
+ attrs: any;
188
+ slots: {
168
189
  default(props: {
169
190
  subscribedValues: K[] extends undefined[] ? Record<string, never> : Pick<OmegaFormState<From, To>, K>;
170
- }): any;
191
+ }): void;
171
192
  };
172
- attrs?: Record<string, any>;
173
- }) => import("vue").VNode;
193
+ emit: {};
194
+ }>) => import("vue").VNode & {
195
+ __ctx?: Awaited<typeof __VLS_setup>;
196
+ };
174
197
  }
175
198
  export declare const useOmegaForm: <From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps>(schema: S.Schema<To, From, never>, tanstackFormOptions?: NoInfer<FormProps<From, To>>, omegaConfig?: OmegaConfig<To>) => OmegaFormReturn<From, To, TypeProps>;
176
199
  export {};