monkey-front-core 0.0.610 → 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.
- package/esm2020/lib/core/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/services/gtm/gtm.service.mjs +46 -0
- package/esm2020/lib/core/services/gtm/index.mjs +2 -0
- package/esm2020/lib/core/services/index.mjs +2 -1
- package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +1 -1
- package/esm2020/lib/core/utils/CNPJ.mjs +51 -0
- package/esm2020/lib/core/utils/CPF.mjs +52 -0
- package/esm2020/lib/core/utils/index.mjs +3 -1
- package/esm2020/lib/core/utils/utils.mjs +16 -1
- package/esm2020/lib/core/utils/validate-utils.mjs +15 -1
- package/fesm2015/monkey-front-core.mjs +170 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +174 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-config.d.ts +16 -0
- package/lib/core/services/gtm/gtm.service.d.ts +10 -0
- package/lib/core/services/gtm/index.d.ts +1 -0
- package/lib/core/services/index.d.ts +1 -0
- package/lib/core/services/store/monkeyecx-store.actions.d.ts +2 -2
- package/lib/core/utils/CNPJ.d.ts +13 -0
- package/lib/core/utils/CPF.d.ts +11 -0
- package/lib/core/utils/index.d.ts +2 -0
- package/lib/core/utils/utils.d.ts +1 -0
- package/lib/core/utils/validate-utils.d.ts +5 -0
- package/monkey-front-core-0.0.612.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.610.tgz +0 -0
|
@@ -70,10 +70,20 @@ export interface MonkeyEcxConfigSupportInformation {
|
|
|
70
70
|
message?: string;
|
|
71
71
|
action?: string;
|
|
72
72
|
}
|
|
73
|
+
declare type MonkeyEcxConfigSupportWidgetType = 'whatsapp' | 'default';
|
|
74
|
+
export interface MonkeyEcxConfigSupportWidget {
|
|
75
|
+
type: MonkeyEcxConfigSupportWidgetType;
|
|
76
|
+
number: string;
|
|
77
|
+
label: string;
|
|
78
|
+
defaultMessage: string;
|
|
79
|
+
}
|
|
73
80
|
export interface MonkeyEcxConfigSupport {
|
|
81
|
+
disable: boolean;
|
|
82
|
+
disablePage?: boolean;
|
|
74
83
|
phones?: MonkeyEcxConfigSupportPhone[];
|
|
75
84
|
emails?: MonkeyEcxConfigSupportEmail[];
|
|
76
85
|
information?: MonkeyEcxConfigSupportInformation;
|
|
86
|
+
widget?: MonkeyEcxConfigSupportWidget;
|
|
77
87
|
}
|
|
78
88
|
export interface MonkeyEcxConfigi18n {
|
|
79
89
|
lang?: string;
|
|
@@ -128,5 +138,11 @@ export interface MonkeyEcxConfig {
|
|
|
128
138
|
externalSettings?: MonkeyEcxConfigExternalSettings;
|
|
129
139
|
gtm?: MonkeyEcxConfigGTM;
|
|
130
140
|
alert?: MonkeyEcxConfigAlert;
|
|
141
|
+
scripts?: {
|
|
142
|
+
[key: string]: {
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
script: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
131
147
|
}
|
|
132
148
|
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MonkeyEcxTokenStorageService } from '../storage';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class GTMService {
|
|
4
|
+
private tokenStorage;
|
|
5
|
+
constructor(tokenStorage: MonkeyEcxTokenStorageService);
|
|
6
|
+
private get dataLayer();
|
|
7
|
+
dispatch(event: string, data?: {}): Promise<void>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GTMService, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GTMService>;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gtm.service';
|
|
@@ -2,9 +2,9 @@ import { MonkeyEcxPage, MonkeyEcxPaginationData, MonkeyEcxStoreControl, MonkeyEc
|
|
|
2
2
|
export declare abstract class MonkeyEcxCommonsActions {
|
|
3
3
|
static getActions<T>(actionName: string): {
|
|
4
4
|
clear: import("@ngrx/store").ActionCreator<`[${string}] Clear All`, (props: {
|
|
5
|
-
identifier
|
|
5
|
+
identifier?: string | undefined;
|
|
6
6
|
}) => {
|
|
7
|
-
identifier
|
|
7
|
+
identifier?: string | undefined;
|
|
8
8
|
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Clear All`>>;
|
|
9
9
|
load: import("@ngrx/store").ActionCreator<`[${string}] Load`, (props: MonkeyEcxStoreLoadParams) => MonkeyEcxStoreLoadParams & import("@ngrx/store/src/models").TypedAction<`[${string}] Load`>>;
|
|
10
10
|
loadPagination: import("@ngrx/store").ActionCreator<`[${string} Pagination] Load`, (props: MonkeyEcxStoreLoadPageParams) => MonkeyEcxStoreLoadPageParams & import("@ngrx/store/src/models").TypedAction<`[${string} Pagination] Load`>>;
|
|
@@ -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
|
Binary file
|