From f71eafddd0cf68b2ea8ad1924faac88f3f4f9945 Mon Sep 17 00:00:00 2001 From: Dobromir Hristov Date: Wed, 18 Jul 2018 09:48:04 +0300 Subject: [PATCH] chore(release): 2.1.1 --- CHANGELOG.md | 10 ++++++++++ dist/multi-error-extractor-mixin.min.js | 2 +- dist/single-error-extractor-mixin.min.js | 2 +- dist/templates/form-wrapper.min.js | 2 +- .../baseMultiErrorExtractor.min.js | 2 +- dist/templates/multi-error-extractor/bootstrap3.min.js | 2 +- dist/templates/multi-error-extractor/bootstrap4.min.js | 6 ++++++ .../templates/multi-error-extractor/foundation6.min.js | 2 +- .../templates/single-error-extractor/bootstrap3.min.js | 2 +- .../templates/single-error-extractor/bootstrap4.min.js | 6 ++++++ .../single-error-extractor/foundation6.min.js | 2 +- dist/vuelidate-error-extractor.common.js | 4 ++-- dist/vuelidate-error-extractor.esm.js | 4 ++-- dist/vuelidate-error-extractor.js | 4 ++-- dist/vuelidate-error-extractor.min.js | 4 ++-- docs/404.html | 4 ++-- docs/advanced.html | 4 ++-- docs/assets/js/{app.80b097ff.js => app.ad4ff8bf.js} | 2 +- docs/custom_templates.html | 4 ++-- docs/form_wrapper.html | 4 ++-- docs/index.html | 4 ++-- docs/installation.html | 4 ++-- docs/multi_error_extractor.html | 4 ++-- docs/single_error_extractor.html | 4 ++-- package-lock.json | 2 +- package.json | 2 +- 26 files changed, 57 insertions(+), 35 deletions(-) create mode 100644 dist/templates/multi-error-extractor/bootstrap4.min.js create mode 100644 dist/templates/single-error-extractor/bootstrap4.min.js rename docs/assets/js/{app.80b097ff.js => app.ad4ff8bf.js} (86%) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a9c52..1d84548 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [2.1.1](https://github.com/dobromir-hristov/vuelidate-error-extractor/compare/v2.1.0...v2.1.1) (2018-07-18) + + +### Bug Fixes + +* add bootstrap4 to UMD generated files ([2cd4381](https://github.com/dobromir-hristov/vuelidate-error-extractor/commit/2cd4381)) + + + # [2.1.0](https://github.com/dobromir-hristov/vuelidate-error-extractor/compare/v2.0.0...v2.1.0) (2018-07-18) diff --git a/dist/multi-error-extractor-mixin.min.js b/dist/multi-error-extractor-mixin.min.js index 5fa43f7..64cede3 100644 --- a/dist/multi-error-extractor-mixin.min.js +++ b/dist/multi-error-extractor-mixin.min.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v2.1.0 + * vuelidate-error-extractor v2.1.1 * (c) 2018 Dobromir Hristov * Released under the MIT License. */ diff --git a/dist/single-error-extractor-mixin.min.js b/dist/single-error-extractor-mixin.min.js index d819ca4..8602726 100644 --- a/dist/single-error-extractor-mixin.min.js +++ b/dist/single-error-extractor-mixin.min.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v2.1.0 + * vuelidate-error-extractor v2.1.1 * (c) 2018 Dobromir Hristov * Released under the MIT License. */ diff --git a/dist/templates/form-wrapper.min.js b/dist/templates/form-wrapper.min.js index c6027ff..52c1cf9 100644 --- a/dist/templates/form-wrapper.min.js +++ b/dist/templates/form-wrapper.min.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v2.1.0 + * vuelidate-error-extractor v2.1.1 * (c) 2018 Dobromir Hristov * Released under the MIT License. */ diff --git a/dist/templates/multi-error-extractor/baseMultiErrorExtractor.min.js b/dist/templates/multi-error-extractor/baseMultiErrorExtractor.min.js index 20585fb..9868713 100644 --- a/dist/templates/multi-error-extractor/baseMultiErrorExtractor.min.js +++ b/dist/templates/multi-error-extractor/baseMultiErrorExtractor.min.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v2.1.0 + * vuelidate-error-extractor v2.1.1 * (c) 2018 Dobromir Hristov * Released under the MIT License. */ diff --git a/dist/templates/multi-error-extractor/bootstrap3.min.js b/dist/templates/multi-error-extractor/bootstrap3.min.js index 252166d..c52dcc1 100644 --- a/dist/templates/multi-error-extractor/bootstrap3.min.js +++ b/dist/templates/multi-error-extractor/bootstrap3.min.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v2.1.0 + * vuelidate-error-extractor v2.1.1 * (c) 2018 Dobromir Hristov * Released under the MIT License. */ diff --git a/dist/templates/multi-error-extractor/bootstrap4.min.js b/dist/templates/multi-error-extractor/bootstrap4.min.js new file mode 100644 index 0000000..a0219a6 --- /dev/null +++ b/dist/templates/multi-error-extractor/bootstrap4.min.js @@ -0,0 +1,6 @@ +/*! + * vuelidate-error-extractor v2.1.1 + * (c) 2018 Dobromir Hristov + * Released under the MIT License. + */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.VuelidateErrorExtractormultiErrorExtractorBootstrap4={})}(this,function(e){"use strict";function t(e,t,r){return"function"==typeof r.join?r.join(e):e[0]+t+e[1]}function r(e,t,r){return"function"==typeof r.split?r.split(e):e.split(t)}function n(e,t,r){return"function"!=typeof r.isValid||r.isValid(e,t)}function i(e){return f(e)||Array.isArray(e)||"function"==typeof e}function a(e,t,r){return p(e,t,{default:r})}function s(e){return"[vuelidate-error-extractor]: "+e}function o(e,t){if("string"!=typeof e)throw new TypeError(s("Expected a string in the first argument, got "+typeof e));if("object"!=typeof t)throw new TypeError(s("Expected an Object/Array in the second argument, got "+typeof t));var r=/{(.*?)}/g;return e.replace(r,function(e,r){return a(t,r)||""})}function u(e,t){return Object.entries(e).filter(function(e){var t=e[0];e[1];return!t.startsWith("$")}).reduce(function(r,n){var i=n[0],a=n[1];if("object"==typeof a)return r.concat(u(a,t?t+"."+i:i));var s=Object.assign({},e.$params[i]);return delete s.type,r.push({propName:t,validationKey:i,hasError:!a,params:s,$dirty:e.$dirty,$error:e.$error,$invalid:e.$invalid}),r},[])}function d(e,t,r){var n=a(e,t,!1);return n?o(n,r):t}function c(){var e=document.head||document.getElementsByTagName("head")[0],t=c.styles||(c.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(n,i){if(!document.querySelector('style[data-vue-ssr-id~="'+n+'"]')){var a=r?i.media||"default":n,s=t[a]||(t[a]={ids:[],parts:[],element:void 0});if(!s.ids.includes(n)){var o=i.source,u=s.ids.length;if(s.ids.push(n),r&&(s.element=s.element||document.querySelector("style[data-group="+a+"]")),!s.element){var d=s.element=document.createElement("style");d.type="text/css",i.media&&d.setAttribute("media",i.media),r&&(d.setAttribute("data-group",a),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(r&&(u=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",u+1)),s.element.styleSheet)s.parts.push(o),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(o),l=s.element.childNodes;l[u]&&s.element.removeChild(l[u]),l.length?s.element.insertBefore(c,l[u]):s.element.appendChild(c)}}}}}function l(){var e=document.head||document.getElementsByTagName("head")[0],t=l.styles||(l.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(n,i){if(!document.querySelector('style[data-vue-ssr-id~="'+n+'"]')){var a=r?i.media||"default":n,s=t[a]||(t[a]={ids:[],parts:[],element:void 0});if(!s.ids.includes(n)){var o=i.source,u=s.ids.length;if(s.ids.push(n),r&&(s.element=s.element||document.querySelector("style[data-group="+a+"]")),!s.element){var d=s.element=document.createElement("style");d.type="text/css",i.media&&d.setAttribute("media",i.media),r&&(d.setAttribute("data-group",a),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(r&&(u=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",u+1)),s.element.styleSheet)s.parts.push(o),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(o),l=s.element.childNodes;l[u]&&s.element.removeChild(l[u]),l.length?s.element.insertBefore(c,l[u]):s.element.appendChild(c)}}}}}var f=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)},p=function(e,a,s){if(f(s)||(s={default:s}),!i(e))return void 0!==s.default?s.default:e;"number"==typeof a&&(a=String(a));var o=Array.isArray(a),u="string"==typeof a,d=s.separator||".",c=s.joinChar||("string"==typeof d?d:".");if(!u&&!o)return e;if(u&&a in e)return n(a,e,s)?e[a]:s.default;var l=o?a:r(a,d,s),p=l.length,m=0;do{var v=l[m];for("number"==typeof v&&(v=String(v));v&&"\\"===v.slice(-1);)v=t([v.slice(0,-1),l[++m]||""],c,s);if(v in e){if(!n(v,e,s))return s.default;e=e[v]}else{for(var h=!1,g=m+1;g - +

404

Looks like we've got some broken links.
Take me home.
- + diff --git a/docs/advanced.html b/docs/advanced.html index d7a7e93..cad0efe 100644 --- a/docs/advanced.html +++ b/docs/advanced.html @@ -24,7 +24,7 @@ - + @@ -136,6 +136,6 @@ ←

- + diff --git a/docs/assets/js/app.80b097ff.js b/docs/assets/js/app.ad4ff8bf.js similarity index 86% rename from docs/assets/js/app.80b097ff.js rename to docs/assets/js/app.ad4ff8bf.js index 5ff4858..75b9e24 100644 --- a/docs/assets/js/app.80b097ff.js +++ b/docs/assets/js/app.ad4ff8bf.js @@ -5,4 +5,4 @@ * vue-router v3.0.1 * (c) 2017 Evan You * @license MIT - */function bo(t,e){0}function _o(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var xo={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,s=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),l=0,f=!1;o&&o._routerRoot!==o;)o.$vnode&&o.$vnode.data.routerView&&l++,o._inactive&&(f=!0),o=o.$parent;if(i.routerViewDepth=l,f)return a(u[s],i,r);var p=c.matched[l];if(!p)return u[s]=null,a();var h=u[s]=p.components[s];i.registerRouteInstance=function(t,e){var n=p.instances[s];(e&&n!==t||!e&&n===t)&&(p.instances[s]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){p.instances[s]=e.componentInstance};var d=i.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(c,p.props&&p.props[s]);if(d){d=i.props=function(t,e){for(var n in e)t[n]=e[n];return t}({},d);var v=i.attrs=i.attrs||{};for(var m in d)h.props&&m in h.props||(v[m]=d[m],delete d[m])}return a(h,i,r)}};var wo=/[!'()*]/g,Co=function(t){return"%"+t.charCodeAt(0).toString(16)},ko=/%2C/g,$o=function(t){return encodeURIComponent(t).replace(wo,Co).replace(ko,",")},Oo=decodeURIComponent;function So(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Oo(n.shift()),o=n.length>0?Oo(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e):e}function Eo(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return $o(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push($o(e)):r.push($o(e)+"="+$o(t)))}),r.join("&")}return $o(e)+"="+$o(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var Ao=/\/?$/;function jo(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=To(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:Po(e,o),matched:t?function(t){var e=[];for(;t;)e.unshift(t),t=t.parent;return e}(t):[]};return n&&(a.redirectedFrom=Po(n,o)),Object.freeze(a)}function To(t){if(Array.isArray(t))return t.map(To);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=To(t[n]);return e}return t}var Lo=jo(null,{path:"/"});function Po(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||Eo)(r)+o}function Io(t,e){return e===Lo?t===e:!!e&&(t.path&&e.path?t.path.replace(Ao,"")===e.path.replace(Ao,"")&&t.hash===e.hash&&Mo(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&Mo(t.query,e.query)&&Mo(t.params,e.params)))}function Mo(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],o=e[n];return"object"==typeof r&&"object"==typeof o?Mo(r,o):String(r)===String(o)})}var Ro,No=[String,Object],Do=[String,Array],Uo={name:"router-link",props:{to:{type:No,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Do,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,l=n.options.linkExactActiveClass,f=null==u?"router-link-active":u,p=null==l?"router-link-exact-active":l,h=null==this.activeClass?f:this.activeClass,d=null==this.exactActiveClass?p:this.exactActiveClass,v=i.path?jo(null,i,null,n):a;c[d]=Io(r,v),c[h]=this.exact?c[d]:function(t,e){return 0===t.path.replace(Ao,"/").indexOf(e.path.replace(Ao,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,v);var m=function(t){Fo(t)&&(e.replace?n.replace(i):n.push(i))},g={click:Fo};Array.isArray(this.event)?this.event.forEach(function(t){g[t]=m}):g[this.event]=m;var y={class:c};if("a"===this.tag)y.on=g,y.attrs={href:s};else{var b=function t(e){if(e)for(var n,r=0;r=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),c=e&&e.path||"/",u=s.path?Ho(s.path,c,n||o.append):c,l=function(t,e,n){void 0===e&&(e={});var r,o=n||So;try{r=o(t||"")}catch(t){r={}}for(var i in e)r[i]=e[i];return r}(s.query,o.query,r&&r.options.parseQuery),f=o.hash||s.hash;return f&&"#"!==f.charAt(0)&&(f="#"+f),{_normalized:!0,path:u,query:l,hash:f}}function pi(t,e){for(var n in e)t[n]=e[n];return t}function hi(t,e){var n=li(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(t,n,a){var s=fi(t,n,!1,e),u=s.name;if(u){var l=i[u];if(!l)return c(null,s);var f=l.regex.keys.filter(function(t){return!t.optional}).map(function(t){return t.name});if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&f.indexOf(p)>-1&&(s.params[p]=n.params[p]);if(l)return s.path=ui(l.path,s.params),c(l,s,a)}else if(s.path){s.params={};for(var h=0;h=t.length?n():t[o]?e(t[o],function(){r(o+1)}):r(o+1)};r(0)}function Ti(t){return function(e,n,r){var o=!1,i=0,a=null;Li(t,function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Mi(function(e){(function(t){return t.__esModule||Ii&&"Module"===t[Symbol.toStringTag]})(e)&&(e=e.default),t.resolved="function"==typeof e?e:Ro.extend(e),n.components[s]=e,--i<=0&&r()}),l=Mi(function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=_o(t)?t:new Error(e),r(a))});try{c=t(u,l)}catch(t){l(t)}if(c)if("function"==typeof c.then)c.then(u,l);else{var f=c.component;f&&"function"==typeof f.then&&f.then(u,l)}}}),o||r()}}function Li(t,e){return Pi(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function Pi(t){return Array.prototype.concat.apply([],t)}var Ii="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Mi(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Ri=function(t,e){this.router=t,this.base=function(t){if(!t)if(qo){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=Lo,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function Ni(t,e,n,r){var o=Li(t,function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=Ro.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map(function(t){return n(t,r,o,i)}):n(a,r,o,i)});return Pi(r?o.reverse():o)}function Di(t,e){if(e)return function(){return t.apply(e,arguments)}}Ri.prototype.listen=function(t){this.cb=t},Ri.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ri.prototype.onError=function(t){this.errorCbs.push(t)},Ri.prototype.transitionTo=function(t,e,n){var r=this,o=this.router.match(t,this.current);this.confirmTransition(o,function(){r.updateRoute(o),e&&e(o),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(o)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},Ri.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current,i=function(t){_o(t)&&(r.errorCbs.length?r.errorCbs.forEach(function(e){e(t)}):(bo(),console.error(t))),n&&n(t)};if(Io(t,o)&&t.matched.length===o.matched.length)return this.ensureURL(),i();var a=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e)+"#"+t}function zi(t){Ci?Ei(Vi(t)):window.location.hash=t}function Wi(t){Ci?Ai(Vi(t)):window.location.replace(Vi(t))}var Gi=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ri),Ki=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=hi(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Ci&&!1!==t.fallback,this.fallback&&(e="hash"),qo||(e="abstract"),this.mode=e,e){case"history":this.history=new Ui(this,t.base);break;case"hash":this.history=new Bi(this,t.base,this.fallback);break;case"abstract":this.history=new Gi(this,t.base);break;default:0}},Xi={currentRoute:{configurable:!0}};function Yi(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Ki.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Xi.currentRoute.get=function(){return this.history&&this.history.current},Ki.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Ui)n.transitionTo(n.getCurrentLocation());else if(n instanceof Bi){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},Ki.prototype.beforeEach=function(t){return Yi(this.beforeHooks,t)},Ki.prototype.beforeResolve=function(t){return Yi(this.resolveHooks,t)},Ki.prototype.afterEach=function(t){return Yi(this.afterHooks,t)},Ki.prototype.onReady=function(t,e){this.history.onReady(t,e)},Ki.prototype.onError=function(t){this.history.onError(t)},Ki.prototype.push=function(t,e,n){this.history.push(t,e,n)},Ki.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},Ki.prototype.go=function(t){this.history.go(t)},Ki.prototype.back=function(){this.go(-1)},Ki.prototype.forward=function(){this.go(1)},Ki.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},Ki.prototype.resolve=function(t,e,n){var r=fi(t,e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?Vo(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Ki.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Lo&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Ki.prototype,Xi),Ki.install=Bo,Ki.version="3.0.1",qo&&window.Vue&&window.Vue.use(Ki);var Ji=Ki;n(132),n(18),n(25),n(10),n(24),n(61),n(50),n(49);function Qi(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e-1},a=[],s=0;s=r);s++){var c=n[s];if(this.getPageLocalePath(c)===o)if(i(c))a.push(c);else if(c.headers)for(var u=0;u=r);u++){var l=c.headers[u];i(l)&&a.push(Object.assign({},c,{path:c.path+"#"+l.slug,header:l}))}}return a}},alignRight:function(){return(this.$site.themeConfig.nav||[]).length+(this.$site.repo?1:0)<=2}},methods:{getPageLocalePath:function(t){for(var e in this.$site.locales||{})if("/"!==e&&0===t.path.indexOf(e))return e;return"/"},onUp:function(){this.showSuggestions&&(this.focusIndex>0?this.focusIndex--:this.focusIndex=this.suggestions.length-1)},onDown:function(){this.showSuggestions&&(this.focusIndex "+t._s(e.header.title))]):t._e()])])})):t._e()])},[],!1,null,null,null).exports),$a=(n(108),{name:"DropdownTransition",methods:{setHeight:function(t){t.style.height=t.scrollHeight+"px"},unsetHeight:function(t){t.style.height=""}}}),Oa=(n(102),Object(ya.a)($a,function(){var t=this.$createElement;return(this._self._c||t)("transition",{attrs:{name:"dropdown"},on:{enter:this.setHeight,"after-enter":this.unsetHeight,"before-leave":this.setHeight}},[this._t("default")],2)},[],!1,null,null,null).exports),Sa={components:{NavLink:ba,DropdownTransition:Oa},data:function(){return{open:!1}},props:{item:{required:!0}},methods:{toggle:function(){this.open=!this.open}}},Ea=(n(100),{components:{NavLink:ba,DropdownLink:Object(ya.a)(Sa,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dropdown-wrapper",class:{open:t.open}},[n("a",{staticClass:"dropdown-title",on:{click:t.toggle}},[n("span",{staticClass:"title"},[t._v(t._s(t.item.text))]),n("span",{staticClass:"arrow",class:t.open?"down":"right"})]),n("DropdownTransition",[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"nav-dropdown"},t._l(t.item.items,function(e,r){return n("li",{key:e.link||r,staticClass:"dropdown-item"},["links"===e.type?n("h4",[t._v(t._s(e.text))]):t._e(),"links"===e.type?n("ul",{staticClass:"dropdown-subitem-wrapper"},t._l(e.items,function(t){return n("li",{key:t.link,staticClass:"dropdown-subitem"},[n("NavLink",{attrs:{item:t}})],1)})):n("NavLink",{attrs:{item:e}})],1)}))])],1)},[],!1,null,null,null).exports},computed:{userNav:function(){return this.$themeLocaleConfig.nav||this.$site.themeConfig.nav||[]},nav:function(){var t=this,e=this.$site.locales;if(e&&Object.keys(e).length>1){var n=this.$page.path,r=this.$router.options.routes,o=this.$site.themeConfig.locales||{},i={text:this.$themeLocaleConfig.selectText||"Languages",items:Object.keys(e).map(function(i){var a,s=e[i],c=o[i]&&o[i].label||s.lang;return s.lang===t.$lang?a=n:(a=n.replace(t.$localeConfig.path,i),r.some(function(t){return t.path===a})||(a=i)),{text:c,link:a}})};return Qi(this.userNav).concat([i])}return this.userNav},userLinks:function(){return(this.nav||[]).map(function(t){return Object.assign(da(t),{items:(t.items||[]).map(da)})})},repoLink:function(){var t=this.$site.themeConfig.repo;if(t)return/^https?:/.test(t)?t:"https://github.com/".concat(t)},repoLabel:function(){if(this.repoLink){if(this.$site.themeConfig.repoLabel)return this.$site.themeConfig.repoLabel;for(var t=this.repoLink.match(/^https?:\/\/[^/]+/)[0],e=["GitHub","GitLab","Bitbucket"],n=0;n5&&void 0!==arguments[5]?arguments[5]:1;return!e||i>o?null:t("ul",{class:"sidebar-sub-headers"},e.map(function(e){var a=la(r,n+"#"+e.slug);return t("li",{class:"sidebar-sub-header"},[Ma(t,"#"+e.slug,e.title,a),Ra(t,e.children,n,r,o,i+1)])}))}var Na={functional:!0,props:["item"],render:function(t,e){var n=e.parent,r=n.$page,o=n.$site,i=n.$route,a=e.props.item,s=la(i,a.path),c="auto"===a.type?s||a.children.some(function(t){return la(i,a.basePath+"#"+t.slug)}):s,u=Ma(t,a.path,a.title||a.path,c),l=null!=r.frontmatter.sidebarDepth?r.frontmatter.sidebarDepth:o.themeConfig.sidebarDepth,f=null==l?1:l;return"auto"===a.type?[u,Ra(t,a.children,a.basePath,i,f)]:c&&a.headers&&!ra.test(a.path)?[u,Ra(t,ha(a.headers),a.path,i,f)]:u}},Da=(n(92),Object(ya.a)(Na,void 0,void 0,!1,null,null,null).exports),Ua={name:"SidebarGroup",props:["item","first","open","collapsable"],components:{SidebarLink:Da,DropdownTransition:Oa}};n(90);var Fa={components:{SidebarGroup:Object(ya.a)(Ua,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-group",class:{first:t.first,collapsable:t.collapsable}},[n("p",{staticClass:"sidebar-heading",class:{open:t.open},on:{click:function(e){t.$emit("toggle")}}},[n("span",[t._v(t._s(t.item.title))]),t.collapsable?n("span",{staticClass:"arrow",class:t.open?"down":"right"}):t._e()]),n("DropdownTransition",[t.open||!t.collapsable?n("ul",{ref:"items",staticClass:"sidebar-group-items"},t._l(t.item.children,function(t){return n("li",[n("SidebarLink",{attrs:{item:t}})],1)})):t._e()])],1)},[],!1,null,null,null).exports,SidebarLink:Da,NavLinks:Aa},props:["items"],data:function(){return{openGroupIndex:0}},created:function(){this.refreshIndex()},watch:{$route:function(){this.refreshIndex()}},methods:{refreshIndex:function(){var t=function(t,e){for(var n=0;n-1&&(this.openGroupIndex=t)},toggleGroup:function(t){this.openGroupIndex=t===this.openGroupIndex?-1:t},isActive:function(t){return la(this.$route,t.path)}}},Ba=(n(88),{components:{Home:xa,Page:Ia,Sidebar:Object(ya.a)(Fa,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar"},[n("NavLinks"),t._t("top"),t.items.length?n("ul",{staticClass:"sidebar-links"},t._l(t.items,function(e,r){return n("li",{key:r},["group"===e.type?n("SidebarGroup",{attrs:{item:e,first:0===r,open:r===t.openGroupIndex,collapsable:e.collapsable},on:{toggle:function(e){t.toggleGroup(r)}}}):n("SidebarLink",{attrs:{item:e}})],1)})):t._e(),t._t("bottom")],2)},[],!1,null,null,null).exports,Navbar:Ta},data:function(){return{isSidebarOpen:!1}},computed:{shouldShowNavbar:function(){var t=this.$site.themeConfig;return!1!==this.$page.frontmatter.navbar&&!1!==t.navbar&&(this.$title||t.logo||t.repo||t.nav||this.$themeLocaleConfig.nav)},shouldShowSidebar:function(){var t=this.$page.frontmatter;return!t.layout&&!t.home&&!1!==t.sidebar&&this.sidebarItems.length},sidebarItems:function(){return pa(this.$page,this.$route,this.$site,this.$localePath)},pageClasses:function(){var t=this.$page.frontmatter.pageClass;return[{"no-navbar":!this.shouldShowNavbar,"sidebar-open":this.isSidebarOpen,"no-sidebar":!this.shouldShowSidebar},t]}},mounted:function(){var t=this;window.addEventListener("scroll",this.onScroll),na.a.configure({showSpinner:!1}),this.$router.beforeEach(function(t,e,n){t.path===e.path||yo.component(t.name)||na.a.start(),n()}),this.$router.afterEach(function(){na.a.done(),t.isSidebarOpen=!1})},methods:{toggleSidebar:function(t){this.isSidebarOpen="boolean"==typeof t?t:!this.isSidebarOpen},onTouchStart:function(t){this.touchStart={x:t.changedTouches[0].clientX,y:t.changedTouches[0].clientY}},onTouchEnd:function(t){var e=t.changedTouches[0].clientX-this.touchStart.x,n=t.changedTouches[0].clientY-this.touchStart.y;Math.abs(e)>Math.abs(n)&&Math.abs(e)>40&&(e>0&&this.touchStart.x<=80?this.toggleSidebar(!0):this.toggleSidebar(!1))}}}),qa=(n(86),n(84),Object(ya.a)(Ba,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"theme-container",class:t.pageClasses,on:{touchstart:t.onTouchStart,touchend:t.onTouchEnd}},[t.shouldShowNavbar?n("Navbar",{on:{"toggle-sidebar":t.toggleSidebar}}):t._e(),n("div",{staticClass:"sidebar-mask",on:{click:function(e){t.toggleSidebar(!1)}}}),n("Sidebar",{attrs:{items:t.sidebarItems},on:{"toggle-sidebar":t.toggleSidebar}},[t._t("sidebar-top",null,{slot:"top"}),t._t("sidebar-bottom",null,{slot:"bottom"})],2),t.$page.frontmatter.layout?n("div",{staticClass:"custom-layout"},[n(t.$page.frontmatter.layout,{tag:"component"})],1):t.$page.frontmatter.home?n("Home"):n("Page",{attrs:{"sidebar-items":t.sidebarItems}},[t._t("page-top",null,{slot:"top"}),t._t("page-bottom",null,{slot:"bottom"})],2)],1)},[],!1,null,null,null).exports),Ha=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],Va={methods:{getMsg:function(){return Ha[Math.floor(Math.random()*Ha.length)]}}},za=Object(ya.a)(Va,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"content"},[e("h1",[this._v("404")]),e("blockquote",[this._v(this._s(this.getMsg()))]),e("router-link",{attrs:{to:"/"}},[this._v("Take me home.")])],1)])},[],!1,null,null,null).exports,Wa={created:function(){this.$ssrContext&&(this.$ssrContext.title=this.$title,this.$ssrContext.lang=this.$lang,this.$ssrContext.description=this.$page.description||this.$description)},mounted:function(){var t=this;this.currentMetaTags=[];var e=function(){document.title=t.$title,document.documentElement.lang=t.$lang;var e=[{name:"description",content:t.$description}].concat(Qi(t.$page.frontmatter.meta||[]));t.currentMetaTags=Ga(e,t.currentMetaTags)};this.$watch("$page",e),e()},beforeDestroy:function(){Ga(null,this.currentMetaTags)}};function Ga(t,e){if(e&&e.forEach(function(t){document.head.removeChild(t)}),t)return t.map(function(t){var e=document.createElement("meta");return Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])}),document.head.appendChild(e),e})}var Ka=n(77),Xa=[Wa,{mounted:function(){window.addEventListener("scroll",this.onScroll)},methods:{onScroll:n.n(Ka)()(function(){this.setActiveHash()},300),setActiveHash:function(){for(var t=this,e=[].slice.call(document.querySelectorAll(".sidebar-link")),n=[].slice.call(document.querySelectorAll(".header-anchor")).filter(function(t){return e.some(function(e){return e.hash===t.hash})}),r=Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop),o=0;o=i.parentElement.offsetTop+10&&(!a||rg;)v(m[g++]);f.constructor=u,u.prototype=f,n(12)(r,"RegExp",u)}n(67)("RegExp")},,function(t,e,n){"use strict";var r=n(44);n.n(r).a},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(3),o=n(19),i=n(5),a=n(111),s="["+a+"]",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),l=function(t,e,n){var o={},s=i(function(){return!!a[t]()||"​…"!="​…"[t]()}),c=o[t]=s?e(f):a[t];n&&(o[n]=c),r(r.P+r.F*s,"String",o)},f=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(u,"")),t};t.exports=l},function(t,e,n){"use strict";n(112)("trim",function(t){return function(){return t(this,3)}})},,function(t,e,n){"use strict";var r=n(45);n.n(r).a},,function(t,e,n){"use strict";var r=n(46);n.n(r).a},function(t,e,n){n(48)("split",2,function(t,e,r){"use strict";var o=n(60),i=r,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var s=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,c,u,l,f,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,v=void 0===e?4294967295:e>>>0,m=new RegExp(t.source,h+"g");for(s||(r=new RegExp("^"+m.source+"$(?!\\s)",h));(c=m.exec(n))&&!((u=c.index+c[0].length)>d&&(p.push(n.slice(d,c.index)),!s&&c.length>1&&c[0].replace(r,function(){for(f=1;f1&&c.index=v));)m.lastIndex===c.index&&m.lastIndex++;return d===n.length?!l&&m.test("")||p.push(""):p.push(n.slice(d)),p.length>v?p.slice(0,v):p}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},function(t,e,n){var r=n(3);r(r.S,"Array",{isArray:n(62)})},function(t,e,n){var r=n(3),o=n(5),i=n(19),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";n(120)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){var r=n(4),o=n(62),i=n(1)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},function(t,e,n){var r=n(122);t.exports=function(t,e){return new(r(t))(e)}},function(t,e,n){var r=n(11),o=n(26),i=n(52)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(8),o=n(6),i=n(28);t.exports=n(7)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(6),o=n(125),i=n(51),a=n(52)("IE_PROTO"),s=function(){},c=function(){var t,e=n(57)("iframe"),r=i.length;for(e.style.display="none",n(69).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(" + diff --git a/docs/form_wrapper.html b/docs/form_wrapper.html index 12443c7..4d0a134 100644 --- a/docs/form_wrapper.html +++ b/docs/form_wrapper.html @@ -24,7 +24,7 @@ - + @@ -97,6 +97,6 @@ Custom Templates →

- + diff --git a/docs/index.html b/docs/index.html index 869d19f..b0252ba 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@ - + @@ -40,6 +40,6 @@ Getting started →

- + diff --git a/docs/installation.html b/docs/installation.html index f672ecc..714e426 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -24,7 +24,7 @@ - + @@ -107,6 +107,6 @@ Single Error Extractor →

- + diff --git a/docs/multi_error_extractor.html b/docs/multi_error_extractor.html index 61b6cf3..c5dd231 100644 --- a/docs/multi_error_extractor.html +++ b/docs/multi_error_extractor.html @@ -24,7 +24,7 @@ - + @@ -64,6 +64,6 @@ Form Wrapper →

- + diff --git a/docs/single_error_extractor.html b/docs/single_error_extractor.html index 4b67a62..757ba1a 100644 --- a/docs/single_error_extractor.html +++ b/docs/single_error_extractor.html @@ -24,7 +24,7 @@ - + @@ -71,6 +71,6 @@ Multi Error Extractor →

- + diff --git a/package-lock.json b/package-lock.json index 281d025..8c7af40 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vuelidate-error-extractor", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ee7a059..bee0c5d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vuelidate-error-extractor", "description": "Helps showing vuelidate error messages from translation files.", - "version": "2.1.0", + "version": "2.1.1", "author": { "name": "Dobromir Hristov", "email": "dobri@digital-cult.com"