@sumaris-net/ngx-components 18.18.33 → 18.18.35
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/esm2022/src/app/core/services/model/entity.decorators.mjs +1 -1
- package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/entity.decorators.d.ts +2 -1
- package/src/app/shared/rx-state/rx-state.decorators.d.ts +6 -7
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -10,7 +10,8 @@ export declare class EntityClasses {
|
|
|
10
10
|
entityName?: string;
|
|
11
11
|
}): T;
|
|
12
12
|
}
|
|
13
|
+
export type ClassDecorator<T> = <T extends Constructor<any>>(target: T) => void;
|
|
13
14
|
export declare function EntityClass(opts: {
|
|
14
15
|
typename: string;
|
|
15
16
|
fromObjectReuseStrategy?: 'default' | 'clone';
|
|
16
|
-
}): <
|
|
17
|
+
}): ClassDecorator<any>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ProjectValueReducer } from '@rx-angular/state';
|
|
3
|
-
import { Constructor } from '../types';
|
|
4
3
|
export declare function enableRxStateProdMode(): void;
|
|
5
|
-
export type ObservablePropertyDecorator<
|
|
6
|
-
export type StatePropertyDecorator<
|
|
4
|
+
export type ObservablePropertyDecorator<R> = <K extends PropertyKey>(target: any, propertyKey: K) => void;
|
|
5
|
+
export type StatePropertyDecorator<R> = <K extends PropertyKey>(target: any, propertyKey: K) => void;
|
|
7
6
|
/**
|
|
8
7
|
* Decorator to register the RxState property in a component
|
|
9
8
|
*/
|
|
@@ -11,23 +10,23 @@ export declare function RxStateRegister(): PropertyDecorator;
|
|
|
11
10
|
/**
|
|
12
11
|
* Decorator for RxState properties with getter/setter access
|
|
13
12
|
*/
|
|
14
|
-
export declare function RxStateProperty<T extends
|
|
13
|
+
export declare function RxStateProperty<T extends Object, K extends keyof T, R extends T[K]>(statePropertyName?: string | K, projectValueReducer?: ProjectValueReducer<T, K, R>): StatePropertyDecorator<R>;
|
|
15
14
|
/**
|
|
16
15
|
* Decorator for RxState observable selectors
|
|
17
16
|
*/
|
|
18
|
-
export declare function RxStateSelect<T extends
|
|
17
|
+
export declare function RxStateSelect<T extends Object = any, K extends keyof T = any, R extends T[K] = T[K]>(statePropertyName?: string | K | '$', opts?: {
|
|
19
18
|
stateName?: string;
|
|
20
19
|
}): ObservablePropertyDecorator<Observable<R>>;
|
|
21
20
|
/**
|
|
22
21
|
* Utility decorator to create computed observables from state
|
|
23
22
|
*/
|
|
24
|
-
export declare function RxStateComputed<T extends
|
|
23
|
+
export declare function RxStateComputed<T extends Object = any, K extends keyof T = any, R extends T[K] = T[K]>(dependencies: K[], computeFn?: (slice: Pick<T, K>) => R, opts?: {
|
|
25
24
|
stateName?: string;
|
|
26
25
|
keyCompareMap?: any;
|
|
27
26
|
}): ObservablePropertyDecorator<Observable<R>>;
|
|
28
27
|
/**
|
|
29
28
|
* Decorator for RxState observable as output
|
|
30
29
|
*/
|
|
31
|
-
export declare function RxStateOutput<T extends
|
|
30
|
+
export declare function RxStateOutput<T extends Object, K extends keyof T, R extends T[K] = T[K]>(statePropertyName?: string | K | '$', opts?: {
|
|
32
31
|
stateName?: string;
|
|
33
32
|
}): ObservablePropertyDecorator<Observable<R>>;
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "18.18.
|
|
5
|
+
"version": "18.18.35",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|