monkey-front-core 0.0.611 → 0.0.612

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,13 @@
1
+ export declare class CNPJValidator {
2
+ private static readonly baseLength;
3
+ private static readonly baseRegex;
4
+ private static readonly fullRegex;
5
+ private static readonly maskCharactersRegex;
6
+ private static readonly invalidCharactersRegex;
7
+ private static readonly zeroCharCode;
8
+ private static readonly checkDigitWeights;
9
+ private static readonly zeroCnpj;
10
+ private static removeMask;
11
+ private static calculateCheckDigits;
12
+ static isValid(document: string): boolean;
13
+ }
@@ -0,0 +1,11 @@
1
+ export declare class CPFValidator {
2
+ private static readonly baseLength;
3
+ private static readonly baseRegex;
4
+ private static readonly maskCharactersRegex;
5
+ private static readonly invalidCharactersRegex;
6
+ private static readonly fullRegex;
7
+ private static readonly zeroCpf;
8
+ private static removeMask;
9
+ private static calculateCheckDigits;
10
+ static isValid(document: string): boolean;
11
+ }
@@ -2,5 +2,7 @@ import * as DecoratorsUtils from './decorators-utils';
2
2
  import * as Statics from './statics';
3
3
  import { MonkeyEcxLogs, MonkeyEcxUtils } from './utils';
4
4
  import * as ValidateUtils from './validate-utils';
5
+ export * from './CNPJ';
6
+ export * from './CPF';
5
7
  export * from './validators';
6
8
  export { DecoratorsUtils, MonkeyEcxLogs, MonkeyEcxUtils, Statics, ValidateUtils };
@@ -6,6 +6,7 @@ export declare class MonkeyEcxUtils {
6
6
  static formatDocumentWithMask(doc: string, withType?: boolean, country?: string): string;
7
7
  static cutFirstLastName(value: string, tp?: string): string;
8
8
  static isCPFCNPJValid(document: any): boolean;
9
+ static isCPFAlphanumericCNPJValid(document: any): boolean;
9
10
  static isValidRUT(document: string): boolean;
10
11
  static isValidRFC(document: string): boolean;
11
12
  static isValidUrl(txt: string): boolean;
@@ -9,6 +9,11 @@ export declare class DocumentValidator {
9
9
  invalidCpfCnpj: boolean;
10
10
  } | null;
11
11
  }
12
+ export declare class AlphanumericDocumentValidator {
13
+ static do(control: AbstractControl): {
14
+ invalidCpfCnpj: boolean;
15
+ } | null;
16
+ }
12
17
  export declare class DocumentRutValidator {
13
18
  static do(control: AbstractControl): {
14
19
  invalidRut: boolean;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-front-core",
3
- "version": "0.0.611",
3
+ "version": "0.0.612",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^13.1.1",
6
6
  "@angular/common": "^13.1.1",
@@ -19,14 +19,14 @@
19
19
  "@ngx-translate/http-loader": "^6.0.0",
20
20
  "launchdarkly-js-client-sdk": "^3.4.0",
21
21
  "moment": "^2.29.4",
22
- "monkey-style-guide": "^2.0.212",
22
+ "monkey-style-guide": "^2.0.213",
23
23
  "ngx-cookie-service": "^13.1.1",
24
24
  "ngx-mask": "^12.0.0",
25
25
  "query-string": "^7.1.0",
26
26
  "rxjs": "^6.6.3"
27
27
  },
28
28
  "dependencies": {
29
- "monkey-style-guide": "^2.0.212",
29
+ "monkey-style-guide": "^2.0.213",
30
30
  "tslib": "^2.3.0"
31
31
  },
32
32
  "module": "fesm2015/monkey-front-core.mjs",
Binary file