@sumaris-net/ngx-components 1.23.11 → 1.23.13
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/bundles/sumaris-net.ngx-components.umd.js +5 -2
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/table/table.class.js +2 -2
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +4 -1
- package/esm2015/src/app/shared/upload-file/upload-file.component.js +1 -1
- package/fesm2015/sumaris-net.ngx-components.js +5 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/services/memory-entity-service.class.d.ts +3 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { EntitiesServiceLoadOptions, EntitiesServiceWatchOptions, FilterFn, FilterFnFactory, IEntitiesService, LoadResult } from './entity-service.class';
|
|
3
3
|
import { SortDirection } from '@angular/material/sort';
|
|
4
|
+
import { OnDestroy } from '@angular/core';
|
|
4
5
|
import { IEntity } from '../../core/services/model/entity.model';
|
|
5
6
|
import { WaitForOptions } from '../observables';
|
|
6
7
|
import { StartableService } from './startable-service.class';
|
|
@@ -15,7 +16,7 @@ export interface InMemoryEntitiesServiceOptions<T, F> {
|
|
|
15
16
|
[key: string]: string;
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
|
-
export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any, ID = number, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> extends StartableService<T[]> implements IEntitiesService<T, F, O
|
|
19
|
+
export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any, ID = number, O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> extends StartableService<T[]> implements IEntitiesService<T, F, O>, OnDestroy {
|
|
19
20
|
protected dataType: new () => T;
|
|
20
21
|
protected filterType: new () => F;
|
|
21
22
|
debug: boolean;
|
|
@@ -36,6 +37,7 @@ export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any,
|
|
|
36
37
|
constructor(dataType: new () => T, filterType: new () => F, options?: InMemoryEntitiesServiceOptions<T, F>);
|
|
37
38
|
protected ngOnStart(): Promise<T[]>;
|
|
38
39
|
protected ngOnStop(): Promise<void>;
|
|
40
|
+
ngOnDestroy(): void;
|
|
39
41
|
setValue(data: T[]): void;
|
|
40
42
|
loadAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filter?: F, opts?: EntitiesServiceLoadOptions): Promise<LoadResult<T>>;
|
|
41
43
|
watchAll(offset: number, size: number, sortBy?: string, sortDirection?: SortDirection, filterData?: F, options?: any): Observable<LoadResult<T>>;
|