Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@formvuelate/plugin-vee-validate

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formvuelate/plugin-vee-validate - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

6

dist/formvuelate-plugin-vee-validate.cjs.js
/**
* @formvuelate/plugin-vee-validate v1.0.4
* @formvuelate/plugin-vee-validate v1.0.5
* (c) 2021 Abdelrahman Awad <logaretm1@gmail.com>

@@ -79,3 +79,3 @@ * @license MIT

// Map components in schema to enhanced versions with `useField`
var formSchema = mapElementsInSchema(parsedSchema.value, mapField);
var formSchemaWithVeeValidate = vue.computed(function () { return mapElementsInSchema(parsedSchema.value, mapField); });

@@ -95,3 +95,3 @@ // override the submit function with one that triggers validation

}),
parsedSchema: vue.computed(function () { return formSchema; })})
parsedSchema: formSchemaWithVeeValidate})
}

@@ -98,0 +98,0 @@ }

/**
* @formvuelate/plugin-vee-validate v1.0.4
* @formvuelate/plugin-vee-validate v1.0.5
* (c) 2021 Abdelrahman Awad <logaretm1@gmail.com>

@@ -75,3 +75,3 @@ * @license MIT

// Map components in schema to enhanced versions with `useField`
var formSchema = mapElementsInSchema(parsedSchema.value, mapField);
var formSchemaWithVeeValidate = computed(function () { return mapElementsInSchema(parsedSchema.value, mapField); });

@@ -91,3 +91,3 @@ // override the submit function with one that triggers validation

}),
parsedSchema: computed(function () { return formSchema; })})
parsedSchema: formSchemaWithVeeValidate})
}

@@ -94,0 +94,0 @@ }

/**
* @formvuelate/plugin-vee-validate v1.0.4
* @formvuelate/plugin-vee-validate v1.0.5
* (c) 2021 Abdelrahman Awad <logaretm1@gmail.com>

@@ -78,3 +78,3 @@ * @license MIT

// Map components in schema to enhanced versions with `useField`
var formSchema = mapElementsInSchema(parsedSchema.value, mapField);
var formSchemaWithVeeValidate = vue.computed(function () { return mapElementsInSchema(parsedSchema.value, mapField); });

@@ -94,3 +94,3 @@ // override the submit function with one that triggers validation

}),
parsedSchema: vue.computed(function () { return formSchema; })})
parsedSchema: formSchemaWithVeeValidate})
}

@@ -97,0 +97,0 @@ }

/**
* @formvuelate/plugin-vee-validate v1.0.4
* @formvuelate/plugin-vee-validate v1.0.5
* (c) 2021 Abdelrahman Awad <logaretm1@gmail.com>

@@ -7,2 +7,2 @@ * @license MIT

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("vee-validate")):"function"==typeof define&&define.amd?define(["exports","vue","vee-validate"],t):t(e["@formvuelate/pluginVeeValidate"]={},e.Vue,e.VeeValidate)}(this,function(e,g,j){"use strict";var c=function(e,t){return e.map(function(e){return e.map(function(e){return t(e)})})};function t(e){return{validation:e}}function d(p,h,y){void 0===y&&(y="");var b=p.component;return{name:"withFieldWrapper",props:{modelValue:{type:[String,Number],default:void 0},validations:{type:[String,Object,Function],default:void 0}},setup:function(e,t){var i=t.attrs,n=g.toRefs(e),r=n.validations,a=n.modelValue,o=a?a.value:void 0,u=y?y+"."+i.model:i.model,s=j.useField(u,r,{initialValue:o}),c=s.value,d=s.errorMessage,l=s.meta,m=s.setDirty,f=s.setTouched,v=s.errors;return a&&g.watch(a,function(e){c.value=e}),function(){return g.h(g.resolveDynamicComponent(b),Object.assign({},e,i,h({errorMessage:g.unref(d),errors:g.unref(v),meta:l,setDirty:m,setTouched:f},p)))}}}}e.mapElementsInSchema=c,e.default=function(e){var s=e&&e.mapProps||t;return function(e){var t=e.parsedSchema,i=e.formBinds,n=g.getCurrentInstance().attrs,r=j.useForm({validationSchema:n["validation-schema"]||n.validationSchema,initialErrors:n["initial-errors"]||n.initialErrors,initialDirty:n["initial-dirty"]||n.initialDirty,initialTouched:n["initial-touched"]||n.initialTouched}).handleSubmit,a=c(t.value,function t(i,n){if(void 0===n&&(n=""),i.schema){n=n?n+"."+i.model:i.model;var e=Array.isArray(i.schema)?i.schema:Object.keys(i.schema).map(function(e){return Object.assign({},{model:e},i.schema[e])});return Object.assign({},i,{schema:e.map(function(e){return t(e,n)})})}return Object.assign({},i,{component:g.markRaw(d(i,s,n))})}),o=i.value.onSubmit,u=r(function(e,t){var i=t.evt;o(i)});return Object.assign({},e,{formBinds:g.computed(function(){return Object.assign({},e.formBinds.value,{onSubmit:u})}),parsedSchema:g.computed(function(){return a})})}},e.withField=d,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("vee-validate")):"function"==typeof define&&define.amd?define(["exports","vue","vee-validate"],t):t(e["@formvuelate/pluginVeeValidate"]={},e.Vue,e.VeeValidate)}(this,function(e,g,j){"use strict";var d=function(e,t){return e.map(function(e){return e.map(function(e){return t(e)})})};function t(e){return{validation:e}}function l(p,h,y){void 0===y&&(y="");var b=p.component;return{name:"withFieldWrapper",props:{modelValue:{type:[String,Number],default:void 0},validations:{type:[String,Object,Function],default:void 0}},setup:function(e,t){var i=t.attrs,n=g.toRefs(e),r=n.validations,a=n.modelValue,o=a?a.value:void 0,u=y?y+"."+i.model:i.model,s=j.useField(u,r,{initialValue:o}),c=s.value,d=s.errorMessage,l=s.meta,m=s.setDirty,f=s.setTouched,v=s.errors;return a&&g.watch(a,function(e){c.value=e}),function(){return g.h(g.resolveDynamicComponent(b),Object.assign({},e,i,h({errorMessage:g.unref(d),errors:g.unref(v),meta:l,setDirty:m,setTouched:f},p)))}}}}e.mapElementsInSchema=d,e.default=function(e){var c=e&&e.mapProps||t;return function(e){var t=e.parsedSchema,i=e.formBinds,n=g.getCurrentInstance().attrs,r=j.useForm({validationSchema:n["validation-schema"]||n.validationSchema,initialErrors:n["initial-errors"]||n.initialErrors,initialDirty:n["initial-dirty"]||n.initialDirty,initialTouched:n["initial-touched"]||n.initialTouched}).handleSubmit;function a(t,i){if(void 0===i&&(i=""),t.schema){i=i?i+"."+t.model:t.model;var e=Array.isArray(t.schema)?t.schema:Object.keys(t.schema).map(function(e){return Object.assign({},{model:e},t.schema[e])});return Object.assign({},t,{schema:e.map(function(e){return a(e,i)})})}return Object.assign({},t,{component:g.markRaw(l(t,c,i))})}var o=g.computed(function(){return d(t.value,a)}),u=i.value.onSubmit,s=r(function(e,t){var i=t.evt;u(i)});return Object.assign({},e,{formBinds:g.computed(function(){return Object.assign({},e.formBinds.value,{onSubmit:s})}),parsedSchema:o})}},e.withField=l,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "@formvuelate/plugin-vee-validate",
"version": "1.0.4",
"version": "1.0.5",
"description": "FormVueLate Vee-validate plugin",

@@ -5,0 +5,0 @@ "main": "dist/formvuelate-plugin-vee-validate.cjs.js",

@@ -66,3 +66,3 @@ import { toRefs, h, computed, markRaw, watch, getCurrentInstance, unref, resolveDynamicComponent } from 'vue'

// Map components in schema to enhanced versions with `useField`
const formSchema = mapElementsInSchema(parsedSchema.value, mapField)
const formSchemaWithVeeValidate = computed(() => mapElementsInSchema(parsedSchema.value, mapField))

@@ -83,3 +83,3 @@ // override the submit function with one that triggers validation

}),
parsedSchema: computed(() => formSchema)
parsedSchema: formSchemaWithVeeValidate
}

@@ -86,0 +86,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc