@gipisistemas/ng-core 1.1.14 → 1.1.16

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.
@@ -0,0 +1,36 @@
1
+ export declare type ACBR_UFs = ('AC' | 'AL' | 'AP' | 'AM' | 'BA' | 'CE' | 'DF' | 'ES' | 'GO' | 'MA' | 'MT' | 'MS' | 'MG' | 'PA' | 'PB' | 'PR' | 'PE' | 'PI' | 'RJ' | 'RN' | 'RS' | 'RO' | 'RR' | 'SC' | 'SP' | 'SE' | 'TO' | 'EX' | '');
2
+ export declare class ACBrValidadorIE {
3
+ private _fsIgnorarChar;
4
+ get IgnorarChar(): string;
5
+ set IgnorarChar(value: string);
6
+ private _fsDocumento;
7
+ get Documento(): string;
8
+ set Documento(value: string);
9
+ private fsDocto;
10
+ private _Complemento;
11
+ get Complemento(): ACBR_UFs;
12
+ set Complemento(value: ACBR_UFs);
13
+ private fsMsgErro;
14
+ private fsDigitoCalculado;
15
+ private fsPermiteVazio;
16
+ private fsExibeDigitoCorreto;
17
+ private fsAjustarTamanho;
18
+ constructor();
19
+ isValid(IE: string, UF: ACBR_UFs, ignorarChar?: string): {
20
+ ie: string;
21
+ isValid: boolean;
22
+ error: string;
23
+ };
24
+ private _validar;
25
+ formatar(): string;
26
+ private _ValidarIE;
27
+ private _ValidarUF;
28
+ private _StrIsNumber;
29
+ private _CharIsNum;
30
+ private _PadLeft;
31
+ private _LimpaDocto;
32
+ private _MascaraIE;
33
+ private _FormatarIE;
34
+ private _OnlyAlphaNum;
35
+ private _FormatarMascaraNumerica;
36
+ }
@@ -1,11 +1,13 @@
1
- import { STATES_DATA } from '@brazilian-utils/brazilian-utils/dist/common/states';
2
- export declare type AcronymState = keyof typeof STATES_DATA;
1
+ import { ACBR_UFs } from './acbr-validator-ie';
3
2
  /** @dynamic */
4
3
  export declare class DocumentUtil {
5
4
  static clearFormat(value: string): string;
6
5
  static isValidCpf(cpf: string): boolean;
7
6
  static isValidCnpj(cnpj: string): boolean;
8
- static isValidStateRegistration(acronymState: AcronymState, stateRegistration: string): boolean;
7
+ static isValidStateRegistration(acronymState: ACBR_UFs, stateRegistration: string): {
8
+ ie: string;
9
+ isValid: boolean;
10
+ error: string;
11
+ };
9
12
  static isValidCep(cep: string): boolean;
10
- private static calcDigit;
11
13
  }