monkey-front-core 0.0.459 → 0.0.461

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.
@@ -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: 'next';
4
+ action: MonkeyEcxPaginationActions;
4
5
  }
5
6
  interface MonkeyEcxTypedLink extends Link {
6
7
  url: string;
@@ -29,3 +29,6 @@ export interface MonkeyEcxControlStore {
29
29
  export interface MonkeyEcxLinks {
30
30
  [key: string]: Link;
31
31
  }
32
+ export interface MonkeyEcxStoreControl {
33
+ isLoading: boolean;
34
+ }
@@ -1 +1,3 @@
1
+ export * from './monkeyecx-store.actions';
2
+ export * from './monkeyecx-store.selector';
1
3
  export * from './monkeyecx-store.service';
@@ -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,28 @@
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
+ selectByIdentifier: <T extends Identifiable>(props: {
14
+ identifier: string;
15
+ }) => import("@ngrx/store").MemoizedSelector<unknown, T[], import("@ngrx/store").DefaultProjectorFn<T[]>>;
16
+ selectPagination: (props: {
17
+ identifier: string;
18
+ }) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
19
+ selectPage: (props: {
20
+ identifier: string;
21
+ }) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
22
+ paginationHasDifference: (props: {
23
+ identifier: string;
24
+ url: string;
25
+ }) => import("@ngrx/store").MemoizedSelector<object, any, import("@ngrx/store").DefaultProjectorFn<any>>;
26
+ };
27
+ }
28
+ export {};
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-front-core",
3
- "version": "0.0.459",
3
+ "version": "0.0.461",
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