@sumaris-net/ngx-components 2.12.26-rc1 → 2.12.27

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 (76) hide show
  1. package/doc/changelog.md +10 -0
  2. package/esm2022/src/app/admin/users/users.mjs +5 -5
  3. package/esm2022/src/app/core/account/account.page.mjs +12 -5
  4. package/esm2022/src/app/core/account/new-token.modal.mjs +15 -8
  5. package/esm2022/src/app/core/account/password/change-password.form.mjs +10 -5
  6. package/esm2022/src/app/core/account/token.table.mjs +24 -29
  7. package/esm2022/src/app/core/auth/auth.form.mjs +11 -5
  8. package/esm2022/src/app/core/form/array/testing/form-array.test.mjs +13 -5
  9. package/esm2022/src/app/core/form/entity/editor.class.mjs +20 -15
  10. package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +18 -10
  11. package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +21 -11
  12. package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +21 -5
  13. package/esm2022/src/app/core/form/form.class.mjs +13 -13
  14. package/esm2022/src/app/core/form/list/list.form.mjs +20 -10
  15. package/esm2022/src/app/core/form/properties/properties.form.mjs +26 -17
  16. package/esm2022/src/app/core/form/properties/properties.table.mjs +7 -5
  17. package/esm2022/src/app/core/form/username/username.form.mjs +10 -5
  18. package/esm2022/src/app/core/home/home.mjs +6 -5
  19. package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +15 -13
  20. package/esm2022/src/app/core/menu/testing/menu.testing.mjs +15 -13
  21. package/esm2022/src/app/core/settings/settings.page.mjs +35 -25
  22. package/esm2022/src/app/core/table/async-table.class.mjs +32 -16
  23. package/esm2022/src/app/core/table/column/actions-column.component.mjs +4 -4
  24. package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +4 -4
  25. package/esm2022/src/app/core/table/column/row-field.component.mjs +11 -6
  26. package/esm2022/src/app/core/table/memory-table.class.mjs +4 -4
  27. package/esm2022/src/app/core/table/table.class.mjs +38 -25
  28. package/esm2022/src/app/core/table/testing/table.testing.mjs +8 -7
  29. package/esm2022/src/app/core/table/testing/table2.testing.mjs +9 -10
  30. package/esm2022/src/app/shared/form/field.component.mjs +16 -14
  31. package/esm2022/src/app/shared/help/help.modal.mjs +25 -20
  32. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +18 -14
  33. package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +12 -5
  34. package/esm2022/src/app/shared/material/text/text-form.component.mjs +12 -5
  35. package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +13 -6
  36. package/esm2022/src/app/shared/pipes/selection.pipes.mjs +3 -3
  37. package/esm2022/src/app/social/message/message.form.mjs +10 -5
  38. package/fesm2022/sumaris-net.ngx-components.mjs +608 -441
  39. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  40. package/package.json +1 -1
  41. package/src/app/admin/users/users.d.ts +2 -2
  42. package/src/app/core/account/account.page.d.ts +4 -2
  43. package/src/app/core/account/new-token.modal.d.ts +3 -2
  44. package/src/app/core/account/password/change-password.form.d.ts +4 -2
  45. package/src/app/core/account/token.table.d.ts +2 -5
  46. package/src/app/core/auth/auth.form.d.ts +5 -3
  47. package/src/app/core/form/array/testing/form-array.test.d.ts +5 -2
  48. package/src/app/core/form/entity/editor.class.d.ts +8 -9
  49. package/src/app/core/form/entity/entity-editor-modal.class.d.ts +4 -3
  50. package/src/app/core/form/entity/entity-editor.class.d.ts +6 -4
  51. package/src/app/core/form/entity/tab-editor.class.d.ts +11 -2
  52. package/src/app/core/form/form.class.d.ts +3 -5
  53. package/src/app/core/form/list/list.form.d.ts +8 -3
  54. package/src/app/core/form/properties/properties.form.d.ts +7 -3
  55. package/src/app/core/form/properties/properties.table.d.ts +3 -2
  56. package/src/app/core/form/username/username.form.d.ts +5 -3
  57. package/src/app/core/menu/testing/menu-other.testing.d.ts +5 -1
  58. package/src/app/core/menu/testing/menu.testing.d.ts +5 -1
  59. package/src/app/core/settings/settings.page.d.ts +9 -3
  60. package/src/app/core/table/async-table.class.d.ts +14 -14
  61. package/src/app/core/table/column/row-field.component.d.ts +2 -2
  62. package/src/app/core/table/memory-table.class.d.ts +2 -2
  63. package/src/app/core/table/table.class.d.ts +14 -15
  64. package/src/app/core/table/testing/table.testing.d.ts +3 -3
  65. package/src/app/core/table/testing/table2.testing.d.ts +3 -3
  66. package/src/app/shared/form/field.component.d.ts +5 -5
  67. package/src/app/shared/help/help.modal.d.ts +8 -7
  68. package/src/app/shared/inputs.d.ts +1 -1
  69. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +7 -6
  70. package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +5 -2
  71. package/src/app/shared/material/text/text-form.component.d.ts +6 -3
  72. package/src/app/shared/named-filter/named-filter-selector.component.d.ts +5 -2
  73. package/src/app/shared/pipes/selection.pipes.d.ts +2 -2
  74. package/src/app/social/message/message.form.d.ts +4 -2
  75. package/src/assets/manifest.json +1 -1
  76. package/src/theme/_ngx-components.table.scss +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.12.26-rc1",
