diff --git a/dist/vee-validate.js b/dist/vee-validate.js index 0ca9a6858..6acee4930 100644 --- a/dist/vee-validate.js +++ b/dist/vee-validate.js @@ -1019,14 +1019,14 @@ var hasFieldDependency = function hasFieldDependency(rules) { var elScope = getScope(this.el); if (!elScope) { callback = this.expression ? function () { - _this.vm.$validator.validate(_this.fieldName, _this.el.value, getScope(_this.el)); + _this.vm.$validator.validate(_this.fieldName, _this.el.value, elScope); } : function () { _this.handler(); }; } else { callback = this.expression ? function (scope) { if (scope === elScope) { - _this.vm.$validator.validate(_this.fieldName, _this.el.value, getScope(_this.el)); + _this.vm.$validator.validate(_this.fieldName, _this.el.value, elScope); } } : function (scope) { if (scope === elScope) { diff --git a/dist/vee-validate.min.js b/dist/vee-validate.min.js index a7e807586..af69a3698 100644 --- a/dist/vee-validate.min.js +++ b/dist/vee-validate.min.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VeeValidate=e():t.VeeValidate=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,e,r){Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var r=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=39)}([function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},a=function(){function t(t,e){for(var r=0;r=t}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t,e){var r=n(e,1),i=r[0],a=document.querySelector("input[name='"+i+"']");return!(!a||String(t)!==a.value)}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t){var e=arguments.length<=1||void 0===arguments[1]?["*"]:arguments[1],r=n(e,1),i=r[0];if(Array.isArray(t))return!1;if(null===t||void 0===t||""===t)return!0;var a="*"===i?"*":"{0,"+i+"}",o=new RegExp("^[0-9]*.?[0-9]"+a+"$");return!!o.test(t)&&!Number.isNaN(parseFloat(t))}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t,e){var r=n(e,1),i=r[0],a=String(t);return/^[0-9]*$/.test(a)&&a.length===Number(i)}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(t,e,r){var n=window.URL||window.webkitURL;return new Promise(function(i){var a=new Image;a.onerror=function(){return i({valid:!1})},a.onload=function(){return i({valid:a.width===Number(e)&&a.height===Number(r)})},a.src=n.createObjectURL(t)})};e.a=function(t,e){for(var r=n(e,2),a=r[0],o=r[1],u=[],s=0;s=0:String(t).length<=i}},function(t,e,r){"use strict";e.a=function(t,e){for(var r=new RegExp(e.join("|").replace("*",".+")+"$","i"),n=0;n=i}},function(t,e,r){"use strict";e.a=function(t,e){return!e.filter(function(e){return e==t}).length}},function(t,e,r){"use strict";e.a=function(t){return!Array.isArray(t)&&/^[0-9]*$/.test(t)}},function(t,e,r){"use strict";function n(t){return Array.isArray(t)?t:Array.from(t)}e.a=function(t,e){var r=n(e),i=r[0],a=r.slice(1);return new RegExp(i,a).test(String(t))}},function(t,e,r){"use strict";e.a=function(t){return Array.isArray(t)?!!t.length:void 0!==t&&null!==t&&!!String(t).length}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t,e){var r=n(e,1),i=r[0];if(isNaN(i))return!1;for(var a=1024*Number(i),o=0;oa)return!1;return!0}},function(t,e,r){"use strict";e.a=function(t,e){var r=/^https?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.\(\)%-]*)*\/?$/.test(t),n=e&&e[0];return n&&r?new RegExp("^https?://(([da-z.-]+).)*("+e[0].replace(".","\\$&")+")").test(t):r}},function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t,e){var r=n(e,1),i=r[0],a=document.querySelector("input[name='"+i+"']");return!(!a||String(t)!==a.value)}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t){var e=arguments.length<=1||void 0===arguments[1]?["*"]:arguments[1],r=n(e,1),i=r[0];if(Array.isArray(t))return!1;if(null===t||void 0===t||""===t)return!0;var a="*"===i?"*":"{0,"+i+"}",o=new RegExp("^[0-9]*.?[0-9]"+a+"$");return!!o.test(t)&&!Number.isNaN(parseFloat(t))}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t,e){var r=n(e,1),i=r[0],a=String(t);return/^[0-9]*$/.test(a)&&a.length===Number(i)}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(t,e,r){var n=window.URL||window.webkitURL;return new Promise(function(i){var a=new Image;a.onerror=function(){return i({valid:!1})},a.onload=function(){return i({valid:a.width===Number(e)&&a.height===Number(r)})},a.src=n.createObjectURL(t)})};e.a=function(t,e){for(var r=n(e,2),a=r[0],o=r[1],u=[],s=0;s=0:String(t).length<=i}},function(t,e,r){"use strict";e.a=function(t,e){for(var r=new RegExp(e.join("|").replace("*",".+")+"$","i"),n=0;n=i}},function(t,e,r){"use strict";e.a=function(t,e){return!e.filter(function(e){return e==t}).length}},function(t,e,r){"use strict";e.a=function(t){return!Array.isArray(t)&&/^[0-9]*$/.test(t)}},function(t,e,r){"use strict";function n(t){return Array.isArray(t)?t:Array.from(t)}e.a=function(t,e){var r=n(e),i=r[0],a=r.slice(1);return new RegExp(i,a).test(String(t))}},function(t,e,r){"use strict";e.a=function(t){return Array.isArray(t)?!!t.length:void 0!==t&&null!==t&&!!String(t).length}},function(t,e,r){"use strict";var n=function(){function t(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,u=t[Symbol.iterator]();!(n=(o=u.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(s){i=!0,a=s}finally{try{!n&&u["return"]&&u["return"]()}finally{if(i)throw a}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();e.a=function(t,e){var r=n(e,1),i=r[0];if(isNaN(i))return!1;for(var a=1024*Number(i),o=0;oa)return!1;return!0}},function(t,e,r){"use strict";e.a=function(t,e){var r=/^https?:\/\/([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w\.\(\)%-]*)*\/?$/.test(t),n=e&&e[0];return n&&r?new RegExp("^https?://(([da-z.-]+).)*("+e[0].replace(".","\\$&")+")").test(t):r}},function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e