@sumaris-net/ngx-components 18.18.35 → 18.18.37

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.35",
4
+ "version": "18.18.37",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,5 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { ProjectValueReducer } from '@rx-angular/state';
3
+ import { Input } from '@angular/core';
3
4
  export declare function enableRxStateProdMode(): void;
4
5
  export type ObservablePropertyDecorator<R> = <K extends PropertyKey>(target: any, propertyKey: K) => void;
5
6
  export type StatePropertyDecorator<R> = <K extends PropertyKey>(target: any, propertyKey: K) => void;
@@ -10,7 +11,11 @@ export declare function RxStateRegister(): PropertyDecorator;
10
11
  /**
11
12
  * Decorator for RxState properties with getter/setter access
12
13
  */
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>;
14
+ export declare function RxStateProperty<T extends Object, K extends keyof T, R extends T[K] = T[K]>(statePropertyName?: string | K, projectValueReducer?: ProjectValueReducer<T, K, R>): StatePropertyDecorator<R>;
15
+ /**
16
+ * Decorator for RxState input properties with getter/setter access
17
+ */
18
+ export declare function RxStateInput<T extends Object, K extends keyof T, R extends T[K] = T[K]>(arg?: string | Input, statePropertyName?: string | K, projectValueReducer?: ProjectValueReducer<T, K, R>): StatePropertyDecorator<R>;
14
19
  /**
15
20
  * Decorator for RxState observable selectors
16
21
  */
@@ -28,5 +33,6 @@ export declare function RxStateComputed<T extends Object = any, K extends keyof
28
33
  * Decorator for RxState observable as output
29
34
  */
30
35
  export declare function RxStateOutput<T extends Object, K extends keyof T, R extends T[K] = T[K]>(statePropertyName?: string | K | '$', opts?: {
36
+ alias?: string;
31
37
  stateName?: string;
32
38
  }): 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.35",
5
+ "version": "18.18.37",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{