@senior-gestao-pessoas/payroll-core 9.1.0 → 9.2.0-f1576e5d-10f9-432e-b073-1aa58ae3cbc8

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.
Files changed (40) hide show
  1. package/bundles/senior-gestao-pessoas-payroll-core.umd.js +1050 -0
  2. package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
  3. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
  4. package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
  5. package/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.d.ts +77 -0
  6. package/components/historical-pix-account/historical-pix-account.component.d.ts +75 -0
  7. package/components/historical-pix-account/historical-pix-account.module.d.ts +2 -0
  8. package/components/historical-pix-account/historical-pix-account.service.d.ts +8 -0
  9. package/components/historical-pix-account/index.d.ts +3 -0
  10. package/components/utils/format-utils/format-utils.service.d.ts +33 -0
  11. package/components/utils/generic-validators.d.ts +24 -0
  12. package/esm2015/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +360 -0
  13. package/esm2015/components/historical-pix-account/historical-pix-account.component.js +327 -0
  14. package/esm2015/components/historical-pix-account/historical-pix-account.module.js +58 -0
  15. package/esm2015/components/historical-pix-account/historical-pix-account.service.js +20 -0
  16. package/esm2015/components/historical-pix-account/index.js +4 -0
  17. package/esm2015/components/utils/format-utils/format-utils.service.js +96 -0
  18. package/esm2015/components/utils/generic-validators.js +164 -0
  19. package/esm2015/public_api.js +2 -1
  20. package/esm2015/senior-gestao-pessoas-payroll-core.js +2 -1
  21. package/esm5/components/historical-pix-account/historical-pix-account-form/historical-pix-account-form.component.js +385 -0
  22. package/esm5/components/historical-pix-account/historical-pix-account.component.js +361 -0
  23. package/esm5/components/historical-pix-account/historical-pix-account.module.js +61 -0
  24. package/esm5/components/historical-pix-account/historical-pix-account.service.js +22 -0
  25. package/esm5/components/historical-pix-account/index.js +4 -0
  26. package/esm5/components/utils/format-utils/format-utils.service.js +100 -0
  27. package/esm5/components/utils/generic-validators.js +167 -0
  28. package/esm5/public_api.js +2 -1
  29. package/esm5/senior-gestao-pessoas-payroll-core.js +2 -1
  30. package/fesm2015/senior-gestao-pessoas-payroll-core.js +978 -1
  31. package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
  32. package/fesm5/senior-gestao-pessoas-payroll-core.js +1047 -1
  33. package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
  34. package/locale/en-US.json +33 -1
  35. package/locale/es-ES.json +33 -1
  36. package/locale/pt-BR.json +33 -1
  37. package/package.json +1 -1
  38. package/public_api.d.ts +1 -0
  39. package/senior-gestao-pessoas-payroll-core.d.ts +1 -0
  40. package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
