@sumaris-net/ngx-components 18.22.0 → 18.22.1

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.0",
4
+ "version": "18.22.1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -5,31 +5,16 @@ export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T exte
5
5
  asFilterFn(): FilterFn<T>;
6
6
  isEmpty(): boolean;
7
7
  countNotEmptyCriteria(): number;
8
- and(...filters: EntityFilter<any, T>[]): AndFilter<T>;
9
- or(...filters: EntityFilter<any, T>[]): OrFilter<T>;
10
- not(): NotFilter<T>;
8
+ and(...filters: F[]): F;
9
+ or(...filters: F[]): F;
10
+ not(): 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
- /**
14
- * @deprecated Use `EntityFilterUtils.composeFns()`
15
- * Compose some filter functions: all should return true
16
- *
17
- * @param filterFns
18
- */
19
- static composeFilters<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
20
- /**
21
- * Compose some filter functions: all should return true
22
- *
23
- * @param filterFns
24
- */
25
- static composeFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
26
- /**
27
- * @deprecated Use `EntityFilter.and()`
28
- */
29
- static compose<F extends EntityFilter<F, T>, T extends IEntity<T, any>>(filters: F[]): FilterFn<T>;
30
- static or<T extends IEntity<T, any>>(...filters: EntityFilter<any, T>[]): OrFilter<T>;
31
- static and<T extends IEntity<T, any>>(...filters: EntityFilter<any, T>[]): AndFilter<T>;
32
- static not<T extends IEntity<T, any>>(filter: EntityFilter<any, T>): NotFilter<T>;
13
+ protected __and?: F[];
14
+ protected __or?: F[];
15
+ protected __not?: boolean;
16
+ static andFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
17
+ static orFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
33
18
  constructor(__typename?: string);
34
19
  /**
35
20
  * Clean a filter, before sending to the pod (e.g convert dates, remove internal properties, etc.)
@@ -38,9 +23,11 @@ export declare abstract class EntityFilter<F extends IEntityFilter<F, T, ID, AO,
38
23
  isEmpty(): boolean;
39
24
  countNotEmptyCriteria(): number;
40
25
  asFilterFn(): FilterFn<T>;
41
- and(...filters: EntityFilter<any, T>[]): AndFilter<T>;
42
- or(...filters: EntityFilter<any, T>[]): OrFilter<T>;
43
- not(): NotFilter<T>;
26
+ and(...filters: F[]): F;
27
+ or(...filters: F[]): F;
28
+ not(): F;
29
+ asObject(opts?: AO): any;
30
+ fromObject(source: any, opts?: FO): void;
44
31
  protected buildFilter(): FilterFn<T>[];
45
32
  protected isCriteriaNotEmpty(key: string, value: any): boolean;
46
33
  }
@@ -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.0",
5
+ "version": "18.22.1",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{