diff --git a/bower.json b/bower.json index 422420d..b1ad2c3 100644 --- a/bower.json +++ b/bower.json @@ -2,7 +2,7 @@ "name": "simple-react-validator", "description": "A simple react form validator inspired by Laravel validation.", "main": "dist/simple-react-validator.min.js", - "version": "1.4.1", + "version": "1.4.2", "authors": [ "Stuart Yamartino" ], diff --git a/dist/locale/es.js b/dist/locale/es.js index 8ff4142..c47b3f7 100644 --- a/dist/locale/es.js +++ b/dist/locale/es.js @@ -1,4 +1,4 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['simple-react-validator'], factory); diff --git a/dist/locale/fa.js b/dist/locale/fa.js index ae151d0..00556fe 100644 --- a/dist/locale/fa.js +++ b/dist/locale/fa.js @@ -1,4 +1,4 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['simple-react-validator'], factory); diff --git a/dist/locale/fr.js b/dist/locale/fr.js index 9e0da1c..60a58af 100644 --- a/dist/locale/fr.js +++ b/dist/locale/fr.js @@ -1,4 +1,4 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['simple-react-validator'], factory); diff --git a/dist/locale/id.js b/dist/locale/id.js index a38a7cb..ecb069c 100644 --- a/dist/locale/id.js +++ b/dist/locale/id.js @@ -1,4 +1,4 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['simple-react-validator'], factory); diff --git a/dist/locale/min/es.min.js b/dist/locale/min/es.min.js index ba86e05..1ae15f6 100644 --- a/dist/locale/min/es.min.js +++ b/dist/locale/min/es.min.js @@ -1,2 +1,2 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present !function(e,t){"function"==typeof define&&define.amd?define(["simple-react-validator"],t):"object"==typeof exports?module.exports=t(require("simple-react-validator")):e.SimpleReactValidatorLocaleEs=t(e.SimpleReactValidator)}(this,function(e){"use strict";return e.addLocale("es",{accepted:":attribute debe ser aceptado.",after:":attribute debe ser una fecha posterior a :date.",after_or_equal:":attribute debe ser una fecha posterior o igual a :date.",alpha:":attribute sólo debe contener letras.",array:":attribute debe ser un conjunto.",before:":attribute debe ser una fecha anterior a :date.",before_or_equal:":attribute debe ser una fecha anterior o igual a :date.",between:":attribute tiene que estar entre :min - :max:type.",boolean:"El campo :attribute debe tener un valor verdadero o falso.",date:":attribute no es una fecha válida.",date_equals:":attribute debe ser una fecha igual a :date.",email:":attribute no es un correo válido",in:":attribute es inválido :values.",integer:":attribute debe ser un número entero.",max:":attribute no debe ser mayor a :max:type.",min:"El tamaño de :attribute debe ser de al menos :min:type.",not_in:":attribute es inválido :values.",not_regex:"El formato del campo :attribute no es válido.",numeric:":attribute debe ser numérico.",regex:"El formato de :attribute es inválido.",required:"El campo :attribute es obligatorio.",size:"El tamaño de :attribute debe ser :size:type.",string:"El campo :attribute debe ser una cadena de caracteres.",url:"El formato :attribute es inválido."}),null}); \ No newline at end of file diff --git a/dist/locale/min/fa.min.js b/dist/locale/min/fa.min.js index 34add9c..434a0ee 100644 --- a/dist/locale/min/fa.min.js +++ b/dist/locale/min/fa.min.js @@ -1,2 +1,2 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present !function(t,e){"function"==typeof define&&define.amd?define(["simple-react-validator"],e):"object"==typeof exports?module.exports=e(require("simple-react-validator")):t.SimpleReactValidatorLocaleFa=e(t.SimpleReactValidator)}(this,function(t){"use strict";return t.addLocale("fa",{accepted:":attribute مورد قبول قرار نگرفت",after:":attribute باید تاریخی بعد از :date باشد.",after_or_equal:":attribute باید تاریخی برابر یا بعد از :date باشد.",alpha:":attribute باید شامل حروف انگلیسی باشد.",alpha_space:":attribute باید شامل حروف انگلیسی و فاصله باشد.",alpha_num:":attribute باید شامل اعداد و حروف انگلیسی باشد.",alpha_num_space:":attribute باید شامل اعداد و حروف انگلیسی و فاصله باشد.",alpha_num_dash:":attribute باید شامل اعداد و حروف انگلیسی و خط تیره.",alpha_num_dash_space:":attribute باید شامل اعداد و حروف انگلیسی، خط تیره و فاصله باشد.",array:":attribute باید یک آرایه باشد.",before:":attribute باید قبل از :date باشد.",before_or_equal:":attribute باید قبل یا برابر با :date باشد.",between:":attribute باید بین :min و :max:type باشد.",boolean:":attribute باید یک بول باشد.",card_exp:":attribute باید یک تاریخ انقضا معتبر باشد.",card_num:":attribute باید یک شماره کارت اعتباری معتبر باشد.",currency:":attribute باید یک ارز معتبر باشد.",date:":attribute باید تاریخ باشد.",date_equals:":attribute باید در :date بازه باشد.",email:":attribute بایدآدرس ایمیل معتبر باشد.",in:":attribute باید یکی از :values باشد.",integer:":attribute باید یک عدد صحیح باشد.",max:":attribute باید کمتر از :max:type باشد.",min:":attribute باید بیشتر از :min:type باشد.",not_in:":attribute نباید مشابه با :values باشد.",not_regex:":attribute نباید با الگوی مورد نیاز مطابقت داشته باشد.",numeric:":attribute باید عدد باشد.",phone:":attribute باید یک شماره تلفن معتبر باشد.",regex:":attribute باید با الگوی مورد نیاز مطابقت داشته باشد.",required:"قسمت :attribute الزامی است.",size:":attribute باید تبدیل شود به size:type:.",string:":attribute باید یک رشته باشد.",typeof:":attribute نوع صحیح :type نوع نیست.",url:":attribute باید یک آدرس اینترنتی باشد."}),null}); \ No newline at end of file diff --git a/dist/locale/min/fr.min.js b/dist/locale/min/fr.min.js index 1e1259d..c6638bd 100644 --- a/dist/locale/min/fr.min.js +++ b/dist/locale/min/fr.min.js @@ -1,2 +1,2 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present !function(e,t){"function"==typeof define&&define.amd?define(["simple-react-validator"],t):"object"==typeof exports?module.exports=t(require("simple-react-validator")):e.SimpleReactValidatorLocaleFr=t(e.SimpleReactValidator)}(this,function(e){"use strict";return e.addLocale("fr",{accepted:"Le champ :attribute doit être accepté.",after:"Le champ :attribute doit être après :date.",after_or_equal:"Le champ :attribute doit correspondre ou bien être après :date.",alpha:"Le champ :attribute ne peut contenir que des lettres.",alpha_space:"Le champ :attribute ne peut contenir que des lettres et des espaces.",alpha_num:"Le champ :attribute ne peut contenir que des lettres et des chiffres.",alpha_num_space:"Le champ :attribute ne peut contenir que des lettres, chiffres, et espaces.",alpha_num_dash:"Le champ :attribute ne peut contenir que des lettres, chiffres, et tirets.",alpha_num_dash_space:"Le champ :attribute ne peut contenir que des lettres, chiffres, tirets, et espaces.",array:"Le champ :attribute doit êttre un tableau.",before:"Le champ :attribute doit être avant :date.",before_or_equal:"Le champ :attribute doit correspondre ou bien être avant :date.",between:"Le champ :attribute doit être entre :min et :max:type.",boolean:"Le champ :attribute doit être booléen.",card_exp:"Le champ :attribute doit être une date d'expiration valide.",card_num:"Le champ :attribute doit être un numéro valide de carte de crédit .",currency:"Le champ :attribute doit être une devise valide.",date:"Le champ :attribute doit être une date.",date_equals:"Le champ :attribute doit correspondre à :date.",email:"Le champ :attribute doit êre une adresse email valide.",in:"Le champ selectionné :attribute doit être :values.",integer:"Le champ :attribute doit être un entier.",max:"Le champ :attribute ne doit pas dépasser :max:type.",min:"Le champ :attribute doit au moins être :min:type.",not_in:"Le champ selectionné :attribute ne doit pas être :values.",not_regex:"Le champ :attribute ne doit pas correspondre au motif requis.",numeric:"Le champ :attribute doit être un chiffre.",phone:"Le champ :attribute doit être un numéro de téléphone valide.",regex:"Le champ :attribute doit correspondre au motif requis.",required:"Le champ :attribute est requis.",size:"Le champ :attribute doit être :size:type.",string:"Le champ :attribute doit être une chaîne.",typeof:"Le champ :attribute n'est pas le type correcte de :type.",url:"Le champ :attribute doit être un url."}),null}); \ No newline at end of file diff --git a/dist/locale/min/id.min.js b/dist/locale/min/id.min.js index 71944b3..f41cd98 100644 --- a/dist/locale/min/id.min.js +++ b/dist/locale/min/id.min.js @@ -1,2 +1,2 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present !function(a,t){"function"==typeof define&&define.amd?define(["simple-react-validator"],t):"object"==typeof exports?module.exports=t(require("simple-react-validator")):a.SimpleReactValidatorLocaleId=t(a.SimpleReactValidator)}(this,function(a){"use strict";return a.addLocale("id",{accepted:":attribute harus diterima.",after:":attribute harus lebih dari :date.",after_or_equal:":attribute harus lebih dari atau sama dengan :date.",alpha:":attribute hanya boleh berisikan teks.",alpha_space:":attribute hanya boleh berisikan teks dan spasi.",alpha_num:":attribute hanya boleh berisikan teks dan angka.",alpha_num_space:":attribute hanya boleh berisikan teks, angka, dan spasi.",alpha_num_dash:":attribute hanya boleh berisikan teks, angka, dan garis datar.",alpha_num_dash_space:":attribute hanya boleh berisikan teks, angka, garis datar dan spasi.",array:":attribute harus berupa array.",before:":attribute harus kurang dari :date.",before_or_equal:":attribute harus kurang dari atau sama dengan :date.",between:":attribute harus diantara :min dan :max:type.",boolean:":attribute harus berupa boolean.",card_exp:":attribute harus berupa tanggal expire yang valid valid expiration date.",card_num:":attribute harus berupa nomor kartu kredit.",currency:":attribute harus berupa mata uang yang valid.",date:":attribute harus berupa tanggal.",date_equals:":attribute harus sama dengan :date.",email:":attribute harus berupa alamat email yang valid.",in:":attribute terpilih harus :values.",integer:":attribute harus berupa integer.",max:":attribute harus kurang dari :max:type.",min:":attribute harus lebih dari :min:type.",not_in:":attribute terpilih tidak boleh sama dngan :values.",not_regex:":attribute tidak boleh cocok dengan pola yang ditentukan.",numeric:":attribute harus berupa angka.",phone:":attribute harus berupa nomor ponsel yang valid.",regex:":attribute harus cocok dengan pola yang ditentukan.",required:":attribute tidak boleh kosong.",size:":attribute harus :size:type.",string:":attribute harus berupa string.",typeof:":attribute tida cocok dengan tiipe :type.",url:":attribute harus berupa url."}),null}); \ No newline at end of file diff --git a/dist/locale/min/sr.min.js b/dist/locale/min/sr.min.js index e902b6c..c60c516 100644 --- a/dist/locale/min/sr.min.js +++ b/dist/locale/min/sr.min.js @@ -1,2 +1,2 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present !function(e,t){"function"==typeof define&&define.amd?define(["simple-react-validator"],t):"object"==typeof exports?module.exports=t(require("simple-react-validator")):e.SimpleReactValidatorLocaleSr=t(e.SimpleReactValidator)}(this,function(e){"use strict";return e.addLocale("sr",{accepted:"Polje :attribute mora biti prihvaćeno.",after:"Polje :attribute mora biti nakon :date.",after_or_equal:"Polje :attribute mora biti nakon ili na :date.",alpha:"Polje :attribute može sadržati samo slova.",alpha_space:"Polje :attribute može sadržati samo slova i razmake.",alpha_num:"Polje :attribute može sadržati samo slova i brojeve.",alpha_num_space:"Polje :attribute može sadržati samo slova, brojeve i razmake.",alpha_num_dash:"Polje :attribute može sadržati samo slova, brojeve i crte.",alpha_num_dash_space:"Polje :attribute može sadržati samo slova, brojeve, crte i razmake.",array:"Polje :attribute mora biti niz.",before:"Polje :attribute mora biti pre :date.",before_or_equal:"Polje :attribute mora biti pre ili na :date.",between:"Polje :attribute mora biti između :min i :max:type.",boolean:"Polje :attribute mora biti istinitosna vrednost.",card_exp:"Polje :attribute mora biti validan datum isteka.",card_num:"Polje :attribute mora biti validan broj kreditne kartice.",currency:"Polje :attribute mora biti validna valuta.",date:"Polje :attribute mora biti datum.",date_equals:"Polje :attribute mora biti na :date.",email:"Polje :attribute mora biti validna email adresa.",in:"Izabrano polje :attribute mora biti :values.",integer:"Polje :attribute mora biti ceo broj.",max:"Polje :attribute ne sme biti veće od :max:type.",min:"Polje :attribute mora biti veće od :min:type.",not_in:"Izabrano polje :attribute ne sme biti :values.",not_regex:"Polje :attribute ne sme biti u određenom formatu.",numeric:"Polje :attribute mora biti broj.",phone:"Polje :attribute mora biti validan broj telefona.",regex:"Polje :attribute mora biti u određenom formatu.",required:"Polje :attribute je obavezno.",size:"Polje :attribute mora biti :size:type.",string:"Polje :attribute mora biti niska.",typeof:"Polje :attribute nije ispravan tip :type.",url:"Polje :attribute mora biti URL."}),null}); \ No newline at end of file diff --git a/dist/locale/min/tr.min.js b/dist/locale/min/tr.min.js new file mode 100644 index 0000000..ef327e0 --- /dev/null +++ b/dist/locale/min/tr.min.js @@ -0,0 +1,2 @@ +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present +!function(a,e){"function"==typeof define&&define.amd?define(["simple-react-validator"],e):"object"==typeof exports?module.exports=e(require("simple-react-validator")):a.SimpleReactValidatorLocaleTr=e(a.SimpleReactValidator)}(this,function(a){"use strict";return a.addLocale("tr",{accepted:":attribute onaylanmalıdır.",after:":attribute :date tarihinden sonra olmalıdır.",after_or_equal:":attribute :date tarihinde veya sonra olmalıdır.",alpha:":attribute sadece harf içerebilir.",alpha_space:":attribute sadece harf, ve boşluk karakteri içerebilir.",alpha_num:":attribute sadece harf, ve rakam içerebilir.",alpha_num_space:":attribute sadece harf, rakam, ve boşluk karakteri içerebilir.",alpha_num_dash:":attribute sadece harf, rakam, ve tire karakteri içerebilir.",alpha_num_dash_space:":attribute sadece harf, rakam, tire, ve boşluk karakteri içerebilir.",array:":attribute dizi tipinde olmalıdır.",before:":attribute :date tarihinden önce olmalıdır.",before_or_equal:":attribute :date tarihinde veya daha önce olmalıdır.",between:":attribute :min - :max:type aralığında olmalıdır.",boolean:":attribute geçerli bir mantıksal değer olmalıdır.",card_exp:":attribute geçerli bir sonlanma tarihi olmalıdır.",card_num:":attribute geçerli bir kredi kartı numarası olmalıdır.",currency:":attribute geçerli bir para tipi olmalıdır.",date:":attribute tarih formatında olmalıdır.",date_equals:":attribute :date tarihli olmalıdır.",email:":attribute geçerli bir e-posta adresi olmalıdır.",in:"Seçilen :attribute :values olmalıdır.",integer:":attribute sayı olmalıdır.",max:":attribute :max:type dan büyük olamaz.",min:":attribute en az :min:type olmalıdır.",not_in:"Seçilen :attribute :values olamaz.",not_regex:":attribute gerekli formattan farklı olmalıdır.",numeric:":attribute sayı olmalıdır.",phone:":attribute geçerli bir telefon numarası olmalıdır.",regex:":attribute gerekli formatla uyumlu olmalıdır.",required:":attribute alanı doldurulmalıdır.",size:":attribute :size:type tipinde olmalıdır.",string:":attribute karakter dizisi olmalıdır.",typeof:":attribute :type tipinde olmalıdır.",url:":attribute url olmalıdır."}),null}); \ No newline at end of file diff --git a/dist/locale/sr.js b/dist/locale/sr.js index 8dd98b3..1842863 100644 --- a/dist/locale/sr.js +++ b/dist/locale/sr.js @@ -1,4 +1,4 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['simple-react-validator'], factory); diff --git a/dist/locale/tr.js b/dist/locale/tr.js new file mode 100644 index 0000000..fcd53ac --- /dev/null +++ b/dist/locale/tr.js @@ -0,0 +1,51 @@ +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present +;(function(root, factory) { + if (typeof define === 'function' && define.amd) { + define(['simple-react-validator'], factory); + } else if (typeof exports === 'object') { + module.exports = factory(require('simple-react-validator')); + } else { + root.SimpleReactValidatorLocaleTr = factory(root.SimpleReactValidator); + } +}(this, function(SimpleReactValidator) { +"use strict"; + +// Turkish +SimpleReactValidator.addLocale('tr', { + accepted: ':attribute onaylanmalıdır.', + after: ':attribute :date tarihinden sonra olmalıdır.', + after_or_equal: ':attribute :date tarihinde veya sonra olmalıdır.', + alpha: ':attribute sadece harf içerebilir.', + alpha_space: ':attribute sadece harf, ve boşluk karakteri içerebilir.', + alpha_num: ':attribute sadece harf, ve rakam içerebilir.', + alpha_num_space: ':attribute sadece harf, rakam, ve boşluk karakteri içerebilir.', + alpha_num_dash: ':attribute sadece harf, rakam, ve tire karakteri içerebilir.', + alpha_num_dash_space: ':attribute sadece harf, rakam, tire, ve boşluk karakteri içerebilir.', + array: ':attribute dizi tipinde olmalıdır.', + before: ':attribute :date tarihinden önce olmalıdır.', + before_or_equal: ':attribute :date tarihinde veya daha önce olmalıdır.', + between: ':attribute :min - :max:type aralığında olmalıdır.', + "boolean": ':attribute geçerli bir mantıksal değer olmalıdır.', + card_exp: ':attribute geçerli bir sonlanma tarihi olmalıdır.', + card_num: ':attribute geçerli bir kredi kartı numarası olmalıdır.', + currency: ':attribute geçerli bir para tipi olmalıdır.', + date: ':attribute tarih formatında olmalıdır.', + date_equals: ':attribute :date tarihli olmalıdır.', + email: ':attribute geçerli bir e-posta adresi olmalıdır.', + "in": 'Seçilen :attribute :values olmalıdır.', + integer: ':attribute sayı olmalıdır.', + max: ':attribute :max:type dan büyük olamaz.', + min: ':attribute en az :min:type olmalıdır.', + not_in: 'Seçilen :attribute :values olamaz.', + not_regex: ':attribute gerekli formattan farklı olmalıdır.', + numeric: ':attribute sayı olmalıdır.', + phone: ':attribute geçerli bir telefon numarası olmalıdır.', + regex: ':attribute gerekli formatla uyumlu olmalıdır.', + required: ':attribute alanı doldurulmalıdır.', + size: ':attribute :size:type tipinde olmalıdır.', + string: ':attribute karakter dizisi olmalıdır.', + "typeof": ':attribute :type tipinde olmalıdır.', + url: ':attribute url olmalıdır.' +}); +return null; +})); diff --git a/dist/simple-react-validator.js b/dist/simple-react-validator.js index 69c099a..cc14707 100644 --- a/dist/simple-react-validator.js +++ b/dist/simple-react-validator.js @@ -1,4 +1,4 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present ;(function(root, factory) { if (typeof define === 'function' && define.amd) { define(['react'], factory); diff --git a/dist/simple-react-validator.min.js b/dist/simple-react-validator.min.js index 6d62100..3618ba3 100644 --- a/dist/simple-react-validator.min.js +++ b/dist/simple-react-validator.min.js @@ -1,2 +1,2 @@ -// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present +// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present !function(e,t){"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?module.exports=t(require("react")):e.SimpleReactValidator=t(e.React)}(this,function(n){"use strict";function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var r=[],s=!0,n=!1,a=void 0;try{for(var i,u=e[Symbol.iterator]();!(s=(i=u.next()).done)&&(r.push(i.value),!t||r.length!==t);s=!0);}catch(e){n=!0,a=e}finally{try{s||null==u.return||u.return()}finally{if(n)throw a}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,s)}return r}function b(t){for(var e=1;e=parseFloat(t[0])&&r.helpers.size(e,t[2])<=parseFloat(t[1])},messageReplace:function(e,t){return e.replace(":min",t[0]).replace(":max",t[1]).replace(":type",r.helpers.sizeText(t[2]))}},boolean:{message:"The :attribute must be a boolean.",rule:function(e){return!1===e||!0===e}},card_exp:{message:"The :attribute must be a valid expiration date.",rule:function(e){return r.helpers.testRegex(e,/^(([0]?[1-9]{1})|([1]{1}[0-2]{1}))\s?\/\s?(\d{2}|\d{4})$/)}},card_num:{message:"The :attribute must be a valid credit card number.",rule:function(e){return r.helpers.testRegex(e,/^\d{4}\s?\d{4,6}\s?\d{4,5}\s?\d{0,8}$/)}},currency:{message:"The :attribute must be a valid currency.",rule:function(e){return r.helpers.testRegex(e,/^\$?(\d{1,3})(\,?\d{3})*\.?\d{0,2}$/)}},date:{message:"The :attribute must be a date.",rule:function(e){return r.helpers.momentInstalled()&&moment.isMoment(e)}},date_equals:{message:"The :attribute must be on :date.",rule:function(e,t){return r.helpers.momentInstalled()&&moment.isMoment(e)&&e.isSame(t[0],"day")},messageReplace:function(e,t){return e.replace(":date",t[0].format("MM/DD/YYYY"))}},email:{message:"The :attribute must be a valid email address.",rule:function(e){return r.helpers.testRegex(e,/^[A-Z0-9.!#$%&'*+-/=?^_`{|}~]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i)}},in:{message:"The selected :attribute must be :values.",rule:function(e,t){return t.includes(e)},messageReplace:function(e,t){return e.replace(":values",r.helpers.toSentence(t))}},integer:{message:"The :attribute must be an integer.",rule:function(e){return r.helpers.testRegex(e,/^\d*$/)}},max:{message:"The :attribute may not be greater than :max:type.",rule:function(e,t){return r.helpers.size(e,t[1])<=parseFloat(t[0])},messageReplace:function(e,t){return e.replace(":max",t[0]).replace(":type",r.helpers.sizeText(t[1]))}},min:{message:"The :attribute must be at least :min:type.",rule:function(e,t){return r.helpers.size(e,t[1])>=parseFloat(t[0])},messageReplace:function(e,t){return e.replace(":min",t[0]).replace(":type",r.helpers.sizeText(t[1]))}},not_in:{message:"The selected :attribute must not be :values.",rule:function(e,t){return!t.includes(e)},messageReplace:function(e,t){return e.replace(":values",r.helpers.toSentence(t))}},not_regex:{message:"The :attribute must not match the required pattern.",rule:function(e,t){return!r.helpers.testRegex(e,"string"==typeof t[0]||t[0]instanceof String?new RegExp(t[0]):t[0])}},numeric:{message:"The :attribute must be a number.",rule:function(e){return r.helpers.numeric(e)}},phone:{message:"The :attribute must be a valid phone number.",rule:function(e){return r.helpers.testRegex(e,/^(\+?\d{0,4})?\s?-?\s?(\(?\d{3}\)?)\s?-?\s?(\(?\d{3}\)?)\s?-?\s?(\(?\d{4}\)?)$/)&&!r.helpers.testRegex(e,/^\b(\d)\1{8,}\b$/)}},regex:{message:"The :attribute must match the required pattern.",rule:function(e,t){return r.helpers.testRegex(e,"string"==typeof t[0]||t[0]instanceof String?new RegExp(t[0]):t[0])}},required:{message:"The :attribute field is required.",rule:function(e){return!r.helpers.isBlank(e)},required:!0},size:{message:"The :attribute must be :size:type.",rule:function(e,t){return r.helpers.size(e,t[1])==parseFloat(t[0])},messageReplace:function(e,t){return e.replace(":size",t[0]).replace(":type",r.helpers.sizeText(t[1]))}},string:{message:"The :attribute must be a string.",rule:function(e){return a(e)===a("string")}},typeof:{message:"The :attribute is not the correct type of :type.",rule:function(e,t){return a(e)===a(t[0])},messageReplace:function(e,t){return e.replace(":type",a(t[0]))}},url:{message:"The :attribute must be a url.",rule:function(e){return r.helpers.testRegex(e,/^https?:\/\/[-a-z0-9@:%._\+~#=]{1,256}\.[a-z0-9()]{2,6}\b([-a-z0-9()@:%_\+.~#?&//=]*)$/i)}}},e.validators||{}),e.locale&&!s.locales.hasOwnProperty(e.locale)&&console.warn("Locale not found! Make sure it is spelled correctly and the locale file is loaded.");var t=s.locales[e.locale]||{};Object.keys(this.rules).forEach(function(e){r.rules[e].message=t[e]||r.rules[e].message}),this.messages=e.messages||{},this.className=e.className,this.autoForceUpdate=e.autoForceUpdate||!1,!1===e.element?this.element=function(e){return e}:e.hasOwnProperty("element")?this.element=e.element:"object"===("undefined"==typeof navigator?"undefined":a(navigator))&&"ReactNative"===navigator.product?this.element=function(e){return e}:this.element=function(e,t){return n.createElement("div",{className:t||r.className||"srv-validation-message"},e)}}return e(s,null,[{key:"addLocale",value:function(e,t){this.locales[e]=t}}]),e(s,[{key:"getErrorMessages",value:function(){return this.errorMessages}},{key:"showMessages",value:function(){this.messagesShown=!0,this.helpers.forceUpdateIfNeeded()}},{key:"hideMessages",value:function(){this.messagesShown=!1,this.helpers.forceUpdateIfNeeded()}},{key:"allValid",value:function(){for(var e in this.fields)if(!1===this.fieldValid(e))return!1;return!0}},{key:"fieldValid",value:function(e){return this.fields.hasOwnProperty(e)&&!0===this.fields[e]}},{key:"purgeFields",value:function(){this.fields={},this.errorMessages={}}},{key:"messageWhenPresent",value:function(e){var t=1
{message}
, - //locale: 'fr', + // locale: 'fr', autoForceUpdate: this, className: 'text-danger', messages: { diff --git a/gulpfile.js b/gulpfile.js index fcfc8c1..0eac341 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -13,7 +13,7 @@ var uglify = require('gulp-uglify'); var babel = require('gulp-babel'); var path = require('path'); var camelCase = require('camelcase'); -var HEADER_COMMENT = '// Simple React Validator v1.4.1 | Created By Dockwa | MIT License | 2017 - Present\n'; +var HEADER_COMMENT = '// Simple React Validator v1.4.2 | Created By Dockwa | MIT License | 2017 - Present\n'; var gutil = require('gulp-util'); diff --git a/package-lock.json b/package-lock.json index 8ed00cb..c95ce8e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,9 @@ { "name": "simple-react-validator", - "version": "1.4.1", + "version": "1.4.2", "lockfileVersion": 1, "requires": true, "dependencies": { - "@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", - "dev": true, - "requires": { - "@babel/highlight": "^7.0.0" - } - }, "@babel/compat-data": { "version": "7.8.1", "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.8.1.tgz", @@ -184,18 +175,6 @@ } } }, - "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" - } - }, "@babel/helper-annotate-as-pure": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.0.tgz", @@ -856,26 +835,6 @@ } } }, - "@babel/helper-function-name": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", - "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.7.4", - "@babel/template": "^7.7.4", - "@babel/types": "^7.7.4" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz", - "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4" - } - }, "@babel/helper-hoist-variables": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.0.tgz", @@ -898,15 +857,6 @@ } } }, - "@babel/helper-member-expression-to-functions": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.4.tgz", - "integrity": "sha512-9KcA1X2E3OjXl/ykfMMInBK+uVdfIVakVe7W7Lg3wfXUNyS3Q1HWLFRwZIjhqiCGbslummPDnmb7vIekS0C1vw==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4" - } - }, "@babel/helper-module-imports": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.0.tgz", @@ -1031,21 +981,6 @@ } } }, - "@babel/helper-optimise-call-expression": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz", - "integrity": "sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz", - "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==", - "dev": true - }, "@babel/helper-regex": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.8.0.tgz", @@ -1205,104 +1140,6 @@ } } }, - "@babel/helper-replace-supers": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.7.4.tgz", - "integrity": "sha512-pP0tfgg9hsZWo5ZboYGuBn/bbYT/hdLPVSS4NMmiRJdwWhP0IznPwN9AE1JwyGsjSPLC364I0Qh5p+EPkGPNpg==", - "dev": true, - "requires": { - "@babel/helper-member-expression-to-functions": "^7.7.4", - "@babel/helper-optimise-call-expression": "^7.7.4", - "@babel/traverse": "^7.7.4", - "@babel/types": "^7.7.4" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", - "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.0.0" - } - }, - "@babel/generator": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz", - "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" - } - }, - "@babel/helper-function-name": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz", - "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.7.4", - "@babel/template": "^7.7.4", - "@babel/types": "^7.7.4" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz", - "integrity": "sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", - "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4" - } - }, - "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", - "dev": true - }, - "@babel/template": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", - "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.4", - "@babel/types": "^7.7.4" - } - }, - "@babel/traverse": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", - "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.7.4", - "@babel/helper-function-name": "^7.7.4", - "@babel/helper-split-export-declaration": "^7.7.4", - "@babel/parser": "^7.7.4", - "@babel/types": "^7.7.4", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" - } - } - } - }, "@babel/helper-simple-access": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.8.0.tgz", @@ -1392,15 +1229,6 @@ } } }, - "@babel/helper-split-export-declaration": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz", - "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==", - "dev": true, - "requires": { - "@babel/types": "^7.7.4" - } - }, "@babel/helper-wrap-function": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.8.0.tgz", @@ -1698,54 +1526,6 @@ } } }, - "@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", - "dev": true, - "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "@babel/parser": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz", - "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==", - "dev": true - }, "@babel/plugin-proposal-async-generator-functions": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.0.tgz", @@ -1986,15 +1766,6 @@ } } }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz", - "integrity": "sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0" - } - }, "@babel/plugin-syntax-optional-catch-binding": { "version": "7.8.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.0.tgz", @@ -3135,56 +2906,6 @@ } } }, - "@babel/template": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz", - "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.7.4", - "@babel/types": "^7.7.4" - } - }, - "@babel/traverse": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz", - "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.7.4", - "@babel/helper-function-name": "^7.7.4", - "@babel/helper-split-export-declaration": "^7.7.4", - "@babel/parser": "^7.7.4", - "@babel/types": "^7.7.4", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.5.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", - "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.0.0" - } - } - } - }, - "@babel/types": { - "version": "7.7.4", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz", - "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==", - "dev": true, - "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" - } - }, "ansi-colors": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-1.1.0.tgz", diff --git a/package.json b/package.json index aacf46c..c077d80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-react-validator", - "version": "1.4.1", + "version": "1.4.2", "description": "A simple react form validator inspired by Laravel validation.", "main": "dist/simple-react-validator.min.js", "types": "src/index.d.ts", diff --git a/src/locale/tr.js b/src/locale/tr.js index 8c98473..b251254 100644 --- a/src/locale/tr.js +++ b/src/locale/tr.js @@ -1,39 +1,37 @@ // Turkish SimpleReactValidator.addLocale('tr', { - accepted : ':attribute onaylanmalıdır.', - after : ':attribute :date tarihinden sonra olmalıdır.', - after_or_equal : ':attribute :date tarihinde veya sonra olmalıdır.', - alpha : ':attribute sadece harf içerebilir.', - alpha_space : ':attribute sadece harf, ve boşluk karakteri içerebilir.', - alpha_num : ':attribute sadece harf, ve rakam içerebilir.', - alpha_num_space : ':attribute sadece harf, rakam, ve boşluk karakteri içerebilir.', - alpha_num_dash : ':attribute sadece harf, rakam, ve tire karakteri içerebilir.', - alpha_num_dash_space : ':attribute sadece harf, rakam, tire, ve boşluk karakteri içerebilir.', - array : ':attribute dizi tipinde olmalıdır.', - before : ':attribute :date tarihinden önce olmalıdır.', - before_or_equal : ':attribute :date tarihinde veya daha önce olmalıdır.', - between : ':attribute :min - :max:type aralığında olmalıdır.', - boolean : ':attribute geçerli bir mantıksal değer olmalıdır.', - card_exp : ':attribute geçerli bir sonlanma tarihi olmalıdır.', - card_num : ':attribute geçerli bir kredi kartı numarası olmalıdır.', - currency : ':attribute geçerli bir para tipi olmalıdır.', - date : ':attribute tarih formatında olmalıdır.', - date_equals : ':attribute :date tarihli olmalıdır.', - email : ':attribute geçerli bir e-posta adresi olmalıdır.', - in : 'Seçilen :attribute :values olmalıdır.', - integer : ':attribute sayı olmalıdır.', - max : ':attribute :max:type dan büyük olamaz.', - min : ':attribute en az :min:type olmalıdır.', - not_in : 'Seçilen :attribute :values olamaz.', - not_regex : ':attribute gerekli formattan farklı olmalıdır.', - numeric : ':attribute sayı olmalıdır.', - phone : ':attribute geçerli bir telefon numarası olmalıdır.', - regex : ':attribute gerekli formatla uyumlu olmalıdır.', - required : ':attribute alanı doldurulmalıdır.', - size : ':attribute :size:type tipinde olmalıdır.', - string : ':attribute karakter dizisi olmalıdır.', - typeof : ':attribute :type tipinde olmalıdır.', - url : ':attribute url olmalıdır.', - }); - - \ No newline at end of file + accepted : ':attribute onaylanmalıdır.', + after : ':attribute :date tarihinden sonra olmalıdır.', + after_or_equal : ':attribute :date tarihinde veya sonra olmalıdır.', + alpha : ':attribute sadece harf içerebilir.', + alpha_space : ':attribute sadece harf, ve boşluk karakteri içerebilir.', + alpha_num : ':attribute sadece harf, ve rakam içerebilir.', + alpha_num_space : ':attribute sadece harf, rakam, ve boşluk karakteri içerebilir.', + alpha_num_dash : ':attribute sadece harf, rakam, ve tire karakteri içerebilir.', + alpha_num_dash_space : ':attribute sadece harf, rakam, tire, ve boşluk karakteri içerebilir.', + array : ':attribute dizi tipinde olmalıdır.', + before : ':attribute :date tarihinden önce olmalıdır.', + before_or_equal : ':attribute :date tarihinde veya daha önce olmalıdır.', + between : ':attribute :min - :max:type aralığında olmalıdır.', + boolean : ':attribute geçerli bir mantıksal değer olmalıdır.', + card_exp : ':attribute geçerli bir sonlanma tarihi olmalıdır.', + card_num : ':attribute geçerli bir kredi kartı numarası olmalıdır.', + currency : ':attribute geçerli bir para tipi olmalıdır.', + date : ':attribute tarih formatında olmalıdır.', + date_equals : ':attribute :date tarihli olmalıdır.', + email : ':attribute geçerli bir e-posta adresi olmalıdır.', + in : 'Seçilen :attribute :values olmalıdır.', + integer : ':attribute sayı olmalıdır.', + max : ':attribute :max:type dan büyük olamaz.', + min : ':attribute en az :min:type olmalıdır.', + not_in : 'Seçilen :attribute :values olamaz.', + not_regex : ':attribute gerekli formattan farklı olmalıdır.', + numeric : ':attribute sayı olmalıdır.', + phone : ':attribute geçerli bir telefon numarası olmalıdır.', + regex : ':attribute gerekli formatla uyumlu olmalıdır.', + required : ':attribute alanı doldurulmalıdır.', + size : ':attribute :size:type tipinde olmalıdır.', + string : ':attribute karakter dizisi olmalıdır.', + typeof : ':attribute :type tipinde olmalıdır.', + url : ':attribute url olmalıdır.', +});