@sumaris-net/ngx-components 18.2.0 → 18.2.2

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.2.0",
4
+ "version": "18.2.2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -101,7 +101,7 @@ export declare abstract class BaseEntityService<T extends Entity<T, ID>, F exten
101
101
  delete(entity: T, opts?: EntitySaveOptions | any): Promise<any>;
102
102
  listenChanges(id: ID, opts?: EntityServiceListenChangesOptions<T>): Observable<T>;
103
103
  copyIdAndUpdateDate(source: T, target: T): void;
104
- fromObject(source: any, toEntity?: boolean | ((source: any) => T)): T;
104
+ fromObject(source: any, toEntity?: boolean | ((source: any, opts?: any) => T), opts?: any): T;
105
105
  asFilter(source: any): F;
106
106
  equals(d1: T, d2: T): boolean;
107
107
  isNew(data: T): boolean;
@@ -116,8 +116,7 @@ export declare abstract class BaseEntityService<T extends Entity<T, ID>, F exten
116
116
  isNewFn(data: T): boolean;
117
117
  protected ngOnStart(): Promise<void>;
118
118
  protected fillDefaultProperties(source: T): void;
119
- protected toEntity(source: any, toEntity?: boolean | ((source: any) => T)): T;
120
- protected fromObjects(sources: any[], toEntity?: boolean | ((source: any) => T)): T[];
119
+ protected fromObjects(sources: any[], toEntity?: boolean | ((source: any, opts?: any) => T), opts?: any): T[];
121
120
  protected asObject(source: T, opts?: EntityAsObjectOptions): any;
122
121
  protected getRefetchQueriesForMutation(opts?: EntitySaveOptions): ((result: FetchResult<{
123
122
  data: any;
@@ -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.2.0",
5
+ "version": "18.2.2",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{