@sumaris-net/ngx-components 2.4.144 → 2.4.146

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.
Files changed (138) hide show
  1. package/esm2020/src/app/core/account/account.page.mjs +1 -1
  2. package/esm2020/src/app/core/form/entity/editor.class.mjs +1 -1
  3. package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +4 -3
  4. package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +2 -2
  5. package/esm2020/src/app/core/form/form.class.mjs +3 -1
  6. package/esm2020/src/app/core/form/form.utils.mjs +4 -1
  7. package/esm2020/src/app/core/form/properties/property.validator.mjs +1 -1
  8. package/esm2020/src/app/core/form/properties/testing/properties-form.test.mjs +1 -1
  9. package/esm2020/src/app/core/form/text-popover/text-popover.component.mjs +1 -1
  10. package/esm2020/src/app/core/graphql/graphql.service.mjs +24 -23
  11. package/esm2020/src/app/core/graphql/graphql.utils.mjs +1 -1
  12. package/esm2020/src/app/core/install/install-upgrade-card.component.mjs +3 -2
  13. package/esm2020/src/app/core/menu/menu.component.mjs +3 -2
  14. package/esm2020/src/app/core/menu/menu.model.mjs +1 -1
  15. package/esm2020/src/app/core/menu/menu.service.mjs +1 -1
  16. package/esm2020/src/app/core/peer/select-peer.modal.mjs +3 -2
  17. package/esm2020/src/app/core/register/register.form.mjs +21 -19
  18. package/esm2020/src/app/core/services/account.service.mjs +3 -2
  19. package/esm2020/src/app/core/services/base-entity-service.class.mjs +1 -1
  20. package/esm2020/src/app/core/services/base-graphql-service.class.mjs +2 -4
  21. package/esm2020/src/app/core/services/config.service.mjs +22 -21
  22. package/esm2020/src/app/core/services/model/entity.decorators.mjs +1 -1
  23. package/esm2020/src/app/core/services/model/filter.model.mjs +3 -1
  24. package/esm2020/src/app/core/services/model/referential.model.mjs +3 -3
  25. package/esm2020/src/app/core/services/network.service.mjs +4 -3
  26. package/esm2020/src/app/core/services/network.utils.mjs +1 -1
  27. package/esm2020/src/app/core/services/platform.service.mjs +1 -1
  28. package/esm2020/src/app/core/settings/settings.page.mjs +1 -1
  29. package/esm2020/src/app/core/table/entities-async-table-datasource.class.mjs +1 -1
  30. package/esm2020/src/app/core/table/entities-table-datasource.class.mjs +1 -1
  31. package/esm2020/src/app/core/table/table.class.mjs +9 -5
  32. package/esm2020/src/app/core/table/testing/table.testing.mjs +1 -1
  33. package/esm2020/src/app/shared/audio/audio.mjs +5 -5
  34. package/esm2020/src/app/shared/capacitor/plugins.mjs +1 -1
  35. package/esm2020/src/app/shared/dates.mjs +3 -1
  36. package/esm2020/src/app/shared/debug/debug.component.mjs +1 -1
  37. package/esm2020/src/app/shared/directives/drag-and-drop.directive.mjs +1 -1
  38. package/esm2020/src/app/shared/directives/ng-var.directive.mjs +1 -1
  39. package/esm2020/src/app/shared/directives/resizable/resizable.directive.mjs +1 -1
  40. package/esm2020/src/app/shared/events.mjs +2 -1
  41. package/esm2020/src/app/shared/file/csv.utils.mjs +12 -14
  42. package/esm2020/src/app/shared/file/file.utils.mjs +2 -2
  43. package/esm2020/src/app/shared/file/images.utils.mjs +1 -1
  44. package/esm2020/src/app/shared/file/json.utils.mjs +1 -1
  45. package/esm2020/src/app/shared/file/uri.utils.mjs +2 -1
  46. package/esm2020/src/app/shared/form/field.component.mjs +2 -1
  47. package/esm2020/src/app/shared/forms.mjs +3 -1
  48. package/esm2020/src/app/shared/functions.mjs +7 -2
  49. package/esm2020/src/app/shared/geolocation/geolocation.utils.mjs +1 -1
  50. package/esm2020/src/app/shared/help/help.modal.mjs +1 -1
  51. package/esm2020/src/app/shared/image/gallery/image-gallery.component.mjs +4 -4
  52. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
  53. package/esm2020/src/app/shared/image/gallery/testing/gallery.testing.module.mjs +1 -1
  54. package/esm2020/src/app/shared/logging/logger.model.mjs +1 -1
  55. package/esm2020/src/app/shared/logging/logging-service.class.mjs +2 -2
  56. package/esm2020/src/app/shared/logging/logging-service.config.mjs +1 -1
  57. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.mjs +10 -10
  58. package/esm2020/src/app/shared/material/autocomplete/material.autocomplete.utils.mjs +4 -6
  59. package/esm2020/src/app/shared/material/badge/badge.test.mjs +1 -1
  60. package/esm2020/src/app/shared/material/chips/material.chips.mjs +9 -10
  61. package/esm2020/src/app/shared/material/chips/testing/chips.test.mjs +2 -2
  62. package/esm2020/src/app/shared/material/datetime/material.date.mjs +2 -2
  63. package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +2 -2
  64. package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +3 -3
  65. package/esm2020/src/app/shared/material/duration/material.duration.mjs +3 -3
  66. package/esm2020/src/app/shared/material/latlong/material.latlong.mjs +4 -3
  67. package/esm2020/src/app/shared/material/material.testing.module.mjs +2 -2
  68. package/esm2020/src/app/shared/modules.mjs +2 -1
  69. package/esm2020/src/app/shared/observables.mjs +3 -2
  70. package/esm2020/src/app/shared/pipes/colors.pipe.mjs +1 -1
  71. package/esm2020/src/app/shared/pipes/date-format.pipe.mjs +1 -1
  72. package/esm2020/src/app/shared/pipes/form.pipes.mjs +1 -1
  73. package/esm2020/src/app/shared/pipes/property.pipes.mjs +1 -1
  74. package/esm2020/src/app/shared/platforms.mjs +1 -1
  75. package/esm2020/src/app/shared/services/memory-entity-service.class.mjs +3 -1
  76. package/esm2020/src/app/shared/services/startable-observable-service.class.mjs +4 -4
  77. package/esm2020/src/app/shared/services/translate-context.service.mjs +11 -13
  78. package/esm2020/src/app/shared/services/validator-service.class.mjs +1 -1
  79. package/esm2020/src/app/shared/shared-routing.module.mjs +2 -1
  80. package/esm2020/src/app/shared/storage/storage-explorer.component.mjs +1 -1
  81. package/esm2020/src/app/shared/testing/observable.test.mjs +1 -1
  82. package/esm2020/src/app/shared/toast/toasts.mjs +1 -1
  83. package/esm2020/src/app/shared/toolbar/toolbar.mjs +1 -1
  84. package/esm2020/src/app/shared/upload-file/testing/upload-file.testing.mjs +2 -1
  85. package/esm2020/src/app/shared/upload-file/upload-file.component.mjs +1 -1
  86. package/esm2020/src/app/shared/validator/form-error-adapter.class.mjs +5 -5
  87. package/esm2020/src/app/shared/validator/validators.mjs +6 -2
  88. package/esm2020/src/app/social/job/progression/job-progression.service.mjs +1 -1
  89. package/esm2020/src/app/social/job/testing/job-progression.testing.mjs +1 -1
  90. package/esm2020/src/app/social/job/testing/job-progression.testing.service.mjs +3 -3
  91. package/esm2020/src/app/social/message/message.form.mjs +1 -1
  92. package/esm2020/src/app/social/message/message.modal.mjs +1 -1
  93. package/esm2020/src/app/social/message/message.model.mjs +1 -1
  94. package/esm2020/src/app/social/message/message.service.mjs +2 -2
  95. package/esm2020/src/app/social/social.module.mjs +2 -2
  96. package/esm2020/src/app/social/user-event/notification/user-event-notification.icon.mjs +1 -1
  97. package/esm2020/src/app/social/user-event/testing/user-event.testing.mjs +5 -5
  98. package/esm2020/src/app/social/user-event/testing/user-event.testing.model.mjs +1 -1
  99. package/esm2020/src/app/social/user-event/testing/user-event.testing.service.mjs +1 -1
  100. package/esm2020/src/app/social/user-event/user-event.model.mjs +1 -1
  101. package/esm2020/src/app/social/user-event/user-event.service.mjs +2 -2
  102. package/fesm2015/sumaris-net.ngx-components.mjs +159 -130
  103. package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
  104. package/fesm2020/sumaris-net.ngx-components.mjs +173 -146
  105. package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
  106. package/package.json +1 -1
  107. package/src/app/core/form/entity/entity-editor-modal.class.d.ts +1 -0
  108. package/src/app/core/form/form.class.d.ts +2 -0
  109. package/src/app/core/form/form.utils.d.ts +3 -0
  110. package/src/app/core/graphql/graphql.service.d.ts +23 -22
  111. package/src/app/core/graphql/graphql.utils.d.ts +2 -2
  112. package/src/app/core/install/install-upgrade-card.component.d.ts +3 -2
  113. package/src/app/core/menu/menu.component.d.ts +3 -2
  114. package/src/app/core/peer/select-peer.modal.d.ts +4 -3
  115. package/src/app/core/register/register.form.d.ts +3 -2
  116. package/src/app/core/services/account.service.d.ts +3 -2
  117. package/src/app/core/services/config.service.d.ts +5 -3
  118. package/src/app/core/services/model/filter.model.d.ts +2 -0
  119. package/src/app/core/services/network.service.d.ts +3 -2
  120. package/src/app/core/table/table.class.d.ts +4 -0
  121. package/src/app/shared/dates.d.ts +2 -0
  122. package/src/app/shared/events.d.ts +1 -0
  123. package/src/app/shared/file/uri.utils.d.ts +1 -0
  124. package/src/app/shared/form/field.component.d.ts +1 -0
  125. package/src/app/shared/forms.d.ts +2 -0
  126. package/src/app/shared/functions.d.ts +1 -0
  127. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +1 -0
  128. package/src/app/shared/material/latlong/material.latlong.d.ts +1 -0
  129. package/src/app/shared/modules.d.ts +1 -0
  130. package/src/app/shared/observables.d.ts +1 -0
  131. package/src/app/shared/services/memory-entity-service.class.d.ts +2 -0
  132. package/src/app/shared/services/startable-observable-service.class.d.ts +2 -2
  133. package/src/app/shared/services/validator-service.class.d.ts +1 -0
  134. package/src/app/shared/shared-routing.module.d.ts +1 -0
  135. package/src/app/shared/storage/storage-explorer.component.d.ts +2 -2
  136. package/src/app/shared/upload-file/testing/upload-file.testing.d.ts +1 -0
  137. package/src/app/shared/validator/validators.d.ts +4 -0
  138. package/src/app/social/user-event/user-event.model.d.ts +1 -2
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.144",
4
+ "version": "2.4.146",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -87,6 +87,7 @@ export declare abstract class AppEntityEditorModal<T extends Entity<T, ID>, ID =
87
87
  /**
88
88
  * Save the editor, by calling the dataService.save().
89
89
  * Ensure that editor if valid. If not, display an error
90
+ *
90
91
  * @param event
91
92
  * @param opts
92
93
  */
