vee-validate 4.14.6 → 4.15.0

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.
@@ -391,6 +391,7 @@ interface BaseInputBinds<TValue = unknown> {
391
391
  onInput: (e: Event) => void;
392
392
  }
393
393
  interface PrivateFormContext<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues> extends FormActions<TValues> {
394
+ name: string;
394
395
  formId: number;
395
396
  values: TValues;
396
397
  initialValues: Ref<Partial<TValues>>;
@@ -956,7 +957,7 @@ declare const Form: {
956
957
  default: boolean;
957
958
  };
958
959
  onSubmit: {
959
- type: PropType<SubmissionHandler>;
960
+ type: PropType<SubmissionHandler<GenericObject>>;
960
961
  default: any;
961
962
  };
962
963
  onInvalidSubmit: {
@@ -967,6 +968,10 @@ declare const Form: {
967
968
  type: BooleanConstructor;
968
969
  default: boolean;
969
970
  };
971
+ name: {
972
+ type: StringConstructor;
973
+ default: string;
974
+ };
970
975
  }>>, () => VNode<vue.RendererNode, vue.RendererElement, {
971
976
  [key: string]: any;
972
977
  }> | vue.Slot<any> | VNode<vue.RendererNode, vue.RendererElement, {
@@ -1001,7 +1006,7 @@ declare const Form: {
1001
1006
  default: boolean;
1002
1007
  };
1003
1008
  onSubmit: {
1004
- type: PropType<SubmissionHandler>;
1009
+ type: PropType<SubmissionHandler<GenericObject>>;
1005
1010
  default: any;
1006
1011
  };
1007
1012
  onInvalidSubmit: {
@@ -1012,8 +1017,13 @@ declare const Form: {
1012
1017
  type: BooleanConstructor;
1013
1018
  default: boolean;
1014
1019
  };
1020
+ name: {
1021
+ type: StringConstructor;
1022
+ default: string;
1023
+ };
1015
1024
  }>>, {
1016
- onSubmit: SubmissionHandler;
1025
+ name: string;
1026
+ onSubmit: SubmissionHandler<GenericObject>;
1017
1027
  as: string;
1018
1028
  initialValues: Record<string, any>;
1019
1029
  validateOnMount: boolean;
@@ -1055,7 +1065,7 @@ declare const Form: {
1055
1065
  default: boolean;
1056
1066
  };
1057
1067
  onSubmit: {
1058
- type: PropType<SubmissionHandler>;
1068
+ type: PropType<SubmissionHandler<GenericObject>>;
1059
1069
  default: any;
1060
1070
  };
1061
1071
  onInvalidSubmit: {
@@ -1066,6 +1076,10 @@ declare const Form: {
1066
1076
  type: BooleanConstructor;
1067
1077
  default: boolean;
1068
1078
  };
1079
+ name: {
1080
+ type: StringConstructor;
1081
+ default: string;
1082
+ };
1069
1083
  }>>, () => VNode<vue.RendererNode, vue.RendererElement, {
1070
1084
  [key: string]: any;
1071
1085
  }> | vue.Slot<any> | VNode<vue.RendererNode, vue.RendererElement, {
@@ -1075,7 +1089,8 @@ declare const Form: {
1075
1089
  [key: string]: any;
1076
1090
  }>[];
1077
1091
  }, {}, {}, {}, {
1078
- onSubmit: SubmissionHandler;
1092
+ name: string;
1093
+ onSubmit: SubmissionHandler<GenericObject>;
1079
1094
  as: string;
1080
1095
  initialValues: Record<string, any>;
1081
1096
  validateOnMount: boolean;
@@ -1114,7 +1129,7 @@ declare const Form: {
1114
1129
  default: boolean;
1115
1130
  };
1116
1131
  onSubmit: {
1117
- type: PropType<SubmissionHandler>;
1132
+ type: PropType<SubmissionHandler<GenericObject>>;
1118
1133
  default: any;
1119
1134
  };
1120
1135
  onInvalidSubmit: {
@@ -1125,6 +1140,10 @@ declare const Form: {
1125
1140
  type: BooleanConstructor;
1126
1141
  default: boolean;
1127
1142
  };
1143
+ name: {
1144
+ type: StringConstructor;
1145
+ default: string;
1146
+ };
1128
1147
  }>>, () => VNode<vue.RendererNode, vue.RendererElement, {
1129
1148
  [key: string]: any;
1130
1149
  }> | vue.Slot<any> | VNode<vue.RendererNode, vue.RendererElement, {
@@ -1134,7 +1153,8 @@ declare const Form: {
1134
1153
  [key: string]: any;
1135
1154
  }>[];
1136
1155
  }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, {
1137
- onSubmit: SubmissionHandler;
1156
+ name: string;
1157
+ onSubmit: SubmissionHandler<GenericObject>;
1138
1158
  as: string;
1139
1159
  initialValues: Record<string, any>;
1140
1160
  validateOnMount: boolean;
@@ -1324,6 +1344,7 @@ interface FormOptions<TValues extends GenericObject, TOutput = TValues, TSchema
1324
1344
  initialTouched?: FlattenAndSetPathsType<TValues, boolean>;
1325
1345
  validateOnMount?: boolean;
1326
1346
  keepValuesOnUnmount?: MaybeRef<boolean>;
1347
+ name?: string;
1327
1348
  }
1328
1349
  declare function useForm<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues, TSchema extends FormSchema<TValues> | TypedSchema<TValues, TOutput> = FormSchema<TValues> | TypedSchema<TValues, TOutput>>(opts?: FormOptions<TValues, TOutput, TSchema>): FormContext<TValues, TOutput>;
1329
1350
  declare function useFormContext<TValues extends GenericObject = GenericObject, TOutput extends GenericObject = TValues>(): FormContext<TValues, TOutput>;