@sumaris-net/ngx-components 18.22.1 → 18.22.2

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.22.1",
4
+ "version": "18.22.2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -7,15 +7,16 @@ export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T exte
7
7
  countNotEmptyCriteria(): number;
8
8
  and(...filters: F[]): F;
9
9
  or(...filters: F[]): F;
10
- not(): F;
10
+ not(filter: F): F;
11
11
  }
12
12
  export declare abstract class EntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends Entity<F, ID, AO, FO> implements IEntityFilter<F, T, ID, AO, FO> {
13
13
  protected __and?: F[];
14
14
  protected __or?: F[];
15
- protected __not?: boolean;
15
+ protected __not?: F;
16
16
  static andFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
17
17
  static orFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
18
18
  constructor(__typename?: string);
19
+ create(): F;
19
20
  /**
20
21
  * Clean a filter, before sending to the pod (e.g convert dates, remove internal properties, etc.)
21
22
  */
@@ -25,7 +26,7 @@ export declare abstract class EntityFilter<F extends IEntityFilter<F, T, ID, AO,
25
26
  asFilterFn(): FilterFn<T>;
26
27
  and(...filters: F[]): F;
27
28
  or(...filters: F[]): F;
28
- not(): F;
29
+ not(filter: F): F;
29
30
  asObject(opts?: AO): any;
30
31
  fromObject(source: any, opts?: FO): void;
31
32
  protected buildFilter(): FilterFn<T>[];
@@ -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.22.1",
5
+ "version": "18.22.2",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{