monkey-front-core 0.0.416 → 0.0.418
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-store.mjs +1 -1
- package/esm2020/lib/core/services/store/monkeyecx-store.service.mjs +9 -9
- package/esm2020/lib/core/utils/utils.mjs +5 -1
- package/esm2020/lib/core/utils/validators.mjs +2 -2
- package/fesm2015/monkey-front-core.mjs +267 -264
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +264 -261
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-store.d.ts +2 -2
- package/lib/core/services/store/monkeyecx-store.service.d.ts +3 -4
- package/lib/core/utils/utils.d.ts +1 -0
- package/lib/core/utils/validators.d.ts +1 -0
- package/monkey-front-core-0.0.418.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.416.tgz +0 -0
|
@@ -13,8 +13,8 @@ export interface MonkeyEcxCollectionStore extends MonkeyEcxConfigStore {
|
|
|
13
13
|
clear: Action;
|
|
14
14
|
};
|
|
15
15
|
selectors: {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
linksHasDifference?: Function;
|
|
17
|
+
selectLinks: Function;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
export interface MonkeyEcxEntityStore extends MonkeyEcxConfigStore {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Store } from '@ngrx/store';
|
|
2
|
-
import { MonkeyEcxConfigStore, MonkeyEcxControlStore,
|
|
3
|
-
import { MonkeyEcxPage, MonkeyEcxPagination } from '../../interfaces';
|
|
2
|
+
import { MonkeyEcxPage, MonkeyEcxLinks, MonkeyEcxConfigStore, MonkeyEcxControlStore, MonkeyEcxPagination } from '../../interfaces';
|
|
4
3
|
import { MonkeyEcxCommonsService } from '../commons';
|
|
5
4
|
import { MonkeyEcxService } from '../monkeyecx-service.service';
|
|
6
5
|
import { MonkeyEcxTokenStorageService } from '../storage';
|
|
@@ -21,7 +20,7 @@ export declare abstract class MonkeyEcxCommonsStoreService<T, K extends MonkeyEc
|
|
|
21
20
|
private selector;
|
|
22
21
|
constructor(monkeyecxService: MonkeyEcxService, tokenStorage: MonkeyEcxTokenStorageService, store: Store, config: K);
|
|
23
22
|
private handleResponseData;
|
|
24
|
-
protected
|
|
23
|
+
protected linksHasDifference(url: string, identifier: string): Promise<{
|
|
25
24
|
hasDifference: any;
|
|
26
25
|
}>;
|
|
27
26
|
protected updateControl(data: MonkeyEcxControlStore): void;
|
|
@@ -29,7 +28,7 @@ export declare abstract class MonkeyEcxCommonsStoreService<T, K extends MonkeyEc
|
|
|
29
28
|
protected update?(args: T | T[], identifier: string): void;
|
|
30
29
|
protected updatePage?(args: MonkeyEcxPage, identifier: string): void;
|
|
31
30
|
protected updateLinks?(args: MonkeyEcxLinks, identifier: string): void;
|
|
32
|
-
protected loadData(url: string, identifier: string,
|
|
31
|
+
protected loadData(url: string, identifier: string, updateLinks?: boolean): Promise<void>;
|
|
33
32
|
protected loadPageData(pagination: MonkeyEcxPagination, identifier: string): Promise<void>;
|
|
34
33
|
/**
|
|
35
34
|
* @description Neste método precisamos incluir a lógica para conferir se precisa limpar a
|
|
@@ -9,6 +9,7 @@ export declare class MonkeyEcxUtils {
|
|
|
9
9
|
static isValidRUT(document: string): boolean;
|
|
10
10
|
static isValidUrl(txt: string): boolean;
|
|
11
11
|
static isValidZipCode(zipCode: string, country?: string): boolean;
|
|
12
|
+
static isValidEmail(email: string): boolean;
|
|
12
13
|
static getRandomString(len: number, charSet?: string): string;
|
|
13
14
|
static handleOnlyNumbers(value: any): any;
|
|
14
15
|
static handleOnlyAlphaNumeric(value: any): any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
export declare const EMAIL_REGEXP: RegExp;
|
|
2
3
|
export declare function emailValidator(control: AbstractControl): ValidationErrors | null;
|
|
3
4
|
export declare function dateRangeValidator(control: AbstractControl): ValidationErrors | null;
|
|
4
5
|
export declare function registerValidator(control: AbstractControl, type: string): ValidationErrors | null;
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|