From 3d400e5999608203f56444e8e6160906023a465b Mon Sep 17 00:00:00 2001 From: Dobromir Hristov Date: Wed, 11 Oct 2017 01:17:18 +0300 Subject: [PATCH] chore(release): 1.2.1 --- CHANGELOG.md | 10 ++++++++++ dist/message-extractor-mixin.js | 2 +- dist/templates/bootstrap3.min.js | 4 ++-- dist/templates/bootstrap3.min.js.gz | Bin 1372 -> 1380 bytes dist/templates/foundation6.min.js | 4 ++-- dist/templates/foundation6.min.js.gz | Bin 1359 -> 1362 bytes dist/vuelidate-error-extractor.common.js | 6 +++--- dist/vuelidate-error-extractor.esm.js | 6 +++--- dist/vuelidate-error-extractor.js | 6 +++--- dist/vuelidate-error-extractor.min.js | 4 ++-- docs/advanced.html | 2 +- docs/custom_templates.html | 2 +- docs/index.html | 2 +- docs/installation.html | 2 +- docs/options.html | 2 +- package-lock.json | 2 +- package.json | 2 +- 17 files changed, 33 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bebe98..894bc56 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. + +## [1.2.1](https://github.com/dobromir-hristov/vuelidate-error-extractor/compare/v1.2.0...v1.2.1) (2017-10-10) + + +### Bug Fixes + +* slot did not have a closing tag. ([298db82](https://github.com/dobromir-hristov/vuelidate-error-extractor/commit/298db82)) + + + # [1.2.0](https://github.com/dobromir-hristov/vuelidate-error-extractor/compare/v1.0.3...v1.2.0) (2017-10-10) diff --git a/dist/message-extractor-mixin.js b/dist/message-extractor-mixin.js index ee44d0e..afa3eb7 100644 --- a/dist/message-extractor-mixin.js +++ b/dist/message-extractor-mixin.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ diff --git a/dist/templates/bootstrap3.min.js b/dist/templates/bootstrap3.min.js index 9444811..dc4e6ab 100644 --- a/dist/templates/bootstrap3.min.js +++ b/dist/templates/bootstrap3.min.js @@ -1,6 +1,6 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ -!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(r.VuelidateErrorExtractorBootstrap3Template=r.VuelidateErrorExtractorBootstrap3Template||{})}(this,function(r){"use strict";function t(r,t,e){if(void 0===e&&(e=""),"string"!=typeof r)return s&&console.warn("Expected a string in the first argument, got "+typeof r),e;if("object"!=typeof t)return s&&console.warn("Expected an Object/Array in the second argument, got "+typeof t),e;try{return r.split(".").reduce(function(r,t){return r[t]||""},t)}catch(r){return s&&console.warn("[vuelidate-error-extractor]: "+r),e}}function e(r,e){if("string"!=typeof r)throw new TypeError("Expected a string in the first argument, got "+typeof r);if("object"!=typeof e)throw new TypeError("Expected an Object/Array in the second argument, got "+typeof e);var a=/{(.*?)}/g;return r.replace(a,function(r,a){return t(a,e)||""})}function a(r,t,e){return void 0===t&&(t=r),void 0===e&&(e={}),{validationKey:r,hasError:!this.validator[t],$params:this.validator.$params[t],params:Object.assign({},{attribute:this.label,label:this.label},e,this.validatorParams)}}var s=!1,o={computed:{errors:function(){var r=this,t={},e=this.validator.$params,s=this.$vuelidateErrorExtractor.validationKeys;return Object.keys(e).map(function(o){return void 0!==s&&s.hasOwnProperty(o)?(s[o].params.forEach(function(a){t[a.ext]=r.validatorParams[a.other]||e[o][a.vue]}),a.call(r,s[o].validationKey,o,t)):e[o]&&Object.keys(e[o]).length?(Object.keys(e[o]).filter(function(r){return"type"!==r}).forEach(function(r){t[r]=e[o][r]}),a.call(r,o,o,t)):a.call(r,o)})},activeErrors:function(){return this.errors.filter(function(r){return r.hasError})},mergedMessages:function(){return Object.assign({},this.$vuelidateErrorExtractor.messages,this.messages)},firstError:function(){return this.activeErrors.length?this.activeErrors[0]:""},firstErrorMessage:function(){return this.hasErrors?this.getErrorMessage(this.firstError.validationKey,this.firstError.params):""},hasErrors:function(){return this.validator.$error}},methods:{getErrorMessage:function(r,t){return this.$vuelidateErrorExtractor.i18n?this.getI18nMessage(r,t):this.getPlainMessage(r,t)},getI18nMessage:function(r,t){return this.$t(this.$vuelidateErrorExtractor.i18n+"."+r,t)},getPlainMessage:function(r,a){var s=t(r,this.mergedMessages,!1);return s?e(s,a):r}},props:{label:String,validator:{type:Object,default:function(){return{$dirty:!1,$error:!1,$invalid:!0,$pending:!1,$params:[]}}},validatorParams:{type:Object,default:function(){return{}}},messages:{type:Object,default:function(){return{}}},showSingleError:{type:Boolean,default:!1}}},i={render:function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{staticClass:"form-group",class:{"has-error":r.hasErrors,"has-success":!r.hasErrors&&r.validator.$dirty}},[r._t("label",[r.label?e("label",{staticClass:"control-label"},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",[r._t("errors",[r.hasErrors?e("div",{staticClass:"help-block"},[r.showSingleError?e("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(t){return e("span",{key:t.validationKey,attrs:{"data-validation-attr":t.validationKey}},[r._v(r._s(r.getErrorMessage(t.validationKey,t.params)))])})],2):r._e()],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[o]};r.default=i,Object.defineProperty(r,"__esModule",{value:!0})}); \ No newline at end of file +!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(r.VuelidateErrorExtractorBootstrap3Template=r.VuelidateErrorExtractorBootstrap3Template||{})}(this,function(r){"use strict";function t(r,t,e){if(void 0===e&&(e=""),"string"!=typeof r)return s&&console.warn("Expected a string in the first argument, got "+typeof r),e;if("object"!=typeof t)return s&&console.warn("Expected an Object/Array in the second argument, got "+typeof t),e;try{return r.split(".").reduce(function(r,t){return r[t]||""},t)}catch(r){return s&&console.warn("[vuelidate-error-extractor]: "+r),e}}function e(r,e){if("string"!=typeof r)throw new TypeError("Expected a string in the first argument, got "+typeof r);if("object"!=typeof e)throw new TypeError("Expected an Object/Array in the second argument, got "+typeof e);var a=/{(.*?)}/g;return r.replace(a,function(r,a){return t(a,e)||""})}function a(r,t,e){return void 0===t&&(t=r),void 0===e&&(e={}),{validationKey:r,hasError:!this.validator[t],$params:this.validator.$params[t],params:Object.assign({},{attribute:this.label,label:this.label},e,this.validatorParams)}}var s=!1,o={computed:{errors:function(){var r=this,t={},e=this.validator.$params,s=this.$vuelidateErrorExtractor.validationKeys;return Object.keys(e).map(function(o){return void 0!==s&&s.hasOwnProperty(o)?(s[o].params.forEach(function(a){t[a.ext]=r.validatorParams[a.other]||e[o][a.vue]}),a.call(r,s[o].validationKey,o,t)):e[o]&&Object.keys(e[o]).length?(Object.keys(e[o]).filter(function(r){return"type"!==r}).forEach(function(r){t[r]=e[o][r]}),a.call(r,o,o,t)):a.call(r,o)})},activeErrors:function(){return this.errors.filter(function(r){return r.hasError})},mergedMessages:function(){return Object.assign({},this.$vuelidateErrorExtractor.messages,this.messages)},firstError:function(){return this.activeErrors.length?this.activeErrors[0]:""},firstErrorMessage:function(){return this.hasErrors?this.getErrorMessage(this.firstError.validationKey,this.firstError.params):""},hasErrors:function(){return this.validator.$error}},methods:{getErrorMessage:function(r,t){return this.$vuelidateErrorExtractor.i18n?this.getI18nMessage(r,t):this.getPlainMessage(r,t)},getI18nMessage:function(r,t){return this.$t(this.$vuelidateErrorExtractor.i18n+"."+r,t)},getPlainMessage:function(r,a){var s=t(r,this.mergedMessages,!1);return s?e(s,a):r}},props:{label:String,validator:{type:Object,default:function(){return{$dirty:!1,$error:!1,$invalid:!0,$pending:!1,$params:[]}}},validatorParams:{type:Object,default:function(){return{}}},messages:{type:Object,default:function(){return{}}},showSingleError:{type:Boolean,default:!1}}},i={render:function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{staticClass:"form-group",class:{"has-error":r.hasErrors,"has-success":!r.hasErrors&&r.validator.$dirty}},[r._t("label",[r.label?e("label",{staticClass:"control-label"},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",null,{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage}),r._t("errors",[r.hasErrors?e("div",{staticClass:"help-block"},[r.showSingleError?e("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(t){return e("span",{key:t.validationKey,attrs:{"data-validation-attr":t.validationKey}},[r._v(r._s(r.getErrorMessage(t.validationKey,t.params)))])})],2):r._e()],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[o]};r.default=i,Object.defineProperty(r,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/dist/templates/bootstrap3.min.js.gz b/dist/templates/bootstrap3.min.js.gz index 570075aebc2a2fb73cebcc4c20142a281b2b2c9e..bfbdc97eced5b4e10fe4037a6016099c0a0c0441 100644 GIT binary patch literal 1380 zcmV-q1)KUGiwFP!000003$<5UZ`(E$e($f4iNX*Qnu)uI4GIKfmkuksqD5Qm#V`U! zI<~dSqCiqk0!9CQhomH1zN8mmFRjdT|IRrdnX8M@i{K*IR*+|@Ffak7q?*8kQ6e!? z1=}fq#ixN)3KJTL@ zz)|Ju#b{X-iOFOUDrRU+`pc;GvYt=<%3XC(EpWl#DvzMy6E`GZVI2 zG$Nh5od<6<9{c~f*rYT68O}*-M-~`6GNI!CbVa|mHNWmk{!L1w@w@!#Gi=HnuRL!v9n@$iIiv$B&XUlLavoyGl;~4V~Atr<}VhxJb4g^IN zm`W7^f|STY%N+QlV(5T0{b+5QC^UQ>V6Ur5&RRZB~N;<{4Sv)-v z(%@N>2$QTWs^^lNpB?B$gvr>lo2KsqU?ksz6M&nwlJ`LY_rYg8a_#?dv`=CUUyJc0 zKm)zm3KfX>st)UVfI7744kgjeYOB@HtHF6SF=Bc! z!MF&l-U`JSqddKIvPrNdu%mY1rG-oT4$>wtQ%Gf zgKfC040z*Q+(FLVzk3G_12**i!TF<2W3kflXv$<aIQRe;-L0?LyKRsM$dBR}=U#I}^!#zfCV;E@I>S}j)3z$$eu~u zNg7%G@pw=Ho=~1cu`=sfcr00Fxd9dK)1Sivc$M>G2TJZxG|Uak9ufgGdw zl{u67esvw%M}qnFBC_ncbJym6&TCh!_P$myuyPk1-#I&&h(oELMd~u>9iNN5w@j`n zjYZq6WvZk4AdTqcUGY59+4Ps9ujvi`=t@%VVbBUbZKXnjxh`NQ=G`?kg*tpJ;TAgbhWCp51xN&GSWr;SXr#TLU((*X>SyhmBs#`%joi z?vZXy@pXoe(xSH=O|5PgqosYMp5=8MyhMR*TMq7OwJ*S14f&GaCQnbM0~|tW`0dt>Y z9{5;tT_yIH`@+6=N5fR`fnb!(Ctm2yx1p^iY)$DUvF{;&;wf-OE(k6vr3;)SehVRf zFdw%ClCYx6bJkstYCtr5`@LW4G4CjTbk=l%yk}S8j)zXey@tG;+~qR);tM<&1#6{C zQ4s$|u+2bB#bn1<6MIeu=?vMdIRNe`?LDa2aROdo<#-_tq3Q>4Mi?qaA3TbY+gs4@+~0@9y*MjCcEVel-uwrj84Oh54gdhD$e{KB literal 1372 zcmV-i1*7^OiwFP!000003$<5SZ{s!)e&1gq6M-Qnv~u*Jg#y9ok)n%ju)%K77sCh` zX>6-2ivmeG2^9VJ4oMxBkL&^TC80R?HwVY(r=xe?skbR1OB1eP0#XV&foCmwtcCP8 zm%&wV;Ta}Brry=X<WuZd++ZwhFn2_ zEa&e=i!zUODso>kO)DZE|AknSDAF$lh=m8wg^*f}$HXXEq&XyH)DqVsDKnUAzu}@G zY1Q=_oYZ*i{s(-WOx@9+kw%Wp(RQeP8T``*ePd$2X+!=^2(9p3{B#fNB13xg9lWov zRZVMOuTsVOa530YfrqRq27KKTJZ+F*K&y1&Z$z4S7f}?U|2{;7P)3YEzU)DeRDv#L z?jcCA$d$+-c;Yhm$<1?tSR(%1b3$I4+bk?nskF!CvRp&1nYR?$BWImH2G?l2O+{x& ze}kdi`)H-kf0dHIwDuGre{#&AHU_nPsT%b%P(_w%p9F*k5|T0oe^@0g<4n(AUkR!4 zu8z5mR|eH%PR@=N^gKjoOxShZWdYEV%fSJ_^-78-FNY`Z9b|r3Xk8nuR5ZF|BC2AsE>KevRN{RPDm zW(aw@aTyq7v#ocNDVOWxK4IImwQE$aK`tS=1*P~B4k_KM(YNbi-Dq-b?H3xd6UDX6 z5zn`yYth~#%r54knV!A6#`j}d+hCQ`wS<9`ec*y#*-l05Qe7=l>p`dZnB}czvPr28 z+Il4t6;?ZLga_Y>w~p=O z!r@SMqseXxt~9m_kBu&AJ3Q1Be1#IBL9D=efOxqP_}RWutOGWzOoKIJl;MWN%S`X5 zqdG}a94R4=MVASCN^`3x99`hRhCD&d_P&|Tvw4l?cgD)M8mw)uo1Xd(8MP8mpV5)b zA>D}Lc7{u7-pP(G4R0Euq*+pr&UGxjSb|Ag2KH$+8{mV2Y!N)fudliV9DI_b8^S83 zvGU{JGi-L;N`+icmQs`jVX?ic2-dt?L`c|=5ykAiD&rVKCgEs{G#<(S%Plz5Wlo;mBIu4gdg^f~VpD diff --git a/dist/templates/foundation6.min.js b/dist/templates/foundation6.min.js index 453d08d..90ad8ec 100644 --- a/dist/templates/foundation6.min.js +++ b/dist/templates/foundation6.min.js @@ -1,6 +1,6 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ -!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(r.VuelidateErrorExtractorFoundation6Template=r.VuelidateErrorExtractorFoundation6Template||{})}(this,function(r){"use strict";function t(r,t,e){if(void 0===e&&(e=""),"string"!=typeof r)return s&&console.warn("Expected a string in the first argument, got "+typeof r),e;if("object"!=typeof t)return s&&console.warn("Expected an Object/Array in the second argument, got "+typeof t),e;try{return r.split(".").reduce(function(r,t){return r[t]||""},t)}catch(r){return s&&console.warn("[vuelidate-error-extractor]: "+r),e}}function e(r,e){if("string"!=typeof r)throw new TypeError("Expected a string in the first argument, got "+typeof r);if("object"!=typeof e)throw new TypeError("Expected an Object/Array in the second argument, got "+typeof e);var a=/{(.*?)}/g;return r.replace(a,function(r,a){return t(a,e)||""})}function a(r,t,e){return void 0===t&&(t=r),void 0===e&&(e={}),{validationKey:r,hasError:!this.validator[t],$params:this.validator.$params[t],params:Object.assign({},{attribute:this.label,label:this.label},e,this.validatorParams)}}var s=!1,i={computed:{errors:function(){var r=this,t={},e=this.validator.$params,s=this.$vuelidateErrorExtractor.validationKeys;return Object.keys(e).map(function(i){return void 0!==s&&s.hasOwnProperty(i)?(s[i].params.forEach(function(a){t[a.ext]=r.validatorParams[a.other]||e[i][a.vue]}),a.call(r,s[i].validationKey,i,t)):e[i]&&Object.keys(e[i]).length?(Object.keys(e[i]).filter(function(r){return"type"!==r}).forEach(function(r){t[r]=e[i][r]}),a.call(r,i,i,t)):a.call(r,i)})},activeErrors:function(){return this.errors.filter(function(r){return r.hasError})},mergedMessages:function(){return Object.assign({},this.$vuelidateErrorExtractor.messages,this.messages)},firstError:function(){return this.activeErrors.length?this.activeErrors[0]:""},firstErrorMessage:function(){return this.hasErrors?this.getErrorMessage(this.firstError.validationKey,this.firstError.params):""},hasErrors:function(){return this.validator.$error}},methods:{getErrorMessage:function(r,t){return this.$vuelidateErrorExtractor.i18n?this.getI18nMessage(r,t):this.getPlainMessage(r,t)},getI18nMessage:function(r,t){return this.$t(this.$vuelidateErrorExtractor.i18n+"."+r,t)},getPlainMessage:function(r,a){var s=t(r,this.mergedMessages,!1);return s?e(s,a):r}},props:{label:String,validator:{type:Object,default:function(){return{$dirty:!1,$error:!1,$invalid:!0,$pending:!1,$params:[]}}},validatorParams:{type:Object,default:function(){return{}}},messages:{type:Object,default:function(){return{}}},showSingleError:{type:Boolean,default:!1}}},o={render:function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{staticClass:"form-group",class:{error:r.hasErrors}},[r._t("label",[r.label?e("label",{class:{"is-invalid-label":r.hasErrors}},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",null,{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage}),r._t("errors",[e("div",{staticClass:"form-error is-visible"},[r.showSingleError?e("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(t){return e("span",{key:t.validationKey,attrs:{"data-validation-attr":t.validationKey}},[r._v(r._s(r.getErrorMessage(t.validationKey,t.params)))])})],2)],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[i]};r.default=o,Object.defineProperty(r,"__esModule",{value:!0})}); \ No newline at end of file +!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(r.VuelidateErrorExtractorFoundation6Template=r.VuelidateErrorExtractorFoundation6Template||{})}(this,function(r){"use strict";function t(r,t,e){if(void 0===e&&(e=""),"string"!=typeof r)return s&&console.warn("Expected a string in the first argument, got "+typeof r),e;if("object"!=typeof t)return s&&console.warn("Expected an Object/Array in the second argument, got "+typeof t),e;try{return r.split(".").reduce(function(r,t){return r[t]||""},t)}catch(r){return s&&console.warn("[vuelidate-error-extractor]: "+r),e}}function e(r,e){if("string"!=typeof r)throw new TypeError("Expected a string in the first argument, got "+typeof r);if("object"!=typeof e)throw new TypeError("Expected an Object/Array in the second argument, got "+typeof e);var a=/{(.*?)}/g;return r.replace(a,function(r,a){return t(a,e)||""})}function a(r,t,e){return void 0===t&&(t=r),void 0===e&&(e={}),{validationKey:r,hasError:!this.validator[t],$params:this.validator.$params[t],params:Object.assign({},{attribute:this.label,label:this.label},e,this.validatorParams)}}var s=!1,i={computed:{errors:function(){var r=this,t={},e=this.validator.$params,s=this.$vuelidateErrorExtractor.validationKeys;return Object.keys(e).map(function(i){return void 0!==s&&s.hasOwnProperty(i)?(s[i].params.forEach(function(a){t[a.ext]=r.validatorParams[a.other]||e[i][a.vue]}),a.call(r,s[i].validationKey,i,t)):e[i]&&Object.keys(e[i]).length?(Object.keys(e[i]).filter(function(r){return"type"!==r}).forEach(function(r){t[r]=e[i][r]}),a.call(r,i,i,t)):a.call(r,i)})},activeErrors:function(){return this.errors.filter(function(r){return r.hasError})},mergedMessages:function(){return Object.assign({},this.$vuelidateErrorExtractor.messages,this.messages)},firstError:function(){return this.activeErrors.length?this.activeErrors[0]:""},firstErrorMessage:function(){return this.hasErrors?this.getErrorMessage(this.firstError.validationKey,this.firstError.params):""},hasErrors:function(){return this.validator.$error}},methods:{getErrorMessage:function(r,t){return this.$vuelidateErrorExtractor.i18n?this.getI18nMessage(r,t):this.getPlainMessage(r,t)},getI18nMessage:function(r,t){return this.$t(this.$vuelidateErrorExtractor.i18n+"."+r,t)},getPlainMessage:function(r,a){var s=t(r,this.mergedMessages,!1);return s?e(s,a):r}},props:{label:String,validator:{type:Object,default:function(){return{$dirty:!1,$error:!1,$invalid:!0,$pending:!1,$params:[]}}},validatorParams:{type:Object,default:function(){return{}}},messages:{type:Object,default:function(){return{}}},showSingleError:{type:Boolean,default:!1}}},o={render:function(){var r=this,t=r.$createElement,e=r._self._c||t;return e("div",{staticClass:"form-group",class:{error:r.hasErrors}},[r._t("label",[r.label?e("label",{class:{"is-invalid-label":r.hasErrors}},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",null,{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage}),r._t("errors",[r.hasErrors?e("div",{staticClass:"form-error is-visible"},[r.showSingleError?e("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(t){return e("span",{key:t.validationKey,attrs:{"data-validation-attr":t.validationKey}},[r._v(r._s(r.getErrorMessage(t.validationKey,t.params)))])})],2):r._e()],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[i]};r.default=o,Object.defineProperty(r,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/dist/templates/foundation6.min.js.gz b/dist/templates/foundation6.min.js.gz index a999dacae1a90063ed5c672230baf16d13eae665..ccbe6c5852bb3dac579cd87992dffcb7feeaa345 100644 GIT binary patch literal 1362 zcmV-Y1+DrYiwFP!000003$<5SZ`(K!e($fKi6D>?T8aCxyHFq)d!*Q+TeN74eKCxH zk;XQ6WzirhCxN2>zC%)nA0HCmKKYJ@BT#Y|XHdH)Zjh9-%5+JIaTc-%;3^!YipMi!!gjE-92T4rSqQxh~= zVN6?dy#;^j{M`SK_&S^VWiX@7IXXw*u?bZ4cboLB&H1)X`He*H+}i!=3#>OeDkR^d z{QO+iVI7#2(5z1w(=9a+ZIr;2Z(0E{77GSpB^JR}ii}(*NrD*!kWd;jY7Z349tIUE zFr_L8!j#HF%N(Kyu8M%(K5h_AtNJr>=fgia)jfG@yQV%Av6ije4pY^D5GtT$q4HG>jBvWeUNtPg=#9nLj^M zTH{`wa+9tss;7dSoowlOjKSEn>$Ngk`JVS2l55CT>XC>?W0)3*L?g4 z&=B5ixgtEds)FcZ8rE0Kn+|gY*sF*%-)T|CJ2(vrAarPlJxaXo)kdr9SA+d(62x?` zgK-d8wdJl3Xy6?@#fq)CcKO94J0ejdmbSd?Y{L~_>v$-Mnr*AmD0ny`uC-VeK~=Mg z8!W?pX}}-O`90*!{oUE98L*-4kIr6L*A^?Cj3!JZRVvpTw3Nk_>m40;Acd9HQ;C~y zg9$Q7jt9%M7o2U6Ge^T-DhEzm2+Y3b}>oz09#I1%$i?L&bAiOr>O)&Py*Cnhk*Lh>l(d5$gMY!9Mm z0%tOet^WD>AOqY9qa2E*SxtjO$wK4?RIp2vK0|7o7zZR#b$FP7vI(ep;sR8I;6xKk zzY$^!GlX1heFX;9Z2R3-%GdgIOgJ`e?^=^S>mM}QwF1V;Sw$~B+Qs0ZAi=Z=n%Ja@J zxuVn-ZL^Y@j;p;e;-h!P%SemKFGZKrTl{EKQtoNc2tMXq3?wxhs=wsg1YZx~60f|= z&hW0gcu2~gn%qmlx5jScvC$-K$wN;e(0C%Yh;5J$5HC-GpWPkBI$-0<4p>8@4Btq+ z%*|mrsAi|8(Wel{)O5YS9) zDXX->&QE{OaoF))D%EqupCAF^{zvGE*N-rpmUl`7@KcYJbaKU^C4Lp<;WuCM4(o+Na*qPcL z=SSE?MF)Fz>&RPn$@c8>0*FqZVES93#eELc<+@jEYd~*!LH#4Z0)~yp$2}p9?LHku zHl(Y43=cBcL5&>-;00EWH_i~XuETnU=)=XEFgAO{`Em;8<+u+xdY_eB9=7?^;heqh zdf|U5yLEuG>FWB)joh2U5(Ha|M`2fDUf-yw>Ays>=Fap#+PW8wV)X6~^n3Rckh&*j U2}nP94Tm@X0j>{B{=*Ic0E-}y*#H0l literal 1359 zcmV-V1+e-biwFP!000003$<6KLGl%r$`RD~XCz}cinF|YJ&|2v+JXkF< zt2EhM$FJfm;*_F{kylsOKa)SyomMNU$)8#pt2R#f2?`Jfa#EE!XkwQ@-oO1q{*oD# z24YmXd@-6=WoD%+Bh4+Vsk-|IGE39cKCVH{2|TQow&v`NIwNygLQY4WaHaC9fQgM- zEtb&E+}1+ab#@khW3kF7;W3)hb|0Og@5Dwr{<};1wafW+m+~8h-i5RK(-&B+3sgwI zNBQZgZdeo9r8In-Fs54>AjWEmDc^JgVjUJ7SS{z#M#-F9rD=*8M37R-ICUG!#TEw5 zG}ua)1YyclX;cC6z0hSuUq7r7O{{<*VH1(1uftqwV~Nmq6Ry#+1bx@+yO9*e9Lh)Xtus zC~a`9$%M_84%JgZPEWSdW1{&|7@uD{dER2zhGO8P1 z3yWpAt1N`gg}8%)`|q8Fh65kk{^;$org2!Abac&ST4!ptMoW28``$504-%`Lo=*LA zTTGBcdOTQeg5c%mICI1UTufJ*HnD$kDFPO+#Ckgoau4}YnquFZ7!mz&Uw+hT4cb1U z+9WblIg3Le@f^JhoR;1W*4a))j1w_S^*$6RP}p1=XARH@zG4D1ETo7tQ54t$-u57R zE^#JV;`GnX1{vTAiwh_hb~%X-C39I=(9teUh774|VjPfEH|#J0?Gn(l)CZ^s!O1q3 z?E=FV<_NjmgbEC*+4Z}tRH*gom~d>m-gPEdpcjz82V=wnju}1Z(dYYN)mjQ_-5Wac zj1orXMC7~Kb!Z<5rdPAXvFFxY8~Z7%U9u+FTEJkJKj7l6vAvGimxf+sK7!uxDbG8@ zMZk-;5_Lu`$FfOrK8{Or#t-UFM|Zopa^<#2~XH3U36W?DvkYovuo8r@N+}vo}O$6I7Bp; z8_H{AvGcRv3mkU5mnyv)FSM%GlxKb^oFmDWKn#X4MU!~%@dcvp%|BrYyQR9_Or;sO zn2&?#h^0;BB8*xq?1H*mPFM-VHlgPf$B(fY_D6gR5kBw`LJJS&WmOcsJM{E`K6a*d z$N3R9(ec4r(>V&3G1+H;^Ew1m-bf?w3ZOo}z4|(o%vzK*9Q+O>Y&J38lF-<#(?K*t zirUBRAnF~Y_+bD+;N*D943X-)YRd}SaPjm@>>gP@pMrfp?gL)lXX1`~T|Nz)@mKiy zKWgkO;~@Hie)9A6rgUt;SMou+Cpl|wblf&us(5=qhJR@N^+j`fdkf~h|G!85{jmb% R8a#8^&40Nffl06q002kCmgfKf diff --git a/dist/vuelidate-error-extractor.common.js b/dist/vuelidate-error-extractor.common.js index ed38e53..d7be3f7 100644 --- a/dist/vuelidate-error-extractor.common.js +++ b/dist/vuelidate-error-extractor.common.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ @@ -169,11 +169,11 @@ var messageExtractorMixin = { } }; -var foundation6 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{error: _vm.hasErrors}},[_vm._t("label",[(_vm.label)?_c('label',{class:{'is-invalid-label': _vm.hasErrors}},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[_c('div',{staticClass:"form-error is-visible"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2)],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], +var foundation6 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{error: _vm.hasErrors}},[_vm._t("label",[(_vm.label)?_c('label',{class:{'is-invalid-label': _vm.hasErrors}},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"form-error is-visible"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], mixins: [messageExtractorMixin] }; -var bootstrap3 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{'has-error': _vm.hasErrors, 'has-success':(!_vm.hasErrors && _vm.validator.$dirty)}},[_vm._t("label",[(_vm.label)?_c('label',{staticClass:"control-label"},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",[_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"help-block"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], +var bootstrap3 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{'has-error': _vm.hasErrors, 'has-success':(!_vm.hasErrors && _vm.validator.$dirty)}},[_vm._t("label",[(_vm.label)?_c('label',{staticClass:"control-label"},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"help-block"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], mixins: [messageExtractorMixin] }; diff --git a/dist/vuelidate-error-extractor.esm.js b/dist/vuelidate-error-extractor.esm.js index d15d6da..7f2a319 100644 --- a/dist/vuelidate-error-extractor.esm.js +++ b/dist/vuelidate-error-extractor.esm.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ @@ -165,11 +165,11 @@ var messageExtractorMixin = { } }; -var foundation6 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{error: _vm.hasErrors}},[_vm._t("label",[(_vm.label)?_c('label',{class:{'is-invalid-label': _vm.hasErrors}},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[_c('div',{staticClass:"form-error is-visible"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2)],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], +var foundation6 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{error: _vm.hasErrors}},[_vm._t("label",[(_vm.label)?_c('label',{class:{'is-invalid-label': _vm.hasErrors}},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"form-error is-visible"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], mixins: [messageExtractorMixin] }; -var bootstrap3 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{'has-error': _vm.hasErrors, 'has-success':(!_vm.hasErrors && _vm.validator.$dirty)}},[_vm._t("label",[(_vm.label)?_c('label',{staticClass:"control-label"},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",[_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"help-block"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], +var bootstrap3 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{'has-error': _vm.hasErrors, 'has-success':(!_vm.hasErrors && _vm.validator.$dirty)}},[_vm._t("label",[(_vm.label)?_c('label',{staticClass:"control-label"},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"help-block"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], mixins: [messageExtractorMixin] }; diff --git a/dist/vuelidate-error-extractor.js b/dist/vuelidate-error-extractor.js index 0bd01ae..a178fa3 100644 --- a/dist/vuelidate-error-extractor.js +++ b/dist/vuelidate-error-extractor.js @@ -1,5 +1,5 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ @@ -171,11 +171,11 @@ var messageExtractorMixin = { } }; -var foundation6 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{error: _vm.hasErrors}},[_vm._t("label",[(_vm.label)?_c('label',{class:{'is-invalid-label': _vm.hasErrors}},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[_c('div',{staticClass:"form-error is-visible"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2)],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], +var foundation6 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{error: _vm.hasErrors}},[_vm._t("label",[(_vm.label)?_c('label',{class:{'is-invalid-label': _vm.hasErrors}},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"form-error is-visible"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], mixins: [messageExtractorMixin] }; -var bootstrap3 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{'has-error': _vm.hasErrors, 'has-success':(!_vm.hasErrors && _vm.validator.$dirty)}},[_vm._t("label",[(_vm.label)?_c('label',{staticClass:"control-label"},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",[_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"help-block"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], +var bootstrap3 = {render: function(){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-group",class:{'has-error': _vm.hasErrors, 'has-success':(!_vm.hasErrors && _vm.validator.$dirty)}},[_vm._t("label",[(_vm.label)?_c('label',{staticClass:"control-label"},[_vm._v(_vm._s(_vm.label)+" "+_vm._s(_vm.errors ? '*' : ''))]):_vm._e()]),_vm._t("default",null,{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage}),_vm._t("errors",[(_vm.hasErrors)?_c('div',{staticClass:"help-block"},[(_vm.showSingleError)?_c('span',{attrs:{"data-validation-attr":_vm.firstError.validationKey}},[_vm._v(_vm._s(_vm.firstErrorMessage))]):_vm._e(),(!_vm.showSingleError)?_vm._l((_vm.activeErrors),function(error){return _c('span',{key:error.validationKey,attrs:{"data-validation-attr":error.validationKey}},[_vm._v(_vm._s(_vm.getErrorMessage(error.validationKey, error.params)))])}):_vm._e()],2):_vm._e()],{errors:_vm.activeErrors,hasErrors:_vm.hasErrors,firstErrorMessage:_vm.firstErrorMessage})],2)},staticRenderFns: [], mixins: [messageExtractorMixin] }; diff --git a/dist/vuelidate-error-extractor.min.js b/dist/vuelidate-error-extractor.min.js index 3c314f1..5a50e7b 100644 --- a/dist/vuelidate-error-extractor.min.js +++ b/dist/vuelidate-error-extractor.min.js @@ -1,6 +1,6 @@ /*! - * vuelidate-error-extractor v1.2.0 + * vuelidate-error-extractor v1.2.1 * (c) 2017 Dobromir Hristov * Released under the MIT License. */ -!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(r.VuelidateErrorExtractor=r.VuelidateErrorExtractor||{})}(this,function(r){"use strict";function e(r,e,t){if(void 0===t&&(t=""),"string"!=typeof r)return o&&console.warn("Expected a string in the first argument, got "+typeof r),t;if("object"!=typeof e)return o&&console.warn("Expected an Object/Array in the second argument, got "+typeof e),t;try{return r.split(".").reduce(function(r,e){return r[e]||""},e)}catch(r){return o&&console.warn("[vuelidate-error-extractor]: "+r),t}}function t(r,t){if("string"!=typeof r)throw new TypeError("Expected a string in the first argument, got "+typeof r);if("object"!=typeof t)throw new TypeError("Expected an Object/Array in the second argument, got "+typeof t);var a=/{(.*?)}/g;return r.replace(a,function(r,a){return e(a,t)||""})}function a(r,e,t){return void 0===e&&(e=r),void 0===t&&(t={}),{validationKey:r,hasError:!this.validator[e],$params:this.validator.$params[e],params:Object.assign({},{attribute:this.label,label:this.label},t,this.validatorParams)}}function s(r,e){void 0===e&&(e={}),r.prototype.$vuelidateErrorExtractor={i18n:e.i18n||!1,messages:e.messages||{},validationKeys:e.validationKeys||{}},void 0===e.template?console.error("[vuelidate-message-extractor warn]: No template component provided in vuelidate-error-extractor options. Please provide a template using Vue.use(vuelidateMessageExtractor, { template: yourImportedType })"):(e.name=e.name||"formGroup",r.component(e.name,e.template))}var o=!1,i={computed:{errors:function(){var r=this,e={},t=this.validator.$params,s=this.$vuelidateErrorExtractor.validationKeys;return Object.keys(t).map(function(o){return void 0!==s&&s.hasOwnProperty(o)?(s[o].params.forEach(function(a){e[a.ext]=r.validatorParams[a.other]||t[o][a.vue]}),a.call(r,s[o].validationKey,o,e)):t[o]&&Object.keys(t[o]).length?(Object.keys(t[o]).filter(function(r){return"type"!==r}).forEach(function(r){e[r]=t[o][r]}),a.call(r,o,o,e)):a.call(r,o)})},activeErrors:function(){return this.errors.filter(function(r){return r.hasError})},mergedMessages:function(){return Object.assign({},this.$vuelidateErrorExtractor.messages,this.messages)},firstError:function(){return this.activeErrors.length?this.activeErrors[0]:""},firstErrorMessage:function(){return this.hasErrors?this.getErrorMessage(this.firstError.validationKey,this.firstError.params):""},hasErrors:function(){return this.validator.$error}},methods:{getErrorMessage:function(r,e){return this.$vuelidateErrorExtractor.i18n?this.getI18nMessage(r,e):this.getPlainMessage(r,e)},getI18nMessage:function(r,e){return this.$t(this.$vuelidateErrorExtractor.i18n+"."+r,e)},getPlainMessage:function(r,a){var s=e(r,this.mergedMessages,!1);return s?t(s,a):r}},props:{label:String,validator:{type:Object,default:function(){return{$dirty:!1,$error:!1,$invalid:!0,$pending:!1,$params:[]}}},validatorParams:{type:Object,default:function(){return{}}},messages:{type:Object,default:function(){return{}}},showSingleError:{type:Boolean,default:!1}}},n={render:function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"form-group",class:{error:r.hasErrors}},[r._t("label",[r.label?t("label",{class:{"is-invalid-label":r.hasErrors}},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",null,{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage}),r._t("errors",[t("div",{staticClass:"form-error is-visible"},[r.showSingleError?t("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(e){return t("span",{key:e.validationKey,attrs:{"data-validation-attr":e.validationKey}},[r._v(r._s(r.getErrorMessage(e.validationKey,e.params)))])})],2)],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[i]},l={render:function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"form-group",class:{"has-error":r.hasErrors,"has-success":!r.hasErrors&&r.validator.$dirty}},[r._t("label",[r.label?t("label",{staticClass:"control-label"},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",[r._t("errors",[r.hasErrors?t("div",{staticClass:"help-block"},[r.showSingleError?t("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(e){return t("span",{key:e.validationKey,attrs:{"data-validation-attr":e.validationKey}},[r._v(r._s(r.getErrorMessage(e.validationKey,e.params)))])})],2):r._e()],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[i]},c={foundation6:n,bootstrap3:l},u={minLength:{validationKey:"min.string",params:[{vue:"min",ext:"min"}]},sameAs:{validationKey:"same",params:[{vue:"eq",ext:"other"}]}},d={laravel:u};r.default=s,r.extractorMixin=i,r.configs=d,r.templates=c,Object.defineProperty(r,"__esModule",{value:!0})}); \ No newline at end of file +!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(r.VuelidateErrorExtractor=r.VuelidateErrorExtractor||{})}(this,function(r){"use strict";function e(r,e,t){if(void 0===t&&(t=""),"string"!=typeof r)return o&&console.warn("Expected a string in the first argument, got "+typeof r),t;if("object"!=typeof e)return o&&console.warn("Expected an Object/Array in the second argument, got "+typeof e),t;try{return r.split(".").reduce(function(r,e){return r[e]||""},e)}catch(r){return o&&console.warn("[vuelidate-error-extractor]: "+r),t}}function t(r,t){if("string"!=typeof r)throw new TypeError("Expected a string in the first argument, got "+typeof r);if("object"!=typeof t)throw new TypeError("Expected an Object/Array in the second argument, got "+typeof t);var a=/{(.*?)}/g;return r.replace(a,function(r,a){return e(a,t)||""})}function a(r,e,t){return void 0===e&&(e=r),void 0===t&&(t={}),{validationKey:r,hasError:!this.validator[e],$params:this.validator.$params[e],params:Object.assign({},{attribute:this.label,label:this.label},t,this.validatorParams)}}function s(r,e){void 0===e&&(e={}),r.prototype.$vuelidateErrorExtractor={i18n:e.i18n||!1,messages:e.messages||{},validationKeys:e.validationKeys||{}},void 0===e.template?console.error("[vuelidate-message-extractor warn]: No template component provided in vuelidate-error-extractor options. Please provide a template using Vue.use(vuelidateMessageExtractor, { template: yourImportedType })"):(e.name=e.name||"formGroup",r.component(e.name,e.template))}var o=!1,i={computed:{errors:function(){var r=this,e={},t=this.validator.$params,s=this.$vuelidateErrorExtractor.validationKeys;return Object.keys(t).map(function(o){return void 0!==s&&s.hasOwnProperty(o)?(s[o].params.forEach(function(a){e[a.ext]=r.validatorParams[a.other]||t[o][a.vue]}),a.call(r,s[o].validationKey,o,e)):t[o]&&Object.keys(t[o]).length?(Object.keys(t[o]).filter(function(r){return"type"!==r}).forEach(function(r){e[r]=t[o][r]}),a.call(r,o,o,e)):a.call(r,o)})},activeErrors:function(){return this.errors.filter(function(r){return r.hasError})},mergedMessages:function(){return Object.assign({},this.$vuelidateErrorExtractor.messages,this.messages)},firstError:function(){return this.activeErrors.length?this.activeErrors[0]:""},firstErrorMessage:function(){return this.hasErrors?this.getErrorMessage(this.firstError.validationKey,this.firstError.params):""},hasErrors:function(){return this.validator.$error}},methods:{getErrorMessage:function(r,e){return this.$vuelidateErrorExtractor.i18n?this.getI18nMessage(r,e):this.getPlainMessage(r,e)},getI18nMessage:function(r,e){return this.$t(this.$vuelidateErrorExtractor.i18n+"."+r,e)},getPlainMessage:function(r,a){var s=e(r,this.mergedMessages,!1);return s?t(s,a):r}},props:{label:String,validator:{type:Object,default:function(){return{$dirty:!1,$error:!1,$invalid:!0,$pending:!1,$params:[]}}},validatorParams:{type:Object,default:function(){return{}}},messages:{type:Object,default:function(){return{}}},showSingleError:{type:Boolean,default:!1}}},n={render:function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"form-group",class:{error:r.hasErrors}},[r._t("label",[r.label?t("label",{class:{"is-invalid-label":r.hasErrors}},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",null,{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage}),r._t("errors",[r.hasErrors?t("div",{staticClass:"form-error is-visible"},[r.showSingleError?t("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(e){return t("span",{key:e.validationKey,attrs:{"data-validation-attr":e.validationKey}},[r._v(r._s(r.getErrorMessage(e.validationKey,e.params)))])})],2):r._e()],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[i]},l={render:function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"form-group",class:{"has-error":r.hasErrors,"has-success":!r.hasErrors&&r.validator.$dirty}},[r._t("label",[r.label?t("label",{staticClass:"control-label"},[r._v(r._s(r.label)+" "+r._s(r.errors?"*":""))]):r._e()]),r._t("default",null,{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage}),r._t("errors",[r.hasErrors?t("div",{staticClass:"help-block"},[r.showSingleError?t("span",{attrs:{"data-validation-attr":r.firstError.validationKey}},[r._v(r._s(r.firstErrorMessage))]):r._e(),r.showSingleError?r._e():r._l(r.activeErrors,function(e){return t("span",{key:e.validationKey,attrs:{"data-validation-attr":e.validationKey}},[r._v(r._s(r.getErrorMessage(e.validationKey,e.params)))])})],2):r._e()],{errors:r.activeErrors,hasErrors:r.hasErrors,firstErrorMessage:r.firstErrorMessage})],2)},staticRenderFns:[],mixins:[i]},c={foundation6:n,bootstrap3:l},u={minLength:{validationKey:"min.string",params:[{vue:"min",ext:"min"}]},sameAs:{validationKey:"same",params:[{vue:"eq",ext:"other"}]}},d={laravel:u};r.default=s,r.extractorMixin=i,r.configs=d,r.templates=c,Object.defineProperty(r,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/docs/advanced.html b/docs/advanced.html index b218a4d..811f9ea 100644 --- a/docs/advanced.html +++ b/docs/advanced.html @@ -372,7 +372,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Advanced","level":"1.5","depth":1,"previous":{"title":"Custom Templates","level":"1.4","depth":1,"path":"custom_templates.md","ref":"custom_templates.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"advanced.md","mtime":"2017-10-10T20:32:07.108Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T21:35:09.201Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Advanced","level":"1.5","depth":1,"previous":{"title":"Custom Templates","level":"1.4","depth":1,"path":"custom_templates.md","ref":"custom_templates.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"advanced.md","mtime":"2017-10-10T20:32:07.108Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T22:17:13.836Z"},"basePath":".","book":{"language":""}}); }); diff --git a/docs/custom_templates.html b/docs/custom_templates.html index c861e02..817b09e 100644 --- a/docs/custom_templates.html +++ b/docs/custom_templates.html @@ -437,7 +437,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Custom Templates","level":"1.4","depth":1,"next":{"title":"Advanced","level":"1.5","depth":1,"path":"advanced.md","ref":"advanced.md","articles":[]},"previous":{"title":"Options","level":"1.3","depth":1,"path":"options.md","ref":"options.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"custom_templates.md","mtime":"2017-10-10T20:07:27.152Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T21:35:09.201Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Custom Templates","level":"1.4","depth":1,"next":{"title":"Advanced","level":"1.5","depth":1,"path":"advanced.md","ref":"advanced.md","articles":[]},"previous":{"title":"Options","level":"1.3","depth":1,"path":"options.md","ref":"options.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"custom_templates.md","mtime":"2017-10-10T20:07:27.152Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T22:17:13.836Z"},"basePath":".","book":{"language":""}}); }); diff --git a/docs/index.html b/docs/index.html index 7c157e0..6421ebc 100644 --- a/docs/index.html +++ b/docs/index.html @@ -269,7 +269,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Installation","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"README.md","mtime":"2017-08-21T16:37:09.209Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T21:35:09.201Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"Installation","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"README.md","mtime":"2017-08-21T16:37:09.209Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T22:17:13.836Z"},"basePath":".","book":{"language":""}}); }); diff --git a/docs/installation.html b/docs/installation.html index 180f7b9..eadd806 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -355,7 +355,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Installation","level":"1.2","depth":1,"next":{"title":"Options","level":"1.3","depth":1,"path":"options.md","ref":"options.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"installation.md","mtime":"2017-10-10T21:35:06.580Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T21:35:09.201Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Installation","level":"1.2","depth":1,"next":{"title":"Options","level":"1.3","depth":1,"path":"options.md","ref":"options.md","articles":[]},"previous":{"title":"Introduction","level":"1.1","depth":1,"path":"README.md","ref":"README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"installation.md","mtime":"2017-10-10T22:17:11.184Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T22:17:13.836Z"},"basePath":".","book":{"language":""}}); }); diff --git a/docs/options.html b/docs/options.html index 6c3b90e..4cef204 100644 --- a/docs/options.html +++ b/docs/options.html @@ -346,7 +346,7 @@

