From ad475d7c2a49a588082facdc9d150ff48fc443b8 Mon Sep 17 00:00:00 2001 From: Ezequias Antunes Date: Tue, 3 Feb 2026 17:11:08 -0300 Subject: [PATCH 1/3] =?UTF-8?q?Corrige=20erro=20no=20console=20de=20quando?= =?UTF-8?q?=20existe=20o=20g=C3=AAnero=20do=20cidad=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/Citizen.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/models/Citizen.ts b/src/models/Citizen.ts index 40abc9f..24bfbcd 100644 --- a/src/models/Citizen.ts +++ b/src/models/Citizen.ts @@ -127,7 +127,7 @@ export class Citizen { { label: 'CNS', value: this.cns ? maskCns(this.cns) : 'Não informado', field: 'cns' }, { label: 'RG', value: this.identification_document || 'Não informado', field: 'identification_document' }, { label: 'Data de nascimento', value: DateTime.fromISO(this.birth_date).toFormat('dd/MM/yyyy'), field: 'birth_date' }, - { label: 'Sexo', value: this._gender.name, field: 'gender' }, + { label: 'Sexo', value: this._gender ? this._gender.name : 'Não informado', field: 'gender' }, { label: 'Raça/Cor', value: this.race?.name || 'Não informado', field: 'race' }, ]; @@ -146,6 +146,10 @@ export class Citizen { } get isPregnant() { + if(!this._gender) { + return false; + } + return this._gender.value === 'F' && this.pregnant; } From 6ccf95ee69391a6909043a5f6735721d1f7735de Mon Sep 17 00:00:00 2001 From: Igor Vinicius Date: Wed, 4 Feb 2026 14:39:03 -0300 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20Atualiza=20vers=C3=A3o=20do=20proj?= =?UTF-8?q?eto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b975e12..c4ac3a0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sysvale/citizen-components", - "version": "1.15.3", + "version": "1.15.4", "type": "module", "publishConfig": { "access": "public" From 101a1789cc9f7a6dd1fe11f69580d6e68216650e Mon Sep 17 00:00:00 2001 From: Igor Vinicius Date: Wed, 4 Feb 2026 14:41:38 -0300 Subject: [PATCH 3/3] =?UTF-8?q?refactor:=20Corrige=20campo=20nome=20da=20m?= =?UTF-8?q?=C3=A3e=20aparece=20como=20obrigatorio=20mas=20n=C3=A3o=20estav?= =?UTF-8?q?a=20sendo=20validado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InternalComponents/__snapshots__/CitizenForm.test.ts.snap | 2 +- src/constants/citizenFormFields.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/InternalComponents/__snapshots__/CitizenForm.test.ts.snap b/src/components/InternalComponents/__snapshots__/CitizenForm.test.ts.snap index 06f11b2..0a23609 100644 --- a/src/components/InternalComponents/__snapshots__/CitizenForm.test.ts.snap +++ b/src/components/InternalComponents/__snapshots__/CitizenForm.test.ts.snap @@ -35,7 +35,7 @@ exports[`CitizenForm > is rendered correctly 1`] = `
- +
diff --git a/src/constants/citizenFormFields.ts b/src/constants/citizenFormFields.ts index e191e75..479d9a2 100644 --- a/src/constants/citizenFormFields.ts +++ b/src/constants/citizenFormFields.ts @@ -102,7 +102,7 @@ export default (hiddenFields: string[]): CitizenFormField[] => { name: 'mother_name', label: 'Nome da mãe', required: true, - rules: 'min:5', + rules: 'required|min:5', colSpan: 12, placeholder: 'Nome da mãe', component: 'CdsTextInput',