4
+ "version": "2.12.27",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { Injector, OnInit } from '@angular/core';
2
2
  import { Person } from '../../core/services/model/person.model';
3
3
  import { PersonService } from '../services/person.service';
4
4
  import { AccountService } from '../../core/services/account.service';
@@ -31,7 +31,7 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
31
31
  set showUsernameExtranetColumn(value: boolean);
32
32
  sticky: boolean;
33
33
  stickyEnd: boolean;
34
- constructor(formBuilder: UntypedFormBuilder, accountService: AccountService, validatorService: ValidatorService, configService: ConfigService, dataService: PersonService, messageService: MessageService, menuService: MenuService, environment: any);
34
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, validatorService: ValidatorService, configService: ConfigService, dataService: PersonService, messageService: MessageService, menuService: MenuService, environment: any);
35
35
  filterExpansionPanel: MatExpansionPanel;
36
36
  get firstUserColumn(): string;
37
37
  ngOnInit(): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { AccountService } from '../services/account.service';
4
4
  import { Account } from '../services/model/account.model';
@@ -23,6 +23,7 @@ export declare class AccountPage extends AppForm<Account> implements OnInit, OnD
23
23
  protected navController: NavController;
24
24
  protected validatorService: AccountValidatorService;
25
25
  protected configService: ConfigService;
26
+ protected cd: ChangeDetectorRef;
26
27
  tabGroup: MatTabGroup;
27
28
  propertiesTable: AppPropertiesTable;
28
29
  tokensTable: UserTokenTable;
@@ -51,7 +52,7 @@ export declare class AccountPage extends AppForm<Account> implements OnInit, OnD
51
52
  protected showSecurityDetails: boolean;
52
53
  protected showTechnicalDetails: boolean;
53
54
  protected showApiTokens: boolean;
54
- constructor(formBuilder: UntypedFormBuilder, accountService: AccountService, network: NetworkService, navController: NavController, validatorService: AccountValidatorService, configService: ConfigService, locales: LocaleConfig[]);
55
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, network: NetworkService, navController: NavController, validatorService: AccountValidatorService, configService: ConfigService, cd: ChangeDetectorRef, locales: LocaleConfig[]);
55
56
  ngOnInit(): void;
56
57
  ngOnDestroy(): void;
57
58
  onLogin(account: Account): void;
@@ -72,6 +73,7 @@ export declare class AccountPage extends AppForm<Account> implements OnInit, OnD
72
73
  cancel(): Promise<void>;
73
74
  close(_?: Event): Promise<boolean>;
74
75
  protected onConfigLoaded(config: Configuration): void;
76
+ protected markForCheck(): void;
75
77
  openChangePasswordPage(): void;
76
78
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountPage, never>;
77
79
  static ɵcmp: i0.ɵɵComponentDeclaration<AccountPage, "app-account-page", never, {}, {}, never, never, false, never>;
@@ -1,7 +1,7 @@
1
1
  import { AppEntityEditorModal, IEntityEditorModalOptions } from '../form/entity/entity-editor-modal.class';
2
2
  import { TokenScope, UserToken } from '../services/model/token.model';
3
3
  import { UntypedFormGroup } from '@angular/forms';
4
- import { OnInit } from '@angular/core';
4
+ import { Injector, OnInit } from '@angular/core';
5
5
  import { UserTokenValidatorService } from '../services/validator/user-token.validator';
6
6
  import { MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete.config';
7
7
  import { IAppForm } from '../form/form.utils';
@@ -13,6 +13,7 @@ export interface INewTokenModalOptions extends IEntityEditorModalOptions<UserTok
13
13
  existingNames: string[];
14
14
  }
15
15
  export declare class NewTokenModal extends AppEntityEditorModal<UserToken> implements OnInit, INewTokenModalOptions {
16
+ private injector;
16
17
  protected validator: UserTokenValidatorService;
17
18
  protected accountService: AccountService;
18
19
  tokenForm: UntypedFormGroup;
@@ -22,7 +23,7 @@ export declare class NewTokenModal extends AppEntityEditorModal<UserToken> imple
22
23
  tokenScopes: TokenScope[];
23
24
  existingNames: string[];
24
25
  private readonly platform;
25
- constructor(validator: UserTokenValidatorService, accountService: AccountService);
26
+ constructor(injector: Injector, validator: UserTokenValidatorService, accountService: AccountService);
26
27
  get valid(): boolean;
27
28
  get invalid(): boolean;
28
29
  ngOnInit(): void;
@@ -1,17 +1,19 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder } from '@angular/forms';
3
3
  import { AppForm } from '../../form/form.class';
4
4
  import { AuthData } from '../../services/account.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class ChangePasswordForm extends AppForm<AuthData> implements OnInit {
7
+ private cd;
7
8
  protected showPwd: boolean;
8
9
  protected showConfirmPwd: boolean;
