@sumaris-net/ngx-components 18.18.4 → 18.18.6

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.4",
4
+ "version": "18.18.6",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -24,7 +24,7 @@ export interface IEntity<T, ID = number, AO extends EntityAsObjectOptions = Enti
24
24
  asObject(opts?: AO): any;
25
25
  fromObject(source: any, opts?: FO): void;
26
26
  }
27
- export declare type OmitFunctions<T extends IEntity<T, any>> = {
27
+ export declare type OmitFunctions<T> = {
28
28
  [K in keyof T as T[K] extends Function ? never : K]: T[K];
29
29
  };
30
30
  export declare abstract class Entity<T extends Entity<T, ID, AO, FO>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> implements IEntity<T, ID, AO, FO> {
@@ -2,3 +2,4 @@ import { Observable } from 'rxjs';
2
2
  export type Observed<T> = {
3
3
  [K in keyof T as `${string & K}$`]: Observable<T[K]>;
4
4
  };
5
+ export type Statefull<T> = Partial<T> & Partial<Observed<T>>;
@@ -32,5 +32,9 @@ export declare interface IconRef {
32
32
  }
33
33
  export declare type FilterFn<T> = Predicate<T>;
34
34
  export declare type FilterFnFactory<T, F> = (filter: F) => FilterFn<T>;
35
- export declare type Function<P, R> = (value: P) => R;
35
+ export declare type SimpleFunction<P, R> = (value: P) => R;
36
36
  export declare type BiFunction<P1, P2, R> = (v1: P1, v2: P2) => R;
37
+ /**
38
+ * @deprecated Use SimpleFunction instead
39
+ */
40
+ export declare type Function<P, R> = SimpleFunction<P, 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.4",
5
+ "version": "18.18.6",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{