Skip to content

Commit

Permalink
v2.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Dec 10, 2019
1 parent 76f729f commit 33ff39c
Show file tree
Hide file tree
Showing 19 changed files with 110 additions and 60 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ JavaScript form validation, without actually writing a single line of JavaScript

## Version

2.9.1
2.9.2

## Doc

Expand Down
3 changes: 3 additions & 0 deletions dist/i18n/en.extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

Parsley.addMessages('en', {
dateiso: "This value should be a valid date (YYYY-MM-DD).",
date: "It must be a valid date with format %s",
datebeforenow: "Date must be valid with format %s and be before now",
dateafternow: "Date must be valid with format %s and be after now",
minwords: "This value is too short. It should have %s words or more.",
maxwords: "This value is too long. It should have %s words or fewer.",
words: "This value length is invalid. It should be between %s and %s words long.",
Expand Down
7 changes: 5 additions & 2 deletions dist/i18n/it.extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
// Load this after Parsley

Parsley.addMessages('it', {
dateiso: "Inserire una data valida (AAAA-MM-GG).",
dateiso: "Inserire una data valida (AAAA-MM-GG).",
date: "Deve essere una data valida nel formato %s",
datebeforenow: "La data deve essere valida nel formato %s e precedere la data attuale",
dateafternow: "La data deve essere valida nel formato %s e posteriore alla data attuale",
minwords: "Questo valore deve avere almeno %s parole.",
maxwords: "Questo valore deve avere meno di %s parole.",
words: "Questo valore deve avere tra %s e %s parole.",
gt: "Questo valore deve essere maggiore di %s.",
gte: "Questo valore deve essere maggiore o uguale a %s.",
lt: "Questo valore deve essere minore di %s.",
lte: "Questo valore deve essere minore o uguale a %s.",
notequalto: "Questo valore deve essere differente da %s.",
notequalto: "Questo valore deve essere differente da %s."
});
17 changes: 17 additions & 0 deletions dist/i18n/th.extra.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Validation errors messages for Parsley
// Load this after Parsley

Parsley.addMessages('th', {
dateiso: "วันที่ต้องมีรูปแบบเป็น YYYY-MM-DD",
date: "วันที่ไม่ถูกต้องตามรูปแบบ %s",
datebeforenow: "วันที่ต้องมีรูปแบบเป็น %s และเป็นวันที่ก่อนวันปัจจุบัน",
dateafternow: "วันที่ต้องมีรูปแบบเป็น %s และเป็นวันที่หลังวันปัจจุบัน",
minwords: "กรุณากรอกอย่างน้อย %s คำ",
maxwords: "กรอกได้ไม่เกิน %s คำ",
words: "จำนวนคำต้องอยู่ระหว่าง %s ถึง %s คำ",
gt: "กรุณากรอกค่าที่มากกว่า %s",
gte: "กรุณากรอกค่าที่มากกว่าหรือเท่ากับ %s",
lt: "กรุณากรอกค่าที่น้อยกว่า %s",
lte: "กรุณากรอกค่าที่น้อยกว่าหรือเท่ากับ %s",
notequalto: "ค่าที่กรอกต้องเหมือนกับ %s"
});
39 changes: 20 additions & 19 deletions dist/i18n/th.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,27 @@
Parsley.addMessages('th', {
defaultMessage: "ค่านี้ดูเหมือนว่าจะไม่ถูกต้อง",
type: {
email: "ค่านี้ควรจะเป็นอีเมลที่ถูกต้อง",
url: "ค่านี้ควรจะเป็น url ที่ถูกต้อง",
number: "ค่านี้ควรจะเป็นตัวเลขที่ถูกต้อง",
integer: "ค่านี้ควรจะเป็นจำนวนเต็มที่ถูกต้อง",
digits: "ค่านี้ควรเป็นทศนิยมที่ถูกต้อง",
alphanum: "ค่านี้ควรเป็นอักขระตัวอักษรหรือตัวเลขที่ถูกต้อง"
email: "กรุณากรอกอีเมลให้ถูกต้อง",
url: "กรุณากรอก url ให้ถูกต้อง",
number: "กรุณากรอกตัวเลข",
integer: "กรุณากรอกจำนวนเต็ม",
digits: "กรุณากรอกเลขทศนิยม",
alphanum: "กรุณากรอกตัวอักษรและตัวเลข"
},
notblank: "ค่านี้ไม่ควรจะว่าง",
required: "ค่านี้จำเป็น",
pattern: "ค่านี้ดูเหมือนว่าจะไม่ถูกต้อง",
min: "ค่านี้ควรมากกว่าหรือเท่ากับ %s.",
max: "ค่านี้ควรจะน้อยกว่าหรือเท่ากับ %s.",
range: "ค่านี้ควรจะอยู่ระหว่าง %s และ %s.",
minlength: "ค่านี้สั้นเกินไป ควรจะมี %s อักขระหรือมากกว่า",
maxlength: "ค่านี้ยาวเกินไป ควรจะมี %s อักขระหรือน้อยกว่า",
length: "ความยาวของค่านี้ไม่ถูกต้อง ควรมีความยาวอยู่ระหว่าง %s และ %s อักขระ",
mincheck: "คุณควรเลือกอย่างน้อย %s ตัวเลือก",
maxcheck: "คุณควรเลือก %s ตัวเลือกหรือน้อยกว่า",
check: "คุณควรเลือกระหว่าง %s และ %s ตัวเลือก",
equalto: "ค่านี้ควรจะเหมือนกัน"
notblank: "ห้ามเป็นค่าว่าง",
required: "จำเป็นต้องกรอก",
pattern: "รูปแบบไม่ถูกต้อง",
min: "ต้องมากกว่าหรือเท่ากับ %s",
max: "ต้องน้อยกว่าหรือเท่ากับ %s",
range: "ต้องอยู่ระหว่าง %s และ %s",
minlength: "กรุณากรอกอย่างน้อย %s ตัวอักษร",
maxlength: "กรอกได้ไม่เกิน %s ตัวอักษร",
length: "ความยาวตัวอักษรต้องอยู่ระหว่าง %s ถึง %s ตัวอักษร",
mincheck: "กรุณาเลือกอย่างน้อย %s ตัวเลือก",
maxcheck: "เลือกได้ไม่เกิน %s ตัวเลือก",
check: "กรุณาเลือกระหว่าง %s และ %s ตัวเลือก",
equalto: "ค่าที่กรอกไม่เหมืิอนกัน",
euvatin: "หมายเลขประจำตัวผู้เสียภาษีไม่ถูกต้อง",
});

Parsley.setLocale('th');
30 changes: 19 additions & 11 deletions dist/parsley.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/parsley.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/parsley.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/parsley.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/annotated-source/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h1>base.js</h1>
Base.prototype = {
<span class="hljs-attr">asyncSupport</span>: <span class="hljs-literal">true</span>, <span class="hljs-comment">// Deprecated</span>

_pipeAccordingToValidationResult: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
<span class="hljs-attr">_pipeAccordingToValidationResult</span>: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">var</span> pipe = <span class="hljs-function"><span class="hljs-params">()</span> =&gt;</span> {
<span class="hljs-keyword">var</span> r = $.Deferred();
<span class="hljs-keyword">if</span> (<span class="hljs-literal">true</span> !== <span class="hljs-keyword">this</span>.validationResult)
Expand Down
2 changes: 1 addition & 1 deletion doc/annotated-source/field.html
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ <h1 id="public-api">Public API</h1>
* @param {Number} priority optional
* @param {Boolean} isDomConstraint optional
*/</span>
addConstraint: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">name, requirements, priority, isDomConstraint</span>) </span>{
<span class="hljs-attr">addConstraint</span>: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">name, requirements, priority, isDomConstraint</span>) </span>{

<span class="hljs-keyword">if</span> (<span class="hljs-built_in">window</span>.Parsley._validatorRegistry.validators[name]) {
<span class="hljs-keyword">var</span> constraint = <span class="hljs-keyword">new</span> Constraint(<span class="hljs-keyword">this</span>, name, requirements, priority, isDomConstraint);</pre></div></div>
Expand Down
2 changes: 1 addition & 1 deletion doc/annotated-source/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ <h3 id="globals">Globals</h3>
<div class="pilwrap ">
<a class="pilcrow" href="#section-10">&#182;</a>
</div>
<h3 id="define-methods-that-forward-to-the-registry-and-deprecate-all-access-except-through-window-parsley">Define methods that forward to the registry, and deprecate all access except through window.Parsley</h3>
<h3 id="define-methods-that-forward-to-the-registry-and-deprecate-all-access-except-through-windowparsley">Define methods that forward to the registry, and deprecate all access except through window.Parsley</h3>

</div>

Expand Down
8 changes: 8 additions & 0 deletions doc/annotated-source/ui.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,20 @@ <h1>ui.js</h1>
.addClass(<span class="hljs-string">'parsley-custom-error-message'</span>)
);

<span class="hljs-keyword">this</span>._ui.$errorClassHandler.attr(<span class="hljs-string">'aria-describedby'</span>, <span class="hljs-keyword">this</span>._ui.errorsWrapperId);

<span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>._ui.$errorsWrapper
.addClass(<span class="hljs-string">'filled'</span>)
.attr(<span class="hljs-string">'aria-hidden'</span>, <span class="hljs-string">'false'</span>)
.find(<span class="hljs-string">'.parsley-custom-error-message'</span>)
.html(<span class="hljs-keyword">this</span>.options.errorMessage);
}

<span class="hljs-keyword">this</span>._ui.$errorClassHandler.removeAttr(<span class="hljs-string">'aria-describedby'</span>);

<span class="hljs-keyword">return</span> <span class="hljs-keyword">this</span>._ui.$errorsWrapper
.removeClass(<span class="hljs-string">'filled'</span>)
.attr(<span class="hljs-string">'aria-hidden'</span>, <span class="hljs-string">'true'</span>)
.find(<span class="hljs-string">'.parsley-custom-error-message'</span>)
.remove();
}</pre></div></div>
Expand Down Expand Up @@ -519,6 +525,7 @@ <h1>ui.js</h1>
.attr(<span class="hljs-string">'aria-describedby'</span>, <span class="hljs-keyword">this</span>._ui.errorsWrapperId);
<span class="hljs-keyword">this</span>._ui.$errorsWrapper
.addClass(<span class="hljs-string">'filled'</span>)
.attr(<span class="hljs-string">'aria-hidden'</span>, <span class="hljs-string">'false'</span>)
.append(
$(<span class="hljs-keyword">this</span>.options.errorTemplate)
.addClass(<span class="hljs-string">'parsley-'</span> + name)
Expand All @@ -538,6 +545,7 @@ <h1>ui.js</h1>
.removeAttr(<span class="hljs-string">'aria-describedby'</span>);
<span class="hljs-keyword">this</span>._ui.$errorsWrapper
.removeClass(<span class="hljs-string">'filled'</span>)
.attr(<span class="hljs-string">'aria-hidden'</span>, <span class="hljs-string">'true'</span>)
.find(<span class="hljs-string">'.parsley-'</span> + name)
.remove();
},
Expand Down
2 changes: 1 addition & 1 deletion doc/annotated-source/utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ <h1>utils.js</h1>
},

<span class="hljs-comment">/** Third party functions **/</span>
deserializeValue: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">value</span>) </span>{
<span class="hljs-attr">deserializeValue</span>: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">value</span>) </span>{
<span class="hljs-keyword">var</span> num;

<span class="hljs-keyword">try</span> {
Expand Down

0 comments on commit 33ff39c

Please sign in to comment.