@sumaris-net/ngx-components 1.6.0 → 1.6.1
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 +46 -0
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/table/entities-table-datasource.class.js +29 -1
- package/fesm2015/sumaris-net.ngx-components.js +28 -0
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/entities-table-datasource.class.d.ts +6 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -5,7 +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 { TableDataSourceOptions } from '@e-is/ngx-material-table/src/app/ngx-material-table/table-data-source';
|
|
8
|
-
import { EntitiesServiceWatchOptions, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
|
|
8
|
+
import { EntitiesServiceWatchOptions, FetchMoreFn, IEntitiesService, LoadResult } from '../../shared/services/entity-service.class';
|
|
9
9
|
export declare interface AppTableDataServiceOptions<O extends EntitiesServiceWatchOptions = EntitiesServiceWatchOptions> extends EntitiesServiceWatchOptions {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
saveOnlyDirtyRows?: boolean;
|
|
@@ -30,6 +30,7 @@ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any,
|
|
|
30
30
|
protected _useValidator: boolean;
|
|
31
31
|
protected _stopWatching$: Subject<any>;
|
|
32
32
|
protected _editingRowCount: number;
|
|
33
|
+
protected _fetchMoreFn: FetchMoreFn<LoadResult<T>>;
|
|
33
34
|
loadingSubject: BehaviorSubject<boolean>;
|
|
34
35
|
get serviceOptions(): AppTableDataServiceOptions<O>;
|
|
35
36
|
set serviceOptions(value: AppTableDataServiceOptions<O>);
|
|
@@ -66,6 +67,10 @@ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any,
|
|
|
66
67
|
deleteAll(rows: TableElement<T>[]): Promise<any>;
|
|
67
68
|
getRows(): Promise<TableElement<T>[]>;
|
|
68
69
|
asyncCreateNew(insertAt?: number): Promise<void>;
|
|
70
|
+
getData(): Promise<T[]>;
|
|
71
|
+
fetchMore(opts?: {
|
|
72
|
+
emitEvent: boolean;
|
|
73
|
+
}): Promise<void>;
|
|
69
74
|
markAsLoading(): void;
|
|
70
75
|
markAsLoaded(): void;
|
|
71
76
|
}
|