No results matching " var gitbook = gitbook || []; gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Options","level":"1.3","depth":1,"next":{"title":"Custom Templates","level":"1.4","depth":1,"path":"custom_templates.md","ref":"custom_templates.md","articles":[]},"previous":{"title":"Installation","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"options.md","mtime":"2017-10-10T19:07:56.201Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T21:35:09.201Z"},"basePath":".","book":{"language":""}}); + gitbook.page.hasChanged({"page":{"title":"Options","level":"1.3","depth":1,"next":{"title":"Custom Templates","level":"1.4","depth":1,"path":"custom_templates.md","ref":"custom_templates.md","articles":[]},"previous":{"title":"Installation","level":"1.2","depth":1,"path":"installation.md","ref":"installation.md","articles":[]},"dir":"ltr"},"config":{"plugins":["edit-link","theme-vuejs@git+https://github.com/pearofducks/gitbook-plugin-theme-vuejs.git","-fontsettings","github","ga","meta"],"root":"./","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"github":{"url":"https://github.com/dobromir-hristov/vuelidate-error-extractor/"},"meta":{"content":"","data":[{"name":"twitter:card","content":"summary"},{"name":"twitter:site","content":"@d_m_hristov"},{"name":"twitter:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"name":"twitter:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"name":"twitter:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"},{"property":"og:url","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/"},{"property":"og:title","content":"Error message extractor helper for Vuelidate using VueJS 2.4"},{"property":"og:description","content":"Vuelidate-error-extractor removes the repetition of showing vuelidate error messages. Works for Bootstrap3 and Foundation6"},{"property":"og:image","content":"https://dobromir-hristov.github.io/vuelidate-error-extractor/vue-logo.png"}],"name":""},"search":{},"theme-vuejs":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"highlight":{},"ga":{"configuration":"auto","token":"UA-29425482-9"},"sharing":{"facebook":false,"twitter":false,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"edit-link":{"label":"Edit This Page","base":"https://github.com/dobromir-hristov/vuelidate-error-extractor/tree/master/gitbook"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"links":{"sharing":{"facebook":false,"twitter":false}},"gitbook":"*"},"file":{"path":"options.md","mtime":"2017-10-10T19:07:56.201Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2017-10-10T22:17:13.836Z"},"basePath":".","book":{"language":""}}); }); diff --git a/package-lock.json b/package-lock.json index 4ea3b78..e905edf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vuelidate-error-extractor", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3e6f4ae..f56a705 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": "1.2.0", + "version": "1.2.1", "author": { "name": "Dobromir Hristov", "email": "dobri@digital-cult.com"