@sumaris-net/ngx-components 2.2.9 → 2.3.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/esm2020/public_api.mjs +2 -1
- package/esm2020/src/app/admin/users/users.mjs +1 -1
- package/esm2020/src/app/core/auth/auth.form.mjs +1 -1
- package/esm2020/src/app/core/graphql/graphql.service.mjs +1 -1
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +2 -2
- package/esm2020/src/app/core/menu/menu.component.mjs +5 -4
- package/esm2020/src/app/core/services/account.service.mjs +1 -1
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +1 -1
- package/esm2020/src/app/core/services/config/core.config.mjs +1 -1
- package/esm2020/src/app/core/services/network.service.mjs +3 -24
- package/esm2020/src/app/core/services/network.types.mjs +20 -0
- package/esm2020/src/app/core/services/platform.service.mjs +1 -1
- package/esm2020/src/app/shared/services/entity-service.class.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +25 -26
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +25 -26
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +1 -0
- package/src/app/core/graphql/graphql.service.d.ts +1 -1
- package/src/app/core/graphql/graphql.utils.d.ts +4 -1
- package/src/app/core/services/account.service.d.ts +2 -1
- package/src/app/core/services/base-graphql-service.class.d.ts +1 -1
- package/src/app/core/services/network.service.d.ts +2 -5
- package/src/app/core/services/network.types.d.ts +5 -0
- package/src/app/shared/services/entity-service.class.d.ts +1 -1
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
|
+
"version": "2.3.1",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@angular-devkit/build-angular": "~14.2.10",
|
|
18
18
|
"@angular/compiler-cli": "~14.2.10",
|
|
19
|
-
"@apollo/client": "~3.
|
|
19
|
+
"@apollo/client": "~3.7.2",
|
|
20
20
|
"@ionic/storage": "~3.0.6",
|
|
21
21
|
"d3": "~7.6.1",
|
|
22
22
|
"localforage": "~1.10.0",
|
package/public_api.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export * from './src/app/core/services/pipes/person-to-string.pipe';
|
|
|
135
135
|
export * from './src/app/core/services/pipes/usage-mode.pipes';
|
|
136
136
|
export * from './src/app/core/services/platform.service';
|
|
137
137
|
export * from './src/app/core/services/network.service';
|
|
138
|
+
export * from './src/app/core/services/network.types';
|
|
138
139
|
export * from './src/app/core/services/config.service';
|
|
139
140
|
export { CORE_CONFIG_OPTIONS } from './src/app/core/services/config/core.config';
|
|
140
141
|
export * from './src/app/core/services/local-settings.service';
|
|
@@ -4,10 +4,10 @@ import { ApolloCache, ApolloClient, FetchPolicy, MutationUpdaterFn, OperationVar
|
|
|
4
4
|
import { ServiceError } from '../services/errors';
|
|
5
5
|
import { InjectionToken } from '@angular/core';
|
|
6
6
|
import { NetworkService } from '../services/network.service';
|
|
7
|
+
import { EmptyObject } from './graphql.utils';
|
|
7
8
|
import { Platform } from '@ionic/angular';
|
|
8
9
|
import { IEntity } from '../services/model/entity.model';
|
|
9
10
|
import { Resolvers } from '@apollo/client/core/types';
|
|
10
|
-
import { EmptyObject } from 'apollo-angular/types';
|
|
11
11
|
import { HttpLink } from 'apollo-angular/http';
|
|
12
12
|
import { ErrorPolicy, MutationBaseOptions } from '@apollo/client/core/watchQueryOptions';
|
|
13
13
|
import { Cache } from '@apollo/client/cache/core/types/Cache';
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ApolloClient, ApolloLink, Operation } from '@apollo/client/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { PersistentStorage } from 'apollo3-cache-persist';
|
|
4
|
-
import { ConnectionType } from '../services/network.
|
|
4
|
+
import { ConnectionType } from '../services/network.types';
|
|
5
5
|
import { StorageService } from '../../shared/services/storage/storage.service';
|
|
6
6
|
export declare const NativeWebSocket: any;
|
|
7
|
+
export declare type EmptyObject = {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
7
10
|
/**
|
|
8
11
|
* AppWebSocket class.
|
|
9
12
|
* With a hack on default Websocket, to avoid the use of protocol
|
|
@@ -10,7 +10,8 @@ import { BaseGraphqlService } from './base-graphql-service.class';
|
|
|
10
10
|
import { GraphqlService } from '../graphql/graphql.service';
|
|
11
11
|
import { LocalSettingsService } from './local-settings.service';
|
|
12
12
|
import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
13
|
-
import {
|
|
13
|
+
import { NetworkService } from './network.service';
|
|
14
|
+
import { AuthTokenType } from './network.types';
|
|
14
15
|
import { FileService } from '../../shared/file/file.service';
|
|
15
16
|
import { Referential } from './model/referential.model';
|
|
16
17
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GraphqlService, MutateQueryOptions, WatchQueryOptions } from '../graphql/graphql.service';
|
|
2
2
|
import { Page } from '../../shared/services/entity-service.class';
|
|
3
|
-
import { EmptyObject } from 'apollo-angular/types';
|
|
4
3
|
import { Observable } from 'rxjs';
|
|
5
4
|
import { FetchResult } from '@apollo/client/link/core';
|
|
6
5
|
import { ApolloCache, InternalRefetchQueriesInclude } from '@apollo/client/core';
|
|
@@ -9,6 +8,7 @@ import { PureQueryOptions } from '@apollo/client/core/types';
|
|
|
9
8
|
import { DocumentNode } from 'graphql';
|
|
10
9
|
import { StartableService } from '../../shared/services/startable-service.class';
|
|
11
10
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
11
|
+
import { EmptyObject } from '../graphql/graphql.utils';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export interface QueryVariables<F = any> extends Partial<Page> {
|
|
14
14
|
filter?: F;
|
|
@@ -8,17 +8,14 @@ import { ISelectPeerModalOptions } from '../peer/select-peer.modal';
|
|
|
8
8
|
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
9
9
|
import { LocalSettingsService } from './local-settings.service';
|
|
10
10
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
11
|
-
import {
|
|
11
|
+
import { Network } from '@awesome-cordova-plugins/network/ngx';
|
|
12
12
|
import { CacheService } from 'ionic-cache';
|
|
13
13
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
14
14
|
import { OverlayEventDetail } from '@ionic/core';
|
|
15
15
|
import { AppManifest, NodeInfo } from './network.utils';
|
|
16
16
|
import { StartableObservableService } from '../../shared/services/startable-observable-service.class';
|
|
17
|
+
import { ConnectionType, NetworkEventType } from './network.types';
|
|
17
18
|
import * as i0 from "@angular/core";
|
|
18
|
-
export declare type ConnectionType = 'none' | 'wifi' | 'ethernet' | 'cell' | 'unknown';
|
|
19
|
-
export declare type AuthTokenType = 'token' | 'basic' | 'basic-and-token';
|
|
20
|
-
export declare function getConnectionType(type: Connection): ConnectionType;
|
|
21
|
-
export declare type NetworkEventType = 'start' | 'peerChanged' | 'statusChanged' | 'resetCache' | 'beforeTryOnlineFinish';
|
|
22
19
|
export declare const PEER_URL_REGEXP: RegExp;
|
|
23
20
|
export declare class NetworkService extends StartableObservableService<Peer, Peer> {
|
|
24
21
|
private _document;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Connection } from '@awesome-cordova-plugins/network/ngx';
|
|
2
|
+
export declare type ConnectionType = 'none' | 'wifi' | 'ethernet' | 'cellular' | 'unknown';
|
|
3
|
+
export declare type AuthTokenType = 'token' | 'basic' | 'basic-and-token';
|
|
4
|
+
export declare function getConnectionType(type: Connection | string): ConnectionType;
|
|
5
|
+
export declare type NetworkEventType = 'start' | 'peerChanged' | 'statusChanged' | 'resetCache' | 'beforeTryOnlineFinish';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FetchPolicy, WatchQueryFetchPolicy } from '@apollo/client/core';
|
|
3
3
|
import { SortDirection } from '@angular/material/sort';
|
|
4
|
-
import { EmptyObject } from '
|
|
4
|
+
import { EmptyObject } from '../../core/graphql/graphql.utils';
|
|
5
5
|
export declare interface Page {
|
|
6
6
|
offset: number;
|
|
7
7
|
size: number;
|