@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/esm2020/src/app/core/services/storage/entities-storage.service.mjs +21 -19
- package/esm2020/src/app/core/table/entities-async-table-datasource.class.mjs +1 -1
- package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +1 -1
- package/esm2020/src/app/core/table/table.model.mjs +1 -1
- package/esm2020/src/app/shared/shared.module.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +31 -19
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +21 -19
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/storage/entities-storage.service.d.ts +1 -1
- package/src/app/core/table/entities-async-table-datasource.class.d.ts +2 -1
- package/src/app/core/table/entities-table-datasource.class.d.ts +2 -1
- package/src/app/core/table/table.model.d.ts +3 -0
package/package.json
CHANGED
|
@@ -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,
|
|
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;
|