@sumaris-net/ngx-components 18.18.10 → 18.18.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.18.10",
4
+ "version": "18.18.12",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -125,7 +125,9 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
125
125
  * @param event
126
126
  * @param opts
127
127
  */
128
- save(event?: Event, opts?: SO): Promise<boolean>;
128
+ save(event?: Event, opts?: SO & {
129
+ openTabIndex?: number;
130
+ }): Promise<boolean>;
129
131
  /**
130
132
  * Save data (if dirty and valid), and return it. Otherwise, return nil value.
131
133
  */
@@ -78,11 +78,15 @@ export declare interface EntitiesServiceLoadOptions<T = any> extends EntityServi
78
78
  export declare interface EntitiesServiceWatchOptions<T = any> extends EntityServiceWatchOptions<T> {
79
79
  withTotal?: boolean;
80
80
  }
81
- export declare interface IEntitiesService<T, F, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions<T>> {
81
+ export declare interface EntitiesServiceSaveOptions<T = any> extends EntityServiceSaveOptions<T> {
82
+ }
83
+ export declare interface EntitiesServiceDeleteOptions<T = any> extends EntityServiceDeleteOptions<T> {
84
+ }
85
+ export declare interface IEntitiesService<T, F, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions<T>, SO extends EntitiesServiceSaveOptions = EntitiesServiceSaveOptions<T>, DO extends EntitiesServiceDeleteOptions = EntitiesServiceDeleteOptions<T>> {
82
86
  readonly defaultFetchPolicy?: WatchQueryFetchPolicy;
83
87
  watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: Partial<F>, options?: O): Observable<LoadResult<T>>;
84
- saveAll(data: T[], opts?: any): Promise<T[]>;
85
- deleteAll(data: T[], opts?: any): Promise<any>;
88
+ saveAll(data: T[], opts?: SO): Promise<T[]>;
89
+ deleteAll(data: T[], opts?: DO): Promise<any>;
86
90
  asFilter(filter: Partial<F>): F;
87
91
  }
88
92
  export declare type LoadResultByPageFn<T> = (offset: number, size: number) => Promise<LoadResult<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": "18.18.10",
5
+ "version": "18.18.12",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{