@sumaris-net/ngx-components 18.8.10 → 18.8.12

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.8.10",
4
+ "version": "18.8.12",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -24,7 +24,7 @@ export interface IEntity<T, ID = number, AO extends EntityAsObjectOptions = Enti
24
24
  asObject(opts?: AO): any;
25
25
  fromObject(source: any, opts?: FO): void;
26
26
  }
27
- export type EntityProps<T extends IEntity<T>> = {
27
+ export declare type OmitFunctions<T extends IEntity<T>> = {
28
28
  [K in keyof T as T[K] extends Function ? never : K]: T[K];
29
29
  };
30
30
  export declare abstract class Entity<T extends Entity<T, ID, AO, FO>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> implements IEntity<T, ID, AO, FO> {
@@ -56,8 +56,8 @@ export declare abstract class EntityUtils {
56
56
  static getPropertyArrayAsObject: typeof AppPropertiesUtils.arrayAsObject;
57
57
  static copyIdAndUpdateDate<T extends Entity<any, any, any>>(source: T, target: T): void;
58
58
  static fillLocalIds<T extends IEntity<T>>(items: T[], sequenceFactory: (firstEntity: T, incrementSize: number) => Promise<number>): Promise<void>;
59
- static cleanIdAndUpdateDate<T extends IEntity<T>>(source: T): void;
60
- static cleanIdsAndUpdateDates<T extends IEntity<T>>(items: T[]): void;
59
+ static cleanIdAndUpdateDate<T extends IEntity<T, ID>, ID = number>(source: T): void;
60
+ static cleanIdsAndUpdateDates<T extends IEntity<T, ID>, ID = number>(items: T[]): void;
61
61
  static sort<T extends IEntity<T> | any>(data: T[], sortBy?: keyof T | string, sortDirection?: SortDirection): T[];
62
62
  static sortComparator<T extends IEntity<T> | any>(sortBy?: keyof T | string, sortDirection?: SortDirection): (a: T, b: T) => number;
63
63
  static compare<T extends IEntity<any>>(value1: T, value2: T, direction: 1 | -1, checkAttribute?: keyof T): number;
@@ -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.10",
5
+ "version": "18.8.12",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{