@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/esm2022/src/app/admin/users/person.filter.mjs +2 -2
- package/esm2022/src/app/core/services/model/filter.model.mjs +92 -42
- package/fesm2022/sumaris-net.ngx-components.mjs +91 -41
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/filter.model.d.ts +13 -26
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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:
|
|
9
|
-
or(...filters:
|
|
10
|
-
not():
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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:
|
|
42
|
-
or(...filters:
|
|
43
|
-
not():
|
|
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
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.
|
|
5
|
+
"version": "18.22.1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|