monkey-front-core 0.0.467 → 0.0.469
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-pagination.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-store.mjs +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons-resolve.service.mjs +14 -8
- package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +10 -3
- package/fesm2015/monkey-front-core.mjs +20 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +20 -7
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-pagination.d.ts +2 -1
- package/lib/core/services/commons/monkeyecx-commons-resolve.service.d.ts +13 -6
- package/lib/core/services/store/monkeyecx-store.selector.d.ts +5 -2
- package/monkey-front-core-0.0.469.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.467.tgz +0 -0
|
@@ -3,7 +3,7 @@ export declare type MonkeyEcxPaginationActions = 'first' | 'next' | 'prev' | 'la
|
|
|
3
3
|
export interface MonkeyEcxPagination {
|
|
4
4
|
action: MonkeyEcxPaginationActions;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface MonkeyEcxTypedLink extends Link {
|
|
7
7
|
url: string;
|
|
8
8
|
}
|
|
9
9
|
export interface MonkeyEcxPaginationData {
|
|
@@ -23,3 +23,4 @@ export interface MonkeyEcxPage {
|
|
|
23
23
|
totalPages: number;
|
|
24
24
|
number: number;
|
|
25
25
|
}
|
|
26
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -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
|