@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "18.18.33",
4
+ "version": "18.18.35",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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
- }): <T extends Constructor<any> = Constructor<any>>(constructor: T) => T;
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<T> = <K extends PropertyKey>(target: Constructor<never>, propertyKey: K) => void;
6
- export type StatePropertyDecorator<T> = <K extends PropertyKey>(target: Constructor<never>, propertyKey: K) => void;
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 object, K extends keyof T, R extends T[K]>(statePropertyName?: string | K, projectValueReducer?: ProjectValueReducer<T, K, R>): StatePropertyDecorator<R>;
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 object, K extends keyof T, R extends T[K] = T[K]>(statePropertyName?: string | K | '$', opts?: {
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 object, K extends keyof T, R extends T[K] = T[K]>(dependencies: K[], computeFn?: (slice: Pick<T, K>) => R, opts?: {
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 object, K extends keyof T, R extends T[K] = T[K]>(statePropertyName?: string | K | '$', opts?: {
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>>;
@@ -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.33",
5
+ "version": "18.18.35",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{