vee-validate 4.11.5 → 4.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vee-validate.d.ts
CHANGED
|
@@ -372,17 +372,17 @@ type BaseComponentBinds<TValue = any, TModel extends string = 'modelValue'> = Co
|
|
|
372
372
|
[k in TModel]: TValue;
|
|
373
373
|
};
|
|
374
374
|
type PublicPathState<TValue = unknown> = Omit<PathState<TValue>, 'bails' | 'label' | 'multiple' | 'fieldsCount' | 'validate' | 'id' | 'type' | '__flags'>;
|
|
375
|
-
interface ComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject> {
|
|
375
|
+
interface ComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject, TModel extends string = 'modelValue'> {
|
|
376
376
|
mapProps: (state: PublicPathState<TValue>) => TExtraProps;
|
|
377
377
|
validateOnBlur: boolean;
|
|
378
378
|
validateOnModelUpdate: boolean;
|
|
379
|
-
model:
|
|
379
|
+
model: TModel;
|
|
380
380
|
}
|
|
381
|
-
type LazyComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject> = (state: PublicPathState<TValue>) => Partial<{
|
|
381
|
+
type LazyComponentBindsConfig<TValue = unknown, TExtraProps extends GenericObject = GenericObject, TModel extends string = 'modelValue'> = (state: PublicPathState<TValue>) => Partial<{
|
|
382
382
|
props: TExtraProps;
|
|
383
383
|
validateOnBlur: boolean;
|
|
384
384
|
validateOnModelUpdate: boolean;
|
|
385
|
-
model:
|
|
385
|
+
model: TModel;
|
|
386
386
|
}>;
|
|
387
387
|
interface BaseInputBinds<TValue = unknown> {
|
|
388
388
|
value: TValue | undefined;
|
|
@@ -406,7 +406,7 @@ interface FormContext<TValues extends GenericObject = GenericObject, TOutput = T
|
|
|
406
406
|
values: TValues;
|
|
407
407
|
handleReset: () => void;
|
|
408
408
|
submitForm: (e?: unknown) => Promise<void>;
|
|
409
|
-
defineComponentBinds<TPath extends Path<TValues>, TValue = PathValue<TValues, TPath>, TModel extends string = 'modelValue', TExtras extends GenericObject = GenericObject>(path: MaybeRefOrGetter<TPath>, config?: Partial<ComponentBindsConfig<TValue, TExtras>> | LazyComponentBindsConfig<TValue, TExtras>): Ref<BaseComponentBinds<TValue, TModel> & TExtras>;
|
|
409
|
+
defineComponentBinds<TPath extends Path<TValues>, TValue = PathValue<TValues, TPath>, TModel extends string = 'modelValue', TExtras extends GenericObject = GenericObject>(path: MaybeRefOrGetter<TPath>, config?: Partial<ComponentBindsConfig<TValue, TExtras, TModel>> | LazyComponentBindsConfig<TValue, TExtras, TModel>): Ref<BaseComponentBinds<TValue, TModel> & TExtras>;
|
|
410
410
|
defineInputBinds<TPath extends Path<TValues>, TValue = PathValue<TValues, TPath>, TExtras extends GenericObject = GenericObject>(path: MaybeRefOrGetter<TPath>, config?: Partial<InputBindsConfig<TValue, TExtras>> | LazyInputBindsConfig<TValue, TExtras>): Ref<BaseInputBinds<TValue> & TExtras>;
|
|
411
411
|
}
|
|
412
412
|
|
package/dist/vee-validate.esm.js
CHANGED
package/dist/vee-validate.js
CHANGED
package/dist/vee-validate.min.js
CHANGED