@@ -0,0 +1,77 @@
1
+ import { OnInit, EventEmitter, ChangeDetectorRef, OnDestroy, AfterViewInit } from "@angular/core";
2
+ import { FormGroup, FormBuilder } from "@angular/forms";
3
+ import { NumberLocaleOptions, CustomFieldsComponent } from "@seniorsistemas/angular-components";
4
+ export declare class HistoricalPixAccountFormComponent implements OnInit, OnDestroy, AfterViewInit {
5
+ private formBuilder;
6
+ private cd;
7
+ customFields: CustomFieldsComponent;
8
+ currency: NumberLocaleOptions;
9
+ customEntity: string;
10
+ customService: string;
11
+ withSideBar: boolean;
12
+ isEditMode: boolean;
13
+ paramsForm: FormGroup;
14
+ defaultCpfNumber: string;
15
+ visibleChange: EventEmitter<boolean>;
16
+ pixAccountItemToList: EventEmitter<any>;
17
+ private _visible;
18
+ private ngUnsubscribe;
19
+ private employeeId;
20
+ private pixAccountList;
21
+ private initialValidatorOfPercentage;
22
+ labelBtnAdd: string;
23
+ pixAccountFormGroup: FormGroup;
24
+ maxValuePercentage: number;
25
+ visibleBtnSave: boolean;
26
+ isView: boolean;
27
+ pixKeyType: string;
28
+ isShowPixKeyFieldValidatorMessage: boolean;
29
+ constructor(formBuilder: FormBuilder, cd: ChangeDetectorRef);
30
+ ngOnInit(): void;
31
+ ngAfterViewInit(): void;
32
+ ngOnDestroy(): void;
33
+ private registerSubjects;
34
+ private createFormGroup;
35
+ onChangePixKeyType(item: any): void;
36
+ onClearPixKeyType(): void;
37
+ visible: boolean;
38
+ isEditAndViewValue: any;
39
+ private formatPixKeyTelehponeNumber;
40
+ convertDTOToShowWithCustomFields(data: object): object;
41
+ private configEnableFields;
42
+ close(): void;
43
+ addItem(): void;
44
+ resetForm(): void;
45
+ readonly percentagePlaceholder: string;
46
+ readonly optionsPercentage: object;
47
+ private getOptions;
48
+ /**
49
+ * O Input que recebe a lista do component pai e chama o método de validação passando a lista recebida.
50
+ * @param pixAccountList
51
+ */
52
+ getListPixAccount: object[];
53
+ /**
54
+ * Recebe a lista de registros já inseridos na tabela adiciona em uma variável os valores que serão usados para
55
+ * a validação dos campos "percentage" e "pixAccount".
56
+ * Quando tem index significa que está em uma edição, os valores na posição do registro da edição (index) não serão adicionados
57
+ * no array de comparação dos validators.
58
+ * @param pixAccountList
59
+ * @param index
60
+ */
61
+ private setValidatorsAccordingList;
62
+ /**
63
+ * Antes de setar o validator prepara as variáveis necessária para que seja feita a validação do campo.
64
+ */
65
+ setPixKeyValidators(isEditMode: boolean): void;
66
+ /**
67
+ * Este método calcula as parcentagens que já foram inseridas, e seta a diferença para chegar em
68
+ * 100% na validação do campo "percentage" como um novo maxValue;
69
+ * @param listValue
70
+ */
71
+ private validatePercentageValid;
72
+ isViewMode: boolean;
73
+ phoneMask(event: any): void;
74
+ setDefaultCpfPixKey(): void;
75
+ beforeSetPixKeyTypeValidator(): void;
76
+ private validateDuplicatePixKeyTypeBankAccount;
77
+ }
@@ -0,0 +1,75 @@
1
+ import { OnInit, ChangeDetectorRef, AfterViewInit, OnDestroy } from "@angular/core";
2
+ import { FormGroup, FormBuilder } from "@angular/forms";
3
+ import { TranslateService } from "@ngx-translate/core";
4
+ import { CustomFieldsComponent, NumberLocaleOptions } from "@seniorsistemas/angular-components";
5
+ export declare class HistoricalPixAccountComponent implements OnInit, OnDestroy, AfterViewInit {
6
+ private translateService;
7
+ private cd;
8
+ private formBuilder;
9
+ customFields: CustomFieldsComponent;
10
+ formGroup: FormGroup;
11
+ fieldFormGroup: string;
12
+ _dateChange: string;
13
+ _displayDateChange: string;
14
+ recordByRow: number;
15
+ showDateChange: boolean;
16
+ msgTooltipAdd: string;
17
+ isEditMode: boolean;
18
+ isViewMode: boolean;
19
+ currency: NumberLocaleOptions;
20
+ customEntity: string;
21
+ customService: string;
22
+ withSideBar: boolean;
23
+ paramsForm: FormGroup;
24
+ defaultCpfNumber: string;
25
+ private visibleChange;
26
+ private ngUnsubscribe;
27
+ private historicalPixAccountList;
28
+ private orderBy;
29
+ private _visible;
30
+ pixAccountItemInput: object;
31
+ totalRecords: number;
32
+ actionLabel: string;
33
+ loading: boolean;
34
+ parameters: any;
35
+ msgTotalLimitByPercentage: string;
36
+ listData: object[];
37
+ listDataNoPage: object[];
38
+ cols: {
39
+ label: any;
40
+ field: string;
41
+ }[];
42
+ actions: (rowData: any, key: any) => {
43
+ visible: boolean;
44
+ label: any;
45
+ command: () => void;
46
+ }[];
47
+ constructor(translateService: TranslateService, cd: ChangeDetectorRef, formBuilder: FormBuilder);
48
+ ngOnInit(): void;
49
+ private createFormGroup;
50
+ ngOnDestroy(): void;
51
+ ngAfterViewInit(): void;
52
+ onLazyLoad(event?: any): void;
53
+ /**
54
+ * Um Bug de CSS que acontece nas linhas da tabela, que resolve só atualizando qualquer parte do CSS da pagina.
55
+ */
56
+ private refreshCssInIE11;
57
+ add(): void;
58
+ private deleteAnnuityItem;
59
+ getHistoricalPixAccountList(): object[];
60
+ addItemInList($event: any): void;
61
+ private getNumberPageByIndex;
62
+ private verifyTotalPercentage;
63
+ readonly scopedActions: any;
64
+ readonly recordsMessage: string;
65
+ readonly getTooltipAndDisableButtonAdd: string;
66
+ dateChange: string;
67
+ displayDateChange: string;
68
+ addListData: object[];
69
+ visible: boolean;
70
+ close(): void;
71
+ getFormattedTelephoneNumber(telephoneNumber: string): string;
72
+ getFormattedCpf(cpf: string): string;
73
+ getFormattedCnpj(cnpj: string): string;
74
+ getFormattedPercentage(value: string): string;
75
+ }
@@ -0,0 +1,2 @@
1
+ export declare class HistoricalPixAccountModule {
2
+ }
@@ -0,0 +1,8 @@
1
+ import { Observable } from 'rxjs';
2
+ import { HttpClientService } from '../shared/http-client.service';
3
+ import { ServiceType } from '../../core/enums/serviceType';
4
+ export declare class HistoricalPixAccountService {
5
+ private http;
6
+ constructor(http: HttpClientService);
7
+ query(path: string, body: object, service?: ServiceType): Observable<any>;
8
+ }
@@ -0,0 +1,3 @@
1
+ export * from './historical-pix-account.component';
2
+ export * from './historical-pix-account.module';
3
+ export * from './historical-pix-account.service';
@@ -0,0 +1,33 @@
1
+ export declare class FormatUtilsService {
2
+ /**
3
+ * Retorna o CPF formatado
4
+ * @param cpf CPF
5
+ */
6
+ static getFormattedCpf(cpf: string): string;
7
+ /**
8
+ * Retorna o CNPJ formatado
9
+ * @param cnpj CNPJ
10
+ */
11
+ static getFormattedCnpj(cnpj: string): string;
12
+ /**
13
+ * Retorna a mascara do CPF/CNPJ
14
+ * @param key Valores possíveis são CPF ou CNPJ
15
+ */
16
+ static getCpfCnpjMask(key: string): "" | "999.999.999-99" | "99.999.999/9999-99";
17
+ /**
18
+ * Metódo para formatar o número de telefone.
19
+ * @param telephoneNumber String contendo o número de telefone.
20
+ * @returns String formatada com o número de telefone.
21
+ */
22
+ static getFormattedTelephoneNumber(telephoneNumber: string): string;
23
+ /**
24
+ * Metódo para formatar o número de telefone de um campo Input.
25
+ * @param event Evento do Input do campo de telefone.
26
+ */
27
+ static formatTelephoneInputEvent(event: any): void;
28
+ /**
29
+ * Metódo para formatar a porcentagem para 2 casas decimais.
30
+ * @param value Número a ser formatado.
31
+ */
32
+ static getFormattedPercentage(value: string): string;
33
+ }
@@ -0,0 +1,24 @@
1
+ import { Validators, AbstractControl } from "@angular/forms";
2
+ export declare class GenericValidator {
3
+ constructor();
4
+ /**
5
+ * Valida o CEI (Cadastro específico de INSS) digitado.
6
+ */
7
+ static isValidCei(control: AbstractControl): Validators;
8
+ /**
9
+ * Valida se o CPF é valido. Deve-se ser informado o cpf sem máscara.
10
+ */
11
+ static isValidCpf(control: AbstractControl): Validators;
12
+ /**
13
+ * Valida se o CNPJ é valido. Deve-se ser informado o cpf sem máscara.
14
+ */
15
+ static isValidCnpj(control: AbstractControl): Validators;
16
+ /**
17
+ * Válida o número de telefone da chave PIX.
18
+ */
19
+ static isValidPhoneNumber(control: AbstractControl): Validators;
20
+ /**
21
+ * Valida o email da chave PIX.
22
+ */
23
+ static isValidEmail(control: AbstractControl): Validators;
24
+ }