monkey-front-core 0.0.510 → 0.0.512
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/esm2020/lib/core/utils/statics.mjs +3 -1
- package/esm2020/lib/core/utils/utils.mjs +36 -2
- package/esm2020/lib/core/utils/validate-utils.mjs +15 -1
- package/esm2020/lib/core/utils/validators.mjs +15 -1
- package/fesm2015/monkey-front-core.mjs +66 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +66 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/utils/statics.d.ts +3 -1
- package/lib/core/utils/utils.d.ts +2 -1
- package/lib/core/utils/validate-utils.d.ts +5 -0
- package/lib/core/utils/validators.d.ts +1 -0
- package/monkey-front-core-0.0.512.tgz +0 -0
- package/package.json +3 -3
- package/monkey-front-core-0.0.510.tgz +0 -0
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export declare class MonkeyEcxUtils {
|
|
2
2
|
static persistNullEmptyUndefined(tp: any): boolean;
|
|
3
|
-
static getDocumentType(doc: string, country?: string): "" | "CPF" | "CNPJ" | "RUT";
|
|
3
|
+
static getDocumentType(doc: string, country?: string): "" | "CPF" | "CNPJ" | "RUT" | "RFC";
|
|
4
4
|
static getDocumentMask(type: string, country?: string): any;
|
|
5
5
|
static getDocumentPlaceholder(type: string, country?: string): any;
|
|
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
9
|
static isValidRUT(document: string): boolean;
|
|
10
|
+
static isValidRFC(document: string): boolean;
|
|
10
11
|
static isValidUrl(txt: string): boolean;
|
|
11
12
|
static isValidZipCode(zipCode: string, country?: string): boolean;
|
|
12
13
|
static isValidEmail(email: string): boolean;
|
|
@@ -14,6 +14,11 @@ export declare class DocumentRutValidator {
|
|
|
14
14
|
invalidRut: boolean;
|
|
15
15
|
} | null;
|
|
16
16
|
}
|
|
17
|
+
export declare class DocumentRFCValidator {
|
|
18
|
+
static do(control: AbstractControl): {
|
|
19
|
+
invalidRut: boolean;
|
|
20
|
+
} | null;
|
|
21
|
+
}
|
|
17
22
|
export declare class ZipCodeValidator {
|
|
18
23
|
static do(control: AbstractControl): {
|
|
19
24
|
invalidZipCode: boolean;
|
|
@@ -28,6 +28,7 @@ export declare class Validators {
|
|
|
28
28
|
static zipCodeByCountry(country: string): (control: AbstractControl) => ValidationErrors | null;
|
|
29
29
|
static documentBR(control: AbstractControl): ValidationErrors | null;
|
|
30
30
|
static documentCL(control: AbstractControl): ValidationErrors | null;
|
|
31
|
+
static documentMX(control: AbstractControl): ValidationErrors | null;
|
|
31
32
|
static date(control: AbstractControl): ValidationErrors | null;
|
|
32
33
|
static greaterThanZero(control: AbstractControl): ValidationErrors | null;
|
|
33
34
|
static required(control: AbstractControl): ValidationErrors | null;
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monkey-front-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.512",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^13.1.1",
|
|
6
6
|
"@angular/common": "^13.1.1",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"@ngx-translate/http-loader": "^6.0.0",
|
|
19
19
|
"launchdarkly-js-client-sdk": "3.0.0",
|
|
20
20
|
"moment": "^2.29.4",
|
|
21
|
-
"monkey-style-guide": "^2.0.
|
|
21
|
+
"monkey-style-guide": "^2.0.198",
|
|
22
22
|
"ngx-cookie-service": "^13.1.1",
|
|
23
23
|
"ngx-mask": "^12.0.0",
|
|
24
24
|
"query-string": "^7.1.0",
|
|
25
25
|
"rxjs": "^6.6.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"monkey-style-guide": "^2.0.
|
|
28
|
+
"monkey-style-guide": "^2.0.198",
|
|
29
29
|
"tslib": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"module": "fesm2015/monkey-front-core.mjs",
|
|
Binary file
|