feat: implement fiscal ID validation; replace fiscal code validator and update related components

This commit is contained in:
2026-05-19 20:34:20 +03:30
parent c135e1a85f
commit 2e1ad77946
26 changed files with 108 additions and 76 deletions
@@ -68,6 +68,11 @@ export class FormErrorsService {
const info = errors['invalidUsername'];
out.push({ key: 'invalidUsername', message: info.message ?? `${label} معتبر نیست.` });
}
if (errors['invalidFiscalId']) {
const info = errors['invalidFiscalId'];
out.push({ key: 'invalidFiscalId', message: info.message ?? `${label} معتبر نیست.` });
}
// fallback: include any other error keys
Object.keys(errors).forEach((k) => {
if (
@@ -80,6 +85,7 @@ export class FormErrorsService {
'max',
'email',
'pattern',
'invalidFiscalId',
].indexOf(k) === -1
) {
try {