@sumaris-net/ngx-components 2.6.3 → 2.6.4-alpha2

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": "2.6.3",
4
+ "version": "2.6.4-alpha2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,12 +1,23 @@
1
1
  import { Entity, EntityAsObjectOptions, IEntity } from './entity.model';
2
2
  import { FilterFn } from '../../../shared/services/entity-service.class';
3
+ import { Person } from './person.model';
4
+ import { Department } from './department.model';
5
+ import { StoreObject } from '@apollo/client/core';
3
6
  export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends IEntity<F, ID, AO, FO> {
7
+ filterName: string;
8
+ filterType: string;
9
+ filterRecorderPerson: Person;
10
+ filterRecorderDepartment: Department;
4
11
  asPodObject(): any;
5
12
  asFilterFn(): FilterFn<T>;
6
13
  isEmpty(): boolean;
7
14
  countNotEmptyCriteria(): number;
8
15
  }
9
16
  export declare abstract class EntityFilter<F extends EntityFilter<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> {
17
+ filterName: string;
18
+ filterType: string;
19
+ filterRecorderPerson: Person;
20
+ filterRecorderDepartment: Department;
10
21
  /**
11
22
  * Compose some filter functions: all should return true
12
23
  * @param filterFns
@@ -23,6 +34,8 @@ export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO,
23
34
  * Clean a filter, before sending to the pod (e.g convert dates, remove internal properties, etc.)
24
35
  */
25
36
  asPodObject(): any;
37
+ asObject(opts?: AO): StoreObject;
38
+ fromObject(source: any, opts?: FO): void;
26
39
  isEmpty(): boolean;
27
40
  countNotEmptyCriteria(): number;
28
41
  asFilterFn(): 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": "2.6.3",
5
+ "version": "2.6.4-alpha2",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{