monkey-front-core 0.0.415 → 0.0.417
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/validators.mjs +15 -1
- package/fesm2015/monkey-front-core.mjs +23 -9
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +23 -9
- 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/validators.d.ts +2 -0
- package/monkey-front-core-0.0.417.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.415.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
|
|
@@ -12,6 +12,7 @@ export declare function documentValidator(control: AbstractControl, country: str
|
|
|
12
12
|
export declare function dateValidator(control: AbstractControl): ValidationErrors | null;
|
|
13
13
|
export declare function valueGreaterThanZero(control: AbstractControl): ValidationErrors | null;
|
|
14
14
|
export declare function requiredWithTrimValidator(control: AbstractControl): ValidationErrors | null;
|
|
15
|
+
export declare function differentFromZero(control: AbstractControl): ValidationErrors | null;
|
|
15
16
|
export declare class Validators {
|
|
16
17
|
static email(control: AbstractControl): ValidationErrors | null;
|
|
17
18
|
static dateRange(control: AbstractControl): ValidationErrors | null;
|
|
@@ -29,4 +30,5 @@ export declare class Validators {
|
|
|
29
30
|
static date(control: AbstractControl): ValidationErrors | null;
|
|
30
31
|
static greaterThanZero(control: AbstractControl): ValidationErrors | null;
|
|
31
32
|
static required(control: AbstractControl): ValidationErrors | null;
|
|
33
|
+
static differentFromZero(control: AbstractControl): ValidationErrors | null;
|
|
32
34
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|