@sumaris-net/ngx-components 18.8.14 → 18.8.15
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/doc/changelog.md +1 -1
- package/esm2022/src/app/core/services/model/entity.model.mjs +1 -1
- package/esm2022/src/app/core/services/model/filter.model.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/entity.model.d.ts +6 -6
- package/src/app/core/services/model/filter.model.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -55,15 +55,15 @@ export declare abstract class EntityUtils {
|
|
|
55
55
|
static getMapAsArray<T = any>(source?: ObjectMap<T>): ObjectMapEntry<T>[];
|
|
56
56
|
static getPropertyArrayAsObject: typeof AppPropertiesUtils.arrayAsObject;
|
|
57
57
|
static copyIdAndUpdateDate<T extends Entity<any, any, any>>(source: T, target: T): void;
|
|
58
|
-
static fillLocalIds<T extends IEntity<T>>(items: T[], sequenceFactory: (firstEntity: T, incrementSize: number) => Promise<number>): Promise<void>;
|
|
58
|
+
static fillLocalIds<T extends IEntity<T, any>>(items: T[], sequenceFactory: (firstEntity: T, incrementSize: number) => Promise<number>): Promise<void>;
|
|
59
59
|
static cleanIdAndUpdateDate<T extends IEntity<T, ID>, ID = any>(source: T): void;
|
|
60
60
|
static cleanIdsAndUpdateDates<T extends IEntity<T, ID>, ID = any>(items: T[]): void;
|
|
61
|
-
static sort<T extends IEntity<T> | any>(data: T[], sortBy?: keyof T | string, sortDirection?: SortDirection): T[];
|
|
62
|
-
static sortComparator<T extends IEntity<T> | any>(sortBy?: keyof T | string, sortDirection?: SortDirection): (a: T, b: T) => number;
|
|
63
|
-
static compare<T extends IEntity<any>>(value1: T, value2: T, direction: 1 | -1, checkAttribute?: keyof T): number;
|
|
61
|
+
static sort<T extends IEntity<T, any> | any>(data: T[], sortBy?: keyof T | string, sortDirection?: SortDirection): T[];
|
|
62
|
+
static sortComparator<T extends IEntity<T, any> | any>(sortBy?: keyof T | string, sortDirection?: SortDirection): (a: T, b: T) => number;
|
|
63
|
+
static compare<T extends IEntity<T, any>>(value1: T, value2: T, direction: 1 | -1, checkAttribute?: keyof T): number;
|
|
64
64
|
static compareValue<T>(value1: T, value2: T, direction: 1 | -1): number;
|
|
65
|
-
static filter<T extends IEntity<T> | any>(data: T[], searchAttribute: string, searchText: string): T[];
|
|
66
|
-
static searchTextFilter<T extends IEntity<T> | any>(searchAttribute: string | string[], searchText: string): FilterFn<T>;
|
|
65
|
+
static filter<T extends IEntity<T, any> | any>(data: T[], searchAttribute: string, searchText: string): T[];
|
|
66
|
+
static searchTextFilter<T extends IEntity<T, any> | any>(searchAttribute: string | string[], searchText: string): FilterFn<T>;
|
|
67
67
|
/**
|
|
68
68
|
* Transform a batch entity tree into a array list. This method keep links parent/children.
|
|
69
69
|
*
|
|
@@ -13,7 +13,7 @@ export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO,
|
|
|
13
13
|
* @param filterFns
|
|
14
14
|
*/
|
|
15
15
|
static composeFilters<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
|
|
16
|
-
static compose<F extends EntityFilter<F, T>, T extends IEntity<T>>(filters: F[]): FilterFn<T>;
|
|
16
|
+
static compose<F extends EntityFilter<F, T>, T extends IEntity<T, any>>(filters: F[]): FilterFn<T>;
|
|
17
17
|
/**
|
|
18
18
|
* Compose some filter functions: all should return true
|
|
19
19
|
*
|
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.8.
|
|
5
|
+
"version": "18.8.15",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|