monkey-front-core 0.0.466 → 0.0.468
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/services/commons/monkeyecx-commons-resolve.service.mjs +13 -8
- package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +1 -1
- package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +10 -3
- package/fesm2015/monkey-front-core.mjs +19 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +19 -7
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +13 -6
- package/lib/core/services/store/monkeyecx-store.actions.d.ts +3 -3
- package/lib/core/services/store/monkeyecx-store.selector.d.ts +5 -2
- package/monkey-front-core-0.0.468.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.466.tgz +0 -0
|
@@ -5,6 +5,17 @@ import { MonkeyEcxCommonsService } from '.';
|
|
|
5
5
|
import { MonkeyEcxDiscoveryParamsService, MonkeyEcxPaginationService, MonkeyEcxTokenStorageService } from '../..';
|
|
6
6
|
import { MonkeyEcxCommonsConfig, MonkeyEcxInitialResolverConfig } from '../../interfaces';
|
|
7
7
|
import { MonkeyEcxService } from '../monkeyecx-service.service';
|
|
8
|
+
declare type Selectors = {
|
|
9
|
+
selectByIdentifier: Function;
|
|
10
|
+
selectOneByIdentifier?: never;
|
|
11
|
+
selectControl: Function;
|
|
12
|
+
selectLinks?: Function;
|
|
13
|
+
selectPage?: Function;
|
|
14
|
+
} | {
|
|
15
|
+
selectOneByIdentifier: Function;
|
|
16
|
+
selectByIdentifier?: never;
|
|
17
|
+
selectControl: Function;
|
|
18
|
+
};
|
|
8
19
|
export declare abstract class MonkeyEcxCommonsResolveService extends MonkeyEcxCommonsService {
|
|
9
20
|
private action;
|
|
10
21
|
private selector;
|
|
@@ -20,12 +31,7 @@ export declare abstract class MonkeyEcxCommonsResolveService extends MonkeyEcxCo
|
|
|
20
31
|
load: Action;
|
|
21
32
|
loadPagination?: Action;
|
|
22
33
|
};
|
|
23
|
-
selectors:
|
|
24
|
-
selectByIdentifier: Function;
|
|
25
|
-
selectControl: Function;
|
|
26
|
-
selectLinks?: Function;
|
|
27
|
-
selectPage?: Function;
|
|
28
|
-
};
|
|
34
|
+
selectors: Selectors;
|
|
29
35
|
});
|
|
30
36
|
protected getData(): Promise<void>;
|
|
31
37
|
protected loadPage(): Promise<void>;
|
|
@@ -51,3 +57,4 @@ export declare abstract class MonkeyEcxCommonsResolveService extends MonkeyEcxCo
|
|
|
51
57
|
*/
|
|
52
58
|
navigateToDetails<T>(detailsData: T, route?: string): void;
|
|
53
59
|
}
|
|
60
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MonkeyEcxPage, MonkeyEcxPagination, MonkeyEcxPaginationData, MonkeyEcxStoreControl } from '../../interfaces';
|
|
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: {
|
|
@@ -43,9 +43,9 @@ export declare abstract class MonkeyEcxCommonsActions {
|
|
|
43
43
|
data: MonkeyEcxStoreControl;
|
|
44
44
|
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Update Control`>>;
|
|
45
45
|
updateLinks: import("@ngrx/store").ActionCreator<`[${string}] Update Links`, (props: {
|
|
46
|
-
data:
|
|
46
|
+
data: MonkeyEcxPaginationData;
|
|
47
47
|
}) => {
|
|
48
|
-
data:
|
|
48
|
+
data: MonkeyEcxPaginationData;
|
|
49
49
|
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Update Links`>>;
|
|
50
50
|
updatePage: import("@ngrx/store").ActionCreator<`[${string}] Update Page`, (props: {
|
|
51
51
|
data: MonkeyEcxPage;
|
|
@@ -6,16 +6,19 @@ interface IReducer {
|
|
|
6
6
|
selectAll: any;
|
|
7
7
|
}
|
|
8
8
|
export declare abstract class MonkeyEcxCommonsSelectors {
|
|
9
|
-
static getSelectors(reducer: IReducer): {
|
|
9
|
+
static getSelectors<T extends Identifiable>(reducer: IReducer): {
|
|
10
10
|
selectState: import("@ngrx/store").MemoizedSelector<object, unknown, import("@ngrx/store").DefaultProjectorFn<unknown>>;
|
|
11
11
|
selectAll: any;
|
|
12
12
|
selectControl: () => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
13
13
|
selectLinks: (props: {
|
|
14
14
|
identifier: string;
|
|
15
15
|
}) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
16
|
-
selectByIdentifier:
|
|
16
|
+
selectByIdentifier: (props: {
|
|
17
17
|
identifier: string;
|
|
18
18
|
}) => import("@ngrx/store").MemoizedSelector<unknown, T[], import("@ngrx/store").DefaultProjectorFn<T[]>>;
|
|
19
|
+
selectOneByIdentifier: (props: {
|
|
20
|
+
identifier: string;
|
|
21
|
+
}) => import("@ngrx/store").MemoizedSelector<unknown, T | null, import("@ngrx/store").DefaultProjectorFn<T | null>>;
|
|
19
22
|
selectPage: (props: {
|
|
20
23
|
identifier: string;
|
|
21
24
|
}) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|