Skip to content

Commit

Permalink
Add more
Browse files Browse the repository at this point in the history
  • Loading branch information
martijn00 committed Jul 28, 2024
1 parent 0f446c6 commit 882bb93
Show file tree
Hide file tree
Showing 55 changed files with 670 additions and 52 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## 11.0.1

- Add profanity validator
- Add float validator
- Add hexadecimal validator

## 11.0.0

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ URL, min, max, minLength, maxLength, minWordsCount, maxWordsCount, IP, credit ca

- `FormBuilderValidators.between()` - requires the field's to be between two numbers.
- `FormBuilderValidators.evenNumber()` - requires the field's to be an even number.
- `FormBuilderValidators.float()` - requires the field's to be an float number.
- `FormBuilderValidators.hexadecimal()` - requires the field's to be an hexadecimal number.
- `FormBuilderValidators.integer()` - requires the field's value to be an integer.
- `FormBuilderValidators.max()` - requires the field's value to be less than or equal to the provided number.
- `FormBuilderValidators.min()` - requires the field's value to be greater than or equal to the provided number.
Expand Down
3 changes: 2 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ linter:
always_use_package_imports: false
always_specify_types: true
omit_local_variable_types: false
public_member_api_docs: true
public_member_api_docs: true
directives_ordering: true
4 changes: 3 additions & 1 deletion lib/l10n/intl_ar.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "يجب أن تكون القيمة لوحة ترخيص صالحة.",
"vinErrorText": "يجب أن تكون القيمة رقم VIN صالح.",
"languageCodeErrorText": "يجب أن تكون القيمة رمز لغة صالح.",
"profanityErrorText": "يجب ألا تحتوي القيمة على: {profanity}."
"profanityErrorText": "يجب ألا تحتوي القيمة على: {profanity}.",
"floatErrorText": "يجب أن تكون القيمة رقم عشري صالح.",
"hexadecimalErrorText": "يجب أن تكون القيمة رقم سداسي عشري صالح."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_bg.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Стойността трябва да бъде валиден регистрационен номер.",
"vinErrorText": "Стойността трябва да бъде валиден VIN.",
"languageCodeErrorText": "Стойността трябва да бъде валиден езиков код.",
"profanityErrorText": "Стойността не трябва да съдържа: {profanity}."
"profanityErrorText": "Стойността не трябва да съдържа: {profanity}.",
"floatErrorText": "Стойността трябва да бъде валидно число с плаваща запетая.",
"hexadecimalErrorText": "Стойността трябва да бъде валиден шестнадесетичен номер."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_bn.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "মানটি একটি বৈধ লাইসেন্স প্লেট হতে হবে।",
"vinErrorText": "মানটি একটি বৈধ VIN হতে হবে।",
"languageCodeErrorText": "মানটি একটি বৈধ ভাষা কোড হতে হবে।",
"profanityErrorText": "মানের মধ্যে এইগুলি থাকা যাবে না: {profanity}."
"profanityErrorText": "মানের মধ্যে এইগুলি থাকা যাবে না: {profanity}.",
"floatErrorText": "মান একটি বৈধ ভাসমান বিন্দু সংখ্যা হতে হবে।",
"hexadecimalErrorText": "মান একটি বৈধ হেক্সাডেসিমাল সংখ্যা হতে হবে।"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_bs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Vrijednost mora biti ispravna registarska tablica.",
"vinErrorText": "Vrijednost mora biti ispravan VIN.",
"languageCodeErrorText": "Vrijednost mora biti ispravan kod jezika.",
"profanityErrorText": "Vrijednost ne smije sadržavati: {profanity}."
"profanityErrorText": "Vrijednost ne smije sadržavati: {profanity}.",
"floatErrorText": "Vrijednost mora biti ispravan broj s pomičnim zarezom.",
"hexadecimalErrorText": "Vrijednost mora biti ispravan heksadecimalni broj."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ca.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "El valor ha de ser una matrícula vàlida.",
"vinErrorText": "El valor ha de ser un VIN vàlid.",
"languageCodeErrorText": "El valor ha de ser un codi de llengua vàlid.",
"profanityErrorText": "El valor no ha de contenir: {profanity}."
"profanityErrorText": "El valor no ha de contenir: {profanity}.",
"floatErrorText": "El valor ha de ser un nombre de coma flotant vàlid.",
"hexadecimalErrorText": "El valor ha de ser un nombre hexadecimal vàlid."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Hodnota musí být platná poznávací značka.",
"vinErrorText": "Hodnota musí být platný VIN.",
"languageCodeErrorText": "Hodnota musí být platný kód jazyka.",
"profanityErrorText": "Hodnota nesmí obsahovat: {profanity}."
"profanityErrorText": "Hodnota nesmí obsahovat: {profanity}.",
"floatErrorText": "Hodnota musí být platné desetinné číslo.",
"hexadecimalErrorText": "Hodnota musí být platné šestnáctkové číslo."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_da.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Værdien skal være en gyldig nummerplade.",
"vinErrorText": "Værdien skal være en gyldig VIN.",
"languageCodeErrorText": "Værdien skal være en gyldig sprogkode.",
"profanityErrorText": "Værdien må ikke indeholde: {profanity}."
"profanityErrorText": "Værdien må ikke indeholde: {profanity}.",
"floatErrorText": "Værdien skal være et gyldigt flydende punkt nummer.",
"hexadecimalErrorText": "Værdien skal være et gyldigt hexadecimalt nummer."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Der Wert muss ein gültiges Nummernschild sein.",
"vinErrorText": "Der Wert muss eine gültige Fahrzeug-Identifizierungsnummer (VIN) sein.",
"languageCodeErrorText": "Der Wert muss ein gültiger Sprachcode sein.",
"profanityErrorText": "Der Wert darf nicht enthalten: {profanity}."
"profanityErrorText": "Der Wert darf nicht enthalten: {profanity}.",
"floatErrorText": "Der Wert muss eine gültige Fließkommazahl sein.",
"hexadecimalErrorText": "Der Wert muss eine gültige hexadezimale Zahl sein."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_el.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Η τιμή πρέπει να είναι μια έγκυρη πινακίδα κυκλοφορίας.",
"vinErrorText": "Η τιμή πρέπει να είναι ένας έγκυρος αριθμός VIN.",
"languageCodeErrorText": "Η τιμή πρέπει να είναι ένας έγκυρος κωδικός γλώσσας.",
"profanityErrorText": "Η τιμή δεν πρέπει να περιέχει: {profanity}."
"profanityErrorText": "Η τιμή δεν πρέπει να περιέχει: {profanity}.",
"floatErrorText": "Η τιμή πρέπει να είναι έγκυρος δεκαδικός αριθμός κινητής υποδιαστολής.",
"hexadecimalErrorText": "Η τιμή πρέπει να είναι έγκυρος δεκαεξαδικός αριθμός."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,7 @@
"description": "The prohibited profane word or phrase"
}
}
}
},
"floatErrorText": "Value must be a valid floating point number.",
"hexadecimalErrorText": "Value must be a valid hexadecimal number."
}
6 changes: 4 additions & 2 deletions lib/l10n/intl_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "El valor debe ser una placa de matrícula válida.",
"vinErrorText": "El valor debe ser un VIN válido.",
"languageCodeErrorText": "El valor debe ser un código de idioma válido.",
"profanityErrorText": "El valor no debe contener: {profanity}."
}
"profanityErrorText": "El valor no debe contener: {profanity}.",
"floatErrorText": "El valor debe ser un número de punto flotante válido.",
"hexadecimalErrorText": "El valor debe ser un número hexadecimal válido."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_et.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Väärtus peab olema kehtiv numbrimärk.",
"vinErrorText": "Väärtus peab olema kehtiv VIN.",
"languageCodeErrorText": "Väärtus peab olema kehtiv keelekood.",
"profanityErrorText": "Väärtus ei tohi sisaldada: {profanity}."
"profanityErrorText": "Väärtus ei tohi sisaldada: {profanity}.",
"floatErrorText": "Väärtus peab olema kehtiv ujukomaarv.",
"hexadecimalErrorText": "Väärtus peab olema kehtiv kuueteistkümnendkohtade süsteemi arv."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_fa.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "مقدار باید یک شماره پلاک معتبر باشد.",
"vinErrorText": "مقدار باید یک شماره VIN معتبر باشد.",
"languageCodeErrorText": "مقدار باید یک کد زبان معتبر باشد.",
"profanityErrorText": "مقدار نباید حاوی این کلمات باشد: {profanity}."
"profanityErrorText": "مقدار نباید حاوی این کلمات باشد: {profanity}.",
"floatErrorText": "مقدار باید یک عدد اعشاری معتبر باشد.",
"hexadecimalErrorText": "مقدار باید یک عدد هگزادسیمال معتبر باشد."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_fi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Arvon on oltava kelvollinen rekisterinumero.",
"vinErrorText": "Arvon on oltava kelvollinen VIN.",
"languageCodeErrorText": "Arvon on oltava kelvollinen kielikoodi.",
"profanityErrorText": "Arvon ei pidä sisältää: {profanity}."
"profanityErrorText": "Arvon ei pidä sisältää: {profanity}.",
"floatErrorText": "Arvon on oltava kelvollinen liukuluku.",
"hexadecimalErrorText": "Arvon on oltava kelvollinen heksadesimaaliluku."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "La valeur doit être une plaque d'immatriculation valide.",
"vinErrorText": "La valeur doit être un numéro VIN valide.",
"languageCodeErrorText": "La valeur doit être un code de langue valide.",
"profanityErrorText": "La valeur ne doit pas contenir : {profanity}."
"profanityErrorText": "La valeur ne doit pas contenir : {profanity}.",
"floatErrorText": "La valeur doit être un nombre à virgule flottante valide.",
"hexadecimalErrorText": "La valeur doit être un nombre hexadécimal valide."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_he.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "הערך חייב להיות מספר רכב חוקי.",
"vinErrorText": "הערך חייב להיות מספר VIN חוקי.",
"languageCodeErrorText": "הערך חייב להיות קוד שפה חוקי.",
"profanityErrorText": "הערך לא יכול להכיל: {profanity}."
"profanityErrorText": "הערך לא יכול להכיל: {profanity}.",
"floatErrorText": "הערך חייב להיות מספר נקודה צפה חוקי.",
"hexadecimalErrorText": "הערך חייב להיות מספר הקסדצימלי חוקי."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_hi.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "मान मान्य लाइसेंस प्लेट होना चाहिए।",
"vinErrorText": "मान मान्य VIN होना चाहिए।",
"languageCodeErrorText": "मान मान्य भाषा कोड होना चाहिए।",
"profanityErrorText": "मान मान में शामिल नहीं होना चाहिए: {profanity}."
"profanityErrorText": "मान मान में शामिल नहीं होना चाहिए: {profanity}.",
"floatErrorText": "मान्य फ़्लोटिंग पॉइंट नंबर होना चाहिए।",
"hexadecimalErrorText": "मान्य हेक्साडेसिमल नंबर होना चाहिए।"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_hr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Vrijednost mora biti važeća registarska oznaka.",
"vinErrorText": "Vrijednost mora biti važeći VIN.",
"languageCodeErrorText": "Vrijednost mora biti važeći jezični kod.",
"profanityErrorText": "Vrijednost ne smije sadržavati: {profanity}."
"profanityErrorText": "Vrijednost ne smije sadržavati: {profanity}.",
"floatErrorText": "Vrijednost mora biti valjani broj s pomičnim zarezom.",
"hexadecimalErrorText": "Vrijednost mora biti valjani heksadecimalni broj."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_hu.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Az értéknek egy érvényes rendszámnak kell lennie.",
"vinErrorText": "Az értéknek egy érvényes járműazonosító számnak kell lennie.",
"languageCodeErrorText": "Az értéknek egy érvényes nyelvkódnak kell lennie.",
"profanityErrorText": "Az érték nem tartalmazhat: {profanity}."
"profanityErrorText": "Az érték nem tartalmazhat: {profanity}.",
"floatErrorText": "Az értéknek érvényes lebegőpontos számnak kell lennie.",
"hexadecimalErrorText": "Az értéknek érvényes hexadecimális számnak kell lennie."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_id.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Nilai harus berupa pelat nomor yang valid.",
"vinErrorText": "Nilai harus berupa VIN yang valid.",
"languageCodeErrorText": "Nilai harus berupa kode bahasa yang valid.",
"profanityErrorText": "Nilai tidak boleh mengandung: {profanity}."
"profanityErrorText": "Nilai tidak boleh mengandung: {profanity}.",
"floatErrorText": "Nilai harus berupa angka floating point yang valid.",
"hexadecimalErrorText": "Nilai harus berupa angka heksadesimal yang valid."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_it.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Il valore deve essere una targa valida.",
"vinErrorText": "Il valore deve essere un VIN valido.",
"languageCodeErrorText": "Il valore deve essere un codice lingua valido.",
"profanityErrorText": "Il valore non deve contenere: {profanity}."
"profanityErrorText": "Il valore non deve contenere: {profanity}.",
"floatErrorText": "Il valore deve essere un numero in virgola mobile valido.",
"hexadecimalErrorText": "Il valore deve essere un numero esadecimale valido."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ja.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "値は有効なナンバープレートでなければなりません。",
"vinErrorText": "値は有効なVINでなければなりません。",
"languageCodeErrorText": "値は有効な言語コードでなければなりません。",
"profanityErrorText": "値に含めてはいけません: {profanity}。"
"profanityErrorText": "値に含めてはいけません: {profanity}。",
"floatErrorText": "値は有効な浮動小数点数でなければなりません。",
"hexadecimalErrorText": "値は有効な16進数でなければなりません。"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_km.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "តម្លៃត្រូវតែជាបណ្ណកាតសម្លេង។",
"vinErrorText": "តម្លៃត្រូវតែជាលេខ VIN ដែលត្រឹមត្រូវ។",
"languageCodeErrorText": "តម្លៃត្រូវតែជាកូដភាសាដែលត្រឹមត្រូវ។",
"profanityErrorText": "តម្លៃមិនត្រូវមាន: {profanity}."
"profanityErrorText": "តម្លៃមិនត្រូវមាន: {profanity}.",
"floatErrorText": "តម្លៃត្រូវតែជាចំនួនទសភាគត្រឹមត្រូវ។",
"hexadecimalErrorText": "តម្លៃត្រូវតែជាលេខសិប្បកម្មត្រឹមត្រូវ។"
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ko.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "값은 유효한 번호판이어야 합니다.",
"vinErrorText": "값은 유효한 VIN이어야 합니다.",
"languageCodeErrorText": "값은 유효한 언어 코드이어야 합니다.",
"profanityErrorText": "값에는 다음 내용을 포함할 수 없습니다: {profanity}."
"profanityErrorText": "값에는 다음 내용을 포함할 수 없습니다: {profanity}.",
"floatErrorText": "값은 유효한 부동 소수점 수여야 합니다.",
"hexadecimalErrorText": "값은 유효한 16진수여야 합니다."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ku.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Nirxî divê yekem pelka prezantiyê ya derbasdar be.",
"vinErrorText": "Nirxî divê yekem hejmarê VIN derbasdar be.",
"languageCodeErrorText": "Nirxî divê yekem kodê zimanê derbasdar be.",
"profanityErrorText": "Naxa nabe ku nadirîn: {profanity}."
"profanityErrorText": "Naxa nabe ku nadirîn: {profanity}.",
"floatErrorText": "Gerrdê hewce ye ku zêdeya rast bibe.",
"hexadecimalErrorText": "Gerrdê hewce ye ku hexa de rast bibe."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_lo.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "ຄ່າຕ້ອງເປັນໝາຍເລກປ້າຍທີ່ຖືກຕ້ອງ.",
"vinErrorText": "ຄ່າຕ້ອງເປັນ VIN ທີ່ຖືກຕ້ອງ.",
"languageCodeErrorText": "ຄ່າຕ້ອງເປັນໄລຄໂລດພາສາທີ່ຖືກຕ້ອງ.",
"profanityErrorText": "ຄ່າຄວນບໍ່ປະກອບດ້ວຍ: {profanity}."
"profanityErrorText": "ຄ່າຄວນບໍ່ປະກອບດ້ວຍ: {profanity}.",
"floatErrorText": "ຄ່າຕ້ອງເປັນໂຕເລກ float ທີ່ຖືກຕ້ອງ.",
"hexadecimalErrorText": "ຄ່າຕ້ອງເປັນໂຕເລກເຮັກຊະເດສິມທີ່ຖືກຕ້ອງ."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_mn.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Утга нь хүчин төгөлдөр тээврийн хэрэгслийн дугаар байх ёстой.",
"vinErrorText": "Утга нь хүчин төгөлдөр VIN байх ёстой.",
"languageCodeErrorText": "Утга нь хүчин төгөлдөр хэлний код байх ёстой.",
"profanityErrorText": "Утга нь дараах үгийг агуулж болохгүй: {profanity}."
"profanityErrorText": "Утга нь дараах үгийг агуулж болохгүй: {profanity}.",
"floatErrorText": "Утга нь буцаж ирдэг зөв хөвөгч цэгийн тоо байх ёстой.",
"hexadecimalErrorText": "Утга нь буцаж ирдэг зөв арван зургаатын тоо байх ёстой."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ms.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "Nilai mesti nombor plat lesen yang sah.",
"vinErrorText": "Nilai mesti nombor VIN yang sah.",
"languageCodeErrorText": "Nilai mesti kod bahasa yang sah.",
"profanityErrorText": "Nilai tidak boleh mengandungi: {profanity}."
"profanityErrorText": "Nilai tidak boleh mengandungi: {profanity}.",
"floatErrorText": "Nilai mesti nombor terapung sah.",
"hexadecimalErrorText": "Nilai mesti nombor heksadesimal sah."
}
4 changes: 3 additions & 1 deletion lib/l10n/intl_ne.arb
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,7 @@
"licensePlateErrorText": "मान मान्य नम्बर प्लेट हुनुपर्छ।",
"vinErrorText": "मान मान्य VIN हुनुपर्छ।",
"languageCodeErrorText": "मान मान्य भाषाको कोड हुनुपर्छ।",
"profanityErrorText": "मान {profanity} समावेश हुनु हुँदैन।"
"profanityErrorText": "मान {profanity} समावेश हुनु हुँदैन।",
"floatErrorText": "मान्यता प्राप्त फ्लोटिङ पोइन्ट नम्बर हुनुपर्छ।",
"hexadecimalErrorText": "मान्यता प्राप्त हेक्साडेसिमल नम्बर हुनुपर्छ।"
}
Loading

0 comments on commit 882bb93

Please sign in to comment.