@sumaris-net/ngx-components 0.10.4-beta3 → 0.10.4
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/ngx-sumaris-components.umd.js +21 -21
- package/bundles/ngx-sumaris-components.umd.js.map +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +6 -6
- package/esm2015/src/app/core/services/model/entity.decorators.js +1 -1
- package/esm2015/src/app/core/table/entities-table-datasource.class.js +5 -5
- package/esm2015/src/app/core/table/memory-table.class.js +2 -2
- package/esm2015/src/app/core/table/table.class.js +11 -11
- package/esm2015/src/app/shared/material/swipe/material.swipe.js +1 -1
- package/esm2015/src/app/social/list/user-events.table.js +2 -2
- package/fesm2015/ngx-sumaris-components.js +21 -21
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/ngx-sumaris-components.metadata.json +1 -1
- package/package.json +1 -1
- package/src/app/core/graphql/graphql.service.d.ts +2 -4
- package/src/app/core/services/model/entity.decorators.d.ts +2 -6
- package/src/app/core/table/entities-table-datasource.class.d.ts +1 -1
- package/src/app/core/table/table.class.d.ts +3 -1
|
@@ -13,6 +13,7 @@ import { HttpLink } from 'apollo-angular/http';
|
|
|
13
13
|
import { ErrorPolicy, MutationBaseOptions } from '@apollo/client/core/watchQueryOptions';
|
|
14
14
|
import { Cache } from '@apollo/client/cache/core/types/Cache';
|
|
15
15
|
import { CryptoService } from '../services/crypto.service';
|
|
16
|
+
import { PropertiesMap } from '../../shared/types';
|
|
16
17
|
export interface WatchQueryOptions<V> {
|
|
17
18
|
query: any;
|
|
18
19
|
variables?: V;
|
|
@@ -130,10 +131,7 @@ export declare class GraphqlService {
|
|
|
130
131
|
equalsFn?: (d1: T, d2: T) => boolean;
|
|
131
132
|
}): void;
|
|
132
133
|
clearCache(client?: ApolloClient<any>): Promise<void>;
|
|
133
|
-
registerCustomError(error:
|
|
134
|
-
code: number;
|
|
135
|
-
message: string;
|
|
136
|
-
}): void;
|
|
134
|
+
registerCustomError(error: PropertiesMap): void;
|
|
137
135
|
protected initApollo(): Promise<void>;
|
|
138
136
|
protected stop(): Promise<void>;
|
|
139
137
|
protected restart(): Promise<void>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Entity } from './entity.model';
|
|
2
|
-
declare
|
|
3
|
-
new (...args: any[]): any;
|
|
4
|
-
}
|
|
2
|
+
declare type EntityConstructor = new (...args: any[]) => {};
|
|
5
3
|
export declare class EntityClasses {
|
|
6
4
|
static CLASSES_BY_NAME: Map<string, EntityConstructor>;
|
|
7
5
|
static register(typename: string, entityClass: EntityConstructor): void;
|
|
@@ -17,9 +15,7 @@ export declare function EntityClass(opts: {
|
|
|
17
15
|
fromObjectAlwaysNew?: boolean;
|
|
18
16
|
fromObjectReuseStrategy?: 'default' | 'clone';
|
|
19
17
|
}): <T extends EntityConstructor>(constructor: T) => {
|
|
20
|
-
new (...args: any[]): {
|
|
21
|
-
[x: string]: any;
|
|
22
|
-
};
|
|
18
|
+
new (...args: any[]): {};
|
|
23
19
|
TYPENAME: string;
|
|
24
20
|
fromObject(source: any, opts?: any): T;
|
|
25
21
|
} & T;
|
|
@@ -61,7 +61,7 @@ export declare class EntitiesTableDataSource<T extends IEntity<T, ID>, F = any,
|
|
|
61
61
|
startEdit(row: TableElement<T>): void;
|
|
62
62
|
cancelOrDelete(row: TableElement<T>): void;
|
|
63
63
|
handleError(error: any, message: string): Observable<LoadResult<T>>;
|
|
64
|
-
handleErrorPromise(error: any
|
|
64
|
+
handleErrorPromise(error: any): void;
|
|
65
65
|
delete(id: number): void;
|
|
66
66
|
deleteAll(rows: TableElement<T>[]): Promise<any>;
|
|
67
67
|
getRows(): Promise<TableElement<T>[]>;
|
|
@@ -322,8 +322,10 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
322
322
|
}): string;
|
|
323
323
|
protected getI18nFieldName(fieldName: string): string;
|
|
324
324
|
protected getI18nError(errorKey: string, errorContent?: any): string;
|
|
325
|
+
protected setError(value: string, opts?: {
|
|
326
|
+
emitEvent?: boolean;
|
|
327
|
+
}): void;
|
|
325
328
|
private setLoading;
|
|
326
|
-
private setError;
|
|
327
329
|
private deleteNewRow;
|
|
328
330
|
private cancelExistingRow;
|
|
329
331
|
private checkIfPristine;
|