@sumaris-net/ngx-components 2.4.144 → 2.4.145
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/account/account.page.mjs +1 -1
- package/esm2020/src/app/core/form/entity/editor.class.mjs +1 -1
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +4 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +2 -2
- package/esm2020/src/app/core/form/form.class.mjs +3 -1
- package/esm2020/src/app/core/form/form.utils.mjs +4 -1
- package/esm2020/src/app/core/form/properties/property.validator.mjs +1 -1
- package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +1 -1
- package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +1 -1
- package/esm2020/src/app/core/graphql/graphql.service.mjs +24 -23
- package/esm2020/src/app/core/graphql/graphql.utils.mjs +1 -1
- package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +3 -2
- package/esm2020/src/app/core/menu/menu.component.mjs +3 -2
- package/esm2020/src/app/core/menu/menu.model.mjs +1 -1
- package/esm2020/src/app/core/menu/menu.service.mjs +1 -1
- package/esm2020/src/app/core/peer/select-peer.modal.mjs +3 -2
- package/esm2020/src/app/core/register/register.form.mjs +21 -19
- package/esm2020/src/app/core/services/account.service.mjs +3 -2
- package/esm2020/src/app/core/services/base-entity-service.class.mjs +1 -1
- package/esm2020/src/app/core/services/base-graphql-service.class.mjs +2 -4
- package/esm2020/src/app/core/services/config.service.mjs +22 -21
- package/esm2020/src/app/core/services/model/entity.decorators.mjs +1 -1
- package/esm2020/src/app/core/services/model/filter.model.mjs +3 -1
- package/esm2020/src/app/core/services/network.service.mjs +4 -3
- package/esm2020/src/app/core/services/network.utils.mjs +1 -1
- package/esm2020/src/app/core/services/platform.service.mjs +1 -1
- package/esm2020/src/app/core/settings/settings.page.mjs +1 -1
- 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.class.mjs +9 -5
- package/esm2020/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2020/src/app/shared/audio/audio.mjs +5 -5
- package/esm2020/src/app/shared/capacitor/plugins.mjs +1 -1
- package/esm2020/src/app/shared/dates.mjs +3 -1
- package/esm2020/src/app/shared/debug/debug.component.mjs +1 -1
- package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +1 -1
- package/esm2020/src/app/shared/directives/ng-var.directive.mjs +1 -1
- package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +1 -1
- package/esm2020/src/app/shared/events.mjs +2 -1
- package/esm2020/src/app/shared/file/csv.utils.mjs +12 -14
- package/esm2020/src/app/shared/file/file.utils.mjs +2 -2
- package/esm2020/src/app/shared/file/images.utils.mjs +1 -1
- package/esm2020/src/app/shared/file/json.utils.mjs +1 -1
- package/esm2020/src/app/shared/file/uri.utils.mjs +2 -1
- package/esm2020/src/app/shared/form/field.component.mjs +2 -1
- package/esm2020/src/app/shared/forms.mjs +3 -1
- package/esm2020/src/app/shared/functions.mjs +7 -2
- package/esm2020/src/app/shared/geolocation/geolocation.utils.mjs +1 -1
- package/esm2020/src/app/shared/help/help.modal.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +4 -4
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
- package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +1 -1
- package/esm2020/src/app/shared/logging/logger.model.mjs +1 -1
- package/esm2020/src/app/shared/logging/logging-service.class.mjs +2 -2
- package/esm2020/src/app/shared/logging/logging-service.config.mjs +1 -1
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +10 -10
- package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +4 -6
- package/esm2020/src/app/shared/material/badge/badge.test.mjs +1 -1
- package/esm2020/src/app/shared/material/chips/material.chips.mjs +9 -10
- package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +3 -3
- package/esm2020/src/app/shared/material/duration/material.duration.mjs +3 -3
- package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +4 -3
- package/esm2020/src/app/shared/material/material.testing.module.mjs +2 -2
- package/esm2020/src/app/shared/modules.mjs +2 -1
- package/esm2020/src/app/shared/observables.mjs +3 -2
- package/esm2020/src/app/shared/pipes/colors.pipe.mjs +1 -1
- package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +1 -1
- package/esm2020/src/app/shared/pipes/form.pipes.mjs +1 -1
- package/esm2020/src/app/shared/pipes/property.pipes.mjs +1 -1
- package/esm2020/src/app/shared/platforms.mjs +1 -1
- package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +3 -1
- package/esm2020/src/app/shared/services/startable-observable-service.class.mjs +4 -4
- package/esm2020/src/app/shared/services/translate-context.service.mjs +11 -13
- package/esm2020/src/app/shared/services/validator-service.class.mjs +1 -1
- package/esm2020/src/app/shared/shared-routing.module.mjs +2 -1
- package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +1 -1
- package/esm2020/src/app/shared/testing/observable.test.mjs +1 -1
- package/esm2020/src/app/shared/toast/toasts.mjs +1 -1
- package/esm2020/src/app/shared/toolbar/toolbar.mjs +1 -1
- package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +2 -1
- package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +1 -1
- package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +5 -5
- package/esm2020/src/app/shared/validator/validators.mjs +6 -2
- package/esm2020/src/app/social/job/progression/job-progression.service.mjs +1 -1
- package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +1 -1
- package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
- package/esm2020/src/app/social/message/message.form.mjs +1 -1
- package/esm2020/src/app/social/message/message.modal.mjs +1 -1
- package/esm2020/src/app/social/message/message.model.mjs +1 -1
- package/esm2020/src/app/social/message/message.service.mjs +2 -2
- package/esm2020/src/app/social/social.module.mjs +2 -2
- package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +1 -1
- package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +5 -5
- package/esm2020/src/app/social/user-event/testing/user-event.testing.model.mjs +1 -1
- package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +1 -1
- package/esm2020/src/app/social/user-event/user-event.model.mjs +1 -1
- package/esm2020/src/app/social/user-event/user-event.service.mjs +2 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +158 -129
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +172 -145
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +1 -0
- package/src/app/core/form/form.class.d.ts +2 -0
- package/src/app/core/form/form.utils.d.ts +3 -0
- package/src/app/core/graphql/graphql.service.d.ts +23 -22
- package/src/app/core/graphql/graphql.utils.d.ts +2 -2
- package/src/app/core/install/install-upgrade-card.component.d.ts +3 -2
- package/src/app/core/menu/menu.component.d.ts +3 -2
- package/src/app/core/peer/select-peer.modal.d.ts +4 -3
- package/src/app/core/register/register.form.d.ts +3 -2
- package/src/app/core/services/account.service.d.ts +3 -2
- package/src/app/core/services/config.service.d.ts +5 -3
- package/src/app/core/services/model/filter.model.d.ts +2 -0
- package/src/app/core/services/network.service.d.ts +3 -2
- package/src/app/core/table/table.class.d.ts +4 -0
- package/src/app/shared/dates.d.ts +2 -0
- package/src/app/shared/events.d.ts +1 -0
- package/src/app/shared/file/uri.utils.d.ts +1 -0
- package/src/app/shared/form/field.component.d.ts +1 -0
- package/src/app/shared/forms.d.ts +2 -0
- package/src/app/shared/functions.d.ts +1 -0
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
- package/src/app/shared/material/latlong/material.latlong.d.ts +1 -0
- package/src/app/shared/modules.d.ts +1 -0
- package/src/app/shared/observables.d.ts +1 -0
- package/src/app/shared/services/memory-entity-service.class.d.ts +2 -0
- package/src/app/shared/services/startable-observable-service.class.d.ts +2 -2
- package/src/app/shared/services/validator-service.class.d.ts +1 -0
- package/src/app/shared/shared-routing.module.d.ts +1 -0
- package/src/app/shared/storage/storage-explorer.component.d.ts +2 -2
- package/src/app/shared/upload-file/testing/upload-file.testing.d.ts +1 -0
- package/src/app/shared/validator/validators.d.ts +4 -0
- package/src/app/social/user-event/user-event.model.d.ts +1 -2
package/package.json
CHANGED
|
@@ -127,11 +127,13 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
127
127
|
}): void;
|
|
128
128
|
/**
|
|
129
129
|
* Wait form is ready
|
|
130
|
+
*
|
|
130
131
|
* @param opts
|
|
131
132
|
*/
|
|
132
133
|
ready(opts?: WaitForOptions): Promise<void>;
|
|
133
134
|
/**
|
|
134
135
|
* Wait form is not busy (=loaded)
|
|
136
|
+
*
|
|
135
137
|
* @param opts
|
|
136
138
|
*/
|
|
137
139
|
waitIdle(opts?: WaitForOptions): Promise<void>;
|
|
@@ -211,6 +211,7 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
|
|
|
211
211
|
at(index: number): C;
|
|
212
212
|
/**
|
|
213
213
|
* Resize the FormArray, then set values
|
|
214
|
+
*
|
|
214
215
|
* @param values
|
|
215
216
|
* @param options
|
|
216
217
|
*/
|
|
@@ -220,6 +221,7 @@ export declare class FormArrayHelper<T = Entity<any>, C extends AbstractControl
|
|
|
220
221
|
}): void;
|
|
221
222
|
/**
|
|
222
223
|
* Resize the FormArray, then patch values
|
|
224
|
+
*
|
|
223
225
|
* @param values
|
|
224
226
|
* @param options
|
|
225
227
|
*/
|
|
@@ -252,6 +254,7 @@ export declare class AppFormArray<T extends Entity<T>, C extends AbstractControl
|
|
|
252
254
|
constructor(createControl: (value?: T) => C, equals: (v1: T, v2: T) => boolean, isEmpty: (value: T) => boolean, options?: AppFormArrayOptions | undefined | null);
|
|
253
255
|
/**
|
|
254
256
|
* WIll rebuild the array, using the given values
|
|
257
|
+
*
|
|
255
258
|
* @param values
|
|
256
259
|
* @param options
|
|
257
260
|
*/
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { Apollo, ExtraSubscriptionOptions, QueryRef } from
|
|
3
|
-
import { ApolloCache, ApolloClient, FetchPolicy, MutationUpdaterFn, OperationVariables, TypePolicies, WatchQueryFetchPolicy } from
|
|
4
|
-
import { ServiceError } from
|
|
5
|
-
import { InjectionToken } from
|
|
6
|
-
import { NetworkService } from
|
|
7
|
-
import { EmptyObject } from
|
|
8
|
-
import { Platform } from
|
|
9
|
-
import { IEntity } from
|
|
10
|
-
import { Resolvers } from
|
|
11
|
-
import { HttpLink } from
|
|
12
|
-
import { ErrorPolicy, MutationBaseOptions } from
|
|
13
|
-
import { Cache } from
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { Apollo, ExtraSubscriptionOptions, QueryRef } from "apollo-angular";
|
|
3
|
+
import { ApolloCache, ApolloClient, FetchPolicy, MutationUpdaterFn, OperationVariables, TypePolicies, WatchQueryFetchPolicy } from "@apollo/client/core";
|
|
4
|
+
import { ServiceError } from "../services/errors";
|
|
5
|
+
import { InjectionToken } from "@angular/core";
|
|
6
|
+
import { NetworkService } from "../services/network.service";
|
|
7
|
+
import { EmptyObject } from "./graphql.utils";
|
|
8
|
+
import { Platform } from "@ionic/angular";
|
|
9
|
+
import { IEntity } from "../services/model/entity.model";
|
|
10
|
+
import { Resolvers } from "@apollo/client/core/types";
|
|
11
|
+
import { HttpLink } from "apollo-angular/http";
|
|
12
|
+
import { ErrorPolicy, MutationBaseOptions } from "@apollo/client/core/watchQueryOptions";
|
|
13
|
+
import { Cache } from "@apollo/client/cache/core/types/Cache";
|
|
14
|
+
import { Environment } from "../../../environments/environment.class";
|
|
15
|
+
import { CryptoService } from "../services/crypto.service";
|
|
16
|
+
import { PropertiesMap } from "../../shared/types";
|
|
17
|
+
import { StartableService } from "../../shared/services/startable-service.class";
|
|
18
|
+
import { StorageService } from "../../shared/storage/storage.service";
|
|
19
|
+
import { DocumentNode } from "graphql";
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
export interface WatchQueryOptions<V> {
|
|
21
22
|
query: any;
|
|
@@ -39,10 +40,10 @@ export interface MutateQueryOptions<T, V = OperationVariables> extends MutationB
|
|
|
39
40
|
}
|
|
40
41
|
export declare const APP_GRAPHQL_TYPE_POLICIES: InjectionToken<TypePolicies>;
|
|
41
42
|
export declare const APP_GRAPHQL_FRAGMENTS: InjectionToken<DocumentNode[]>;
|
|
42
|
-
export
|
|
43
|
+
export interface ConnectionParams extends Record<string, string> {
|
|
43
44
|
authToken?: string;
|
|
44
45
|
authBasic?: string;
|
|
45
|
-
}
|
|
46
|
+
}
|
|
46
47
|
export declare class GraphqlService extends StartableService<ApolloClient<any>> {
|
|
47
48
|
private platform;
|
|
48
49
|
private apollo;
|
|
@@ -50,7 +51,7 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
|
|
|
50
51
|
private network;
|
|
51
52
|
private storage;
|
|
52
53
|
private cryptoService;
|
|
53
|
-
protected environment:
|
|
54
|
+
protected environment: Environment;
|
|
54
55
|
private typePolicies;
|
|
55
56
|
private fragments;
|
|
56
57
|
private readonly _networkStatusChanged$;
|
|
@@ -64,7 +65,7 @@ export declare class GraphqlService extends StartableService<ApolloClient<any>>
|
|
|
64
65
|
get client(): ApolloClient<any>;
|
|
65
66
|
get cache(): ApolloCache<any>;
|
|
66
67
|
get defaultFetchPolicy(): WatchQueryFetchPolicy;
|
|
67
|
-
constructor(platform: Platform, apollo: Apollo, httpLink: HttpLink, network: NetworkService, storage: StorageService, cryptoService: CryptoService, environment:
|
|
68
|
+
constructor(platform: Platform, apollo: Apollo, httpLink: HttpLink, network: NetworkService, storage: StorageService, cryptoService: CryptoService, environment: Environment, typePolicies: TypePolicies, fragments: DocumentNode[]);
|
|
68
69
|
setAuthToken(token: string): Promise<void>;
|
|
69
70
|
setAuthBasic(basic: string): Promise<void>;
|
|
70
71
|
/**
|
|
@@ -4,9 +4,9 @@ import { PersistentStorage } from 'apollo3-cache-persist';
|
|
|
4
4
|
import { ConnectionType } from '../services/network.types';
|
|
5
5
|
import { StorageService } from '../../shared/storage/storage.service';
|
|
6
6
|
export declare const NativeWebSocket: any;
|
|
7
|
-
export
|
|
7
|
+
export interface EmptyObject {
|
|
8
8
|
[key: string]: any;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
10
|
/**
|
|
11
11
|
* AppWebSocket class.
|
|
12
12
|
* With a hack on default Websocket, to avoid the use of protocol
|
|
@@ -3,6 +3,7 @@ import { AlertController, ModalController, ToastController } from '@ionic/angula
|
|
|
3
3
|
import { ConfigService } from '../services/config.service';
|
|
4
4
|
import { PlatformService } from '../services/platform.service';
|
|
5
5
|
import { NetworkService } from '../services/network.service';
|
|
6
|
+
import { Environment } from '../../../environments/environment.class';
|
|
6
7
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare interface InstallAppLink {
|
|
@@ -26,7 +27,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
|
26
27
|
private cd;
|
|
27
28
|
platform: PlatformService;
|
|
28
29
|
network: NetworkService;
|
|
29
|
-
protected environment:
|
|
30
|
+
protected environment: Environment;
|
|
30
31
|
private _subscription;
|
|
31
32
|
loading: boolean;
|
|
32
33
|
hasDownloader: boolean;
|
|
@@ -40,7 +41,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
|
40
41
|
showUpgradeWarning: boolean;
|
|
41
42
|
showOfflineWarning: boolean;
|
|
42
43
|
showInstallButton: boolean;
|
|
43
|
-
constructor(modalCtrl: ModalController, configService: ConfigService, toastController: ToastController, alertController: AlertController, translate: TranslateService, cd: ChangeDetectorRef, platform: PlatformService, network: NetworkService, environment:
|
|
44
|
+
constructor(modalCtrl: ModalController, configService: ConfigService, toastController: ToastController, alertController: AlertController, translate: TranslateService, cd: ChangeDetectorRef, platform: PlatformService, network: NetworkService, environment: Environment);
|
|
44
45
|
ngOnInit(): void;
|
|
45
46
|
ngOnDestroy(): void;
|
|
46
47
|
download(event: Event, link: InstallAppLink): Promise<void>;
|
|
@@ -4,6 +4,7 @@ import { Account } from '../services/model/account.model';
|
|
|
4
4
|
import { AccountService } from '../services/account.service';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
import { PlatformService } from '../services/platform.service';
|
|
7
|
+
import { Environment } from '../../../environments/environment.class';
|
|
7
8
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
8
9
|
import { IMenuItem, MenuItem } from './menu.model';
|
|
9
10
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
@@ -20,7 +21,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
20
21
|
protected cd: ChangeDetectorRef;
|
|
21
22
|
protected menuService: MenuService;
|
|
22
23
|
protected router: Router;
|
|
23
|
-
protected environment:
|
|
24
|
+
protected environment: Environment;
|
|
24
25
|
protected route: ActivatedRoute;
|
|
25
26
|
id: string;
|
|
26
27
|
menuId: string;
|
|
@@ -38,7 +39,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
38
39
|
accountEmail: string;
|
|
39
40
|
private readonly _debug;
|
|
40
41
|
private _subscription;
|
|
41
|
-
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, cd: ChangeDetectorRef, menuService: MenuService, router: Router, environment:
|
|
42
|
+
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, cd: ChangeDetectorRef, menuService: MenuService, router: Router, environment: Environment, route: ActivatedRoute);
|
|
42
43
|
ngOnInit(): Promise<void>;
|
|
43
44
|
onLogin(account: Account): Promise<void>;
|
|
44
45
|
onLogout(skipRedirect?: boolean): Promise<void>;
|
|
@@ -3,6 +3,7 @@ import { ModalController, PopoverController } from '@ionic/angular';
|
|
|
3
3
|
import { Peer } from '../services/model/peer.model';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { Environment } from '../../../environments/environment.class';
|
|
6
7
|
import { TextPopoverOptions } from '../form/text-popover/text-popover.component';
|
|
7
8
|
import { TranslateService } from '@ngx-translate/core';
|
|
8
9
|
import { ILoggingService } from '../../shared/logging/logger.model';
|
|
@@ -19,19 +20,19 @@ export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptio
|
|
|
19
20
|
private translate;
|
|
20
21
|
private http;
|
|
21
22
|
private cd;
|
|
22
|
-
protected environment:
|
|
23
|
+
protected environment: Environment;
|
|
23
24
|
protected loggingService?: ILoggingService;
|
|
24
25
|
private _subscription;
|
|
25
26
|
private readonly _logger;
|
|
26
27
|
loading: boolean;
|
|
27
28
|
mobile: boolean;
|
|
28
29
|
$peers: Subject<Peer[]>;
|
|
29
|
-
peerMinVersion:
|
|
30
|
+
peerMinVersion: string;
|
|
30
31
|
canCancel: boolean;
|
|
31
32
|
allowSelectDownPeer: boolean;
|
|
32
33
|
onRefresh: EventEmitter<Event>;
|
|
33
34
|
showSetManuallyButton: boolean;
|
|
34
|
-
constructor(modalCtrl: ModalController, popoverController: PopoverController, translate: TranslateService, http: HttpClient, cd: ChangeDetectorRef, environment:
|
|
35
|
+
constructor(modalCtrl: ModalController, popoverController: PopoverController, translate: TranslateService, http: HttpClient, cd: ChangeDetectorRef, environment: Environment, loggingService?: ILoggingService);
|
|
35
36
|
set peers(peers: Observable<Peer[]>);
|
|
36
37
|
cancel(): void;
|
|
37
38
|
ngOnDestroy(): void;
|
|
@@ -6,13 +6,14 @@ import { Subscription } from 'rxjs';
|
|
|
6
6
|
import { AccountValidatorService } from '../services/validator/account.validator';
|
|
7
7
|
import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
8
8
|
import { LocalSettingsService } from '../services/local-settings.service';
|
|
9
|
+
import { Environment } from '../../../environments/environment.class';
|
|
9
10
|
import { MatAutocompleteConfigHolder } from '../../shared/material/autocomplete/material.autocomplete.config';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class RegisterForm implements OnInit {
|
|
12
13
|
private accountService;
|
|
13
14
|
private accountValidatorService;
|
|
14
15
|
formBuilder: UntypedFormBuilder;
|
|
15
|
-
protected environment:
|
|
16
|
+
protected environment: Environment;
|
|
16
17
|
protected settings?: LocalSettingsService;
|
|
17
18
|
protected debug: boolean;
|
|
18
19
|
autocompleteHelper: MatAutocompleteConfigHolder;
|
|
@@ -27,7 +28,7 @@ export declare class RegisterForm implements OnInit {
|
|
|
27
28
|
private stepper;
|
|
28
29
|
onCancel: EventEmitter<any>;
|
|
29
30
|
onSubmit: EventEmitter<RegisterData>;
|
|
30
|
-
constructor(accountService: AccountService, accountValidatorService: AccountValidatorService, formBuilder: UntypedFormBuilder, environment:
|
|
31
|
+
constructor(accountService: AccountService, accountValidatorService: AccountValidatorService, formBuilder: UntypedFormBuilder, environment: Environment, settings?: LocalSettingsService);
|
|
31
32
|
ngOnInit(): void;
|
|
32
33
|
get value(): RegisterData;
|
|
33
34
|
get valid(): boolean;
|
|
@@ -14,6 +14,7 @@ import { NetworkService } from './network.service';
|
|
|
14
14
|
import { AuthTokenType } from './network.types';
|
|
15
15
|
import { FileService } from '../../shared/file/file.service';
|
|
16
16
|
import { Referential } from './model/referential.model';
|
|
17
|
+
import { Environment } from '../../../environments/environment.class';
|
|
17
18
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
18
19
|
import { OverlayEventDetail } from '@ionic/core';
|
|
19
20
|
import { ToastController } from '@ionic/angular';
|
|
@@ -52,7 +53,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
52
53
|
protected file: FileService;
|
|
53
54
|
private translate;
|
|
54
55
|
private toastController;
|
|
55
|
-
protected environment:
|
|
56
|
+
protected environment: Environment;
|
|
56
57
|
onLogin: Subject<Account>;
|
|
57
58
|
onLogout: Subject<void>;
|
|
58
59
|
onChange: Subject<Account>;
|
|
@@ -69,7 +70,7 @@ export declare class AccountService extends BaseGraphqlService<Account, any, num
|
|
|
69
70
|
get department(): Department;
|
|
70
71
|
get tokenType(): AuthTokenType;
|
|
71
72
|
set tokenType(value: AuthTokenType);
|
|
72
|
-
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment:
|
|
73
|
+
constructor(network: NetworkService, graphql: GraphqlService, settings: LocalSettingsService, storage: Storage, file: FileService, translate: TranslateService, toastController: ToastController, environment: Environment);
|
|
73
74
|
ngOnStart(): Promise<Account>;
|
|
74
75
|
protected ngOnStop(): Promise<void>;
|
|
75
76
|
isLogin(): boolean;
|
|
@@ -10,11 +10,12 @@ import { Platform, ToastController } from '@ionic/angular';
|
|
|
10
10
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
11
11
|
import { TranslateService } from '@ngx-translate/core';
|
|
12
12
|
import { EntityServiceLoadOptions, IEntityService } from '../../shared/services/entity-service.class';
|
|
13
|
+
import { Environment } from '../../../environments/environment.class';
|
|
13
14
|
import { BaseGraphqlService } from './base-graphql-service.class';
|
|
14
15
|
import { IStartableService } from '../../shared/services/startable-service.class';
|
|
15
16
|
import { AccountService } from './account.service';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
|
-
export declare const
|
|
18
|
+
export declare const ConfigFragments: {
|
|
18
19
|
config: import("graphql/language/ast").DocumentNode;
|
|
19
20
|
};
|
|
20
21
|
export declare const APP_CONFIG_OPTIONS: InjectionToken<FormFieldDefinitionMap>;
|
|
@@ -27,15 +28,16 @@ export declare class ConfigService extends BaseGraphqlService<Configuration, any
|
|
|
27
28
|
protected toastController: ToastController;
|
|
28
29
|
protected translate: TranslateService;
|
|
29
30
|
protected accountService: AccountService;
|
|
30
|
-
protected environment:
|
|
31
|
+
protected environment: Environment;
|
|
31
32
|
private _optionDefs;
|
|
32
33
|
private $data;
|
|
33
34
|
get config(): Observable<Configuration>;
|
|
34
|
-
constructor(platform: Platform, graphql: GraphqlService, storage: Storage, network: NetworkService, file: FileService, toastController: ToastController, translate: TranslateService, accountService: AccountService, environment:
|
|
35
|
+
constructor(platform: Platform, graphql: GraphqlService, storage: Storage, network: NetworkService, file: FileService, toastController: ToastController, translate: TranslateService, accountService: AccountService, environment: Environment, defaultOptionsMap: FormFieldDefinitionMap);
|
|
35
36
|
protected ngOnStart(): Promise<Configuration>;
|
|
36
37
|
loadDefault(opts?: EntityServiceLoadOptions): Promise<Configuration>;
|
|
37
38
|
load(id: number, opts?: EntityServiceLoadOptions & {
|
|
38
39
|
query?: any;
|
|
40
|
+
variables?: any;
|
|
39
41
|
}): Promise<Configuration>;
|
|
40
42
|
canUserWrite(data: Configuration, opts?: any): boolean;
|
|
41
43
|
/**
|
|
@@ -9,12 +9,14 @@ export interface IEntityFilter<F extends IEntityFilter<F, T, ID, AO, FO>, T exte
|
|
|
9
9
|
export declare abstract class EntityFilter<F extends EntityFilter<F, T, ID, AO, FO>, T extends IEntity<T, any>, ID = number, AO extends EntityAsObjectOptions = EntityAsObjectOptions, FO = any> extends Entity<F, ID, AO, FO> implements IEntityFilter<F, T, ID, AO, FO> {
|
|
10
10
|
/**
|
|
11
11
|
* Compose some filter functions: all should return true
|
|
12
|
+
*
|
|
12
13
|
* @param filterFns
|
|
13
14
|
*/
|
|
14
15
|
static composeFilters<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
|
|
15
16
|
static compose<F extends EntityFilter<F, T>, T extends IEntity<T>>(filters: F[]): FilterFn<T>;
|
|
16
17
|
/**
|
|
17
18
|
* Compose some filter functions: all should return true
|
|
19
|
+
*
|
|
18
20
|
* @param filterFns
|
|
19
21
|
*/
|
|
20
22
|
static composeFns<T extends IEntity<T, any>>(filterFns: FilterFn<T>[]): FilterFn<T>;
|
|
@@ -13,6 +13,7 @@ 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
|
+
import { Environment } from '../../../environments/environment.class';
|
|
16
17
|
import { StartableObservableService } from '../../shared/services/startable-observable-service.class';
|
|
17
18
|
import { ConnectionType, NetworkEventType } from './network.types';
|
|
18
19
|
import { ILoggingService } from '../../shared/logging/logger.model';
|
|
@@ -27,7 +28,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
|
|
|
27
28
|
private settings;
|
|
28
29
|
private cache;
|
|
29
30
|
private http;
|
|
30
|
-
protected environment:
|
|
31
|
+
protected environment: Environment;
|
|
31
32
|
private loggingService;
|
|
32
33
|
private translate;
|
|
33
34
|
private toastController;
|
|
@@ -48,7 +49,7 @@ export declare class NetworkService extends StartableObservableService<Peer, Pee
|
|
|
48
49
|
get connectionType(): ConnectionType;
|
|
49
50
|
get peer(): Peer;
|
|
50
51
|
set peer(peer: Peer);
|
|
51
|
-
constructor(_document: any, platform: Platform, modalCtrl: ModalController, cryptoService: CryptoService, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, environment:
|
|
52
|
+
constructor(_document: any, platform: Platform, modalCtrl: ModalController, cryptoService: CryptoService, storage: Storage, settings: LocalSettingsService, cache: CacheService, http: HttpClient, environment: Environment, loggingService: ILoggingService, network: Network, translate: TranslateService, toastController: ToastController);
|
|
52
53
|
/**
|
|
53
54
|
* Register to network event
|
|
54
55
|
*
|
|
@@ -264,6 +264,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
264
264
|
selectRowById(id: number): Promise<boolean>;
|
|
265
265
|
/**
|
|
266
266
|
* Try to select row by data. Will use equals() to find same row's data
|
|
267
|
+
*
|
|
267
268
|
* @param data
|
|
268
269
|
*/
|
|
269
270
|
selectRowByData(data: T): Promise<boolean>;
|
|
@@ -282,6 +283,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
282
283
|
}): boolean;
|
|
283
284
|
/**
|
|
284
285
|
* Try to select row, by row.id, or by data. WIll use EntityUtils.equals()
|
|
286
|
+
*
|
|
285
287
|
* @param id
|
|
286
288
|
* @param data
|
|
287
289
|
* @protected
|
|
@@ -301,6 +303,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
301
303
|
/**
|
|
302
304
|
* Open a row detail view. By default, will to open row detail page.
|
|
303
305
|
* Can be override by subclasses, BUT prefer to subscribe on onOpenRow
|
|
306
|
+
*
|
|
304
307
|
* @param id
|
|
305
308
|
* @param row
|
|
306
309
|
* @protected
|
|
@@ -373,6 +376,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
373
376
|
private stopCellValueChanges;
|
|
374
377
|
/**
|
|
375
378
|
* Initialize the permanent selection model
|
|
379
|
+
*
|
|
376
380
|
* @protected
|
|
377
381
|
*/
|
|
378
382
|
protected initPermanentSelection(): void;
|
|
@@ -16,6 +16,7 @@ export declare class DateUtils {
|
|
|
16
16
|
/**
|
|
17
17
|
* Create a copy of a date, without time fields (always return a new Moment object, or undefined).
|
|
18
18
|
* Same implementation as the Java class Dates.resetTime() (see any SUMARiS like Pod)
|
|
19
|
+
*
|
|
19
20
|
* @param value
|
|
20
21
|
* @param timezone a timezone (see https://momentjs.com/timezone/)
|
|
21
22
|
* @param keepLocalTime if true, only the timezone (and offset) is updated, keeping the local time same. Consequently, it will now point to a different point in time if the offset has changed.
|
|
@@ -26,6 +27,7 @@ export declare class DateUtils {
|
|
|
26
27
|
static isNoTime(value: Moment): boolean;
|
|
27
28
|
/**
|
|
28
29
|
* Test if a date is on the given day of week
|
|
30
|
+
*
|
|
29
31
|
* @param date
|
|
30
32
|
* @param weekday
|
|
31
33
|
* @param timezone
|
|
@@ -21,6 +21,7 @@ export interface CompletableEvent extends Event {
|
|
|
21
21
|
* For example, use the value of 10% for the infinite output event to get called when the user has scrolled
|
|
22
22
|
* 10% from the bottom of the page. Use the value 100px when the scroll is within 100 pixels from the bottom of the page.
|
|
23
23
|
* </p>
|
|
24
|
+
*
|
|
24
25
|
* @param element
|
|
25
26
|
* @param threshold default to '15%'
|
|
26
27
|
*/
|
|
@@ -41,6 +41,7 @@ export declare function addValueInArray(arrayControl: UntypedFormArray, createCo
|
|
|
41
41
|
}): boolean;
|
|
42
42
|
/**
|
|
43
43
|
* Set an array using given default values. Each default value will be pass to the 'createControl()' function
|
|
44
|
+
*
|
|
44
45
|
* @param arrayControl
|
|
45
46
|
* @param createControl
|
|
46
47
|
* @param defaultValues
|
|
@@ -82,6 +83,7 @@ export declare function waitWhilePending<T extends {
|
|
|
82
83
|
}>(form: T, opts?: WaitForOptions): Promise<void>;
|
|
83
84
|
/**
|
|
84
85
|
* Wait form is idle (not loading). This need to implement {loading: boolean}
|
|
86
|
+
*
|
|
85
87
|
* @param form
|
|
86
88
|
* @param opts
|
|
87
89
|
*/
|
|
@@ -21,6 +21,7 @@ export declare function arrayGroupBy<T = any, K extends keyof T = any, M extends
|
|
|
21
21
|
/**
|
|
22
22
|
* Remove duplicated value, in array. Will compute a unique key (from given properties, or given function).
|
|
23
23
|
* If propertiesOrKeyFn is nil or undefined, will use all object properties
|
|
24
|
+
*
|
|
24
25
|
* @param values
|
|
25
26
|
* @param propertiesOrKeyFn
|
|
26
27
|
*/
|
|
@@ -129,6 +129,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
129
129
|
/**
|
|
130
130
|
* Hack : if we are in a IonModal, it's necessary to move the CdkOverlay container
|
|
131
131
|
* in the IonModal to might keep focus in IonSearchbar.
|
|
132
|
+
*
|
|
132
133
|
* @param panelElement
|
|
133
134
|
* @private
|
|
134
135
|
*/
|
|
@@ -3,6 +3,7 @@ export declare function isESModule<T>(value: any | T): value is {
|
|
|
3
3
|
};
|
|
4
4
|
/**
|
|
5
5
|
* Workaround need for CommonJS library (eg. moment), because of packagr's issue - see https://github.com/ng-packagr/ng-packagr/issues/2215
|
|
6
|
+
*
|
|
6
7
|
* @param commonJSModule
|
|
7
8
|
*/
|
|
8
9
|
export declare function unwrapESModule<T = any>(commonJSModule: T | any): T;
|
|
@@ -21,6 +21,7 @@ export declare function firstNotNilPromise<T = any>(obs: Observable<T>, opts?: F
|
|
|
21
21
|
export declare function chainPromises<T = any>(defers: (() => Promise<any>)[]): Promise<T[]>;
|
|
22
22
|
/**
|
|
23
23
|
* Wait form a predicate return true. This need to implement AppFormUtils.waitWhilePending(), AppFormUtils.waitIdle()
|
|
24
|
+
*
|
|
24
25
|
* @param predicate
|
|
25
26
|
* @param opts
|
|
26
27
|
*/
|
|
@@ -49,10 +49,12 @@ export declare class InMemoryEntitiesService<T extends IEntity<T, ID>, F = any,
|
|
|
49
49
|
equals(d1: T, d2: T): boolean;
|
|
50
50
|
/**
|
|
51
51
|
* Count data stored by the service (without hidden data).
|
|
52
|
+
*
|
|
52
53
|
* @param opts
|
|
53
54
|
*/
|
|
54
55
|
/**
|
|
55
56
|
* Count data stored by the service (without hidden data).
|
|
57
|
+
*
|
|
56
58
|
* @param opts
|
|
57
59
|
* @deprecated TODO Please rename this getter into visibleCount (and create count = hiddenCount + visibleCount)
|
|
58
60
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BehaviorSubject, Subject, Subscription } from
|
|
2
|
-
import { IStartableService } from
|
|
1
|
+
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
|
2
|
+
import { IStartableService } from './startable-service.class';
|
|
3
3
|
/**
|
|
4
4
|
* Same as StartableService, but with a dataSubject instead of a simple 'data' property
|
|
5
5
|
*/
|
|
@@ -4,6 +4,7 @@ export interface IValidatorService<T> extends ValidatorService {
|
|
|
4
4
|
getFormGroup(data?: T): UntypedFormGroup;
|
|
5
5
|
/**
|
|
6
6
|
* Compute errors from a controls
|
|
7
|
+
*
|
|
7
8
|
* @param control any control, or FormGroup, or FormArray
|
|
8
9
|
*/
|
|
9
10
|
getI18nFormErrors(control: AbstractControl): string[];
|
|
@@ -9,11 +9,11 @@ import { Log, LogUtils } from '../logging/logger.model';
|
|
|
9
9
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
10
10
|
import { LogLevel } from '../logging/log-level.model';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
|
-
|
|
12
|
+
interface StorageItemInfo {
|
|
13
13
|
key: string;
|
|
14
14
|
type: 'array' | 'object' | 'string' | 'number';
|
|
15
15
|
total: number;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
export declare const APP_STORAGE_EXPLORER_PROTECTED_KEYS: InjectionToken<string[]>;
|
|
18
18
|
export declare class StorageExplorerComponent implements OnInit {
|
|
19
19
|
protected platform: Platform;
|
|
@@ -9,6 +9,7 @@ export declare class UploadFileTestingPage {
|
|
|
9
9
|
showPopover(event: Event, opts?: Partial<UploadFilePopoverOptions<any>>): Promise<void>;
|
|
10
10
|
/**
|
|
11
11
|
* Simulate a upload function, with progression
|
|
12
|
+
*
|
|
12
13
|
* @param file
|
|
13
14
|
*/
|
|
14
15
|
uploadFile(file: File): Observable<FileEvent<{
|
|
@@ -44,6 +44,7 @@ export declare class SharedValidators {
|
|
|
44
44
|
}): ValidatorFn;
|
|
45
45
|
/**
|
|
46
46
|
* Check precision. e.g. if precision=0.5 then value=0.6 is invalid, but 1.5 is valid
|
|
47
|
+
*
|
|
47
48
|
* @param precision
|
|
48
49
|
*/
|
|
49
50
|
static precision(precision: number): ValidatorFn;
|
|
@@ -65,6 +66,7 @@ export declare class SharedFormGroupValidators {
|
|
|
65
66
|
static propagateIfDirty(fieldName: string, fieldNameToPropagate: string, valueToPropagate: any): ValidatorFn;
|
|
66
67
|
/**
|
|
67
68
|
* Same as compose, but keep only the first errors (instead of the union)
|
|
69
|
+
*
|
|
68
70
|
* @param validators
|
|
69
71
|
*/
|
|
70
72
|
first(validators: (ValidatorFn | null | undefined)[]): ValidationErrors | null;
|
|
@@ -91,6 +93,7 @@ export declare class SharedAsyncValidators {
|
|
|
91
93
|
private static DEBOUNCE_TIME_VALIDATOR_ID;
|
|
92
94
|
/**
|
|
93
95
|
* Add a debounce time to a validator.
|
|
96
|
+
*
|
|
94
97
|
* @param form
|
|
95
98
|
* @param validatorFn
|
|
96
99
|
* @param opts Use opts.stopSubject to stop the validator, before end
|
|
@@ -103,6 +106,7 @@ export declare class SharedAsyncValidators {
|
|
|
103
106
|
}): ObservableValidatorFn;
|
|
104
107
|
/**
|
|
105
108
|
* Add an async validator, that can be disposed by the returned subscription
|
|
109
|
+
*
|
|
106
110
|
* @param form
|
|
107
111
|
* @param validatorFn the validator or job to execute
|
|
108
112
|
* @param opts
|