@stiunb/unb-lib-components 18.0.22 → 18.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/unb-pessoa/unb-pessoa-email-form/unb-pessoa-email-form.mjs +34 -11
- package/esm2022/lib/unb-pessoa/unb-pessoa-email-form/unb-pessoa-email-list.mjs +65 -47
- package/esm2022/lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-form.mjs +102 -14
- package/esm2022/lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-list.mjs +71 -55
- package/esm2022/lib/unb-pessoa/unb-pessoa-form/unb-pessoa-form.component.mjs +227 -42
- package/esm2022/lib/unb-pessoa/unb-pessoa-models/unb-pessoa-email.model.mjs +1 -1
- package/esm2022/lib/unb-pessoa/unb-pessoa-models/unb-pessoa-endereco.model.mjs +1 -1
- package/esm2022/lib/unb-pessoa/unb-pessoa-models/unb-pessoa.model.mjs +2 -1
- package/esm2022/lib/unb-pessoa/unb-pessoa-pesquisar/unb-pessoa-pesquisar.component.mjs +141 -8
- package/esm2022/lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-form.mjs +62 -8
- package/esm2022/lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-list.mjs +62 -32
- package/esm2022/lib/unb-pessoa/unb-pessoa.module.mjs +9 -1
- package/esm2022/lib/unb-pessoa/unb-pessoa.service.mjs +9 -9
- package/esm2022/lib/unb-pessoa/unb-tipo-pessoa.enum.mjs +1 -1
- package/esm2022/lib/unb-usuario/oidc-decoded-token.mjs +1 -1
- package/esm2022/lib/unb-usuario/oidc-user-data.mjs +1 -1
- package/esm2022/public-api.mjs +14 -13
- package/esm2022/stiunb-unb-lib-components.mjs +5 -0
- package/fesm2022/stiunb-unb-lib-components.mjs +2469 -0
- package/fesm2022/stiunb-unb-lib-components.mjs.map +1 -0
- package/index.d.ts +1 -1
- package/lib/unb-pessoa/unb-pessoa-email-form/unb-pessoa-email-form.d.ts +3 -3
- package/lib/unb-pessoa/unb-pessoa-email-form/unb-pessoa-email-list.d.ts +6 -5
- package/lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-form.d.ts +6 -3
- package/lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-list.d.ts +6 -5
- package/lib/unb-pessoa/unb-pessoa-form/unb-pessoa-form.component.d.ts +17 -5
- package/lib/unb-pessoa/unb-pessoa-models/unb-pessoa-email.model.d.ts +1 -0
- package/lib/unb-pessoa/unb-pessoa-models/unb-pessoa-endereco.model.d.ts +3 -2
- package/lib/unb-pessoa/unb-pessoa-models/unb-pessoa.model.d.ts +5 -4
- package/lib/unb-pessoa/unb-pessoa-pesquisar/unb-pessoa-pesquisar.component.d.ts +14 -1
- package/lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-form.d.ts +2 -2
- package/lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-list.d.ts +6 -5
- package/lib/unb-pessoa/unb-pessoa.module.d.ts +20 -18
- package/lib/unb-pessoa/unb-pessoa.service.d.ts +2 -1
- package/package.json +5 -5
- package/public-api.d.ts +10 -10
- package/esm2022/unb-lib-components.mjs +0 -5
- package/fesm2022/unb-lib-components.mjs +0 -1923
- package/fesm2022/unb-lib-components.mjs.map +0 -1
package/index.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export declare class UnbPessoaEmailFormComponent implements OnInit {
|
|
|
22
22
|
compararTipos(t1: any, t2: any): boolean;
|
|
23
23
|
onTipoSelecionado(codigoSelecionado: number): void;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* Valida o objeto de e-mail, replicando as regras do validador do backend.
|
|
26
|
+
* Retorna true se o e-mail for válido, false caso contrário.
|
|
27
|
+
*/
|
|
28
28
|
validar(emailToValidate: UnbPessoaEmail): boolean;
|
|
29
29
|
close(): void;
|
|
30
30
|
salvarclose(): void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { UnbPessoaEmail, UnbPessoaEmailTipo } from '../unb-pessoa-models/unb-pessoa-email.model';
|
|
6
6
|
import { UnBPessoaService } from '../unb-pessoa.service';
|
|
7
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class UnbPessoaEmailListComponent implements OnInit {
|
|
9
|
+
export declare class UnbPessoaEmailListComponent implements OnInit, OnChanges {
|
|
9
10
|
private snackBar;
|
|
10
11
|
private service;
|
|
11
12
|
dialog: MatDialog;
|
|
@@ -19,12 +20,12 @@ export declare class UnbPessoaEmailListComponent implements OnInit {
|
|
|
19
20
|
tipoEmail: Observable<UnbPessoaEmailTipo[]>;
|
|
20
21
|
constructor(snackBar: MatSnackBar, service: UnBPessoaService, dialog: MatDialog);
|
|
21
22
|
ngOnInit(): void;
|
|
22
|
-
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
excluir(emailParaExcluir: UnbPessoaEmail): void;
|
|
23
25
|
editar(email: UnbPessoaEmailTipo): void;
|
|
24
|
-
moverParaCima(index: number): void;
|
|
25
|
-
moverParaBaixo(index: number): void;
|
|
26
26
|
atualizarOrdem(): void;
|
|
27
27
|
openFormDialog(emailToEdit: any): void;
|
|
28
|
+
moverLinha(event: CdkDragDrop<any[]>): void;
|
|
28
29
|
private sortAndAssignOrder;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnbPessoaEmailListComponent, never>;
|
|
30
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaEmailListComponent, "lib-unb-pessoa-email-list", never, { "podeEditar": { "alias": "podeEditar"; "required": false; }; "emails": { "alias": "emails"; "required": false; }; "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; }, { "emailsEmitted": "emailsEmitted"; }, never, never, false, never>;
|
|
@@ -5,6 +5,7 @@ import { UnbPessoaEndereco, UnbPessoaEnderecoTipo } from '../unb-pessoa-models/u
|
|
|
5
5
|
import { UnBPessoaService } from '../unb-pessoa.service';
|
|
6
6
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
7
7
|
import { NgForm } from '@angular/forms';
|
|
8
|
+
import { UnbPessoaPais } from '../unb-pessoa-models/unb-pessoa-pais';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class UnbPessoaEnderecoFormComponent implements OnInit {
|
|
10
11
|
private snackBar;
|
|
@@ -16,6 +17,8 @@ export declare class UnbPessoaEnderecoFormComponent implements OnInit {
|
|
|
16
17
|
enderecosList: UnbPessoaEndereco[];
|
|
17
18
|
tipoEndereco: Observable<UnbPessoaEnderecoTipo[]>;
|
|
18
19
|
listaTipoEndereco: UnbPessoaEnderecoTipo[];
|
|
20
|
+
listaPaises: UnbPessoaPais[];
|
|
21
|
+
paises: Observable<UnbPessoaPais[]>;
|
|
19
22
|
constructor(snackBar: MatSnackBar, service: UnBPessoaService, dialogRef: MatDialogRef<UnbPessoaEnderecoFormComponent>, data: any);
|
|
20
23
|
ngOnInit(): void;
|
|
21
24
|
salvar(form: NgForm): void;
|
|
@@ -24,9 +27,9 @@ export declare class UnbPessoaEnderecoFormComponent implements OnInit {
|
|
|
24
27
|
pesquisarCep(): void;
|
|
25
28
|
getListaEstados(): any;
|
|
26
29
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
* Valida o objeto de endereço, replicando as regras do validador do backend.
|
|
31
|
+
* Retorna true se o endereço for válido, false caso contrário.
|
|
32
|
+
*/
|
|
30
33
|
validar(enderecoToValidate: UnbPessoaEndereco): boolean;
|
|
31
34
|
close(): void;
|
|
32
35
|
salvarclose(): void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { UnBPessoaService } from '../unb-pessoa.service';
|
|
5
5
|
import { UnbPessoaEndereco } from '../unb-pessoa-models/unb-pessoa-endereco.model';
|
|
6
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class UnbPessoaenderecoListComponent implements OnInit {
|
|
8
|
+
export declare class UnbPessoaenderecoListComponent implements OnInit, OnChanges {
|
|
8
9
|
private snackBar;
|
|
9
10
|
private service;
|
|
10
11
|
dialog: MatDialog;
|
|
@@ -17,12 +18,12 @@ export declare class UnbPessoaenderecoListComponent implements OnInit {
|
|
|
17
18
|
enderecosEmitted: EventEmitter<UnbPessoaEndereco[]>;
|
|
18
19
|
constructor(snackBar: MatSnackBar, service: UnBPessoaService, dialog: MatDialog);
|
|
19
20
|
ngOnInit(): void;
|
|
20
|
-
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
excluir(enderecoParaExcluir: UnbPessoaEndereco): void;
|
|
21
23
|
editar(endereco: UnbPessoaEndereco): void;
|
|
22
|
-
moverParaCima(index: number): void;
|
|
23
|
-
moverParaBaixo(index: number): void;
|
|
24
24
|
atualizarOrdem(): void;
|
|
25
25
|
openFormDialog(enderecoToEdit: any): void;
|
|
26
|
+
moverLinha(event: CdkDragDrop<any[]>): void;
|
|
26
27
|
private sortAndAssignOrder;
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnbPessoaenderecoListComponent, never>;
|
|
28
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaenderecoListComponent, "lib-unb-pessoa-endereco-list", never, { "podeEditar": { "alias": "podeEditar"; "required": false; }; "enderecos": { "alias": "enderecos"; "required": false; }; "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; }, { "enderecosEmitted": "enderecosEmitted"; }, never, never, false, never>;
|
|
@@ -10,10 +10,13 @@ import { UnbPessoaTelefone } from '../unb-pessoa-models/unb-pessoa-telefone.mode
|
|
|
10
10
|
import { UnbPessoaModel } from '../unb-pessoa-models/unb-pessoa.model';
|
|
11
11
|
import { UnBPessoaService } from '../unb-pessoa.service';
|
|
12
12
|
import { TipoPessoaEnum } from '../unb-tipo-pessoa.enum';
|
|
13
|
+
import { UnbMensagemService } from '../../unb-mensagem/unb-mensagem.service';
|
|
14
|
+
import { NgForm } from '@angular/forms';
|
|
13
15
|
import * as i0 from "@angular/core";
|
|
14
16
|
export declare class UnbPessoaFormComponent implements OnInit {
|
|
15
17
|
private service;
|
|
16
18
|
private snackBar;
|
|
19
|
+
private alertService;
|
|
17
20
|
isLoading: boolean;
|
|
18
21
|
buscaRealizada: boolean;
|
|
19
22
|
endereco: UnbPessoaEndereco;
|
|
@@ -23,6 +26,7 @@ export declare class UnbPessoaFormComponent implements OnInit {
|
|
|
23
26
|
dadosSalvos: {
|
|
24
27
|
[key: string]: any;
|
|
25
28
|
};
|
|
29
|
+
isReadonlyFromSiape: boolean;
|
|
26
30
|
apiPessoaConfig: {
|
|
27
31
|
url: string;
|
|
28
32
|
token: string;
|
|
@@ -31,18 +35,18 @@ export declare class UnbPessoaFormComponent implements OnInit {
|
|
|
31
35
|
pesquisarPorCPF: boolean;
|
|
32
36
|
pesquisarPorCNPJ: boolean;
|
|
33
37
|
pesquisarPorEstrangeiro: boolean;
|
|
34
|
-
|
|
38
|
+
campoPesquisaMaxWidth: string;
|
|
39
|
+
constructor(service: UnBPessoaService, snackBar: MatSnackBar, alertService: UnbMensagemService);
|
|
35
40
|
escolaridade: Observable<UnbPessoaEscolaridade[]>;
|
|
36
41
|
paises: Observable<UnbPessoaPais[]>;
|
|
37
42
|
estadosCivil: Observable<UnbPessoaEstadoCivil[]>;
|
|
38
43
|
ngOnInit(): void;
|
|
39
44
|
pessoaRecebida(pessoaRecebida: UnbPessoaModel): void;
|
|
40
|
-
salvar(): void;
|
|
41
|
-
validar(): boolean;
|
|
45
|
+
salvar(form: NgForm): void;
|
|
46
|
+
validar(form: NgForm): boolean;
|
|
42
47
|
telefonesEmitted(telefones: UnbPessoaTelefone[]): void;
|
|
43
48
|
enderecosEmitted(enderecos: UnbPessoaEndereco[]): void;
|
|
44
49
|
emailsEmitted(emails: UnbPessoaEmail[]): void;
|
|
45
|
-
normalizaEscolaridade(escolaridade: string): string;
|
|
46
50
|
private erro;
|
|
47
51
|
openSnackBar(message: string): void;
|
|
48
52
|
tipoPessoaEnum(): typeof TipoPessoaEnum;
|
|
@@ -51,6 +55,14 @@ export declare class UnbPessoaFormComponent implements OnInit {
|
|
|
51
55
|
identificador: string;
|
|
52
56
|
descricao: string;
|
|
53
57
|
}[];
|
|
58
|
+
/**
|
|
59
|
+
* Converte uma instância (ou objeto) de UnbPessoaModel para o payload esperado pelo backend.
|
|
60
|
+
*/
|
|
61
|
+
private convertPessoaToPayload;
|
|
62
|
+
/**
|
|
63
|
+
* Formata a data no padrão DD/MM/YYYY para o backend.
|
|
64
|
+
*/
|
|
65
|
+
private formatarDataParaBackend;
|
|
54
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnbPessoaFormComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaFormComponent, "lib-unb-pessoa-form", never, { "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; "defaultTipoPessoa": { "alias": "defaultTipoPessoa"; "required": false; }; "pesquisarPorCPF": { "alias": "pesquisarPorCPF"; "required": false; }; "pesquisarPorCNPJ": { "alias": "pesquisarPorCNPJ"; "required": false; }; "pesquisarPorEstrangeiro": { "alias": "pesquisarPorEstrangeiro"; "required": false; }; }, {}, never, never, false, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaFormComponent, "lib-unb-pessoa-form", never, { "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; "defaultTipoPessoa": { "alias": "defaultTipoPessoa"; "required": false; }; "pesquisarPorCPF": { "alias": "pesquisarPorCPF"; "required": false; }; "pesquisarPorCNPJ": { "alias": "pesquisarPorCNPJ"; "required": false; }; "pesquisarPorEstrangeiro": { "alias": "pesquisarPorEstrangeiro"; "required": false; }; "campoPesquisaMaxWidth": { "alias": "campoPesquisaMaxWidth"; "required": false; }; }, {}, never, never, false, never>;
|
|
56
68
|
}
|
|
@@ -12,8 +12,9 @@ export declare class UnbPessoaEndereco {
|
|
|
12
12
|
complemento?: string;
|
|
13
13
|
caixaPostal?: string;
|
|
14
14
|
correspondencia?: boolean;
|
|
15
|
-
ordemEndereco?: number;
|
|
16
|
-
|
|
15
|
+
ordemEndereco?: number | null;
|
|
16
|
+
ordem?: number;
|
|
17
|
+
paisEnderecoCodigo?: number | null;
|
|
17
18
|
municipioCodigo?: number;
|
|
18
19
|
}
|
|
19
20
|
export declare class UnbPessoaEnderecoTipo {
|
|
@@ -30,19 +30,19 @@ export declare class UnbPessoaModel {
|
|
|
30
30
|
numeroReservista: string;
|
|
31
31
|
serieReservista: string;
|
|
32
32
|
orgaoReservista: string;
|
|
33
|
-
dataNascimento:
|
|
33
|
+
dataNascimento: Date | null;
|
|
34
34
|
paisNascimento: string;
|
|
35
35
|
ufNascimento: string;
|
|
36
36
|
naturalidade: string;
|
|
37
|
-
codigoPaisNascimento: number;
|
|
37
|
+
codigoPaisNascimento: number | null;
|
|
38
38
|
codigoPaisPassaporte: number;
|
|
39
|
-
codigoEstadoCivil: number;
|
|
39
|
+
codigoEstadoCivil: number | null;
|
|
40
40
|
nacionalidade: string;
|
|
41
41
|
estadoCivil: string;
|
|
42
42
|
nomePai: string;
|
|
43
43
|
nomeMae: string;
|
|
44
44
|
tipoSanguineo: string;
|
|
45
|
-
escolaridade:
|
|
45
|
+
escolaridade: number | null;
|
|
46
46
|
numeroCarteiraTrabalho: string;
|
|
47
47
|
serieCarteiraTrabalho: string;
|
|
48
48
|
ufCarteiraTrabalho: string;
|
|
@@ -60,6 +60,7 @@ export declare class UnbPessoaModel {
|
|
|
60
60
|
codigoSexo: number;
|
|
61
61
|
passaporte: string;
|
|
62
62
|
paisOrigem: string;
|
|
63
|
+
dataChegadaBrasil: Date | null;
|
|
63
64
|
cnpj: string;
|
|
64
65
|
razaoSocial: string;
|
|
65
66
|
nomeFantasia: string;
|
|
@@ -3,6 +3,9 @@ import { MatSnackBar } from '@angular/material/snack-bar';
|
|
|
3
3
|
import { UnbPessoaModel } from '../unb-pessoa-models/unb-pessoa.model';
|
|
4
4
|
import { UnBPessoaService } from '../unb-pessoa.service';
|
|
5
5
|
import { TipoPessoaEnum } from '../unb-tipo-pessoa.enum';
|
|
6
|
+
import { UnbPessoaEnderecoTipo } from '../unb-pessoa-models/unb-pessoa-endereco.model';
|
|
7
|
+
import { UnbPessoaTelefoneTipo } from '../unb-pessoa-models/unb-pessoa-telefone.model';
|
|
8
|
+
import { UnbPessoaEmailTipo } from '../unb-pessoa-models/unb-pessoa-email.model';
|
|
6
9
|
import * as i0 from "@angular/core";
|
|
7
10
|
export declare class UnbPessoaPesquisarComponent implements OnInit {
|
|
8
11
|
private pessoaService;
|
|
@@ -16,6 +19,7 @@ export declare class UnbPessoaPesquisarComponent implements OnInit {
|
|
|
16
19
|
pesquisarPorCNPJ: boolean;
|
|
17
20
|
pesquisarPorEstrangeiro: boolean;
|
|
18
21
|
defaultTipoPessoa: TipoPessoaEnum;
|
|
22
|
+
campoPesquisaMaxWidth: string;
|
|
19
23
|
pessoaEmitted: EventEmitter<UnbPessoaModel>;
|
|
20
24
|
pessoa: UnbPessoaModel;
|
|
21
25
|
mostrarPesquisa: boolean;
|
|
@@ -26,14 +30,23 @@ export declare class UnbPessoaPesquisarComponent implements OnInit {
|
|
|
26
30
|
constructor(pessoaService: UnBPessoaService, snackBar: MatSnackBar);
|
|
27
31
|
pessoaEncontrado: Boolean | null;
|
|
28
32
|
mostrarTipoPessoa: boolean;
|
|
33
|
+
listaTipoEndereco: UnbPessoaEnderecoTipo[];
|
|
34
|
+
listaTipoTelefone: UnbPessoaTelefoneTipo[];
|
|
35
|
+
listaTipoEmail: UnbPessoaEmailTipo[];
|
|
29
36
|
ngOnInit(): void;
|
|
30
37
|
pesquisar(): void;
|
|
31
38
|
validar(): boolean;
|
|
32
39
|
hadleResult(resultado: UnbPessoaModel): void;
|
|
40
|
+
private parseCodigo;
|
|
41
|
+
/**
|
|
42
|
+
* Converte uma string no formato 'dd/MM/yyyy' para um objeto Date.
|
|
43
|
+
* Retorna null se o formato for inválido.
|
|
44
|
+
*/
|
|
45
|
+
private parseData;
|
|
33
46
|
handleError(erro: any): void;
|
|
34
47
|
handleErrorPrintConsole(erro: any): void;
|
|
35
48
|
openSnackBar(message: string): void;
|
|
36
49
|
tipoPessoaEnum(): typeof TipoPessoaEnum;
|
|
37
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnbPessoaPesquisarComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaPesquisarComponent, "lib-unb-pessoa-pesquisar", never, { "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; "pesquisarPorCPF": { "alias": "pesquisarPorCPF"; "required": false; }; "pesquisarPorCNPJ": { "alias": "pesquisarPorCNPJ"; "required": false; }; "pesquisarPorEstrangeiro": { "alias": "pesquisarPorEstrangeiro"; "required": false; }; "defaultTipoPessoa": { "alias": "defaultTipoPessoa"; "required": false; }; "pessoa": { "alias": "pessoa"; "required": false; }; "mostrarPesquisa": { "alias": "mostrarPesquisa"; "required": false; }; "limparAposPesquisa": { "alias": "limparAposPesquisa"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, { "pessoaEmitted": "pessoaEmitted"; }, never, never, false, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaPesquisarComponent, "lib-unb-pessoa-pesquisar", never, { "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; "pesquisarPorCPF": { "alias": "pesquisarPorCPF"; "required": false; }; "pesquisarPorCNPJ": { "alias": "pesquisarPorCNPJ"; "required": false; }; "pesquisarPorEstrangeiro": { "alias": "pesquisarPorEstrangeiro"; "required": false; }; "defaultTipoPessoa": { "alias": "defaultTipoPessoa"; "required": false; }; "campoPesquisaMaxWidth": { "alias": "campoPesquisaMaxWidth"; "required": false; }; "pessoa": { "alias": "pessoa"; "required": false; }; "mostrarPesquisa": { "alias": "mostrarPesquisa"; "required": false; }; "limparAposPesquisa": { "alias": "limparAposPesquisa"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, { "pessoaEmitted": "pessoaEmitted"; }, never, never, false, never>;
|
|
39
52
|
}
|
|
@@ -15,14 +15,14 @@ export declare class UnbPessoaTelefoneFormComponent implements OnInit {
|
|
|
15
15
|
telefone: UnbPessoaTelefone;
|
|
16
16
|
telefonesList: UnbPessoaTelefone[];
|
|
17
17
|
tipoTelefone: Observable<UnbPessoaTelefoneTipo[]>;
|
|
18
|
-
|
|
18
|
+
listaTipoTelefone: UnbPessoaTelefoneTipo[];
|
|
19
19
|
constructor(snackBar: MatSnackBar, service: UnBPessoaService, dialogRef: MatDialogRef<UnbPessoaTelefoneFormComponent>, data: any);
|
|
20
20
|
ngOnInit(): void;
|
|
21
21
|
salvar(form: NgForm): void;
|
|
22
22
|
compararTipos(t1: any, t2: any): boolean;
|
|
23
23
|
onTipoSelecionado(codigoSelecionado: number): void;
|
|
24
24
|
/**
|
|
25
|
-
* Valida o objeto de telefone.
|
|
25
|
+
* Valida o objeto de telefone com base nas regras do backend.
|
|
26
26
|
* Retorna true se o telefone for válido, false caso contrário.
|
|
27
27
|
*/
|
|
28
28
|
validar(telefoneToValidate: UnbPessoaTelefone): boolean;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { UnbPessoaTelefone, UnbPessoaTelefoneTipo } from '../unb-pessoa-models/unb-pessoa-telefone.model';
|
|
6
6
|
import { UnBPessoaService } from '../unb-pessoa.service';
|
|
7
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class UnbPessoaTelefoneListComponent implements OnInit {
|
|
9
|
+
export declare class UnbPessoaTelefoneListComponent implements OnInit, OnChanges {
|
|
9
10
|
private snackBar;
|
|
10
11
|
private service;
|
|
11
12
|
dialog: MatDialog;
|
|
@@ -19,12 +20,12 @@ export declare class UnbPessoaTelefoneListComponent implements OnInit {
|
|
|
19
20
|
tipoTelefone: Observable<UnbPessoaTelefoneTipo[]>;
|
|
20
21
|
constructor(snackBar: MatSnackBar, service: UnBPessoaService, dialog: MatDialog);
|
|
21
22
|
ngOnInit(): void;
|
|
22
|
-
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
excluir(telefoneParaExcluir: UnbPessoaTelefone): void;
|
|
23
25
|
editar(telefone: UnbPessoaTelefoneTipo): void;
|
|
24
|
-
moverParaCima(index: number): void;
|
|
25
|
-
moverParaBaixo(index: number): void;
|
|
26
26
|
atualizarOrdem(): void;
|
|
27
27
|
openFormDialog(toEdit: any): void;
|
|
28
|
+
moverTelefone(event: CdkDragDrop<any[]>): void;
|
|
28
29
|
private sortAndAssignOrder;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnbPessoaTelefoneListComponent, never>;
|
|
30
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<UnbPessoaTelefoneListComponent, "lib-unb-pessoa-telefone-list", never, { "podeEditar": { "alias": "podeEditar"; "required": false; }; "telefones": { "alias": "telefones"; "required": false; }; "apiPessoaConfig": { "alias": "apiPessoaConfig"; "required": false; }; }, { "telefonesEmitted": "telefonesEmitted"; }, never, never, false, never>;
|
|
@@ -11,25 +11,27 @@ import * as i9 from "@angular/common";
|
|
|
11
11
|
import * as i10 from "@angular/forms";
|
|
12
12
|
import * as i11 from "@angular/platform-browser";
|
|
13
13
|
import * as i12 from "@angular/material/icon";
|
|
14
|
-
import * as i13 from "@angular/
|
|
15
|
-
import * as i14 from "@angular/material/
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "@angular/material/
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
21
|
-
import * as i20 from "@angular/material/
|
|
22
|
-
import * as i21 from "@angular/material/
|
|
23
|
-
import * as i22 from "@angular/material/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "@angular/material/
|
|
28
|
-
import * as i27 from "@angular/material/
|
|
29
|
-
import * as i28 from "@angular/material/
|
|
30
|
-
import * as i29 from "@angular/material/
|
|
14
|
+
import * as i13 from "@angular/cdk/drag-drop";
|
|
15
|
+
import * as i14 from "@angular/material/list";
|
|
16
|
+
import * as i15 from "@angular/material/button";
|
|
17
|
+
import * as i16 from "../unb-usuario/unb-usuario.module";
|
|
18
|
+
import * as i17 from "../unb-mensagem/unb-mensagem.module";
|
|
19
|
+
import * as i18 from "@angular/material/card";
|
|
20
|
+
import * as i19 from "@angular/material/form-field";
|
|
21
|
+
import * as i20 from "@angular/material/input";
|
|
22
|
+
import * as i21 from "@angular/material/dialog";
|
|
23
|
+
import * as i22 from "@angular/material/select";
|
|
24
|
+
import * as i23 from "@angular/material/progress-spinner";
|
|
25
|
+
import * as i24 from "@angular/material/progress-bar";
|
|
26
|
+
import * as i25 from "@angular/material/core";
|
|
27
|
+
import * as i26 from "@angular/material/paginator";
|
|
28
|
+
import * as i27 from "@angular/material/expansion";
|
|
29
|
+
import * as i28 from "@angular/material/snack-bar";
|
|
30
|
+
import * as i29 from "@angular/material/datepicker";
|
|
31
|
+
import * as i30 from "@angular/material/radio";
|
|
32
|
+
import * as i31 from "@angular/material/divider";
|
|
31
33
|
export declare class UnbPessoaModule {
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<UnbPessoaModule, never>;
|
|
33
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UnbPessoaModule, [typeof i1.UnbPessoaFormComponent, typeof i2.UnbPessoaPesquisarComponent, typeof i3.UnbPessoaEnderecoFormComponent, typeof i4.UnbPessoaTelefoneListComponent, typeof i5.UnbPessoaenderecoListComponent, typeof i6.UnbPessoaTelefoneFormComponent, typeof i7.UnbPessoaEmailFormComponent, typeof i8.UnbPessoaEmailListComponent], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i11.BrowserModule, typeof i12.MatIconModule, typeof i13.
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UnbPessoaModule, [typeof i1.UnbPessoaFormComponent, typeof i2.UnbPessoaPesquisarComponent, typeof i3.UnbPessoaEnderecoFormComponent, typeof i4.UnbPessoaTelefoneListComponent, typeof i5.UnbPessoaenderecoListComponent, typeof i6.UnbPessoaTelefoneFormComponent, typeof i7.UnbPessoaEmailFormComponent, typeof i8.UnbPessoaEmailListComponent], [typeof i9.CommonModule, typeof i10.FormsModule, typeof i11.BrowserModule, typeof i12.MatIconModule, typeof i13.DragDropModule, typeof i14.MatListModule, typeof i15.MatButtonModule, typeof i16.UnbUsuarioModule, typeof i17.UnbMensagemModule, typeof i18.MatCardModule, typeof i19.MatFormFieldModule, typeof i12.MatIconModule, typeof i20.MatInputModule, typeof i21.MatDialogModule, typeof i22.MatSelectModule, typeof i23.MatProgressSpinnerModule, typeof i15.MatButtonModule, typeof i24.MatProgressBarModule, typeof i25.MatNativeDateModule, typeof i14.MatListModule, typeof i26.MatPaginatorModule, typeof i27.MatExpansionModule, typeof i28.MatSnackBarModule, typeof i29.MatDatepickerModule, typeof i30.MatRadioModule, typeof i18.MatCardModule, typeof i31.MatDividerModule], [typeof i1.UnbPessoaFormComponent, typeof i2.UnbPessoaPesquisarComponent, typeof i3.UnbPessoaEnderecoFormComponent, typeof i4.UnbPessoaTelefoneListComponent, typeof i5.UnbPessoaenderecoListComponent, typeof i6.UnbPessoaTelefoneFormComponent, typeof i7.UnbPessoaEmailFormComponent]>;
|
|
34
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<UnbPessoaModule>;
|
|
35
37
|
}
|
|
@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { UnbPessoaEndereco } from './unb-pessoa-models/unb-pessoa-endereco.model';
|
|
4
4
|
import { UnbPessoaEscolaridade } from './unb-pessoa-models/unb-pessoa-escolaridade.model';
|
|
5
5
|
import { UnbPessoaModel } from './unb-pessoa-models/unb-pessoa.model';
|
|
6
|
+
import { TipoPessoaEnum } from './unb-tipo-pessoa.enum';
|
|
6
7
|
import { UnbPessoaPais } from './unb-pessoa-models/unb-pessoa-pais';
|
|
7
8
|
import { UnbPessoaMunincipio } from './unb-pessoa-models/unb-pessoa-municipio';
|
|
8
9
|
import { UnbPessoaEstadoCivil } from './unb-pessoa-models/unb-pessoa-estado-civil.model';
|
|
@@ -29,7 +30,7 @@ export declare class UnBPessoaService {
|
|
|
29
30
|
findByPassaporte(passaporte: string | undefined): Observable<UnbPessoaModel>;
|
|
30
31
|
findPessoaFisicaById(id: number): Observable<UnbPessoaModel>;
|
|
31
32
|
pesquisarCep(cep: string): Observable<UnbPessoaEndereco>;
|
|
32
|
-
salvar(
|
|
33
|
+
salvar(payload: any, tipoPessoa: TipoPessoaEnum): Observable<UnbPessoaModel | null>;
|
|
33
34
|
private savePessoaFisica;
|
|
34
35
|
private savePessoaJuridica;
|
|
35
36
|
getEscolaridade(): Observable<UnbPessoaEscolaridade[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stiunb/unb-lib-components",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.23",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.1.2",
|
|
6
6
|
"@angular/core": "^18.1.2",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"tslib": "^2.3.0",
|
|
12
12
|
"unb-lib-components": "file:"
|
|
13
13
|
},
|
|
14
|
-
"module": "fesm2022/unb-lib-components.mjs",
|
|
14
|
+
"module": "fesm2022/stiunb-unb-lib-components.mjs",
|
|
15
15
|
"typings": "index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
"./package.json": {
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./index.d.ts",
|
|
22
|
-
"esm2022": "./esm2022/unb-lib-components.mjs",
|
|
23
|
-
"esm": "./esm2022/unb-lib-components.mjs",
|
|
24
|
-
"default": "./fesm2022/unb-lib-components.mjs"
|
|
22
|
+
"esm2022": "./esm2022/stiunb-unb-lib-components.mjs",
|
|
23
|
+
"esm": "./esm2022/stiunb-unb-lib-components.mjs",
|
|
24
|
+
"default": "./fesm2022/stiunb-unb-lib-components.mjs"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false
|
package/public-api.d.ts
CHANGED
|
@@ -5,18 +5,11 @@ export * from './lib/services/unb-auth.service';
|
|
|
5
5
|
export * from './lib/unb-nav-bar/unb-nav-bar.component';
|
|
6
6
|
export * from './lib/unb-nav-bar/unb-nav-bar.module';
|
|
7
7
|
export * from './lib/unb-usuario/unb-usuario.model';
|
|
8
|
-
export * from './lib/unb-pessoa/pessoa-tabelas-apoio';
|
|
9
8
|
export * from './lib/unb-pessoa/unb-pessoa.module';
|
|
10
9
|
export * from './lib/unb-pessoa/unb-pessoa.service';
|
|
11
10
|
export * from './lib/unb-pessoa/unb-tipo-pessoa.enum';
|
|
12
|
-
export * from './lib/unb-pessoa/
|
|
13
|
-
export * from './lib/unb-pessoa/unb-pessoa-
|
|
14
|
-
export * from './lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-form';
|
|
15
|
-
export * from './lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-list';
|
|
16
|
-
export * from './lib/unb-pessoa/unb-pessoa-form/unb-pessoa-form.component';
|
|
17
|
-
export * from './lib/unb-pessoa/unb-pessoa-pesquisar/unb-pessoa-pesquisar.component';
|
|
18
|
-
export * from './lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-form';
|
|
19
|
-
export * from './lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-list';
|
|
11
|
+
export * from './lib/unb-pessoa/pessoa-tabelas-apoio';
|
|
12
|
+
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa.model';
|
|
20
13
|
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-email.model';
|
|
21
14
|
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-endereco.model';
|
|
22
15
|
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-escolaridade.model';
|
|
@@ -25,4 +18,11 @@ export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-municipio';
|
|
|
25
18
|
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-pais';
|
|
26
19
|
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-raca-cor';
|
|
27
20
|
export * from './lib/unb-pessoa/unb-pessoa-models/unb-pessoa-telefone.model';
|
|
28
|
-
export * from './lib/unb-pessoa/unb-pessoa-
|
|
21
|
+
export * from './lib/unb-pessoa/unb-pessoa-form/unb-pessoa-form.component';
|
|
22
|
+
export * from './lib/unb-pessoa/unb-pessoa-pesquisar/unb-pessoa-pesquisar.component';
|
|
23
|
+
export * from './lib/unb-pessoa/unb-pessoa-email-form/unb-pessoa-email-form';
|
|
24
|
+
export * from './lib/unb-pessoa/unb-pessoa-email-form/unb-pessoa-email-list';
|
|
25
|
+
export * from './lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-form';
|
|
26
|
+
export * from './lib/unb-pessoa/unb-pessoa-endereco-form/unb-pessoa-endereco-list';
|
|
27
|
+
export * from './lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-form';
|
|
28
|
+
export * from './lib/unb-pessoa/unb-pessoa-telefone-form/unb-pessoa-telefone-list';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5iLWxpYi1jb21wb25lbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvdW5iLWxpYi1jb21wb25lbnRzL3NyYy91bmItbGliLWNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|