9
10
  usernamePlaceholder: string;
10
11
  emailValidator: boolean;
11
12
  set username(value: string);
12
13
  get username(): string;
13
- constructor(formBuilder: UntypedFormBuilder);
14
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
14
15
  ngOnInit(): void;
16
+ protected markForCheck(): void;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ChangePasswordForm, never>;
16
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ChangePasswordForm, "app-change-password-form", never, { "usernamePlaceholder": { "alias": "usernamePlaceholder"; "required": false; }; "emailValidator": { "alias": "emailValidator"; "required": false; }; "username": { "alias": "username"; "required": false; }; }, {}, never, never, false, never>;
17
19
  }
@@ -1,5 +1,4 @@
1
- import { OnInit } from '@angular/core';
2
- import { UntypedFormBuilder } from '@angular/forms';
1
+ import { Injector, OnInit } from '@angular/core';
3
2
  import { ValidatorService } from '@e-is/ngx-material-table';
4
3
  import { TokenScope, UserToken } from '../services/model/token.model';
5
4
  import { AppInMemoryTable } from '../table/memory-table.class';
@@ -8,14 +7,12 @@ import { ConfigService } from '../services/config.service';
8
7
  import { Configuration } from '../services/model/config.model';
9
8
  import * as i0 from "@angular/core";
10
9
  export declare class UserTokenTable extends AppInMemoryTable<UserToken> implements OnInit {
11
- protected formBuilder: UntypedFormBuilder;
12
- protected validatorService: ValidatorService;
13
10
  protected configService: ConfigService;
14
11
  protected tokenScopes: TokenScope[];
15
12
  useSticky: boolean;
16
13
  protected showScopes: boolean;
17
14
  protected defaultScope: string;
18
- constructor(formBuilder: UntypedFormBuilder, validatorService: ValidatorService, configService: ConfigService, environment: Environment, tokenScopes: TokenScope[]);
15
+ constructor(injector: Injector, validatorService: ValidatorService, configService: ConfigService, environment: Environment, tokenScopes: TokenScope[]);
19
16
  ngOnInit(): void;
20
17
  get value(): UserToken[];
21
18
  set value(data: UserToken[]);
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder } from '@angular/forms';
3
3
  import { ModalController } from '@ionic/angular';
4
4
  import { AuthData } from '../services/account.service';
@@ -12,6 +12,7 @@ export declare class AppAuthForm extends AppForm<AuthData> implements OnInit {
12
12
  private configService;
13
13
  private modalCtrl;
14
14
  network: NetworkService;
15
+ private cd;
15
16
  protected environment: Environment;
16
17
  protected readonly mobile: boolean;
17
18
  protected canWorkOffline: boolean;
@@ -25,12 +26,13 @@ export declare class AppAuthForm extends AppForm<AuthData> implements OnInit {
25
26
  onlySelf?: boolean;
26
27
  emitEvent?: boolean;
27
28
  }): void;
28
- constructor(formBuilder: UntypedFormBuilder, settings: LocalSettingsService, configService: ConfigService, modalCtrl: ModalController, network: NetworkService, environment: Environment);
29
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, settings: LocalSettingsService, configService: ConfigService, modalCtrl: ModalController, network: NetworkService, cd: ChangeDetectorRef, environment: Environment);
29
30
  ngOnInit(): void;
30
31
  cancel(): Promise<void>;
31
32
  doSubmit(event?: Event): Promise<void>;
32
33
  register(): void;
