@sumaris-net/ngx-components 2.4.0-rc2 → 2.4.0-rc4

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": "2.4.0-rc2",
4
+ "version": "2.4.0-rc4",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -102,7 +102,7 @@ export declare class EntitiesStorage extends StartableService<EntityStorageMap>
102
102
  protected storeLocally(opts?: {
103
103
  skipIfPristine: boolean;
104
104
  }): Promise<void>;
105
- static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, null, null, null, { optional: true; }]>;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<EntitiesStorage, [null, { optional: true; }, null, null, { optional: true; }]>;
106
106
  static ɵprov: i0.ɵɵInjectableDeclaration<EntitiesStorage>;
107
107
  }
108
108
  export {};
@@ -5,6 +5,7 @@ import { OnDestroy } from '@angular/core';
5
5
  import { SortDirection } from '@angular/material/sort';
6
6
  import { CollectionViewer } from '@angular/cdk/collections';
7
7
  import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
8
+ import { IEntitiesTableDataSource } from './table.model';
8
9
  import * as i0 from "@angular/core";
9
10
  export interface EntitiesAsyncTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
10
11
  onRowCreated?: (row: AsyncTableElement<T>) => Promise<void> | void;
@@ -18,7 +19,7 @@ export interface EntitiesAsyncTableDataSourceConfig<T extends Entity<T, ID>, ID
18
19
  saveAllOptions?: SO;
19
20
  [key: string]: any;
20
21
  }
21
- export declare class EntitiesAsyncTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any, V extends ValidatorService = ValidatorService, C extends EntitiesAsyncTableDataSourceConfig<T, ID, WO, SO> = EntitiesAsyncTableDataSourceConfig<T, ID, WO, SO>, R extends AsyncTableElement<T> = AsyncTableElement<T>> extends AsyncTableDataSource<T, V, C, R> implements OnDestroy {
22
+ export declare class EntitiesAsyncTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any, V extends ValidatorService = ValidatorService, C extends EntitiesAsyncTableDataSourceConfig<T, ID, WO, SO> = EntitiesAsyncTableDataSourceConfig<T, ID, WO, SO>, R extends AsyncTableElement<T> = AsyncTableElement<T>> extends AsyncTableDataSource<T, V, C, R> implements IEntitiesTableDataSource<R>, OnDestroy {
22
23
  readonly dataService: IEntitiesService<T, F, WO>;
23
24
  private readonly _entityName;
24
25
  protected _debug: boolean;
@@ -5,6 +5,7 @@ import { OnDestroy } from '@angular/core';
5
5
  import { SortDirection } from '@angular/material/sort';
6
6
  import { CollectionViewer } from '@angular/cdk/collections';
7
7
  import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
8
+ import { IEntitiesTableDataSource } from './table.model';
8
9
  import * as i0 from "@angular/core";
9
10
  export interface EntitiesTableDataSourceConfig<T extends Entity<T, ID>, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any> extends TableDataSourceConfig {
10
11
  onRowCreated?: (row: TableElement<T>) => Promise<void> | void;
@@ -19,7 +20,7 @@ export interface EntitiesTableDataSourceConfig<T extends Entity<T, ID>, ID = num
19
20
  saveAllOptions?: SO;
20
21
  [key: string]: any;
21
22
  }
22
- export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any, V extends ValidatorService = ValidatorService, C extends EntitiesTableDataSourceConfig<T, ID, WO, SO> = EntitiesTableDataSourceConfig<T, ID, WO, SO>, R extends TableElement<T> = TableElement<T>> extends TableDataSource<T, V, C, R> implements OnDestroy {
23
+ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any, ID = number, WO extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions, SO = any, V extends ValidatorService = ValidatorService, C extends EntitiesTableDataSourceConfig<T, ID, WO, SO> = EntitiesTableDataSourceConfig<T, ID, WO, SO>, R extends TableElement<T> = TableElement<T>> extends TableDataSource<T, V, C, R> implements IEntitiesTableDataSource<R>, OnDestroy {
23
24
  readonly dataService: IEntitiesService<T, F, WO>;
24
25
  private readonly _entityName;
25
26
  protected _debug: boolean;
@@ -21,3 +21,6 @@ export interface IModalDetailOptions<T = any> {
21
21
  onDelete?: (event: Event, data: T) => Promise<boolean>;
22
22
  }
23
23
  export declare type SaveActionType = 'delete' | 'sort' | 'filter';
24
+ export interface IEntitiesTableDataSource<R> {
25
+ getRows(): R[];
26
+ }