monkey-front-core 0.0.459 → 0.0.462
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/store/index.mjs +3 -1
- package/esm2020/lib/core/services/store/monkeyecx-store.actions.mjs +24 -0
- package/esm2020/lib/core/services/store/monkeyecx-store.selector.mjs +74 -0
- package/fesm2015/monkey-front-core.mjs +102 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +97 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-pagination.d.ts +2 -1
- package/lib/core/interfaces/monkeyecx-store.d.ts +3 -0
- package/lib/core/services/store/index.d.ts +2 -0
- package/lib/core/services/store/monkeyecx-store.actions.d.ts +51 -0
- package/lib/core/services/store/monkeyecx-store.selector.d.ts +31 -0
- package/monkey-front-core-0.0.462.tgz +0 -0
- package/package.json +2 -1
- package/monkey-front-core-0.0.459.tgz +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Link } from '../model';
|
|
2
|
+
export declare type MonkeyEcxPaginationActions = 'first' | 'next' | 'prev' | 'last';
|
|
2
3
|
export interface MonkeyEcxPagination {
|
|
3
|
-
action:
|
|
4
|
+
action: MonkeyEcxPaginationActions;
|
|
4
5
|
}
|
|
5
6
|
interface MonkeyEcxTypedLink extends Link {
|
|
6
7
|
url: string;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { MonkeyEcxPage, MonkeyEcxPagination, MonkeyEcxStoreControl } from '../../interfaces';
|
|
2
|
+
export declare abstract class MonkeyEcxCommonsActions {
|
|
3
|
+
static getActions<T>(actionName: string): {
|
|
4
|
+
clear: import("@ngrx/store").ActionCreator<`[${string}] Clear All`, (props: {
|
|
5
|
+
identifier: string;
|
|
6
|
+
}) => {
|
|
7
|
+
identifier: string;
|
|
8
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Clear All`>>;
|
|
9
|
+
load: import("@ngrx/store").ActionCreator<`[${string}] Load`, (props: {
|
|
10
|
+
url: string;
|
|
11
|
+
identifier: string;
|
|
12
|
+
force?: boolean | undefined;
|
|
13
|
+
}) => {
|
|
14
|
+
url: string;
|
|
15
|
+
identifier: string;
|
|
16
|
+
force?: boolean | undefined;
|
|
17
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Load`>>;
|
|
18
|
+
loadPagination: import("@ngrx/store").ActionCreator<`[${string} Pagination] Load`, (props: {
|
|
19
|
+
pagination: MonkeyEcxPagination;
|
|
20
|
+
identifier: string;
|
|
21
|
+
}) => {
|
|
22
|
+
pagination: MonkeyEcxPagination;
|
|
23
|
+
identifier: string;
|
|
24
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string} Pagination] Load`>>;
|
|
25
|
+
removeOne: import("@ngrx/store").ActionCreator<`[${string}] Remove One`, (props: {
|
|
26
|
+
data: T;
|
|
27
|
+
}) => {
|
|
28
|
+
data: T;
|
|
29
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Remove One`>>;
|
|
30
|
+
updateAll: import("@ngrx/store").ActionCreator<`[${string}] Update All`, (props: {
|
|
31
|
+
data: T[];
|
|
32
|
+
}) => {
|
|
33
|
+
data: T[];
|
|
34
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Update All`>>;
|
|
35
|
+
updateControl: import("@ngrx/store").ActionCreator<`[${string}] Update Control`, (props: {
|
|
36
|
+
data: MonkeyEcxStoreControl;
|
|
37
|
+
}) => {
|
|
38
|
+
data: MonkeyEcxStoreControl;
|
|
39
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Update Control`>>;
|
|
40
|
+
updateLinks: import("@ngrx/store").ActionCreator<`[${string}] Update Links`, (props: {
|
|
41
|
+
data: any;
|
|
42
|
+
}) => {
|
|
43
|
+
data: any;
|
|
44
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Update Links`>>;
|
|
45
|
+
updatePage: import("@ngrx/store").ActionCreator<`[${string}] Update Page`, (props: {
|
|
46
|
+
data: MonkeyEcxPage;
|
|
47
|
+
}) => {
|
|
48
|
+
data: MonkeyEcxPage;
|
|
49
|
+
} & import("@ngrx/store/src/models").TypedAction<`[${string}] Update Page`>>;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
interface Identifiable {
|
|
2
|
+
identifier?: string;
|
|
3
|
+
}
|
|
4
|
+
interface IReducer {
|
|
5
|
+
featureKey: string;
|
|
6
|
+
selectAll: any;
|
|
7
|
+
}
|
|
8
|
+
export declare abstract class MonkeyEcxCommonsSelectors {
|
|
9
|
+
static getSelectors(reducer: IReducer): {
|
|
10
|
+
selectState: import("@ngrx/store").MemoizedSelector<object, unknown, import("@ngrx/store").DefaultProjectorFn<unknown>>;
|
|
11
|
+
selectAll: any;
|
|
12
|
+
selectControl: () => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
13
|
+
selectLinks: (props: {
|
|
14
|
+
identifier: string;
|
|
15
|
+
}) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
16
|
+
selectByIdentifier: <T extends Identifiable>(props: {
|
|
17
|
+
identifier: string;
|
|
18
|
+
}) => import("@ngrx/store").MemoizedSelector<unknown, T[], import("@ngrx/store").DefaultProjectorFn<T[]>>;
|
|
19
|
+
selectPagination: (props: {
|
|
20
|
+
identifier: string;
|
|
21
|
+
}) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
22
|
+
selectPage: (props: {
|
|
23
|
+
identifier: string;
|
|
24
|
+
}) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
25
|
+
paginationHasDifference: (props: {
|
|
26
|
+
identifier: string;
|
|
27
|
+
url: string;
|
|
28
|
+
}) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monkey-front-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.462",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/cdk": "^13.1.1",
|
|
6
6
|
"@angular/common": "^13.1.1",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"monkey-style-guide": "^2.0.190",
|
|
22
22
|
"ngx-cookie-service": "^13.1.1",
|
|
23
23
|
"ngx-mask": "^12.0.0",
|
|
24
|
+
"query-string": "^7.1.0",
|
|
24
25
|
"rxjs": "^6.6.3"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
Binary file
|