@@ -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 '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 { CryptoService } from '../services/crypto.service';
15
- import { PropertiesMap } from '../../shared/types';
16
- import { StartableService } from '../../shared/services/startable-service.class';
17
- import { StorageService } from '../../shared/storage/storage.service';
18
- import { DocumentNode } from 'graphql';
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 declare type ConnectionParams = {
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: any;
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: any, typePolicies: TypePolicies, fragments: DocumentNode[]);
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 declare type EmptyObject = {
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: any;
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: any);
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: any;
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: any, route: ActivatedRoute);
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: any;
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: any;
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: any, loggingService?: ILoggingService);
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: any;
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: any, settings?: LocalSettingsService);
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: any;
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: any);
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 Fragments: {
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: any;
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: any, defaultOptionsMap: FormFieldDefinitionMap);
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: any;
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: any, loggingService: ILoggingService, network: Network, translate: TranslateService, toastController: ToastController);
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
  */
@@ -1,6 +1,7 @@
1
1
  export declare class UriUtils {
2
2
  /**
3
3
  * Extract the filename, from an uri (using the last slash)
4
+ *
4
5
  * @param uri
5
6
  */
6
7
  static getFilename(uri: string): string;
@@ -55,6 +55,7 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
55
55
  getColorContrast(color: string): string | undefined;
56
56
  /**
57
57
  * Allow to reload values, if not detected
58
+ *
58
59
  * @param value
59
60
  */
60
61
  reloadItems(value?: any): void;
@@ -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
  */
@@ -49,6 +49,7 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
49
49
  setDisabledState(isDisabled: boolean): void;
50
50
  /**
51
51
  * Format value to display as string (no placeholder char, and show sign)
52
+ *
52
53
  * @param value
53
54
  * @param opts
54
55
  */
@@ -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 "rxjs";
2
- import { IStartableService } from "./startable-service.class";
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[];
@@ -7,6 +7,7 @@ export declare class CustomReuseStrategy extends IonicRouteStrategy {
7
7
  * Force to reuse the route when:
8
8
  * - path change from [/new] -> [/:id]
9
9
  * - or path change from [/new] -> [/new?id=:id]
10
+ *
10
11
  * @param future
11
12
  * @param curr
12
13
  */
@@ -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
- declare type StorageItemInfo = {
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
@@ -41,5 +41,4 @@ export interface IUserEventAction {
41
41
  /**
42
42
  * @deprecated use IUserEventAction instead
43
43
  */
44
- export interface UserEventAction extends IUserEventAction {
45
- }
44
+ export declare type UserEventAction = IUserEventAction;