33
34
  resetPassword(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<AppAuthForm, [null, null, null, null, null, { optional: true; }]>;
35
+ protected markForCheck(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppAuthForm, [null, null, null, null, null, null, null, { optional: true; }]>;
35
37
  static ɵcmp: i0.ɵɵComponentDeclaration<AppAuthForm, "app-auth-form", never, {}, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false, never>;
36
38
  }
@@ -1,4 +1,4 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
3
  import { PlatformService } from '../../../services/platform.service';
4
4
  import { AppForm } from '../../form.class';
@@ -7,17 +7,20 @@ import * as i0 from "@angular/core";
7
7
  export declare class ArrayFormTestPage extends AppForm<any> implements OnInit, OnDestroy {
8
8
  protected formBuilder: UntypedFormBuilder;
9
9
  protected platform: PlatformService;
10
+ protected injection: Injector;
11
+ protected cd: ChangeDetectorRef;
10
12
  private subscription;
11
13
  get defaultFormArray(): AppFormArray<any, any>;
12
14
  get notEmptyFormArray(): AppFormArray<any, any>;
13
15
  get nullValuesFormArray(): AppFormArray<any, any>;
14
16
  get duplicatedValuesFormArray(): AppFormArray<any, any>;
15
17
  get valueToAddControl(): UntypedFormControl;
16
- constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
18
+ constructor(formBuilder: UntypedFormBuilder, platform: PlatformService, injection: Injector, cd: ChangeDetectorRef);
17
19
  ngOnInit(): void;
18
20
  ngOnDestroy(): void;
19
21
  loadData(): Promise<void>;
20
22
  protected setFormArrayValue(formArray: AppFormArray<any, any>, values: string | string[]): void;
23
+ protected markForCheck(): void;
21
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFormTestPage, never>;
22
25
  static ɵcmp: i0.ɵɵComponentDeclaration<ArrayFormTestPage, "app-array-test", never, {}, {}, never, never, false, never>;
23
26
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Params, Router } from '@angular/router';
3
3
  import { AlertController, IonContent, NavController, ToastController } from '@ionic/angular';
4
4
  import { TranslateService } from '@ngx-translate/core';
@@ -14,13 +14,12 @@ export interface IAppEditor<T> extends IAppFormContainer<T>, CanSave, CanLeave {
14
14
  cancel(event?: Event): Promise<void>;
15
15
  }
16
16
  export declare abstract class AppEditor<T = any, ID = number, O = any> extends AppFormContainer<T> implements IAppEditor<T>, OnInit, OnDestroy, AfterViewInit {
17
- protected readonly route: ActivatedRoute;
18
- protected readonly router: Router;
19
- protected readonly navController: NavController;
20
- protected readonly alertCtrl: AlertController;
21
- protected readonly translate: TranslateService;
22
- protected readonly toastController: ToastController;
23
- protected readonly cd: ChangeDetectorRef;
17
+ protected route: ActivatedRoute;
18
+ protected router: Router;
19
+ protected navController: NavController;
20
+ protected alertCtrl: AlertController;
21
+ protected translate: TranslateService;
22
+ protected toastController: ToastController;
24
23
  readonly savingSubject: BehaviorSubject<boolean>;
25
24
  submitted: boolean;
26
25
  queryParams: Params;
@@ -33,7 +32,7 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> extends A
33
32
  formButtonsBar: FormButtonsBarToken | null;
34
33
  content: IonContent;
35
34
  abstract get isNewData(): boolean;
36
- protected constructor();
35
+ protected constructor(route: ActivatedRoute, router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService);
37
36
  ngOnInit(): void;
38
37
  ngAfterViewInit(): void;
39
38
  ngOnDestroy(): void;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { ModalController } from '@ionic/angular';
3
3
  import { BehaviorSubject, Subject } from 'rxjs';
4
4
  import { LocalSettingsService } from '../../services/local-settings.service';
@@ -29,9 +29,10 @@ export declare abstract class AppEntityEditorModal<T extends Entity<T, ID>, ID =
29
29
  protected _logPrefix: string;
30
30
  protected _isNew: boolean;
31
31
  protected readonly dateFormat: DateFormatService;
32
+ protected readonly cd: ChangeDetectorRef;
32
33
  protected readonly settings: LocalSettingsService;
33
34
  protected readonly modalCtrl: ModalController;
34
- protected readonly errorTranslator: FormErrorTranslator;
35
+ protected errorTranslator: FormErrorTranslator;
35
36
  readonly savingSubject: BehaviorSubject<boolean>;
36
37
  readonly titleSubject: BehaviorSubject<string>;
37
38
  data: T;
@@ -57,7 +58,7 @@ export declare abstract class AppEntityEditorModal<T extends Entity<T, ID>, ID =
57
58
  set disabled(value: boolean);
58
59
  get disabled(): boolean;
59
60
  get isOnFieldMode(): boolean;
60
- protected constructor(dataType: new () => T, options?: O);
61
+ protected constructor(injector: Injector, dataType: new () => T, options?: O);
61
62
  ngOnInit(): void;
62
63
  ngAfterViewInit(): void;
63
64
  ngOnDestroy(): void;
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { IonRouterOutlet } from '@ionic/angular';
3
3
  import { BehaviorSubject, Observable, Subject } from 'rxjs';
4
4
  import { AddToPageHistoryOptions, LocalSettingsService } from '../../services/local-settings.service';
@@ -9,6 +9,7 @@ import { AppTabEditor, AppTabEditorOptions, IAppTabEditor } from './tab-editor.c
9
9
  import { AppErrorWithDetails } from '../../services/errors';
10
10
  import { EntityServiceLoadOptions, IEntityService } from '../../../shared/services/entity-service.class';
11
11
  import { DateFormatService } from '../../../shared/pipes/date-format.pipe';
12
+ import { Environment } from '../../../../environments/environment.class';
12
13
  import { HistoryPageReference } from '../../services/model/history.model';
13
14
  import { WaitForOptions } from '../../../shared/observables';
14
15
  import { FormErrorTranslator } from '../../../shared/validator/form-error-adapter.class';
@@ -50,10 +51,11 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
50
51
  */
51
52
  protected get $title(): Subject<string>;
52
53
  protected readonly dateFormat: DateFormatService;
54
+ protected readonly cd: ChangeDetectorRef;
53
55
  protected readonly settings: LocalSettingsService;
54
- protected readonly environment: import("../../../../environments/environment.class").Environment;
56
+ protected readonly environment: Environment;
55
57
  protected readonly routerOutlet: IonRouterOutlet;
56
- protected readonly errorTranslator: FormErrorTranslator;
58
+ protected errorTranslator: FormErrorTranslator;
57
59
  private _usageMode;
58
60
  private readonly _enableListenChanges;
59
61
  private readonly _listenIntervalInSeconds;
@@ -71,7 +73,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
71
73
  get autoOpenNextTab(): boolean;
72
74
  set autoOpenNextTab(value: boolean);
73
75
  protected get pathIdAttribute(): string;
74
- protected constructor(dataType: new () => T, dataService?: S, options?: AppEditorOptions);
76
+ protected constructor(injector: Injector, dataType: new () => T, dataService?: S, options?: AppEditorOptions);
75
77
  ngOnInit(): void;
76
78
  ngAfterViewInit(): void;
77
79
  ngOnDestroy(): void;
@@ -1,5 +1,8 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ActivatedRoute, Router } from '@angular/router';
2
3
  import { MatTabChangeEvent, MatTabGroup } from '@angular/material/tabs';
4
+ import { AlertController, NavController } from '@ionic/angular';
5
+ import { TranslateService } from '@ngx-translate/core';
3
6
  import { HammerSwipeEvent } from '../../../shared/gesture/hammer.utils';
4
7
  import { AppEditor, IAppEditor } from './editor.class';
5
8
  import * as i0 from "@angular/core";
@@ -29,6 +32,11 @@ export declare class AppTabEditorOptions {
29
32
  enableSwipe?: boolean;
30
33
  }
31
34
  export declare abstract class AppTabEditor<T = any, ID = number, O = any> extends AppEditor<T, ID, O> implements IAppTabEditor<T>, OnInit, OnDestroy {
35
+ protected route: ActivatedRoute;
36
+ protected router: Router;
37
+ protected navController: NavController;
38
+ protected alertCtrl: AlertController;
39
+ protected translate: TranslateService;
32
40
  protected _selectedTabIndex: number;
33
41
  protected tabCount: number;
34
42
  protected enableSwipe: boolean;
@@ -38,7 +46,8 @@ export declare abstract class AppTabEditor<T = any, ID = number, O = any> extend
38
46
  get selectedTabIndex(): number;
39
47
  readonly selectedTabIndexChange: EventEmitter<number>;
40
48
  tabGroup: MatTabGroup;
41
- protected constructor(options?: AppTabEditorOptions);
49
+ protected constructor(route: ActivatedRoute, // Modal editor give 'null'
50
+ router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, options?: AppTabEditorOptions);
42
51
  ngOnInit(): void;
43
52
  ngOnDestroy(): void;
44
53
  setSelectedTabIndex(value: number, opts?: {
@@ -56,6 +65,6 @@ export declare abstract class AppTabEditor<T = any, ID = number, O = any> extend
56
65
  emitEvent?: boolean;
57
66
  }): Promise<void>;
58
67
  protected abstract getFirstInvalidTabIndex(): number;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<AppTabEditor<any, any, any>, [{ optional: true; }]>;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppTabEditor<any, any, any>, [{ optional: true; }, null, null, null, null, { optional: true; }]>;
60
69
  static ɵdir: i0.ɵɵDirectiveDeclaration<AppTabEditor<any, any, any>, never, never, { "queryTabIndexParamName": { "alias": "queryTabIndexParamName"; "required": false; }; "selectedTabIndex": { "alias": "selectedTabIndex"; "required": false; }; }, { "selectedTabIndexChange": "selectedTabIndexChange"; }, never, never, false, never>;
61
70
  }
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UntypedFormGroup } from '@angular/forms';
3
3
  import { BehaviorSubject, Subject, Subscription } from 'rxjs';
