@effect-app/vue-components 2.4.7 → 2.4.9

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>, 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;
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;
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>, 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
+ 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<{
5
5
  props: __VLS_PrettifyLocal<{
6
- form: OmegaInputProps<From, To, Name>["form"];
6
+ form: OmegaInputProps<From, To>["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, Name>>(key: DeepKeys<From>, meta: M) => boolean | M;
10
+ filterMap?: <M extends OmegaAutoGenMeta<From, To>>(key: DeepKeys<From>, meta: M) => boolean | M;
11
11
  order?: DeepKeys<From>[];
12
- sort?: Order.Order<OmegaAutoGenMeta<From, To, Name>>;
12
+ sort?: Order.Order<OmegaAutoGenMeta<From, To>>;
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, Name>;
18
+ child: OmegaAutoGenMeta<From, To>;
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, Name> & DefaultTypeProps> & import("vue").PublicProps;
5
+ props: __VLS_PrettifyLocal<BaseProps<From> & DefaultTypeProps> & import("vue").PublicProps;
6
6
  expose: (exposed: {}) => void;
7
7
  attrs: any;
8
8
  slots: {
@@ -3,13 +3,16 @@ 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
- 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}`>;
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}`>>;
8
11
  }[keyof T];
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}`>;
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}`>>;
11
14
  }[keyof T];
12
- export type BaseProps<From, TName extends FieldPath<From>> = {
15
+ export type BaseProps<From, TName extends FieldPath<From> = FieldPath<From>> = {
13
16
  /**
14
17
  * Will fallback to i18n when not specified.
15
18
  * Can also be provided via #label slot for custom HTML labels.
@@ -37,19 +40,19 @@ export type DefaultTypeProps = {
37
40
  value: unknown;
38
41
  }[];
39
42
  };
40
- export type OmegaInputPropsBase<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>> = {
43
+ export type OmegaInputPropsBase<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>> = {
41
44
  form: OF<From, To> & {
42
45
  meta: MetaRecord<From>;
43
46
  i18nNamespace?: string;
44
47
  };
45
- } & BaseProps<From, Name>;
46
- export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>, TypeProps = DefaultTypeProps> = {
48
+ } & BaseProps<From>;
49
+ export type OmegaInputProps<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> = {
47
50
  form: OmegaFormReturn<From, To, TypeProps> & {
48
51
  meta: MetaRecord<From>;
49
52
  i18nNamespace?: string;
50
53
  };
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"> & {
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"> & {
53
56
  name: DeepKeys<From>;
54
57
  defaultItems?: DeepValue<From, DeepKeys<From>>;
55
58
  items?: "please use `defaultItems` instead";
@@ -146,7 +149,7 @@ export declare const generateInputStandardSchemaFromFieldMeta: (meta: FieldMeta)
146
149
  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>> & {
147
150
  withDefault: S.PropertySignature<":", A | null, never, ":", I | null, true, R>;
148
151
  }, S.SchemaClass<A, A, never>>;
149
- export type OmegaAutoGenMeta<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, Name extends DeepKeys<From>> = Omit<OmegaInputProps<From, To, Name>, "form">;
152
+ export type OmegaAutoGenMeta<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>> = Omit<OmegaInputProps<From, To>, "form">;
150
153
  declare const supportedInputs: readonly ["button", "checkbox", "color", "date", "email", "number", "password", "radio", "range", "search", "submit", "tel", "text", "time", "url"];
151
154
  export type SupportedInputs = typeof supportedInputs[number];
152
155
  export declare const getInputType: (input: string) => SupportedInputs;
@@ -1,7 +1,6 @@
1
- import { type DeepKeys } from "@tanstack/vue-form";
2
1
  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_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<OmegaInputPropsBase<From, To, Name>> & import("vue").PublicProps;
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;
5
4
  expose: (exposed: {}) => void;
6
5
  attrs: any;
7
6
  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, OmegaArrayProps, OmegaAutoGenMeta, OmegaError, type OmegaFormApi, OmegaFormState } from "./OmegaFormStuff";
5
+ import { BaseProps, DefaultTypeProps, FieldPath, type FormProps, type MetaRecord, type NestedKeyOf, 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,127 +73,104 @@ 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>;
81
76
  export interface OmegaFormReturn<From extends Record<PropertyKey, any>, To extends Record<PropertyKey, any>, TypeProps = DefaultTypeProps> extends OF<From, To> {
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;
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;
90
83
  label?: (props: {
91
84
  required: boolean;
92
85
  id: string;
93
86
  label: string;
94
- }) => void;
87
+ }) => any;
95
88
  };
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: {
89
+ attrs?: Record<string, any>;
90
+ }) => import("vue").VNode;
91
+ Errors: (props?: {
92
+ key?: string | number;
93
+ ref?: any;
94
+ }, context?: {
95
+ slots?: {
105
96
  default: (props: {
106
97
  errors: readonly OmegaError[];
107
98
  showedGeneralErrors: string[];
108
- }) => void;
99
+ }) => any;
109
100
  };
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: {
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: {
124
112
  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>;
125
113
  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>;
126
114
  }) => any>;
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: {
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?: {
136
124
  "pre-array"?: (props: {
137
- field: CachedFieldApi<From, To, TypeProps>;
138
- state: CachedFieldState<From, To, TypeProps>;
125
+ field: any;
126
+ state: any;
139
127
  }) => any;
140
- } & {
141
128
  default?: (props: {
142
- subField: CachedFieldApi<From, To, TypeProps>;
143
- subState: CachedFieldState<From, To, TypeProps>;
129
+ subField: any;
130
+ subState: any;
144
131
  index: number;
145
- field: CachedFieldApi<From, To, TypeProps>;
132
+ field: any;
146
133
  }) => any;
147
- } & {
148
134
  "post-array"?: (props: {
149
- field: CachedFieldApi<From, To, TypeProps>;
150
- state: CachedFieldState<From, To, TypeProps>;
135
+ field: any;
136
+ state: any;
151
137
  }) => any;
152
- } & {
153
138
  field?: (props: {
154
- field: CachedFieldApi<From, To, TypeProps>;
139
+ field: any;
155
140
  }) => any;
156
141
  };
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: {
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?: {
173
155
  default(props: {
174
- child: OmegaAutoGenMeta<From, To, Name>;
175
- }): void;
156
+ child: OmegaAutoGenMeta<From, To>;
157
+ }): any;
176
158
  };
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: {
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?: {
189
168
  default(props: {
190
169
  subscribedValues: K[] extends undefined[] ? Record<string, never> : Pick<OmegaFormState<From, To>, K>;
191
- }): void;
170
+ }): any;
192
171
  };
193
- emit: {};
194
- }>) => import("vue").VNode & {
195
- __ctx?: Awaited<typeof __VLS_setup>;
196
- };
172
+ attrs?: Record<string, any>;
173
+ }) => import("vue").VNode;
197
174
  }
198
175
  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>;
199
176
  export {};