diff --git a/Gruntfile.js b/Gruntfile.js index ad8ff5c..734d693 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -37,7 +37,7 @@ module.exports = function(grunt){ compress: { main: { options: { - archive: 'smoke-v2.1.5.zip' + archive: 'smoke-v2.1.6.zip' }, files: [ //{src: ['path/*'], dest: 'internal_folder/', filter: 'isFile'}, // includes files in path diff --git a/README.md b/README.md index 636864a..ca4bfd8 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,7 @@ ![Version](https://img.shields.io/github/release/alfredobarron/smoke.svg) ![Version](https://img.shields.io/bower/v/smoke.svg) ![Downloads](https://img.shields.io/github/downloads/alfredobarron/smoke/latest/total.svg) -![Downloads](https://img.shields.io/github/downloads/alfredobarron/smoke/v2.1.4/total.svg) -![Downloads](https://img.shields.io/github/downloads/alfredobarron/smoke/v2.1.3/total.svg) -![Downloads](https://img.shields.io/github/downloads/alfredobarron/smoke/v2.1.2/total.svg) +![Downloads](https://img.shields.io/github/downloads/alfredobarron/smoke/v2.1.5/total.svg) Smoke is the most complete jQuery Plugin and designed for use with Bootstrap 3 @@ -55,6 +53,8 @@ Documentation can check the [http://alfredobarron.github.io/smoke/#/](http://alf ##Community - Join [the official Slack room](https://smokejs.slack.com). +- Implementation help may be found at Stack Overflow (tagged [`smoke`](http://stackoverflow.com/questions/tagged/smoke)). + ##Creators @@ -66,6 +66,9 @@ Documentation can check the [http://alfredobarron.github.io/smoke/#/](http://alf - [+MisaelRojas](https://plus.google.com/+MisaelRojas) - [@mostrosonido](https://twitter.com/mostrosonido) +- [@sdhp](https://github.com/sdhp) +- [@LespiletteMaxime](https://github.com/LespiletteMaxime) +- [@druzza](https://github.com/druzza) diff --git a/bower.json b/bower.json index 91d797e..d82b8f1 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "smoke", - "version": "2.1.5", + "version": "2.1.6", "description": "Smoke is the most complete jQuery Plugin and designed for use with Bootstrap 3", "license": "LGPL", "authors": [ diff --git a/dist/js/smoke.min.js b/dist/js/smoke.min.js index 5a015fd..e7bba55 100644 --- a/dist/js/smoke.min.js +++ b/dist/js/smoke.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate=function(b){var c=a.extend({lang:"en"},a.fn.smkValidate.Languaje,b),d={en:{textEmpty:"Required field",textEmail:"Enter a valid email",textAlphanumeric:"Only numbers and/or letters allowed",textNumber:"Only numbers are allowed",textNumberRange:"The numerical range must be greater than {@} and less than {@} ",textDecimal:"Only decimal numbers are allowed",textCurrency:"Please enter a valid monetary amount",textSelect:"It is necessary that you select an option",textCheckbox:"It is necessary that you select an option",textLength:"The number of characters is equal to {@} ",textRange:"The number of characters must be greater than {@} and less than {@} ",textSPassDefault:"Minimum 4 characters",textSPassWeak:"Minimum 6 characters",textSPassMedium:"Minimum 6 characters and a number",textSPassStrong:"Minimum 6 characters a number and a capital"}};"en"!=c.lang&&(d=a.fn.smkValidate.Languaje);var e="",f="",g=!1;return a(":input",this).each(function(b,h){if("button"!=a(h).attr("type")){e=a(h),f=a(h).parents(".form-group");var i=a(h).attr("name"),j=a(h).val(),k=a(h).attr("type"),l=a(h).attr("smk-type"),m=h.tagName.toLowerCase(),n=a(h).attr("required"),o=a(h).attr("smk-strongPass"),p=a(h).attr("minlength"),q=a(h).attr("maxlength"),r=a(h).attr("smk-min"),s=a(h).attr("smk-max");if(a.smkRemoveError(e),"required"===n&&("text"===k||"textarea"===m||"password"===k||"email"===k)){if(""===j)return g=a.smkAddError(e,d[c.lang].textEmpty),!1;g=!0}if("required"===n&&"email"===k){var t=/^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/;if(!t.test(j))return g=a.smkAddError(e,d[c.lang].textEmail),!1;g=!0}if("required"===n&&"password"===k){var u="",v="";switch(o){case"weak":u=/^(?=.*[a-z0-9])\w{6,}$/,v=d[c.lang].textSPassWeak;break;case"medium":u=/^(?=.*\d)(?=.*[a-z])\w{6,}$/,v=d[c.lang].textSPassMedium;break;case"strong":u=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}$/,v=d[c.lang].textSPassStrong;break;default:u=/^(?=.*[a-z0-9])\w{4,}$/,v=d[c.lang].textSPassDefault}if(!u.test(j))return g=a.smkAddError(e,v),!1;g=!0}if("required"===n&&"select"===m){if(""===j)return g=a.smkAddError(e,d[c.lang].textSelect),!1;g=!0}if("required"===n&&("radio"===k||"checkbox"===k)){var w=a("input[name="+i+"]:checked").val();if(void 0===w)return g=a.smkAddError(e,d[c.lang].textCheckbox),!1;g=!0}if("alphanumeric"===l){var x=/^[a-z0-9]+$/i;if(!x.test(j))return g=a.smkAddError(e,d[c.lang].textAlphanumeric),!1;g=!0}if("number"===l){var y=/^\d+$/;if(!y.test(j))return g=a.smkAddError(e,d[c.lang].textNumber),!1;g=!0}if("decimal"===l){var z=/^\d+(?:\.\d{1,4})?$/;if(!z.test(j))return g=a.smkAddError(e,d[c.lang].textDecimal),!1;g=!0}if("currency"===l){var A=/^(?:\d+|\d{1,3}(?:,\d{3})*)(?:\.\d{1,4}){0,1}$/;if(!A.test(j))return g=a.smkAddError(e,d[c.lang].textCurrency),!1;g=!0}if("undefined"!=typeof p||"undefined"!=typeof q)if(p===q){if(j.length!=p&&j.length!=q){var B=a.smokeCustomizeText(d[c.lang].textLength,q);return g=a.smkAddError(e,B),!1}g=!0}else if(p!==q){if(j.lengthq){var C=[];C[0]=parseInt(p-1),C[1]=parseInt(q)+1;var D=a.smokeCustomizeText(d[c.lang].textRange,C);return g=a.smkAddError(e,D),!1}g=!0}if("undefined"!=typeof r||"undefined"!=typeof s){if(r>j||j>s){var E=[];E[0]=parseInt(r-1),E[1]=parseInt(s)+1;var F=a.smokeCustomizeText(d[c.lang].textNumberRange,E);return g=a.smkAddError(e,F),!1}g=!0}}}),a(e).keyup(function(){""!==e.val()&&a.smkRemoveError(e)}),a(e).change(function(){""!==e.val()&&a.smkRemoveError(e)}),g},a.smkEqualPass=function(b,c,d){var e={en:{textEqualPass:"Passwords do not match"}};return void 0===d&&(d="en"),"en"!=d&&(e=a.smkEqualPass.Languaje),b=void 0!==a(b).val()?a(b).val():b,b!==a(c).val()?a.smkAddError(a(c),e[d].textEqualPass):!0},a.fn.smkClear=function(b){var c=a.extend({noClear:""},b),d=c.noClear.replace(/\s/g,""),e=d.split(",");return a(":input",this).each(function(){var b=this.type,c=this.tagName.toLowerCase();if("input"==c&&(c=b),a.inArray(b,e)<0&&a.inArray(c,e)<0){switch(b){case"text":case"password":case"email":case"number":case"hidden":this.value="";break;case"checkbox":case"radio":this.checked=!1}switch(c){case"textarea":this.value="";break;case"select":this.selectedIndex=-1,a(this).hasClass("select2")&&a(this).select2("val","")}}})},a.smkAddError=function(b,c){var d=a(b).parents(".form-group"),e=a(b).attr("type"),f=a(b).prop("tagName").toLowerCase(),g=a(b).attr("smk-text");(""===g||void 0===g)&&(g=c),void 0===e&&(e=f);var h='',i=''+g+"";return"select"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(h+i)):"checkbox"==e||"radio"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(i)):(d.addClass("has-feedback has-error"),d.append(h+i)),b.focus(),!1},a.smkRemoveError=function(b){var c=a(b).parents(".form-group");return c.find(".smk-error-text, .smk-error-icon").remove(),c.removeClass("has-error has-feedback"),!1},a.smokeCustomizeText=function(b,c){var d="";if("string"==typeof c)d=b.replace("{@}",c);else{var e=b.split("{@}");a.each(c,function(a,b){d+=e[a]+b})}return d};var b=0;a.smkAlert=function(c){function d(){g=setTimeout(function(){f.animate({opacity:"0",marginLeft:"100px",marginRight:"-100px"},300,function(){f.remove()})},1e3*e.time)}var e=a.extend({text:"Hola Mundo",type:"warning",icon:"glyphicon-exclamation-sign",time:5,permanent:!1},c);switch(b++,e.type){case"warning":e.type="alert-warning",e.icon="glyphicon-exclamation-sign";break;case"success":e.type="alert-success",e.icon="glyphicon-ok-sign";break;case"danger":e.type="alert-danger",e.icon="glyphicon-remove-sign";break;case"info":e.type="alert-info",e.icon="glyphicon-info-sign"}1==b&&a("body").append('
');var f=a('

'+e.text+"

");if(a(".smk-alert-content").prepend(f),f.animate({opacity:"1",marginTop:"20px"},300),e.permanent===!1){var g=0;a(f).mouseenter(function(){clearTimeout(g)}).mouseleave(function(){d()}),d()}},a.smkConfirm=function(b,c){function d(){a(".smk-confirm-back").fadeOut(200,function(){a(".smk-confirm-back").remove()}),a(".smk-confirm").animate({top:"-500px",opacity:"0"},400,function(){a(".smk-confirm").remove()})}var e=a.extend({text:"¿Estas seguro?",accept:"Aceptar",cancel:"Cancelar"},b);a("body").append('
"),a(".smk-confirm").animate({top:"-5px",opacity:"1"},400),a(".smk-cancel").click(function(a){a.preventDefault(),d(),c(!1)}),a(".smk-accept").click(function(a){a.preventDefault(),d(),c(!0)})},a.smkFloat=function(a){return"string"==typeof a&&(a=a.replace(",","")),parseFloat(a)},a.smkCurrency=function(a,b){var c=a.replace(",","");if(""===c||isNaN(c))return 0;c=Math.round(parseFloat(c)*Math.pow(10,2))/Math.pow(10,2),b=b||"",c+="";var d=c.split("."),e=d[0],f=d.length>1?"."+d[1]:".00";f+="00",f=f.substr(0,3);for(var g=/(\d+)(\d{3})/;g.test(e);)e=e.replace(g,"$1,$2");return b+e+f},a.smkGetURL=function(b){var c=a(location).attr("protocol"),d=a(location).attr("hostname"),e=a(location).attr("pathname");e=e.split("/");var f=e.pop();""!==f&&(file=f.split("."),file.length<2&&e.push(f)),e=e.slice(0,b+1),e=e.join("/");var g=c+"//"+d+e;return g},a.smkDatePicker=function(a){if(""!==a){var b=(a.getDate()<10?"0":"")+a.getDate(),c=(a.getMonth()+1<10?"0":"")+(a.getMonth()+1),d=a.getFullYear();result=d+"-"+c+"-"+b}else result="";return result},a.smkDate=function(b){var c=a.smkDatePicker(new Date),d=a.extend({date:c,format:"yyyy-mm-dd",lang:"en"},a.smkDate.Languaje,b),e={en:{shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]}},f=/\d+|[a-zA-z]/g,g=(d.date.replace(f,"\x00").split("\x00"),d.date.match(f));"es"==d.lang?(e=a.smkDate.Languaje,d.date=4==g[0].length?new Date(g[0],g[1]-1,g[2]):new Date(g[2],g[1]-1,g[0])):d.date=4==g[0].length?new Date(g[0],g[2]-1,g[1]):new Date(g[2],g[0]-1,g[1]);var h="";if("Invalid Date"!=d.date){var i={d:d.date.getDate(),dd:(d.date.getDate()<10?"0":"")+d.date.getDate(),m:d.date.getMonth()+1,mm:(d.date.getMonth()+1<10?"0":"")+(d.date.getMonth()+1),M:e[d.lang].shortMonthNames[d.date.getMonth()],MM:e[d.lang].monthNames[d.date.getMonth()],yyyy:d.date.getFullYear(),yy:d.date.getFullYear().toString().substring(2),hh:d.date.getHours(),mi:d.date.getMinutes(),ss:d.date.getSeconds()},j=/dd?|DD?|mm?|MM?|yy(?:yy)?/g,k=d.format.replace(j,"\x00").split("\x00"),l=d.format.match(j);a.each(l,function(a,b){h+=k[a]+i[b]})}else h="",console.log("Invalid Date");return h},a.smkDateDiff=function(b){var c=a.extend({fromDate:new Date,toDate:new Date,interval:"days"},b),d=1e3,e=60*d,f=60*e,g=24*f,h=7*g,i=new Date(c.fromDate),j=new Date(c.toDate),k=j-i;if(isNaN(k))return 0/0;switch(c.interval){case"years":return j.getFullYear()-i.getFullYear();case"months":return 12*j.getFullYear()+j.getMonth()-(12*i.getFullYear()+i.getMonth());case"weeks":return Math.floor(k/h);case"days":return Math.floor(k/g);case"hours":return Math.floor(k/f);case"minutes":return Math.floor(k/e);case"seconds":return Math.floor(k/d);default:return void 0}},a.smkScrolling=function(b){var c=a.extend({speed:1e3},b);a("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);if(b=b.length?b:a("[name="+this.hash.slice(1)+"]"),b.length)return a("html,body").animate({scrollTop:b.offset().top},c.speed),!1}})},a.smkProgressBar=function(b){var c=a.extend({element:"body",status:"start"},b),d='
';d+='
',d+='
',d+='0% Complete',d+="
",a(c.element).prepend(a(d).fadeIn("fast")),"body"==c.element?a(".smk-progressbar").css("position","fixed"):(a(c.element).css("position","relative"),a(".smk-progressbar").css("position","absolute")),"start"==c.status?a(c.element+" .smk-progressbar .progress .progress-bar").width(50+30*Math.random()+"%"):"end"==c.status&&a(c.element+" .smk-progressbar .progress .progress-bar").width("110%").delay(200,function(){a(c.element+" .smk-progressbar").fadeOut("slow",function(){a(this).remove()})})},a.fn.smkFullscreen=function(){function b(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}var c='';a(this).append(c),a(".smk-fullscreen").click(function(a){a.preventDefault(),b()});var d=function(){a(".smk-fullscreen").children(".glyphicon").toggleClass("glyphicon-fullscreen").toggleClass("glyphicon-resize-small")};document.addEventListener("fullscreenchange",d,!1),document.addEventListener("msfullscreenchange",d,!1),document.addEventListener("mozfullscreenchange",d,!1),document.addEventListener("webkitfullscreenchange",d,!1)},a.fn.smkPanel=function(b){var c=a.extend({hide:""},b),d=c.hide.replace(/\s/g,""),e=d.split(","),f=a(this).children(".panel-heading").children(".panel-title"),g="";g=f.length>0?"smk-btn-group-panel-title":"smk-btn-group-panel";var h='
';-1==a.inArray("min",e)&&(h+=''),-1==a.inArray("remove",e)&&(h+=''),-1==a.inArray("full",e)&&(h+=''),h+="
",a(this).children(".panel-heading").append(h),a(".smk-min").click(function(b){b.preventDefault();var c=a(this).parents(".panel-heading").siblings(".panel-body"),d=a(this).parents(".panel-heading").siblings(".panel-footer"),e=a(this).children(".glyphicon");a(d).slideToggle("fast"),a(c).slideToggle("fast",function(){e.toggleClass("glyphicon-minus").toggleClass("glyphicon-plus")})}),a(".smk-remove").click(function(b){b.preventDefault();var c=a(this).parents(".panel");c.fadeOut(400,function(){})}),a(".smk-full").click(function(b){b.preventDefault();var c=a(this).parents(".panel"),d=a(this).parents(".panel-heading").siblings(".panel-body"),e=a(this).children(".glyphicon"),f=a(this).siblings(".btn").children(".glyphicon-plus");c.hasClass("panel-full")?(c.removeClass("panel-full"),a(this).siblings(".btn").show(),1==f.length&&d.hide(),a("body").css({overflow:"auto"})):(c.addClass("panel-full"),a(this).siblings(".btn").hide(),1==f.length&&d.show(),a("body").css({overflow:"hidden"})),e.toggleClass("glyphicon-resize-full").toggleClass("glyphicon-resize-small")})}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate=function(b){var c=a.extend({lang:"en"},a.fn.smkValidate.Languaje,b),d={en:{textEmpty:"Required field",textEmail:"Enter a valid email",textAlphanumeric:"Only numbers and/or letters allowed",textNumber:"Only numbers are allowed",textNumberRange:"The numerical range must be greater than {@} and less than {@} ",textDecimal:"Only decimal numbers are allowed",textCurrency:"Please enter a valid monetary amount",textSelect:"It is necessary that you select an option",textCheckbox:"It is necessary that you select an option",textLength:"The number of characters is equal to {@} ",textRange:"The number of characters must be greater than {@} and less than {@} ",textSPassDefault:"Minimum 4 characters",textSPassWeak:"Minimum 6 characters",textSPassMedium:"Minimum 6 characters and a number",textSPassStrong:"Minimum 6 characters a number and a capital"}};"en"!=c.lang&&(d=a.fn.smkValidate.Languaje);var e="",f="",g=!1;return a(":input",this).each(function(b,h){if("button"!=a(h).attr("type")){e=a(h),f=a(h).parents(".form-group");var i=a(h).attr("name"),j=a(h).val(),k=a(h).attr("type"),l=a(h).attr("smk-type"),m=h.tagName.toLowerCase(),n=a(h).attr("required"),o=a(h).attr("smk-strongPass"),p=a(h).attr("minlength"),q=a(h).attr("maxlength"),r=a(h).attr("smk-min"),s=a(h).attr("smk-max");if(a.smkRemoveError(e),"required"===n&&("text"===k||"textarea"===m||"password"===k||"email"===k)){if(""===j)return g=a.smkAddError(e,d[c.lang].textEmpty),!1;g=!0}if("required"===n&&"email"===k){var t=/^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/;if(!t.test(j))return g=a.smkAddError(e,d[c.lang].textEmail),!1;g=!0}if("required"===n&&"password"===k){var u="",v="";switch(o){case"weak":u=/^(?=.*[a-z0-9])\w{6,}$/,v=d[c.lang].textSPassWeak;break;case"medium":u=/^(?=.*\d)(?=.*[a-z])\w{6,}$/,v=d[c.lang].textSPassMedium;break;case"strong":u=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}$/,v=d[c.lang].textSPassStrong;break;default:u=/^(?=.*[a-z0-9])\w{4,}$/,v=d[c.lang].textSPassDefault}if(!u.test(j))return g=a.smkAddError(e,v),!1;g=!0}if("required"===n&&"select"===m){if(""===j)return g=a.smkAddError(e,d[c.lang].textSelect),!1;g=!0}if("required"===n&&("radio"===k||"checkbox"===k)){var w=a("input[name="+i+"]:checked").val();if(void 0===w)return g=a.smkAddError(e,d[c.lang].textCheckbox),!1;g=!0}if("alphanumeric"===l){var x=/^[a-z0-9]+$/i;if(!x.test(j))return g=a.smkAddError(e,d[c.lang].textAlphanumeric),!1;g=!0}if("number"===l){var y=/^\d+$/;if(!y.test(j))return g=a.smkAddError(e,d[c.lang].textNumber),!1;g=!0}if("decimal"===l){var z=/^\d+(?:\.\d{1,4})?$/;if(!z.test(j))return g=a.smkAddError(e,d[c.lang].textDecimal),!1;g=!0}if("currency"===l){var A=/^(?:\d+|\d{1,3}(?:,\d{3})*)(?:\.\d{1,4}){0,1}$/;if(!A.test(j))return g=a.smkAddError(e,d[c.lang].textCurrency),!1;g=!0}if("undefined"!=typeof p||"undefined"!=typeof q)if(p===q){if(j.length!=p&&j.length!=q){var B=a.smokeCustomizeText(d[c.lang].textLength,q);return g=a.smkAddError(e,B),!1}g=!0}else if(p!==q){if(j.lengthq){var C=[];C[0]=parseInt(p-1),C[1]=parseInt(q)+1;var D=a.smokeCustomizeText(d[c.lang].textRange,C);return g=a.smkAddError(e,D),!1}g=!0}if("undefined"!=typeof r||"undefined"!=typeof s){if(r>j||j>s){var E=[];E[0]=parseInt(r-1),E[1]=parseInt(s)+1;var F=a.smokeCustomizeText(d[c.lang].textNumberRange,E);return g=a.smkAddError(e,F),!1}g=!0}}}),a(e).keyup(function(){""!==e.val()&&a.smkRemoveError(e)}),a(e).change(function(){""!==e.val()&&a.smkRemoveError(e)}),g},a.smkEqualPass=function(b,c,d){var e={en:{textEqualPass:"Passwords do not match"}};return void 0===d&&(d="en"),"en"!=d&&(e=a.smkEqualPass.Languaje),b=void 0!==a(b).val()?a(b).val():b,b!==a(c).val()?a.smkAddError(a(c),e[d].textEqualPass):!0},a.fn.smkClear=function(b){var c=a.extend({noClear:""},b),d=c.noClear.replace(/\s/g,""),e=d.split(",");return a(":input",this).each(function(){var b=this.type,c=this.tagName.toLowerCase();if("input"==c&&(c=b),a.inArray(b,e)<0&&a.inArray(c,e)<0){switch(b){case"text":case"password":case"email":case"number":case"hidden":this.value="";break;case"checkbox":case"radio":this.checked=!1}switch(c){case"textarea":this.value="";break;case"select":this.selectedIndex=-1,a(this).hasClass("select2")&&a(this).select2("val","")}}})},a.smkAddError=function(b,c){var d=a(b).parents(".form-group"),e=a(b).attr("type"),f=a(b).prop("tagName").toLowerCase(),g=a(b).attr("smk-text");(""===g||void 0===g)&&(g=c),void 0===e&&(e=f);var h='',i=''+g+"";return"select"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(h+i)):"checkbox"==e||"radio"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(i)):(d.addClass("has-feedback has-error"),d.append(h+i)),b.focus(),!1},a.smkRemoveError=function(b){var c=a(b).parents(".form-group");return c.find(".smk-error-text, .smk-error-icon").remove(),c.removeClass("has-error has-feedback"),!1},a.smokeCustomizeText=function(b,c){var d="";if("string"==typeof c)d=b.replace("{@}",c);else{var e=b.split("{@}");a.each(c,function(a,b){d+=e[a]+b})}return d};var b=0;a.smkAlert=function(c){function d(){g=setTimeout(function(){f.animate({opacity:"0",marginLeft:"100px",marginRight:"-100px"},300,function(){f.remove()})},1e3*e.time)}var e=a.extend({text:"Hola Mundo",type:"warning",icon:"glyphicon-exclamation-sign",time:5,permanent:!1},c);switch(b++,e.type){case"warning":e.type="alert-warning",e.icon="glyphicon-exclamation-sign";break;case"success":e.type="alert-success",e.icon="glyphicon-ok-sign";break;case"danger":e.type="alert-danger",e.icon="glyphicon-remove-sign";break;case"info":e.type="alert-info",e.icon="glyphicon-info-sign"}1==b&&a("body").append('
');var f=a('

'+e.text+"

");if(a(".smk-alert-content").prepend(f),f.animate({opacity:"1",marginTop:"20px"},300),e.permanent===!1){var g=0;a(f).mouseenter(function(){clearTimeout(g)}).mouseleave(function(){d()}),d()}},a.smkConfirm=function(b,c){function d(){a(".smk-confirm-back").fadeOut(200,function(){a(".smk-confirm-back").remove()}),a(".smk-confirm").animate({top:"-500px",opacity:"0"},400,function(){a(".smk-confirm").remove()})}var e=a.extend({text:"¿Estas seguro?",accept:"Aceptar",cancel:"Cancelar"},b);a("body").append('"),a(".smk-confirm").animate({top:"-5px",opacity:"1"},400),a(".smk-cancel").click(function(a){a.preventDefault(),d(),c(!1)}),a(".smk-accept").click(function(a){a.preventDefault(),d(),c(!0)})},a.smkFloat=function(a){return"string"==typeof a&&(a=a.replace(",","")),parseFloat(a)},a.smkCurrency=function(a,b){var c=a.replace(",","");if(""===c||isNaN(c))return 0;c=Math.round(parseFloat(c)*Math.pow(10,2))/Math.pow(10,2),b=b||"",c+="";var d=c.split("."),e=d[0],f=d.length>1?"."+d[1]:".00";f+="00",f=f.substr(0,3);for(var g=/(\d+)(\d{3})/;g.test(e);)e=e.replace(g,"$1,$2");return b+e+f},a.smkGetURL=function(b){var c=a(location).attr("protocol"),d=a(location).attr("hostname"),e=a(location).attr("pathname");e=e.split("/");var f=e.pop();""!==f&&(file=f.split("."),file.length<2&&e.push(f)),e=e.slice(0,b+1),e=e.join("/");var g=c+"//"+d+e;return g},a.smkDatePicker=function(a){if(""!==a){var b=(a.getDate()<10?"0":"")+a.getDate(),c=(a.getMonth()+1<10?"0":"")+(a.getMonth()+1),d=a.getFullYear();result=d+"-"+c+"-"+b}else result="";return result},a.smkDate=function(b){var c=a.smkDatePicker(new Date),d=a.extend({date:c,format:"yyyy-mm-dd",lang:"en"},a.smkDate.Languaje,b),e={en:{shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]}},f=/\d+|[a-zA-z]/g,g=(d.date.replace(f,"\x00").split("\x00"),d.date.match(f));"es"==d.lang?(e=a.smkDate.Languaje,d.date=4==g[0].length?new Date(g[0],g[1]-1,g[2]):new Date(g[2],g[1]-1,g[0])):d.date=4==g[0].length?new Date(g[0],g[2]-1,g[1]):new Date(g[2],g[0]-1,g[1]);var h="";if("Invalid Date"!=d.date){var i={d:d.date.getDate(),dd:(d.date.getDate()<10?"0":"")+d.date.getDate(),m:d.date.getMonth()+1,mm:(d.date.getMonth()+1<10?"0":"")+(d.date.getMonth()+1),M:e[d.lang].shortMonthNames[d.date.getMonth()],MM:e[d.lang].monthNames[d.date.getMonth()],yyyy:d.date.getFullYear(),yy:d.date.getFullYear().toString().substring(2),hh:d.date.getHours(),mi:d.date.getMinutes(),ss:d.date.getSeconds()},j=/dd?|DD?|mm?|MM?|yy(?:yy)?/g,k=d.format.replace(j,"\x00").split("\x00"),l=d.format.match(j);a.each(l,function(a,b){h+=k[a]+i[b]})}else h="",console.log("Invalid Date");return h},a.smkDateDiff=function(b){var c=a.extend({fromDate:new Date,toDate:new Date,interval:"days"},b),d=1e3,e=60*d,f=60*e,g=24*f,h=7*g,i=new Date(c.fromDate),j=new Date(c.toDate),k=j-i;if(isNaN(k))return 0/0;switch(c.interval){case"years":return j.getFullYear()-i.getFullYear();case"months":return 12*j.getFullYear()+j.getMonth()-(12*i.getFullYear()+i.getMonth());case"weeks":return Math.floor(k/h);case"days":return Math.floor(k/g);case"hours":return Math.floor(k/f);case"minutes":return Math.floor(k/e);case"seconds":return Math.floor(k/d);default:return void 0}},a.smkScrolling=function(b){var c=a.extend({speed:1e3},b);a("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);if(b=b.length?b:a("[name="+this.hash.slice(1)+"]"),b.length)return a("html,body").animate({scrollTop:b.offset().top},c.speed),!1}})},a.smkProgressBar=function(b){var c=a.extend({element:"body",status:"start"},b),d='
';d+='
',d+='
',d+='0% Complete',d+="
",a(c.element).prepend(a(d).fadeIn("fast")),"body"==c.element?a(".smk-progressbar").css("position","fixed"):(a(c.element).css("position","relative"),a(".smk-progressbar").css("position","absolute")),"start"==c.status?a(c.element+" .smk-progressbar .progress .progress-bar").width(50+30*Math.random()+"%"):"end"==c.status&&a(c.element+" .smk-progressbar .progress .progress-bar").width("110%").delay(200,function(){a(c.element+" .smk-progressbar").fadeOut("slow",function(){a(this).remove()})})},a.fn.smkFullscreen=function(){function b(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}var c='';a(this).append(c),a(".smk-fullscreen").click(function(a){a.preventDefault(),b()});var d=function(){a(".smk-fullscreen").children(".glyphicon").toggleClass("glyphicon-fullscreen").toggleClass("glyphicon-resize-small")};document.addEventListener("fullscreenchange",d,!1),document.addEventListener("msfullscreenchange",d,!1),document.addEventListener("mozfullscreenchange",d,!1),document.addEventListener("webkitfullscreenchange",d,!1)},a.fn.smkPanel=function(b){var c=a.extend({hide:""},b),d=a(this),e=c.hide.replace(/\s/g,""),f=e.split(","),g=a(this).children(".panel-heading").children(".panel-title"),h="";h=g.length>0?"smk-btn-group-panel-title":"smk-btn-group-panel";var i='
';-1==a.inArray("min",f)&&(i+=''),-1==a.inArray("remove",f)&&(i+=''),-1==a.inArray("full",f)&&(i+=''),i+="
",a(this).children(".panel-heading").append(i),d.find(".smk-min").click(function(b){b.preventDefault();var c=a(this).parents(".panel-heading").siblings(".panel-body"),d=a(this).parents(".panel-heading").siblings(".panel-footer"),e=a(this).children(".glyphicon");a(d).slideToggle("fast"),a(c).slideToggle("fast",function(){e.toggleClass("glyphicon-minus").toggleClass("glyphicon-plus")})}),d.find(".smk-remove").click(function(b){b.preventDefault();var c=a(this).parents(".panel");c.fadeOut(400,function(){})}),d.find(".smk-full").click(function(b){b.preventDefault();var c=a(this).parents(".panel"),d=a(this).parents(".panel-heading").siblings(".panel-body"),e=a(this).children(".glyphicon"),f=a(this).siblings(".btn").children(".glyphicon-plus");c.hasClass("panel-full")?(c.removeClass("panel-full"),a(this).siblings(".btn").show(),1==f.length&&d.hide(),a("body").css({overflow:"auto"})):(c.addClass("panel-full"),a(this).siblings(".btn").hide(),1==f.length&&d.show(),a("body").css({overflow:"hidden"})),e.toggleClass("glyphicon-resize-full").toggleClass("glyphicon-resize-small")})}}(jQuery); \ No newline at end of file diff --git a/dist/lang/de.min.js b/dist/lang/de.min.js index 82481f4..6acf680 100644 --- a/dist/lang/de.min.js +++ b/dist/lang/de.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery); \ No newline at end of file diff --git a/dist/lang/es.min.js b/dist/lang/es.min.js index c26c448..5563f5e 100644 --- a/dist/lang/es.min.js +++ b/dist/lang/es.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery); \ No newline at end of file diff --git a/dist/lang/fr.min.js b/dist/lang/fr.min.js index d3c8a04..677a690 100644 --- a/dist/lang/fr.min.js +++ b/dist/lang/fr.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery); \ No newline at end of file diff --git a/dist/lang/pt_br.js b/dist/lang/pt_br.js new file mode 100644 index 0000000..c5ced5b --- /dev/null +++ b/dist/lang/pt_br.js @@ -0,0 +1,51 @@ +(function($){ + $.fn.smkValidate.Languaje = { + pt_br: { + // Mensaje de error para los input vacíos + textEmpty : 'Campo requerido', + // Mensaje de error para el input email + textEmail : 'Informe um email válido', + // Mensaje de error para el input alphanumeric + textAlphanumeric : 'Apenas números e/ou letras são permitidos', + // Mensaje de error para el input number + textNumber : 'Apenas números são permitidos', + // Mensaje de error para el input number range + textNumberRange : 'O intervalo numérico deve ser maior que {@} e menor que {@}', + // Mensaje de error para el input decimal + textDecimal : 'Apenas números decimais são permitidos', + // Mensaje de error para el input currency + textCurrency : 'Informe uma quantidade monetária válida', + // Mensaje de error para el input select + textSelect : 'É necessário selecionar uma opção', + // Mensaje de error para el input checkbox y radio + textCheckbox : 'É necessário selecionar uma opção', + // Mensaje de error para longitud de caracteres + textLength : 'O número de caracteres deve ser igual a {@} ', + // Mensaje de error para rango de caracteres + textRange : 'O número de caracteres deve ser maior que {@} e menor que {@} ', + // Mensaje de error para strongPass Default + textSPassDefault : 'Mínimo 4 caracteres', + // Mensaje de error para strongPass Weak + textSPassWeak : 'Mínimo 6 caracteres', + // Mensaje de error para strongPass Madium + textSPassMedium : 'Mínimo 6 caracteres e um número', + // Mensaje de error para strongPass Strong + textSPassStrong : 'Mínimo 6 caracteres, um número e uma maiúscula' + } + }; + + $.smkEqualPass.Languaje = { + pt_br: { + // Mensaje de error para el input repassword + textEqualPass : 'As senhas não coincidem' + } + }; + + $.smkDate.Languaje = { + pt_br: { + shortMonthNames : ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], + monthNames : ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"] + } + }; + +}(jQuery)); \ No newline at end of file diff --git a/dist/lang/pt_br.min.js b/dist/lang/pt_br.min.js new file mode 100644 index 0000000..6776f0f --- /dev/null +++ b/dist/lang/pt_br.min.js @@ -0,0 +1 @@ +!function(a){a.fn.smkValidate.Languaje={pt_br:{textEmpty:"Campo requerido",textEmail:"Informe um email válido",textAlphanumeric:"Apenas números e/ou letras são permitidos",textNumber:"Apenas números são permitidos",textNumberRange:"O intervalo numérico deve ser maior que {@} e menor que {@}",textDecimal:"Apenas números decimais são permitidos",textCurrency:"Informe uma quantidade monetária válida",textSelect:"É necessário selecionar uma opção",textCheckbox:"É necessário selecionar uma opção",textLength:"O número de caracteres deve ser igual a {@} ",textRange:"O número de caracteres deve ser maior que {@} e menor que {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres e um número",textSPassStrong:"Mínimo 6 caracteres, um número e uma maiúscula"}},a.smkEqualPass.Languaje={pt_br:{textEqualPass:"As senhas não coincidem"}},a.smkDate.Languaje={pt_br:{shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={pt_br:{textEmpty:"Campo requerido",textEmail:"Informe um email válido",textAlphanumeric:"Apenas números e/ou letras são permitidos",textNumber:"Apenas números são permitidos",textNumberRange:"O intervalo numérico deve ser maior que {@} e menor que {@}",textDecimal:"Apenas números decimais são permitidos",textCurrency:"Informe uma quantidade monetária válida",textSelect:"É necessário selecionar uma opção",textCheckbox:"É necessário selecionar uma opção",textLength:"O número de caracteres deve ser igual a {@} ",textRange:"O número de caracteres deve ser maior que {@} e menor que {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres e um número",textSPassStrong:"Mínimo 6 caracteres, um número e uma maiúscula"}},a.smkEqualPass.Languaje={pt_br:{textEqualPass:"As senhas não coincidem"}},a.smkDate.Languaje={pt_br:{shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={pt_br:{textEmpty:"Campo requerido",textEmail:"Informe um email válido",textAlphanumeric:"Apenas números e/ou letras são permitidos",textNumber:"Apenas números são permitidos",textNumberRange:"O intervalo numérico deve ser maior que {@} e menor que {@}",textDecimal:"Apenas números decimais são permitidos",textCurrency:"Informe uma quantidade monetária válida",textSelect:"É necessário selecionar uma opção",textCheckbox:"É necessário selecionar uma opção",textLength:"O número de caracteres deve ser igual a {@} ",textRange:"O número de caracteres deve ser maior que {@} e menor que {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres e um número",textSPassStrong:"Mínimo 6 caracteres, um número e uma maiúscula"}},a.smkEqualPass.Languaje={pt_br:{textEqualPass:"As senhas não coincidem"}},a.smkDate.Languaje={pt_br:{shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]}}}(jQuery); \ No newline at end of file diff --git a/docs/dist/js/smoke.js b/docs/dist/js/smoke.js index 15ef0e2..d170b9a 100644 --- a/docs/dist/js/smoke.js +++ b/docs/dist/js/smoke.js @@ -1167,7 +1167,7 @@ $.fn.smkPanel = function(options) { var settings = $.extend({ hide: '' }, options); - + var thisPanel = $(this); // Se eliminan los espacios en blanco de la variable settings.hide var hideSinEspacios = settings.hide.replace(/\s/g, ''); // Se quiebra la variable hideSinEspacios para obtener sus valores y se agregan en el array arrayHide @@ -1201,7 +1201,7 @@ $.fn.smkPanel = function(options) { $(this).children('.panel-heading').append( btnGroup ); // Evento del boton Min - $('.smk-min').click(function(event) { + thisPanel.find('.smk-min').click(function(event) { event.preventDefault(); var body = $(this).parents('.panel-heading').siblings('.panel-body'); var footer = $(this).parents('.panel-heading').siblings('.panel-footer'); @@ -1213,7 +1213,7 @@ $.fn.smkPanel = function(options) { }); // Evento del boton Remove - $('.smk-remove').click(function(event) { + thisPanel.find('.smk-remove').click(function(event) { event.preventDefault(); var panel = $(this).parents('.panel'); panel.fadeOut(400, function(){ @@ -1221,7 +1221,7 @@ $.fn.smkPanel = function(options) { }); }); // Evento del boton Full - $('.smk-full').click(function(event) { + thisPanel.find('.smk-full').click(function(event) { event.preventDefault(); var panel = $(this).parents('.panel'); var body = $(this).parents('.panel-heading').siblings('.panel-body'); diff --git a/docs/dist/js/smoke.min.js b/docs/dist/js/smoke.min.js index 5a015fd..e7bba55 100644 --- a/docs/dist/js/smoke.min.js +++ b/docs/dist/js/smoke.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate=function(b){var c=a.extend({lang:"en"},a.fn.smkValidate.Languaje,b),d={en:{textEmpty:"Required field",textEmail:"Enter a valid email",textAlphanumeric:"Only numbers and/or letters allowed",textNumber:"Only numbers are allowed",textNumberRange:"The numerical range must be greater than {@} and less than {@} ",textDecimal:"Only decimal numbers are allowed",textCurrency:"Please enter a valid monetary amount",textSelect:"It is necessary that you select an option",textCheckbox:"It is necessary that you select an option",textLength:"The number of characters is equal to {@} ",textRange:"The number of characters must be greater than {@} and less than {@} ",textSPassDefault:"Minimum 4 characters",textSPassWeak:"Minimum 6 characters",textSPassMedium:"Minimum 6 characters and a number",textSPassStrong:"Minimum 6 characters a number and a capital"}};"en"!=c.lang&&(d=a.fn.smkValidate.Languaje);var e="",f="",g=!1;return a(":input",this).each(function(b,h){if("button"!=a(h).attr("type")){e=a(h),f=a(h).parents(".form-group");var i=a(h).attr("name"),j=a(h).val(),k=a(h).attr("type"),l=a(h).attr("smk-type"),m=h.tagName.toLowerCase(),n=a(h).attr("required"),o=a(h).attr("smk-strongPass"),p=a(h).attr("minlength"),q=a(h).attr("maxlength"),r=a(h).attr("smk-min"),s=a(h).attr("smk-max");if(a.smkRemoveError(e),"required"===n&&("text"===k||"textarea"===m||"password"===k||"email"===k)){if(""===j)return g=a.smkAddError(e,d[c.lang].textEmpty),!1;g=!0}if("required"===n&&"email"===k){var t=/^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/;if(!t.test(j))return g=a.smkAddError(e,d[c.lang].textEmail),!1;g=!0}if("required"===n&&"password"===k){var u="",v="";switch(o){case"weak":u=/^(?=.*[a-z0-9])\w{6,}$/,v=d[c.lang].textSPassWeak;break;case"medium":u=/^(?=.*\d)(?=.*[a-z])\w{6,}$/,v=d[c.lang].textSPassMedium;break;case"strong":u=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}$/,v=d[c.lang].textSPassStrong;break;default:u=/^(?=.*[a-z0-9])\w{4,}$/,v=d[c.lang].textSPassDefault}if(!u.test(j))return g=a.smkAddError(e,v),!1;g=!0}if("required"===n&&"select"===m){if(""===j)return g=a.smkAddError(e,d[c.lang].textSelect),!1;g=!0}if("required"===n&&("radio"===k||"checkbox"===k)){var w=a("input[name="+i+"]:checked").val();if(void 0===w)return g=a.smkAddError(e,d[c.lang].textCheckbox),!1;g=!0}if("alphanumeric"===l){var x=/^[a-z0-9]+$/i;if(!x.test(j))return g=a.smkAddError(e,d[c.lang].textAlphanumeric),!1;g=!0}if("number"===l){var y=/^\d+$/;if(!y.test(j))return g=a.smkAddError(e,d[c.lang].textNumber),!1;g=!0}if("decimal"===l){var z=/^\d+(?:\.\d{1,4})?$/;if(!z.test(j))return g=a.smkAddError(e,d[c.lang].textDecimal),!1;g=!0}if("currency"===l){var A=/^(?:\d+|\d{1,3}(?:,\d{3})*)(?:\.\d{1,4}){0,1}$/;if(!A.test(j))return g=a.smkAddError(e,d[c.lang].textCurrency),!1;g=!0}if("undefined"!=typeof p||"undefined"!=typeof q)if(p===q){if(j.length!=p&&j.length!=q){var B=a.smokeCustomizeText(d[c.lang].textLength,q);return g=a.smkAddError(e,B),!1}g=!0}else if(p!==q){if(j.lengthq){var C=[];C[0]=parseInt(p-1),C[1]=parseInt(q)+1;var D=a.smokeCustomizeText(d[c.lang].textRange,C);return g=a.smkAddError(e,D),!1}g=!0}if("undefined"!=typeof r||"undefined"!=typeof s){if(r>j||j>s){var E=[];E[0]=parseInt(r-1),E[1]=parseInt(s)+1;var F=a.smokeCustomizeText(d[c.lang].textNumberRange,E);return g=a.smkAddError(e,F),!1}g=!0}}}),a(e).keyup(function(){""!==e.val()&&a.smkRemoveError(e)}),a(e).change(function(){""!==e.val()&&a.smkRemoveError(e)}),g},a.smkEqualPass=function(b,c,d){var e={en:{textEqualPass:"Passwords do not match"}};return void 0===d&&(d="en"),"en"!=d&&(e=a.smkEqualPass.Languaje),b=void 0!==a(b).val()?a(b).val():b,b!==a(c).val()?a.smkAddError(a(c),e[d].textEqualPass):!0},a.fn.smkClear=function(b){var c=a.extend({noClear:""},b),d=c.noClear.replace(/\s/g,""),e=d.split(",");return a(":input",this).each(function(){var b=this.type,c=this.tagName.toLowerCase();if("input"==c&&(c=b),a.inArray(b,e)<0&&a.inArray(c,e)<0){switch(b){case"text":case"password":case"email":case"number":case"hidden":this.value="";break;case"checkbox":case"radio":this.checked=!1}switch(c){case"textarea":this.value="";break;case"select":this.selectedIndex=-1,a(this).hasClass("select2")&&a(this).select2("val","")}}})},a.smkAddError=function(b,c){var d=a(b).parents(".form-group"),e=a(b).attr("type"),f=a(b).prop("tagName").toLowerCase(),g=a(b).attr("smk-text");(""===g||void 0===g)&&(g=c),void 0===e&&(e=f);var h='',i=''+g+"";return"select"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(h+i)):"checkbox"==e||"radio"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(i)):(d.addClass("has-feedback has-error"),d.append(h+i)),b.focus(),!1},a.smkRemoveError=function(b){var c=a(b).parents(".form-group");return c.find(".smk-error-text, .smk-error-icon").remove(),c.removeClass("has-error has-feedback"),!1},a.smokeCustomizeText=function(b,c){var d="";if("string"==typeof c)d=b.replace("{@}",c);else{var e=b.split("{@}");a.each(c,function(a,b){d+=e[a]+b})}return d};var b=0;a.smkAlert=function(c){function d(){g=setTimeout(function(){f.animate({opacity:"0",marginLeft:"100px",marginRight:"-100px"},300,function(){f.remove()})},1e3*e.time)}var e=a.extend({text:"Hola Mundo",type:"warning",icon:"glyphicon-exclamation-sign",time:5,permanent:!1},c);switch(b++,e.type){case"warning":e.type="alert-warning",e.icon="glyphicon-exclamation-sign";break;case"success":e.type="alert-success",e.icon="glyphicon-ok-sign";break;case"danger":e.type="alert-danger",e.icon="glyphicon-remove-sign";break;case"info":e.type="alert-info",e.icon="glyphicon-info-sign"}1==b&&a("body").append('
');var f=a('

'+e.text+"

");if(a(".smk-alert-content").prepend(f),f.animate({opacity:"1",marginTop:"20px"},300),e.permanent===!1){var g=0;a(f).mouseenter(function(){clearTimeout(g)}).mouseleave(function(){d()}),d()}},a.smkConfirm=function(b,c){function d(){a(".smk-confirm-back").fadeOut(200,function(){a(".smk-confirm-back").remove()}),a(".smk-confirm").animate({top:"-500px",opacity:"0"},400,function(){a(".smk-confirm").remove()})}var e=a.extend({text:"¿Estas seguro?",accept:"Aceptar",cancel:"Cancelar"},b);a("body").append('"),a(".smk-confirm").animate({top:"-5px",opacity:"1"},400),a(".smk-cancel").click(function(a){a.preventDefault(),d(),c(!1)}),a(".smk-accept").click(function(a){a.preventDefault(),d(),c(!0)})},a.smkFloat=function(a){return"string"==typeof a&&(a=a.replace(",","")),parseFloat(a)},a.smkCurrency=function(a,b){var c=a.replace(",","");if(""===c||isNaN(c))return 0;c=Math.round(parseFloat(c)*Math.pow(10,2))/Math.pow(10,2),b=b||"",c+="";var d=c.split("."),e=d[0],f=d.length>1?"."+d[1]:".00";f+="00",f=f.substr(0,3);for(var g=/(\d+)(\d{3})/;g.test(e);)e=e.replace(g,"$1,$2");return b+e+f},a.smkGetURL=function(b){var c=a(location).attr("protocol"),d=a(location).attr("hostname"),e=a(location).attr("pathname");e=e.split("/");var f=e.pop();""!==f&&(file=f.split("."),file.length<2&&e.push(f)),e=e.slice(0,b+1),e=e.join("/");var g=c+"//"+d+e;return g},a.smkDatePicker=function(a){if(""!==a){var b=(a.getDate()<10?"0":"")+a.getDate(),c=(a.getMonth()+1<10?"0":"")+(a.getMonth()+1),d=a.getFullYear();result=d+"-"+c+"-"+b}else result="";return result},a.smkDate=function(b){var c=a.smkDatePicker(new Date),d=a.extend({date:c,format:"yyyy-mm-dd",lang:"en"},a.smkDate.Languaje,b),e={en:{shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]}},f=/\d+|[a-zA-z]/g,g=(d.date.replace(f,"\x00").split("\x00"),d.date.match(f));"es"==d.lang?(e=a.smkDate.Languaje,d.date=4==g[0].length?new Date(g[0],g[1]-1,g[2]):new Date(g[2],g[1]-1,g[0])):d.date=4==g[0].length?new Date(g[0],g[2]-1,g[1]):new Date(g[2],g[0]-1,g[1]);var h="";if("Invalid Date"!=d.date){var i={d:d.date.getDate(),dd:(d.date.getDate()<10?"0":"")+d.date.getDate(),m:d.date.getMonth()+1,mm:(d.date.getMonth()+1<10?"0":"")+(d.date.getMonth()+1),M:e[d.lang].shortMonthNames[d.date.getMonth()],MM:e[d.lang].monthNames[d.date.getMonth()],yyyy:d.date.getFullYear(),yy:d.date.getFullYear().toString().substring(2),hh:d.date.getHours(),mi:d.date.getMinutes(),ss:d.date.getSeconds()},j=/dd?|DD?|mm?|MM?|yy(?:yy)?/g,k=d.format.replace(j,"\x00").split("\x00"),l=d.format.match(j);a.each(l,function(a,b){h+=k[a]+i[b]})}else h="",console.log("Invalid Date");return h},a.smkDateDiff=function(b){var c=a.extend({fromDate:new Date,toDate:new Date,interval:"days"},b),d=1e3,e=60*d,f=60*e,g=24*f,h=7*g,i=new Date(c.fromDate),j=new Date(c.toDate),k=j-i;if(isNaN(k))return 0/0;switch(c.interval){case"years":return j.getFullYear()-i.getFullYear();case"months":return 12*j.getFullYear()+j.getMonth()-(12*i.getFullYear()+i.getMonth());case"weeks":return Math.floor(k/h);case"days":return Math.floor(k/g);case"hours":return Math.floor(k/f);case"minutes":return Math.floor(k/e);case"seconds":return Math.floor(k/d);default:return void 0}},a.smkScrolling=function(b){var c=a.extend({speed:1e3},b);a("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);if(b=b.length?b:a("[name="+this.hash.slice(1)+"]"),b.length)return a("html,body").animate({scrollTop:b.offset().top},c.speed),!1}})},a.smkProgressBar=function(b){var c=a.extend({element:"body",status:"start"},b),d='
';d+='
',d+='
',d+='0% Complete',d+="
",a(c.element).prepend(a(d).fadeIn("fast")),"body"==c.element?a(".smk-progressbar").css("position","fixed"):(a(c.element).css("position","relative"),a(".smk-progressbar").css("position","absolute")),"start"==c.status?a(c.element+" .smk-progressbar .progress .progress-bar").width(50+30*Math.random()+"%"):"end"==c.status&&a(c.element+" .smk-progressbar .progress .progress-bar").width("110%").delay(200,function(){a(c.element+" .smk-progressbar").fadeOut("slow",function(){a(this).remove()})})},a.fn.smkFullscreen=function(){function b(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}var c='';a(this).append(c),a(".smk-fullscreen").click(function(a){a.preventDefault(),b()});var d=function(){a(".smk-fullscreen").children(".glyphicon").toggleClass("glyphicon-fullscreen").toggleClass("glyphicon-resize-small")};document.addEventListener("fullscreenchange",d,!1),document.addEventListener("msfullscreenchange",d,!1),document.addEventListener("mozfullscreenchange",d,!1),document.addEventListener("webkitfullscreenchange",d,!1)},a.fn.smkPanel=function(b){var c=a.extend({hide:""},b),d=c.hide.replace(/\s/g,""),e=d.split(","),f=a(this).children(".panel-heading").children(".panel-title"),g="";g=f.length>0?"smk-btn-group-panel-title":"smk-btn-group-panel";var h='
';-1==a.inArray("min",e)&&(h+=''),-1==a.inArray("remove",e)&&(h+=''),-1==a.inArray("full",e)&&(h+=''),h+="
",a(this).children(".panel-heading").append(h),a(".smk-min").click(function(b){b.preventDefault();var c=a(this).parents(".panel-heading").siblings(".panel-body"),d=a(this).parents(".panel-heading").siblings(".panel-footer"),e=a(this).children(".glyphicon");a(d).slideToggle("fast"),a(c).slideToggle("fast",function(){e.toggleClass("glyphicon-minus").toggleClass("glyphicon-plus")})}),a(".smk-remove").click(function(b){b.preventDefault();var c=a(this).parents(".panel");c.fadeOut(400,function(){})}),a(".smk-full").click(function(b){b.preventDefault();var c=a(this).parents(".panel"),d=a(this).parents(".panel-heading").siblings(".panel-body"),e=a(this).children(".glyphicon"),f=a(this).siblings(".btn").children(".glyphicon-plus");c.hasClass("panel-full")?(c.removeClass("panel-full"),a(this).siblings(".btn").show(),1==f.length&&d.hide(),a("body").css({overflow:"auto"})):(c.addClass("panel-full"),a(this).siblings(".btn").hide(),1==f.length&&d.show(),a("body").css({overflow:"hidden"})),e.toggleClass("glyphicon-resize-full").toggleClass("glyphicon-resize-small")})}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate=function(b){var c=a.extend({lang:"en"},a.fn.smkValidate.Languaje,b),d={en:{textEmpty:"Required field",textEmail:"Enter a valid email",textAlphanumeric:"Only numbers and/or letters allowed",textNumber:"Only numbers are allowed",textNumberRange:"The numerical range must be greater than {@} and less than {@} ",textDecimal:"Only decimal numbers are allowed",textCurrency:"Please enter a valid monetary amount",textSelect:"It is necessary that you select an option",textCheckbox:"It is necessary that you select an option",textLength:"The number of characters is equal to {@} ",textRange:"The number of characters must be greater than {@} and less than {@} ",textSPassDefault:"Minimum 4 characters",textSPassWeak:"Minimum 6 characters",textSPassMedium:"Minimum 6 characters and a number",textSPassStrong:"Minimum 6 characters a number and a capital"}};"en"!=c.lang&&(d=a.fn.smkValidate.Languaje);var e="",f="",g=!1;return a(":input",this).each(function(b,h){if("button"!=a(h).attr("type")){e=a(h),f=a(h).parents(".form-group");var i=a(h).attr("name"),j=a(h).val(),k=a(h).attr("type"),l=a(h).attr("smk-type"),m=h.tagName.toLowerCase(),n=a(h).attr("required"),o=a(h).attr("smk-strongPass"),p=a(h).attr("minlength"),q=a(h).attr("maxlength"),r=a(h).attr("smk-min"),s=a(h).attr("smk-max");if(a.smkRemoveError(e),"required"===n&&("text"===k||"textarea"===m||"password"===k||"email"===k)){if(""===j)return g=a.smkAddError(e,d[c.lang].textEmpty),!1;g=!0}if("required"===n&&"email"===k){var t=/^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$/;if(!t.test(j))return g=a.smkAddError(e,d[c.lang].textEmail),!1;g=!0}if("required"===n&&"password"===k){var u="",v="";switch(o){case"weak":u=/^(?=.*[a-z0-9])\w{6,}$/,v=d[c.lang].textSPassWeak;break;case"medium":u=/^(?=.*\d)(?=.*[a-z])\w{6,}$/,v=d[c.lang].textSPassMedium;break;case"strong":u=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])\w{6,}$/,v=d[c.lang].textSPassStrong;break;default:u=/^(?=.*[a-z0-9])\w{4,}$/,v=d[c.lang].textSPassDefault}if(!u.test(j))return g=a.smkAddError(e,v),!1;g=!0}if("required"===n&&"select"===m){if(""===j)return g=a.smkAddError(e,d[c.lang].textSelect),!1;g=!0}if("required"===n&&("radio"===k||"checkbox"===k)){var w=a("input[name="+i+"]:checked").val();if(void 0===w)return g=a.smkAddError(e,d[c.lang].textCheckbox),!1;g=!0}if("alphanumeric"===l){var x=/^[a-z0-9]+$/i;if(!x.test(j))return g=a.smkAddError(e,d[c.lang].textAlphanumeric),!1;g=!0}if("number"===l){var y=/^\d+$/;if(!y.test(j))return g=a.smkAddError(e,d[c.lang].textNumber),!1;g=!0}if("decimal"===l){var z=/^\d+(?:\.\d{1,4})?$/;if(!z.test(j))return g=a.smkAddError(e,d[c.lang].textDecimal),!1;g=!0}if("currency"===l){var A=/^(?:\d+|\d{1,3}(?:,\d{3})*)(?:\.\d{1,4}){0,1}$/;if(!A.test(j))return g=a.smkAddError(e,d[c.lang].textCurrency),!1;g=!0}if("undefined"!=typeof p||"undefined"!=typeof q)if(p===q){if(j.length!=p&&j.length!=q){var B=a.smokeCustomizeText(d[c.lang].textLength,q);return g=a.smkAddError(e,B),!1}g=!0}else if(p!==q){if(j.lengthq){var C=[];C[0]=parseInt(p-1),C[1]=parseInt(q)+1;var D=a.smokeCustomizeText(d[c.lang].textRange,C);return g=a.smkAddError(e,D),!1}g=!0}if("undefined"!=typeof r||"undefined"!=typeof s){if(r>j||j>s){var E=[];E[0]=parseInt(r-1),E[1]=parseInt(s)+1;var F=a.smokeCustomizeText(d[c.lang].textNumberRange,E);return g=a.smkAddError(e,F),!1}g=!0}}}),a(e).keyup(function(){""!==e.val()&&a.smkRemoveError(e)}),a(e).change(function(){""!==e.val()&&a.smkRemoveError(e)}),g},a.smkEqualPass=function(b,c,d){var e={en:{textEqualPass:"Passwords do not match"}};return void 0===d&&(d="en"),"en"!=d&&(e=a.smkEqualPass.Languaje),b=void 0!==a(b).val()?a(b).val():b,b!==a(c).val()?a.smkAddError(a(c),e[d].textEqualPass):!0},a.fn.smkClear=function(b){var c=a.extend({noClear:""},b),d=c.noClear.replace(/\s/g,""),e=d.split(",");return a(":input",this).each(function(){var b=this.type,c=this.tagName.toLowerCase();if("input"==c&&(c=b),a.inArray(b,e)<0&&a.inArray(c,e)<0){switch(b){case"text":case"password":case"email":case"number":case"hidden":this.value="";break;case"checkbox":case"radio":this.checked=!1}switch(c){case"textarea":this.value="";break;case"select":this.selectedIndex=-1,a(this).hasClass("select2")&&a(this).select2("val","")}}})},a.smkAddError=function(b,c){var d=a(b).parents(".form-group"),e=a(b).attr("type"),f=a(b).prop("tagName").toLowerCase(),g=a(b).attr("smk-text");(""===g||void 0===g)&&(g=c),void 0===e&&(e=f);var h='',i=''+g+"";return"select"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(h+i)):"checkbox"==e||"radio"==e?(d.addClass("has-feedback has-error smk-"+e),d.append(i)):(d.addClass("has-feedback has-error"),d.append(h+i)),b.focus(),!1},a.smkRemoveError=function(b){var c=a(b).parents(".form-group");return c.find(".smk-error-text, .smk-error-icon").remove(),c.removeClass("has-error has-feedback"),!1},a.smokeCustomizeText=function(b,c){var d="";if("string"==typeof c)d=b.replace("{@}",c);else{var e=b.split("{@}");a.each(c,function(a,b){d+=e[a]+b})}return d};var b=0;a.smkAlert=function(c){function d(){g=setTimeout(function(){f.animate({opacity:"0",marginLeft:"100px",marginRight:"-100px"},300,function(){f.remove()})},1e3*e.time)}var e=a.extend({text:"Hola Mundo",type:"warning",icon:"glyphicon-exclamation-sign",time:5,permanent:!1},c);switch(b++,e.type){case"warning":e.type="alert-warning",e.icon="glyphicon-exclamation-sign";break;case"success":e.type="alert-success",e.icon="glyphicon-ok-sign";break;case"danger":e.type="alert-danger",e.icon="glyphicon-remove-sign";break;case"info":e.type="alert-info",e.icon="glyphicon-info-sign"}1==b&&a("body").append('
');var f=a('

'+e.text+"

");if(a(".smk-alert-content").prepend(f),f.animate({opacity:"1",marginTop:"20px"},300),e.permanent===!1){var g=0;a(f).mouseenter(function(){clearTimeout(g)}).mouseleave(function(){d()}),d()}},a.smkConfirm=function(b,c){function d(){a(".smk-confirm-back").fadeOut(200,function(){a(".smk-confirm-back").remove()}),a(".smk-confirm").animate({top:"-500px",opacity:"0"},400,function(){a(".smk-confirm").remove()})}var e=a.extend({text:"¿Estas seguro?",accept:"Aceptar",cancel:"Cancelar"},b);a("body").append('"),a(".smk-confirm").animate({top:"-5px",opacity:"1"},400),a(".smk-cancel").click(function(a){a.preventDefault(),d(),c(!1)}),a(".smk-accept").click(function(a){a.preventDefault(),d(),c(!0)})},a.smkFloat=function(a){return"string"==typeof a&&(a=a.replace(",","")),parseFloat(a)},a.smkCurrency=function(a,b){var c=a.replace(",","");if(""===c||isNaN(c))return 0;c=Math.round(parseFloat(c)*Math.pow(10,2))/Math.pow(10,2),b=b||"",c+="";var d=c.split("."),e=d[0],f=d.length>1?"."+d[1]:".00";f+="00",f=f.substr(0,3);for(var g=/(\d+)(\d{3})/;g.test(e);)e=e.replace(g,"$1,$2");return b+e+f},a.smkGetURL=function(b){var c=a(location).attr("protocol"),d=a(location).attr("hostname"),e=a(location).attr("pathname");e=e.split("/");var f=e.pop();""!==f&&(file=f.split("."),file.length<2&&e.push(f)),e=e.slice(0,b+1),e=e.join("/");var g=c+"//"+d+e;return g},a.smkDatePicker=function(a){if(""!==a){var b=(a.getDate()<10?"0":"")+a.getDate(),c=(a.getMonth()+1<10?"0":"")+(a.getMonth()+1),d=a.getFullYear();result=d+"-"+c+"-"+b}else result="";return result},a.smkDate=function(b){var c=a.smkDatePicker(new Date),d=a.extend({date:c,format:"yyyy-mm-dd",lang:"en"},a.smkDate.Languaje,b),e={en:{shortMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"]}},f=/\d+|[a-zA-z]/g,g=(d.date.replace(f,"\x00").split("\x00"),d.date.match(f));"es"==d.lang?(e=a.smkDate.Languaje,d.date=4==g[0].length?new Date(g[0],g[1]-1,g[2]):new Date(g[2],g[1]-1,g[0])):d.date=4==g[0].length?new Date(g[0],g[2]-1,g[1]):new Date(g[2],g[0]-1,g[1]);var h="";if("Invalid Date"!=d.date){var i={d:d.date.getDate(),dd:(d.date.getDate()<10?"0":"")+d.date.getDate(),m:d.date.getMonth()+1,mm:(d.date.getMonth()+1<10?"0":"")+(d.date.getMonth()+1),M:e[d.lang].shortMonthNames[d.date.getMonth()],MM:e[d.lang].monthNames[d.date.getMonth()],yyyy:d.date.getFullYear(),yy:d.date.getFullYear().toString().substring(2),hh:d.date.getHours(),mi:d.date.getMinutes(),ss:d.date.getSeconds()},j=/dd?|DD?|mm?|MM?|yy(?:yy)?/g,k=d.format.replace(j,"\x00").split("\x00"),l=d.format.match(j);a.each(l,function(a,b){h+=k[a]+i[b]})}else h="",console.log("Invalid Date");return h},a.smkDateDiff=function(b){var c=a.extend({fromDate:new Date,toDate:new Date,interval:"days"},b),d=1e3,e=60*d,f=60*e,g=24*f,h=7*g,i=new Date(c.fromDate),j=new Date(c.toDate),k=j-i;if(isNaN(k))return 0/0;switch(c.interval){case"years":return j.getFullYear()-i.getFullYear();case"months":return 12*j.getFullYear()+j.getMonth()-(12*i.getFullYear()+i.getMonth());case"weeks":return Math.floor(k/h);case"days":return Math.floor(k/g);case"hours":return Math.floor(k/f);case"minutes":return Math.floor(k/e);case"seconds":return Math.floor(k/d);default:return void 0}},a.smkScrolling=function(b){var c=a.extend({speed:1e3},b);a("a[href*=#]:not([href=#])").click(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var b=a(this.hash);if(b=b.length?b:a("[name="+this.hash.slice(1)+"]"),b.length)return a("html,body").animate({scrollTop:b.offset().top},c.speed),!1}})},a.smkProgressBar=function(b){var c=a.extend({element:"body",status:"start"},b),d='
';d+='
',d+='
',d+='0% Complete',d+="
",a(c.element).prepend(a(d).fadeIn("fast")),"body"==c.element?a(".smk-progressbar").css("position","fixed"):(a(c.element).css("position","relative"),a(".smk-progressbar").css("position","absolute")),"start"==c.status?a(c.element+" .smk-progressbar .progress .progress-bar").width(50+30*Math.random()+"%"):"end"==c.status&&a(c.element+" .smk-progressbar .progress .progress-bar").width("110%").delay(200,function(){a(c.element+" .smk-progressbar").fadeOut("slow",function(){a(this).remove()})})},a.fn.smkFullscreen=function(){function b(){document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}var c='';a(this).append(c),a(".smk-fullscreen").click(function(a){a.preventDefault(),b()});var d=function(){a(".smk-fullscreen").children(".glyphicon").toggleClass("glyphicon-fullscreen").toggleClass("glyphicon-resize-small")};document.addEventListener("fullscreenchange",d,!1),document.addEventListener("msfullscreenchange",d,!1),document.addEventListener("mozfullscreenchange",d,!1),document.addEventListener("webkitfullscreenchange",d,!1)},a.fn.smkPanel=function(b){var c=a.extend({hide:""},b),d=a(this),e=c.hide.replace(/\s/g,""),f=e.split(","),g=a(this).children(".panel-heading").children(".panel-title"),h="";h=g.length>0?"smk-btn-group-panel-title":"smk-btn-group-panel";var i='
';-1==a.inArray("min",f)&&(i+=''),-1==a.inArray("remove",f)&&(i+=''),-1==a.inArray("full",f)&&(i+=''),i+="
",a(this).children(".panel-heading").append(i),d.find(".smk-min").click(function(b){b.preventDefault();var c=a(this).parents(".panel-heading").siblings(".panel-body"),d=a(this).parents(".panel-heading").siblings(".panel-footer"),e=a(this).children(".glyphicon");a(d).slideToggle("fast"),a(c).slideToggle("fast",function(){e.toggleClass("glyphicon-minus").toggleClass("glyphicon-plus")})}),d.find(".smk-remove").click(function(b){b.preventDefault();var c=a(this).parents(".panel");c.fadeOut(400,function(){})}),d.find(".smk-full").click(function(b){b.preventDefault();var c=a(this).parents(".panel"),d=a(this).parents(".panel-heading").siblings(".panel-body"),e=a(this).children(".glyphicon"),f=a(this).siblings(".btn").children(".glyphicon-plus");c.hasClass("panel-full")?(c.removeClass("panel-full"),a(this).siblings(".btn").show(),1==f.length&&d.hide(),a("body").css({overflow:"auto"})):(c.addClass("panel-full"),a(this).siblings(".btn").hide(),1==f.length&&d.show(),a("body").css({overflow:"hidden"})),e.toggleClass("glyphicon-resize-full").toggleClass("glyphicon-resize-small")})}}(jQuery); \ No newline at end of file diff --git a/docs/dist/lang/de.min.js b/docs/dist/lang/de.min.js index 82481f4..6acf680 100644 --- a/docs/dist/lang/de.min.js +++ b/docs/dist/lang/de.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkEqualPass.Languaje={de:{textEqualPass:"Wachtwoorden komen niet overeen"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={de:{textEmpty:"Hier ist eine Eingabe erforderlich",textEmail:"Bitte geben Sie eine gültige Emailadresse ein",textAlphanumeric:"Hier können Sie nur Zahlen und/oder Buchstaben eingeben",textNumber:"Hier können Sie nur Zahlen eingeben",textNumberRange:"Die Zahl muss grösser als {@} und kleiner als {@} sein",textDecimal:"Hier können Sie nur Dezimalzahlen eingeben",textCurrency:"Bitte geben Sie eine gültige Währungsgrösse ein",textSelect:"Hier müssten Sie eine Auswahl treffen",textCheckbox:"Hier müssten Sie eine Auswahl treffen",textLength:"Dieses Feld erfordert eine Eingabe von {@} Zeichen",textRange:"Die Anzahl der Zeichen muss grösser als {@} und kleiner als {@} sein",textSPassDefault:"Mindestens 4 Zeichen",textSPassWeak:"Mindestens 6 Zeichen",textSPassMedium:"Mindestens 6 Buchstaben und 1 Zahl",textSPassStrong:"Mindestens 6 Buchstaben, eine Zahl und ein Grossbuchstabe"}},a.smkDate.Languaje={de:{shortMonthNames:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]}}}(jQuery); \ No newline at end of file diff --git a/docs/dist/lang/es.min.js b/docs/dist/lang/es.min.js index c26c448..5563f5e 100644 --- a/docs/dist/lang/es.min.js +++ b/docs/dist/lang/es.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkEqualPass.Languaje={es:{textEqualPass:"Las contraseñas no coinciden"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={es:{textEmpty:"Campo requerido",textEmail:"Ingresa una cuenta de correo válida",textAlphanumeric:"Solo se admiten números y/o letras",textNumber:"Solo se admiten números",textNumberRange:"El numero debe ser mayor a {@} y menor a {@} ",textDecimal:"Solo se admiten números decimales",textCurrency:"Ingresa una cantidad monetaria válida",textSelect:"Es necesario que selecciones una opción",textCheckbox:"Es necesario que selecciones una opción",textLength:"El número de caracteres debe ser igual a {@} ",textRange:"El número de caracteres debe ser mayor a {@} y menor a {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres y un número",textSPassStrong:"Mínimo 6 caracteres un número y una mayúscula"}},a.smkDate.Languaje={es:{shortMonthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]}}}(jQuery); \ No newline at end of file diff --git a/docs/dist/lang/fr.min.js b/docs/dist/lang/fr.min.js index d3c8a04..677a690 100644 --- a/docs/dist/lang/fr.min.js +++ b/docs/dist/lang/fr.min.js @@ -1 +1 @@ -!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery); \ No newline at end of file +!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={fr:{textEmpty:"Ce champs est requis",textEmail:"Veuillez saisir un email valide",textAlphanumeric:"Seulement des chiffres et/ou des lettres",textNumber:"Seul les chiffres sont authorisés",textNumberRange:"Le rang doit être supérieur à {@} ou inférieur à {@} ",textDecimal:"Seulement des décimales",textCurrency:"Veuillez entrer une valeur de devise correct",textSelect:"Il est nécessaire de selectionner une option",textCheckbox:"Il est nécessaire de chocher une option",textLength:"Le nombre de caractère est égale a {@} ",textRange:"Le nombre de caractère doit être supérieur à {@} ou inférieur à {@} ",textSPassDefault:"Minimum 4 caratères",textSPassWeak:"Minimum 6 caractères",textSPassMedium:"Minimum 6 caractères et un numéro",textSPassStrong:"Minimum 6 caractères, un numéro et une majuscule"}},a.smkEqualPass.Languaje={fr:{textEqualPass:"Les mots de passe ne correspondent pas"}},a.smkDate.Languaje={fr:{shortMonthNames:["Jan","Fév","Mar","Avr","Mai","Jui","Juil","Aou","Sep","Oct","Nov","Dec"],monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"]}}}(jQuery); \ No newline at end of file diff --git a/docs/dist/lang/pt_br.js b/docs/dist/lang/pt_br.js new file mode 100644 index 0000000..c5ced5b --- /dev/null +++ b/docs/dist/lang/pt_br.js @@ -0,0 +1,51 @@ +(function($){ + $.fn.smkValidate.Languaje = { + pt_br: { + // Mensaje de error para los input vacíos + textEmpty : 'Campo requerido', + // Mensaje de error para el input email + textEmail : 'Informe um email válido', + // Mensaje de error para el input alphanumeric + textAlphanumeric : 'Apenas números e/ou letras são permitidos', + // Mensaje de error para el input number + textNumber : 'Apenas números são permitidos', + // Mensaje de error para el input number range + textNumberRange : 'O intervalo numérico deve ser maior que {@} e menor que {@}', + // Mensaje de error para el input decimal + textDecimal : 'Apenas números decimais são permitidos', + // Mensaje de error para el input currency + textCurrency : 'Informe uma quantidade monetária válida', + // Mensaje de error para el input select + textSelect : 'É necessário selecionar uma opção', + // Mensaje de error para el input checkbox y radio + textCheckbox : 'É necessário selecionar uma opção', + // Mensaje de error para longitud de caracteres + textLength : 'O número de caracteres deve ser igual a {@} ', + // Mensaje de error para rango de caracteres + textRange : 'O número de caracteres deve ser maior que {@} e menor que {@} ', + // Mensaje de error para strongPass Default + textSPassDefault : 'Mínimo 4 caracteres', + // Mensaje de error para strongPass Weak + textSPassWeak : 'Mínimo 6 caracteres', + // Mensaje de error para strongPass Madium + textSPassMedium : 'Mínimo 6 caracteres e um número', + // Mensaje de error para strongPass Strong + textSPassStrong : 'Mínimo 6 caracteres, um número e uma maiúscula' + } + }; + + $.smkEqualPass.Languaje = { + pt_br: { + // Mensaje de error para el input repassword + textEqualPass : 'As senhas não coincidem' + } + }; + + $.smkDate.Languaje = { + pt_br: { + shortMonthNames : ["Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"], + monthNames : ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"] + } + }; + +}(jQuery)); \ No newline at end of file diff --git a/docs/dist/lang/pt_br.min.js b/docs/dist/lang/pt_br.min.js new file mode 100644 index 0000000..6776f0f --- /dev/null +++ b/docs/dist/lang/pt_br.min.js @@ -0,0 +1 @@ +!function(a){a.fn.smkValidate.Languaje={pt_br:{textEmpty:"Campo requerido",textEmail:"Informe um email válido",textAlphanumeric:"Apenas números e/ou letras são permitidos",textNumber:"Apenas números são permitidos",textNumberRange:"O intervalo numérico deve ser maior que {@} e menor que {@}",textDecimal:"Apenas números decimais são permitidos",textCurrency:"Informe uma quantidade monetária válida",textSelect:"É necessário selecionar uma opção",textCheckbox:"É necessário selecionar uma opção",textLength:"O número de caracteres deve ser igual a {@} ",textRange:"O número de caracteres deve ser maior que {@} e menor que {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres e um número",textSPassStrong:"Mínimo 6 caracteres, um número e uma maiúscula"}},a.smkEqualPass.Languaje={pt_br:{textEqualPass:"As senhas não coincidem"}},a.smkDate.Languaje={pt_br:{shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={pt_br:{textEmpty:"Campo requerido",textEmail:"Informe um email válido",textAlphanumeric:"Apenas números e/ou letras são permitidos",textNumber:"Apenas números são permitidos",textNumberRange:"O intervalo numérico deve ser maior que {@} e menor que {@}",textDecimal:"Apenas números decimais são permitidos",textCurrency:"Informe uma quantidade monetária válida",textSelect:"É necessário selecionar uma opção",textCheckbox:"É necessário selecionar uma opção",textLength:"O número de caracteres deve ser igual a {@} ",textRange:"O número de caracteres deve ser maior que {@} e menor que {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres e um número",textSPassStrong:"Mínimo 6 caracteres, um número e uma maiúscula"}},a.smkEqualPass.Languaje={pt_br:{textEqualPass:"As senhas não coincidem"}},a.smkDate.Languaje={pt_br:{shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]}}}(jQuery),!function(a){a.fn.smkValidate.Languaje={pt_br:{textEmpty:"Campo requerido",textEmail:"Informe um email válido",textAlphanumeric:"Apenas números e/ou letras são permitidos",textNumber:"Apenas números são permitidos",textNumberRange:"O intervalo numérico deve ser maior que {@} e menor que {@}",textDecimal:"Apenas números decimais são permitidos",textCurrency:"Informe uma quantidade monetária válida",textSelect:"É necessário selecionar uma opção",textCheckbox:"É necessário selecionar uma opção",textLength:"O número de caracteres deve ser igual a {@} ",textRange:"O número de caracteres deve ser maior que {@} e menor que {@} ",textSPassDefault:"Mínimo 4 caracteres",textSPassWeak:"Mínimo 6 caracteres",textSPassMedium:"Mínimo 6 caracteres e um número",textSPassStrong:"Mínimo 6 caracteres, um número e uma maiúscula"}},a.smkEqualPass.Languaje={pt_br:{textEqualPass:"As senhas não coincidem"}},a.smkDate.Languaje={pt_br:{shortMonthNames:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]}}}(jQuery); \ No newline at end of file diff --git a/docs/getting-started.html b/docs/getting-started.html index 45f99a0..ae88f8e 100644 --- a/docs/getting-started.html +++ b/docs/getting-started.html @@ -46,6 +46,10 @@

{{'WHATS-INCLUDED' | translate}}


└── es.min.js ├── de.js └── de.min.js + ├── fr.js + └── fr.min.js + ├── pt_br.js + └── pt_br.min.js diff --git a/docs/helpers.html b/docs/helpers.html index bd64114..a69853c 100644 --- a/docs/helpers.html +++ b/docs/helpers.html @@ -230,6 +230,11 @@

{{'LANGUAGE-TB.TITLE' | translate}}

{{'FRENCH' | translate}} fr.js + + pt_br + {{'BRAZILIANPORTUGUESE' | translate}} + pt_br.js + diff --git a/docs/index.html b/docs/index.html index 46cc8e7..e13931f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -62,6 +62,8 @@
  • {{'SPANISH' | translate}}
  • {{'DEUTSCH' | translate}}
  • +
  • +
  • {{'BRAZILIANPORTUGUESE' | translate}}
  • @@ -109,7 +111,6 @@ - diff --git a/docs/js/scripts.js b/docs/js/scripts.js index 8b762d1..e4b1a87 100644 --- a/docs/js/scripts.js +++ b/docs/js/scripts.js @@ -76,18 +76,20 @@ function run($rootScope){ MainCtrl.$inject = ['$scope', '$translate', '$sanitize']; function MainCtrl($scope, $translate, $sanitize){ - $scope.version = 'v2.1.5'; + $scope.version = 'v2.1.6'; $scope.lang = 'English'; $scope.changeLanguage = function (langKey) { $translate.use(langKey); if(langKey == 'en'){ $scope.lang = 'English'; + }else if(langKey == 'es'){ + $scope.lang = 'Español'; }else if(langKey == 'de'){ $scope.lang = 'Deutsch'; - }else{ - $scope.lang = 'Español'; - } + }else { + $scope.lang = 'Português Brasileiro'; + } }; /* |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/locales/de.json b/docs/locales/de.json index 8e227fc..ba09cb0 100644 --- a/docs/locales/de.json +++ b/docs/locales/de.json @@ -11,6 +11,7 @@ "SPANISH": "Spaans", "DEUTSCH": "Deutsch", "FRENCH" : "Frans", + "BRAZILIANPORTUGUESE":"Brasilianisches Portugiesisch", "SLOGAN": "Smoke ist das vollständigste jQuery Plugin, erstellt für die Nutzung mit Bootstrap 3", "DOWNLOAD": "Download", diff --git a/docs/locales/en.json b/docs/locales/en.json index bebdd4d..c14ffc4 100644 --- a/docs/locales/en.json +++ b/docs/locales/en.json @@ -11,6 +11,7 @@ "SPANISH": "Spanish", "DEUTSCH": "Deutsch", "FRENCH" : "French", + "BRAZILIANPORTUGUESE":"Brazilian Portuguese", "SLOGAN": "Smoke is the most complete jQuery Plugin and designed for use with Bootstrap 3", "DOWNLOAD": "Download", diff --git a/docs/locales/es.json b/docs/locales/es.json index bb8bef1..3db3a7f 100644 --- a/docs/locales/es.json +++ b/docs/locales/es.json @@ -11,6 +11,7 @@ "SPANISH": "Español", "DEUTSCH": "Alemán", "FRENCH" : "Francés", + "BRAZILIANPORTUGUESE":"Portugués Brasileño", "SLOGAN": "Smoke es el Plugin Jquery mas completo y ligero diseñado para usarse en Bootstrap 3", "DOWNLOAD": "Descargar", diff --git a/docs/locales/pt_br.json b/docs/locales/pt_br.json new file mode 100644 index 0000000..0432c20 --- /dev/null +++ b/docs/locales/pt_br.json @@ -0,0 +1,235 @@ +{ + "GETTING-STARTED": "Primeiros passos", + "VALIDATE": "Validação", + "NOTIFICATIONS": "Notificações", + "PROGRESSBAR": "Barra de progresso", + "FULLSCREEN": "Tela inteira", + "PANEL": "Panel", + "HELPERS": "Helpers", + + "ENGLISH": "Inglês", + "SPANISH": "Espanhol", + "DEUTSCH": "Alemão", + "FRENCH" : "Francês", + "BRAZILIANPORTUGUESE":"Português Brasileiro", + + "SLOGAN": "Smoke é o Plugin jQuery mais completo e elaborado para se utilizar com Bootstrap 3", + "DOWNLOAD": "Baixar", + + "FEATURES": "FUNCIONALIDADES", + + "GITHUB": "Smoke é open source. É hospedado, desenvolvido, e mantido no GitHub.", + "VIEW-IN": "Visualizar no", + + "DESIGNED": "Elaborado e desenvolvido com amor por", + "TRANSLATED": "Traduzido por", + "LICENSE": "Código e documentação (c) Copyright 2015 Alfredo Barron. Código publicado sob", + "ISSUES": "Assuntos", + "RELEASES": "Versões", + + + + + "GETTING-STARTED-DESC": "Uma visão geral do Smoke, como baixar e utilizar.", + + "DOWNLOAD-DESC": "Baixe o Smoke e adicione em seu projeto, É simples e rápido.", + + "INSTALL": "Instale com", + + "WHATS-INCLUDED": "Conteúdo", + "WHATS-INCLUDED-DESC": "Uma vez baixado, descompacte o arquivo .zip para visualizar a estrutura de pastas do Smoke. Você visualizará conforme abaixo:", + + "REQUIRED": "Dependências", + "REQUIRED-DESC": "Para utilizar o Smoke, essas duas dependências são necessárias", + "REQUIRED-JQUERY": "Note que o plugin Smoke depende da biblioteca jQuery inclusa.", + "REQUIRED-BOOTSTRAP": "Note que o plugin Smoke depende do framework Bootstrap 3 incluso.", + + "BASIC-TEMPLATE": "Modelo básico", + "BASIC-TEMPLATE-DESC": "Inicie com este modelo básico em HTML ou modifique de acordo com suas necessidades.", + "BASIC-TEMPLATE-DESC2": "Copie o código HTML abaixo para iniciar com os requerimentos mínimos do Smoke.", + + + + + "VALIDATE": "Validação de Formulário", + "VALIDATE-DESC": "Crie a validação de formulário do cliente de forma fácil, simples e segura.", + + "INPUT-EMPTY": "Campo vazio", + "INPUT-EMPTY-DESC": "Para validar um campo obrigatório é necessário apenas incluir o atributo required no elemento input . Os tipos de campos suportados até o momento são text, textarea, email, password, select, radio and checkbox. A função utilizada para validar é smkValidate () .", + "INPUT-EMPTY-NOTE": "É necessário que o input esteja dentro de uma div utilizando a classe form-group", + + "INPUT-EMAIL": "Campo email", + "INPUT-EMAIL-DESC": "Para validar uma conta de email, o campo deve ser do tipo email e atributo required incluso dentro do elemento input.", + + "INPUT-ALPHANUMERIC": "Campo alfanumérico", + "INPUT-ALPHANUMERIC-DESC": "Para validar um campo que aceita somente números e letras, o campo deve ser to tipo texto, inclua o atributo required no elemento input, e também inclua o atributo smk-type com a propriedade alphanumeric.", + + "INPUT-NUMBER": "Campo número", + "INPUT-NUMBER-DESC": "Para validar um campo que aceita somente números, o campo deve ser do tipo text, inclua o atributo required no elemento input. e também inclua o atributo smk-type com o valor number.", + + "INPUT-NUMBERRANGE": "Campo com intervalo numérico", + "INPUT-NUMBERRANGE-DESC": "Para validar um campo que aceita somente números e intervalo de números, o campo deve ser do tipo text, inclua o atributo required ao elemento input. Da mesma maneira inclua o atributo smk-type com valor number, também inclua os atributos smk-min e smk-max informando o intervalo numérico desejado.", + + "INPUT-DECIMAL": "Campo decimal", + "INPUT-DECIMAL-DESC": "Para validar um campo que aceita somente números decimais, o campo deve ser do tipo text, inclua o atributo required no elemento input. inclua também o atributo smk-type com valor decimal.", + + "INPUT-CURRENCY": "Campo monetário", + "INPUT-CURRENCY-DESC": "Para validar um campo que aceita somente números, vírgulas, pontos, e formatos monetários, o campo deve ser do tipo text, inclua o atributo required dentro do elemento input. Da mesma maneira inclua o atributo smk-type com valor currency.", + + "NUMBER-CHARACTER": "Caracterer numérico", + "NUMBER-CHARACTER-DESC": "Para validar um campo que aceita somente um número exato de caracteres, inclua o atributo required no elemento input . Também inclua os atributos minLength e maxlength com os valores permitidos.", + + "RANGE-CHARACTER": "Intervalo de caracteres", + "RANGE-CHARACTER-DESC": "Para validar um campo que aceita somente um intervalo de caracteres numéricos, inclua o atributo required no elemento input . Também inclua os atributos minLength e maxlength com o valor do intervalo de números permitidos.", + + "STRONG-PASSWORD": "Senha segura", + "STRONG-PASSWORD-DESC": "Para validar um campo que aceita somente senha forte e segura, o campo deve ser do tipo password, inclua o atributo required no elemento input e finalmente inclua o atributo smk-strongPass com o valor de segurança obrigatório.", + "STRONG-PASSWORD-TB": { + "DESC": "Descrição", + "DESCS": { + "DEFAULT": "Mínimo 4 caracteres", + "WEAK": "Mínimo 6 caracteres", + "MEDIUM": "Mínimo 6 caracteres alfanuméricos e ao menos um deve ser numérico", + "STRONG": "Mínimo 6 caracteres, combinando números, letras maiúsculas e minúsculas." + } + }, + + "EQUAL-PASSWORD": "Equivalência de senha", + "EQUAL-PASSWORD-DESC": "Para validar se os textos contidos em dois campos são iguais, inclua o atributo required no primeiro elemento input . Utilize a função $.smkEqualPass().", + + "EQUAL-PASSWORD-VAR": "Equivalência de senha utilizando JavaScript", + "EQUAL-PASSWORD-VAR-DESC": "Para validar que o texto contido em um campo é igual ao valor de uma variável JavaScript, inclua o atributo required no elemento input . Utilize a função $.smkEqualPass(). ", + + "CLEAR-FORM": "Limpar formulário", + "CLEAR-FORM-DESC": "Para limpar formulários utilize a função smkClear() . Para não limpar um ou mais tipos de campos, utilize a opção noClear dentro da função. ", + + "CUSTOMIZE-MESSAGE": "Mensagem customizada", + "CUSTOMIZE-MESSAGE-DESC": "Customize a mensagem de erro adicionando o atributo smk-text no elemento input .", + + "LANGUAGE": "Idioma", + "LANGUAGE-DESC": "Para alterar o idioma das validações de mensagens, inclua no HTML os scripts necessários e então informe o idioma na opção lang da função smkValidate() .", + "LANGUAGE-TB": { + "TITLE": "Idiomas suportados", + "LANGUAGE": "Idioma", + "ARCHIVE": "Arquivo" + }, + + + "OPTIONS": "Opções", + "OPTION":"Opção", + "TYPE":"Tipo", + "DESCRIPTION":"Descrição", + + + "NOTIFICATIONS-DESC": "Crie alertas ou confirmações de mensagens funcionais tão simples quanto utilizar JavaScript nativo.", + + "ALERTS": "Alertas", + "ALERTS-DESC": "Exibindo mensagem de alerta para ações dos usuários quando um evento é acionado.", + "ALERTS-TB": { + "DESC": "Customização de alertas, alterando a mensagem, cor, duração ou a permanência do alerta.", + "DESCS": { + "TEXT":"Mensagem", + "TYPE":"Tipo da mensagem", + "TIME":"Duração do alerta em segundos", + "PERMANENT":"Alerta permanente" + } + }, + + "CONFIRMATION": "Confirmação", + "CONFIRMATION-DESC": "Exibindo mensagem de confirmação para ações dos usuários quando um evento é acionado.", + "CONFIRMATION-TB": { + "DESC": "Customização de confirmações, altera a mensagem e o texto dos botões.", + "DESCS": { + "TEXT":"Mensagem", + "ACCEPT":"Texto do botão de confirmação", + "CANCEL":"Texto do botão cancelar" + } + }, + + + + + "PROGRESSBAR-DESC": "Inclua uma barra de progresso em sua aplicação.", + "PROGRESSBAR-DESC2": "Inclua uma barra de progresso em qualquer evento de sua aplicação.", + "PROGRESSBAR-TB": { + "DESC": "Customize o elemento em que a barra de progresso será adicionada. Defina quando iniciar e quando terminar.", + "DESCS": { + "ELEMENT": "Elemento em que a barra de progresso será adicionada", + "STATUS": "Quando iniciar e quando terminar" + } + }, + + + + "FULLSCREEN-DESC": "Inclua a funcionalidade de tela inteira em sua aplicação.", + "FULLSCREEN-DESC2": "Para adicionar o botão tela inteira é necessário apenas indicar para a função qual será o contâiner.", + + + + "PANEL-DESC": "Adicione funcionalidade para os seus panels", + "PANEL-DESC2": "Adicione funcionalidade para os seus panels, minimizando-os, expandindo-os ou removendo-os.", + "PANEL-TB": { + "DESC": "Customizando os botões que você deseja exibir.", + "DESCS": { + "HIDE": "botões escondidos" + } + }, + + + + "HELPERS-DESC": "Coleção de funções de ajuda.", + + "STRING-FLOAT": "String para float", + "STRING-FLOAT-DESC": "Converte uma string para float.", + + "NUMBER-CURRENCY": "Formato monetário", + "NUMBER-CURRENCY-DESC": "Converte número para formato monetário.", + "NUMBER-CURRENCY-NOTE": "Esta função possui dois parâmetros, o primeiro é o número que deseja formatar e o segundo é o prefixo ou símbolo monetário.", + + "URL-DESC": "Obter URL.", + "URL-NOTE": "Esta função possui parâmetro (opcional) que é o número de pastas para obter após a URL.", + + + "DATE": "Data", + "DATE-DESC": "Com esta função você poderá obter, formatar, traduzir e customizar datas", + "DATE-NOTE": "Para alterar o idioma da data, inclua no HTML o script do idioma desejado.", + "DATE-TB": { + "DEFAULT": { + "DATE": "Data Atual" + }, + "DESCS": { + "DATE": "Data", + "FORMAT": "Formato", + "LANG": "Idioma da data" + } + }, + "DATE-TB2": { + "DESC": "Formatos", + "TITLE": "Formato", + "DESCS": { + "d": "Exibir dia sem 0 (Zero) a esquerda", + "dd": "Exibir dia com 0 (Zero) a esquerda", + "m": "Exibir mês sem 0 (Zero) a esquerda", + "mm": "Exibir mês com o (Zero) a esquerda", + "M": "Nome do mês abreviado", + "MM": "Nome completo do mês", + "yy": "2 dígitos para ano", + "yyyy": "4 dígitos para ano" + } + }, + + "DATE-DIFF": "Diferença entre datas", + "DATE-DIFF-DESC": "Obtenha a diferença entre duas datas", + "DATE-DIFF-TB":{ + "DEFAULT" : { + "DATE": "Data atual", + "INTERVAL": "dias" + }, + "DESCS": { + "DATE" : "datas para comparar", + "INTERVAL" : "Intervalo" + + } + } + +} diff --git a/docs/validate.html b/docs/validate.html index 5dd31ac..d9660de 100644 --- a/docs/validate.html +++ b/docs/validate.html @@ -604,6 +604,11 @@

    {{'LANGUAGE-TB.TITLE' | translate}}

    {{'FRENCH' | translate}} fr.js + + pt_br + {{'BRAZILIANPORTUGUESE' | translate}} + pt_br.js + diff --git a/package.json b/package.json index 1c6544a..4918b6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smoke", - "version": "2.1.5", + "version": "2.1.6", "description": "Smoke is the most complete jQuery Plugin and designed for use with Bootstrap 3", "license": "LGPL", "author": "Alfredo Barron",