4
4
  import { IAppForm } from './form.utils';
@@ -12,11 +12,10 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
12
12
  private _subscription;
13
13
  protected _form: UntypedFormGroup;
14
14
  protected _enabled: boolean;
15
+ protected errorTranslator: FormErrorTranslator;
15
16
  protected i18nFieldPrefix: string;
16
17
  protected readonly translate: TranslateService;
17
18
  protected readonly settings: LocalSettingsService;
18
- protected readonly errorTranslator: FormErrorTranslator;
19
- protected readonly cd: ChangeDetectorRef;
20
19
  protected readonly destroySubject: Subject<void>;
21
20
  readonly readySubject: BehaviorSubject<boolean>;
22
21
  readonly loadingSubject: BehaviorSubject<boolean>;
@@ -61,7 +60,7 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
61
60
  get form(): UntypedFormGroup;
62
61
  onCancel: EventEmitter<any>;
63
62
  onSubmit: EventEmitter<any>;
64
- constructor(form?: UntypedFormGroup);
63
+ constructor(injector: Injector, form?: UntypedFormGroup);
65
64
  ngOnInit(): void;
66
65
  ngOnDestroy(): void;
67
66
  cancel(): Promise<void>;
@@ -142,7 +141,6 @@ export declare class AppForm<T> implements IAppForm<T>, OnInit, OnDestroy, IForm
142
141
  emitEvent?: boolean;
143
142
  }): void;
144
143
  protected markForCheck(): void;
145
- protected detectChanges(): void;
146
144
  private setLoading;
147
145
  static ɵfac: i0.ɵɵFactoryDeclaration<AppForm<any>, never>;
