@formvuelate/plugin-vee-validate
Advanced tools
Comparing version 1.0.1 to 1.0.2
/** | ||
* @formvuelate/plugin-vee-validate v1.0.1 | ||
* @formvuelate/plugin-vee-validate v1.0.2 | ||
* (c) 2020 Abdelrahman Awad <logaretm1@gmail.com> | ||
@@ -46,3 +46,6 @@ * @license MIT | ||
var ref$1 = veeValidate.useForm({ | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'] | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'], | ||
initialErrors: formAttrs['initial-errors'] || formAttrs['initialErrors'], | ||
initialDirty: formAttrs['initial-dirty'] || formAttrs['initialDirty'], | ||
initialTouched: formAttrs['initial-touched'] || formAttrs['initialTouched'], | ||
}); | ||
@@ -49,0 +52,0 @@ var handleSubmit = ref$1.handleSubmit; |
/** | ||
* @formvuelate/plugin-vee-validate v1.0.1 | ||
* @formvuelate/plugin-vee-validate v1.0.2 | ||
* (c) 2020 Abdelrahman Awad <logaretm1@gmail.com> | ||
@@ -42,3 +42,6 @@ * @license MIT | ||
var ref$1 = useForm({ | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'] | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'], | ||
initialErrors: formAttrs['initial-errors'] || formAttrs['initialErrors'], | ||
initialDirty: formAttrs['initial-dirty'] || formAttrs['initialDirty'], | ||
initialTouched: formAttrs['initial-touched'] || formAttrs['initialTouched'], | ||
}); | ||
@@ -45,0 +48,0 @@ var handleSubmit = ref$1.handleSubmit; |
/** | ||
* @formvuelate/plugin-vee-validate v1.0.1 | ||
* @formvuelate/plugin-vee-validate v1.0.2 | ||
* (c) 2020 Abdelrahman Awad <logaretm1@gmail.com> | ||
@@ -45,3 +45,6 @@ * @license MIT | ||
var ref$1 = veeValidate.useForm({ | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'] | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'], | ||
initialErrors: formAttrs['initial-errors'] || formAttrs['initialErrors'], | ||
initialDirty: formAttrs['initial-dirty'] || formAttrs['initialDirty'], | ||
initialTouched: formAttrs['initial-touched'] || formAttrs['initialTouched'], | ||
}); | ||
@@ -48,0 +51,0 @@ var handleSubmit = ref$1.handleSubmit; |
/** | ||
* @formvuelate/plugin-vee-validate v1.0.1 | ||
* @formvuelate/plugin-vee-validate v1.0.2 | ||
* (c) 2020 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,b,g){"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 c(v,p){var h=v.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 n=t.attrs,r=b.toRefs(e),a=r.validations,i=r.modelValue,u=i?i.value:void 0,o=g.useField(n.model,a,{initialValue:u}),s=o.value,d=o.errorMessage,c=o.meta,l=o.setDirty,f=o.setTouched,m=o.errors;return i&&b.watch(i,function(e){s.value=e}),function(){return b.h(h,Object.assign({},e,n,p({errorMessage:b.unref(d),errors:b.unref(m),meta:c,setDirty:l,setTouched:f},v)))}}}}e.mapElementsInSchema=d,e.default=function(e){var s=e&&e.mapProps||t;return function(e){var t=e.parsedSchema,n=e.formBinds,r=b.getCurrentInstance().attrs,a=g.useForm({validationSchema:r["validation-schema"]||r.validationSchema}).handleSubmit,i=d(t.value,function(e){return Object.assign({},e,{component:b.markRaw(c(e,s))})}),u=n.value.onSubmit,o=a(function(e,t){var n=t.evt;u(n)});return Object.assign({},e,{formBinds:b.computed(function(){return Object.assign({},e.formBinds.value,{onSubmit:o})}),parsedSchema:b.computed(function(){return i})})}},e.withField=c,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,b,y){"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(v,p){var h=v.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=b.toRefs(e),r=n.validations,a=n.modelValue,u=a?a.value:void 0,o=y.useField(i.model,r,{initialValue:u}),s=o.value,d=o.errorMessage,l=o.meta,c=o.setDirty,f=o.setTouched,m=o.errors;return a&&b.watch(a,function(e){s.value=e}),function(){return b.h(h,Object.assign({},e,i,p({errorMessage:b.unref(d),errors:b.unref(m),meta:l,setDirty:c,setTouched:f},v)))}}}}e.mapElementsInSchema=d,e.default=function(e){var s=e&&e.mapProps||t;return function(e){var t=e.parsedSchema,i=e.formBinds,n=b.getCurrentInstance().attrs,r=y.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=d(t.value,function(e){return Object.assign({},e,{component:b.markRaw(l(e,s))})}),u=i.value.onSubmit,o=r(function(e,t){var i=t.evt;u(i)});return Object.assign({},e,{formBinds:b.computed(function(){return Object.assign({},e.formBinds.value,{onSubmit:o})}),parsedSchema:b.computed(function(){return a})})}},e.withField=l,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "@formvuelate/plugin-vee-validate", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "FormVueLate Vee-validate plugin", | ||
@@ -41,3 +41,3 @@ "main": "dist/formvuelate-plugin-vee-validate.cjs.js", | ||
"rollit": "^0.0.9", | ||
"vee-validate": "^4.0.0-beta.10", | ||
"vee-validate": "^4.0.0-beta.16", | ||
"vue": "^3.0.0-beta.12", | ||
@@ -49,3 +49,3 @@ "vue-jest": "^5.0.0-alpha.0", | ||
"formvuelate": "^2.0.0-beta.3", | ||
"vee-validate": "^4.0.0-beta.10", | ||
"vee-validate": "^4.0.0-beta.16", | ||
"vue": "^3.0.0-beta.12" | ||
@@ -52,0 +52,0 @@ }, |
# @formvuelate/plugin-vee-validate | ||
# WIP. Do not use! | ||
<p align="center"> | ||
<img width="150px" src="https://avatars1.githubusercontent.com/u/68271974?s=200&v=4" title="FormVueLate logo"> | ||
<img width="150px" src="https://github.com/logaretm/vee-validate/raw/master/logo.png" title="Vee validate logo"> | ||
</p> | ||
@@ -5,0 +8,0 @@ Vee-validate plugin for FormVueLate |
@@ -34,3 +34,6 @@ import { toRefs, h, computed, markRaw, watch, getCurrentInstance, unref } from 'vue' | ||
const { handleSubmit } = useForm({ | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'] | ||
validationSchema: formAttrs['validation-schema'] || formAttrs['validationSchema'], | ||
initialErrors: formAttrs['initial-errors'] || formAttrs['initialErrors'], | ||
initialDirty: formAttrs['initial-dirty'] || formAttrs['initialDirty'], | ||
initialTouched: formAttrs['initial-touched'] || formAttrs['initialTouched'], | ||
}); | ||
@@ -37,0 +40,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19554
442
10
0