148
146
  static ɵdir: i0.ɵɵDirectiveDeclaration<AppForm<any>, never, never, { "debug": { "alias": "debug"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "errorTranslateOptions": { "alias": "errorTranslateOptions"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, { "onCancel": "onCancel"; "onSubmit": "onSubmit"; }, never, never, false, never>;
@@ -1,7 +1,8 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter, Injector, OnInit } from '@angular/core';
2
2
  import { AbstractControl, FormGroupDirective, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
3
  import { DateAdapter } from '@angular/material/core';
4
4
  import { Moment } from 'moment';
5
+ import { LocalSettingsService } from '../../services/local-settings.service';
5
6
  import { AppForm } from '../form.class';
6
7
  import { SelectionModel } from '@angular/cdk/collections';
7
8
  import { Observable } from 'rxjs';
@@ -20,8 +21,11 @@ export declare type AppListFormOptions<T> = FormArrayHelperOptions & {
20
21
  buttons?: ItemButton<T>[];
21
22
  };
22
23
  export declare class AppListForm<T = any> extends AppForm<T[]> implements OnInit {
24
+ protected injector: Injector;
23
25
  protected formBuilder: UntypedFormBuilder;
24
26
  protected dateAdapter: DateAdapter<Moment>;
27
+ protected settings: LocalSettingsService;
28
+ protected cd: ChangeDetectorRef;
25
29
  private formGroupDir;
26
30
  helper: FormArrayHelper<T>;
27
31
  selection: SelectionModel<T>;
@@ -50,7 +54,7 @@ export declare class AppListForm<T = any> extends AppForm<T[]> implements OnInit
50
54
  markAllAsTouched(opts?: {
51
55
  emitEvent?: boolean;
52
56
  }): void;
53
- constructor(formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, formGroupDir: FormGroupDirective);
57
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, settings: LocalSettingsService, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
54
58
  ngOnInit(): void;
55
59
  ngOnDestroy(): void;
56
60
  setValue(data: T[] | any): void;
@@ -71,6 +75,7 @@ export declare class AppListForm<T = any> extends AppForm<T[]> implements OnInit
71
75
  removeAt(index: number): void;
72
76
  displayWith(value: T): string;
73
77
  protected createControl(data?: any): AbstractControl;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<AppListForm<any>, [null, null, { optional: true; }]>;
78
+ protected markForCheck(): void;
79
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppListForm<any>, [null, null, null, null, null, { optional: true; }]>;
75
80
  static ɵcmp: i0.ɵɵComponentDeclaration<AppListForm<any>, "app-list-form", never, { "formArrayName": { "alias": "formArrayName"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "options": { "alias": "options"; "required": false; }; "displayWithFn": { "alias": "displayWith"; "required": false; }; "equalsFn": { "alias": "equals"; "required": false; }; }, { "onNewItem": "onNewItem"; "selectionChanges": "selectionChanges"; }, never, never, false, never>;
76
81
  }
@@ -1,8 +1,9 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { FormGroupDirective, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
3
3
  import { FormFieldDefinition, FormFieldDefinitionMap } from '../../../shared/form/field.model';
4
4
  import { DateAdapter, ThemePalette } from '@angular/material/core';
5
5
  import { Moment } from 'moment';
6
+ import { LocalSettingsService } from '../../services/local-settings.service';
6
7
  import { AppForm } from '../form.class';
7
8
  import { Property } from '../../../shared/types';
8
9
  import { PropertyValidator } from './property.validator';
@@ -12,6 +13,8 @@ import * as i0 from "@angular/core";
12
13
  export declare class AppPropertiesForm<T = Property> extends AppForm<T[]> implements OnInit {
13
14
  protected formBuilder: UntypedFormBuilder;
14
15
  protected dateAdapter: DateAdapter<Moment>;
16
+ protected settings: LocalSettingsService;
17
+ protected cd: ChangeDetectorRef;
15
18
  protected validator: PropertyValidator;
16
19
  private formGroupDir;
17
20
  definitionsMapByKey: FormFieldDefinitionMap;
@@ -28,13 +31,14 @@ export declare class AppPropertiesForm<T = Property> extends AppForm<T[]> implem
28
31
  get value(): T[];
29
32
  get length(): number;
30
33
  get fieldForms(): UntypedFormGroup[];
31
- constructor(formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, validator: PropertyValidator, formGroupDir: FormGroupDirective);
34
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, dateAdapter: DateAdapter<Moment>, settings: LocalSettingsService, cd: ChangeDetectorRef, validator: PropertyValidator, formGroupDir: FormGroupDirective);
32
35
  ngOnInit(): void;
33
36
  getDefinitionAt(index: number): FormFieldDefinition;
34
37
  updateDefinitionAt(index: number): FormFieldDefinition;
35
38
  removeAt(index: number): void;
36
39
  isUnknownField(fieldForm: UntypedFormGroup): boolean;
37
40
  setValue(data: T[] | any): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any>, [null, null, null, { optional: true; }]>;
41
+ protected markForCheck(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppPropertiesForm<any>, [null, null, null, null, null, null, { optional: true; }]>;
39
43
  static ɵcmp: i0.ɵɵComponentDeclaration<AppPropertiesForm<any>, "app-properties-form", never, { "formArrayName": { "alias": "formArrayName"; "required": false; }; "formArray": { "alias": "formArray"; "required": false; }; "options": { "alias": "options"; "required": false; }; "definitions": { "alias": "definitions"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; }, {}, never, never, false, never>;
40
44
  }
@@ -1,5 +1,5 @@
1
1
  import { AppInMemoryTable } from '../../table/memory-table.class';
2
- import { OnInit } from '@angular/core';
2
+ import { Injector, OnInit } from '@angular/core';
3
3
  import { Entity, EntityAsObjectOptions } from '../../services/model/entity.model';
4
4
  import { AppValidatorService } from '../../services/validator/base.validator.class';
5
5
  import { AbstractControl, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
@@ -39,6 +39,7 @@ export declare class PropertyEntityValidator extends AppValidatorService<Propert
39
39
  static ɵdir: i0.ɵɵDirectiveDeclaration<PropertyEntityValidator, never, never, {}, {}, never, never, false, never>;
40
40
  }
41
41
  export declare class AppPropertiesTable extends AppInMemoryTable<PropertyEntity, PropertyEntityFilter, string> implements OnInit {
42
+ protected injector: Injector;
42
43
  protected formBuilder: UntypedFormBuilder;
43
44
  protected validatorService: PropertyEntityValidator;
44
45
  definitions: FormFieldDefinition[];
@@ -49,7 +50,7 @@ export declare class AppPropertiesTable extends AppInMemoryTable<PropertyEntity,
49
50
  filterForm: UntypedFormGroup;
50
51
  filterCriteriaCount: number;
51
52
  filterPanelFloating: boolean;
52
- constructor(formBuilder: UntypedFormBuilder, validatorService: PropertyEntityValidator, environment: Environment);
53
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, validatorService: PropertyEntityValidator, environment: Environment);
53
54
  ngOnInit(): void;
54
55
  get value(): PropertyEntity[];
55
56
  set value(data: PropertyEntity[]);
@@ -1,15 +1,17 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector } from '@angular/core';
2
2
  import { UntypedFormBuilder } from '@angular/forms';
3
3
  import { AppForm } from '../form.class';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class AppUsernameForm extends AppForm<{
6
6
  username: string;
7
- }> implements OnInit {
7
+ }> {
8
+ protected cd: ChangeDetectorRef;
8
9
  mobile: boolean;
9
10
  usernamePlaceHolder: string;
10
11
  emailValidator: boolean;
11
- constructor(formBuilder: UntypedFormBuilder);
12
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
12
13
  ngOnInit(): void;
14
+ markForCheck(): void;
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<AppUsernameForm, never>;
14
16
  static ɵcmp: i0.ɵɵComponentDeclaration<AppUsernameForm, "app-username-form", never, { "mobile": { "alias": "mobile"; "required": false; }; "usernamePlaceHolder": { "alias": "usernamePlaceHolder"; "required": false; }; "emailValidator": { "alias": "emailValidator"; "required": false; }; }, {}, never, never, false, never>;
15
17
  static ngAcceptInputType_mobile: unknown;
@@ -1,8 +1,12 @@
1
+ import { ActivatedRoute, Router } from '@angular/router';
2
+ import { AlertController, NavController } from '@ionic/angular';
3
+ import { TranslateService } from '@ngx-translate/core';
1
4
  import { MenuService } from '../menu.service';
2
5
  import { MenuTestingPage } from './menu.testing';
3
6
  import * as i0 from "@angular/core";
4
7
  export declare class OtherMenuTestingPage extends MenuTestingPage {
5
- constructor(menuService: MenuService);
8
+ constructor(route: ActivatedRoute, // Modal editor give 'null'
9
+ router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
6
10
  initSubMenu(): Promise<void>;
7
11
  protected getDefaultTitle(): string;
8
12
  protected computeTitle(): Promise<string>;
@@ -1,5 +1,8 @@
1
1
  import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MenuService } from '../menu.service';
3
+ import { ActivatedRoute, Router } from '@angular/router';
4
+ import { AlertController, NavController } from '@ionic/angular';
5
+ import { TranslateService } from '@ngx-translate/core';
3
6
  import { Subject } from 'rxjs';
4
7
  import { MatTabGroup } from '@angular/material/tabs';
5
8
  import { AppTabEditor } from '../../form/entity/tab-editor.class';
@@ -23,7 +26,8 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
23
26
  subTabGroup: MatTabGroup;
24
27
  protected set title(value: string);
25
28
  protected set secondTabTitle(value: string);
26
- constructor(menuService: MenuService);
29
+ constructor(route: ActivatedRoute, // Modal editor give 'null'
30
+ router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
27
31
  ngOnInit(): void;
28
32
  ngAfterViewInit(): void;
29
33
  ngOnDestroy(): void;
@@ -1,12 +1,14 @@
1
- import { InjectionToken, OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, InjectionToken, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AccountService } from '../services/account.service';
3
3
  import { LocaleConfig, LocalSettings, UsageMode } from '../services/model/settings.model';
4
4
  import { UntypedFormArray, UntypedFormBuilder } from '@angular/forms';
5
5
  import { AppForm } from '../form/form.class';
6
6
  import { CanLeave } from '../form/form.utils';
7
+ import { TranslateService } from '@ngx-translate/core';
7
8
  import { LocalSettingsValidatorService } from '../services/validator/local-settings.validator';
8
9
  import { PlatformService } from '../services/platform.service';
9
10
  import { NetworkService } from '../services/network.service';
11
+ import { LocalSettingsService } from '../services/local-settings.service';
10
12
  import { FormFieldDefinition, FormFieldDefinitionMap } from '../../shared/form/field.model';
11
13
  import { AlertController, NavController } from '@ionic/angular';
12
14
  import { Property } from '../../shared/types';
@@ -20,8 +22,11 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
20
22
  protected navController: NavController;
21
23
  protected validatorService: LocalSettingsValidatorService;
22
24
  protected alertCtrl: AlertController;
25
+ protected translate: TranslateService;
23
26
  protected formBuilder: UntypedFormBuilder;
24
27
  protected accountService: AccountService;
28
+ protected settings: LocalSettingsService;
29
+ protected cd: ChangeDetectorRef;
25
30
  network: NetworkService;
26
31
  locales: LocaleConfig[];
27
32
  private data;
@@ -41,7 +46,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
41
46
  get propertiesForm(): UntypedFormArray;
42
47
  get darkMode(): boolean;
43
48
  set darkMode(value: boolean);
44
- constructor(platform: PlatformService, navController: NavController, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, formBuilder: UntypedFormBuilder, accountService: AccountService, network: NetworkService, locales: LocaleConfig[], menuItems?: IMenuItem[]);
49
+ constructor(injector: Injector, platform: PlatformService, navController: NavController, validatorService: LocalSettingsValidatorService, alertCtrl: AlertController, translate: TranslateService, formBuilder: UntypedFormBuilder, accountService: AccountService, settings: LocalSettingsService, cd: ChangeDetectorRef, network: NetworkService, locales: LocaleConfig[], menuItems?: IMenuItem[]);
45
50
  ngOnInit(): Promise<void>;
46
51
  getPropertyDefinition(index: number): FormFieldDefinition;
47
52
  updatePropertyDefinition(index: number): FormFieldDefinition;
@@ -59,6 +64,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
59
64
  executeAction(event: Event, item: IMenuItem): Promise<void>;
60
65
  getValue(): Promise<LocalSettings>;
61
66
  protected toggleDarkMode(enable?: boolean): Promise<void>;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, [null, null, null, null, null, null, null, null, { optional: true; }]>;
67
+ protected markForCheck(): void;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsPage, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
63
69
  static ɵcmp: i0.ɵɵComponentDeclaration<SettingsPage, "page-settings", never, {}, {}, never, never, false, never>;
64
70
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MatPaginator } from '@angular/material/paginator';
3
3
  import { MatSort, MatSortable, SortDirection } from '@angular/material/sort';
4
4
  import { MatTable } from '@angular/material/table';
@@ -31,22 +31,22 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
31
31
  private _subscription;
32
32
  private _dataSourceLoadingSubscription;
33
33
  private _cellValueChangesDefs;
34
- protected readonly route: ActivatedRoute;
35
- protected readonly router: Router;
36
- protected readonly navController: NavController;
37
- protected readonly location: Location;
38
- protected readonly settings: LocalSettingsService;
39
- protected readonly translate: TranslateService;
40
- protected readonly modalCtrl: ModalController;
41
- protected readonly alertCtrl: AlertController;
42
- protected readonly toastController: ToastController;
43
- protected readonly formErrorAdapter: FormErrorTranslator;
44
- protected readonly cd: ChangeDetectorRef;
45
- protected readonly destroySubject: Subject<void>;
46
34
  protected _enabled: boolean;
47
35
  protected _autocompleteConfigHolder: MatAutocompleteConfigHolder;
48
36
  protected allowRowDetail: boolean;
37
+ protected readonly cd: ChangeDetectorRef;
38
+ protected route: ActivatedRoute;
39
+ protected router: Router;
40
+ protected navController: NavController;
41
+ protected location: Location;
42
+ protected settings: LocalSettingsService;
43
+ protected translate: TranslateService;
44
+ protected modalCtrl: ModalController;
45
+ protected alertCtrl: AlertController;
46
+ protected toastController: ToastController;
49
47
  protected previouslyEditedRowId: number;
48
+ protected formErrorAdapter: FormErrorTranslator;
49
+ protected readonly destroySubject: Subject<void>;
50
50
  excludesColumns: string[];
51
51
  displayedColumns: string[];
52
52
  totalRowCount: number | null;
@@ -191,7 +191,7 @@ export declare abstract class AppAsyncTable<T extends IEntity<T, ID>, F = any, I
191
191
  table: MatTable<T>;
192
192
  childPaginator: MatPaginator;
193
193
  sort: MatSort;
194
- protected constructor(columns: string[], _dataSource?: EntitiesAsyncTableDataSource<T, F, ID>, _filter?: F);
194
+ protected constructor(injector: Injector, columns: string[], _dataSource?: EntitiesAsyncTableDataSource<T, F, ID>, _filter?: F);
195
195
  ngOnInit(): void;
196
196
  ngAfterViewInit(): void;
197
197
  ngOnDestroy(): void;