@sumaris-net/ngx-components 2.12.26-alpha2 → 2.12.26

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 (167) hide show
  1. package/doc/changelog.md +6 -0
  2. package/esm2022/src/app/admin/services/validator/person.validator.mjs +11 -8
  3. package/esm2022/src/app/admin/users/users.mjs +11 -5
  4. package/esm2022/src/app/core/account/account.page.mjs +12 -5
  5. package/esm2022/src/app/core/account/new-token.modal.mjs +15 -8
  6. package/esm2022/src/app/core/account/password/change-password.form.mjs +10 -5
  7. package/esm2022/src/app/core/account/password/change-password.page.mjs +9 -4
  8. package/esm2022/src/app/core/account/token.table.mjs +12 -5
  9. package/esm2022/src/app/core/auth/auth.form.mjs +11 -5
  10. package/esm2022/src/app/core/auth/auth.modal.mjs +17 -14
  11. package/esm2022/src/app/core/auth/reset-password.modal.mjs +20 -16
  12. package/esm2022/src/app/core/form/array/testing/form-array.test.mjs +13 -5
  13. package/esm2022/src/app/core/form/entity/editor.class.mjs +20 -14
  14. package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +21 -10
  15. package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +24 -11
  16. package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +21 -5
  17. package/esm2022/src/app/core/form/form-container.class.mjs +5 -4
  18. package/esm2022/src/app/core/form/form.class.mjs +13 -13
  19. package/esm2022/src/app/core/form/list/list.form.mjs +20 -10
  20. package/esm2022/src/app/core/form/properties/properties.form.mjs +26 -17
  21. package/esm2022/src/app/core/form/properties/properties.table.mjs +14 -10
  22. package/esm2022/src/app/core/form/properties/property.validator.mjs +8 -5
  23. package/esm2022/src/app/core/form/username/username.form.mjs +10 -5
  24. package/esm2022/src/app/core/home/home.mjs +63 -40
  25. package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +34 -21
  26. package/esm2022/src/app/core/menu/menu.component.mjs +53 -33
  27. package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +15 -13
  28. package/esm2022/src/app/core/menu/testing/menu.testing.mjs +15 -13
  29. package/esm2022/src/app/core/peer/select-peer.modal.mjs +40 -26
  30. package/esm2022/src/app/core/services/testing/referential.validator.mjs +8 -5
  31. package/esm2022/src/app/core/services/validator/account.validator.mjs +18 -8
  32. package/esm2022/src/app/core/services/validator/base.validator.class.mjs +11 -9
  33. package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +10 -8
  34. package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +6 -5
  35. package/esm2022/src/app/core/services/validator/user-token.validator.mjs +6 -5
  36. package/esm2022/src/app/core/settings/settings.page.mjs +35 -25
  37. package/esm2022/src/app/core/table/async-table.class.mjs +32 -16
  38. package/esm2022/src/app/core/table/column/actions-column.component.mjs +9 -8
  39. package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +9 -8
  40. package/esm2022/src/app/core/table/column/row-field.component.mjs +11 -6
  41. package/esm2022/src/app/core/table/memory-table.class.mjs +4 -4
  42. package/esm2022/src/app/core/table/table.class.mjs +40 -27
  43. package/esm2022/src/app/core/table/table.pipes.mjs +21 -15
  44. package/esm2022/src/app/core/table/testing/table-validator.service.mjs +8 -5
  45. package/esm2022/src/app/core/table/testing/table.testing.mjs +11 -6
  46. package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +8 -5
  47. package/esm2022/src/app/core/table/testing/table2.testing.mjs +13 -9
  48. package/esm2022/src/app/shared/form/field.component.mjs +16 -14
  49. package/esm2022/src/app/shared/help/help.modal.mjs +25 -20
  50. package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +40 -31
  51. package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +18 -14
  52. package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +14 -13
  53. package/esm2022/src/app/shared/material/badge/badge.test.mjs +8 -6
  54. package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +21 -14
  55. package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +12 -5
  56. package/esm2022/src/app/shared/material/chips/material.chips.mjs +23 -18
  57. package/esm2022/src/app/shared/material/datetime/material.date.mjs +41 -33
  58. package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +42 -36
  59. package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +41 -33
  60. package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +13 -11
  61. package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +14 -12
  62. package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +14 -12
  63. package/esm2022/src/app/shared/material/duration/material.duration.mjs +29 -18
  64. package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +14 -12
  65. package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +32 -25
  66. package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +20 -15
  67. package/esm2022/src/app/shared/material/testing/common.test.mjs +14 -12
  68. package/esm2022/src/app/shared/material/text/text-form.component.mjs +12 -5
  69. package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +13 -6
  70. package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +12 -13
  71. package/esm2022/src/app/shared/pipes/form.pipes.mjs +26 -18
  72. package/esm2022/src/app/shared/pipes/selection.pipes.mjs +35 -33
  73. package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +53 -28
  74. package/esm2022/src/app/shared/toolbar/toolbar.mjs +30 -20
  75. package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +16 -14
  76. package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +20 -18
  77. package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +26 -18
  78. package/esm2022/src/app/social/message/message.form.mjs +10 -5
  79. package/esm2022/src/app/social/message/message.modal.mjs +19 -16
  80. package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +27 -18
  81. package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +40 -23
  82. package/fesm2022/sumaris-net.ngx-components.mjs +1250 -756
  83. package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
  84. package/package.json +1 -1
  85. package/src/app/admin/services/validator/person.validator.d.ts +3 -2
  86. package/src/app/admin/users/users.d.ts +4 -2
  87. package/src/app/core/account/account.page.d.ts +4 -2
  88. package/src/app/core/account/new-token.modal.d.ts +3 -2
  89. package/src/app/core/account/password/change-password.form.d.ts +4 -2
  90. package/src/app/core/account/password/change-password.page.d.ts +4 -2
  91. package/src/app/core/account/token.table.d.ts +6 -3
  92. package/src/app/core/auth/auth.form.d.ts +5 -3
  93. package/src/app/core/auth/auth.modal.d.ts +7 -5
  94. package/src/app/core/auth/reset-password.modal.d.ts +6 -6
  95. package/src/app/core/form/array/testing/form-array.test.d.ts +5 -2
  96. package/src/app/core/form/entity/editor.class.d.ts +7 -7
  97. package/src/app/core/form/entity/entity-editor-modal.class.d.ts +5 -3
  98. package/src/app/core/form/entity/entity-editor.class.d.ts +7 -4
  99. package/src/app/core/form/entity/tab-editor.class.d.ts +11 -2
  100. package/src/app/core/form/form-container.class.d.ts +1 -2
  101. package/src/app/core/form/form.class.d.ts +3 -5
  102. package/src/app/core/form/list/list.form.d.ts +8 -3
  103. package/src/app/core/form/properties/properties.form.d.ts +7 -3
  104. package/src/app/core/form/properties/properties.table.d.ts +5 -3
  105. package/src/app/core/form/properties/property.validator.d.ts +3 -1
  106. package/src/app/core/form/username/username.form.d.ts +5 -3
  107. package/src/app/core/home/home.d.ts +22 -16
  108. package/src/app/core/install/install-upgrade-card.component.d.ts +15 -10
  109. package/src/app/core/menu/menu.component.d.ts +17 -13
  110. package/src/app/core/menu/testing/menu-other.testing.d.ts +5 -1
  111. package/src/app/core/menu/testing/menu.testing.d.ts +5 -1
  112. package/src/app/core/peer/select-peer.modal.d.ts +15 -10
  113. package/src/app/core/services/testing/referential.validator.d.ts +3 -2
  114. package/src/app/core/services/validator/account.validator.d.ts +8 -2
  115. package/src/app/core/services/validator/base.validator.class.d.ts +3 -3
  116. package/src/app/core/services/validator/local-settings.validator.d.ts +4 -3
  117. package/src/app/core/services/validator/user-settings.validator.d.ts +2 -2
  118. package/src/app/core/services/validator/user-token.validator.d.ts +2 -2
  119. package/src/app/core/settings/settings.page.d.ts +9 -3
  120. package/src/app/core/table/async-table.class.d.ts +14 -14
  121. package/src/app/core/table/column/actions-column.component.d.ts +3 -3
  122. package/src/app/core/table/column/nav-actions-column.component.d.ts +4 -4
  123. package/src/app/core/table/column/row-field.component.d.ts +2 -2
  124. package/src/app/core/table/memory-table.class.d.ts +2 -2
  125. package/src/app/core/table/table.class.d.ts +14 -15
  126. package/src/app/core/table/table.pipes.d.ts +5 -4
  127. package/src/app/core/table/testing/table-validator.service.d.ts +3 -2
  128. package/src/app/core/table/testing/table.testing.d.ts +4 -2
  129. package/src/app/core/table/testing/table2-validator.service.d.ts +3 -1
  130. package/src/app/core/table/testing/table2.testing.d.ts +4 -2
  131. package/src/app/shared/form/field.component.d.ts +5 -5
  132. package/src/app/shared/help/help.modal.d.ts +8 -7
  133. package/src/app/shared/image/gallery/image-gallery.component.d.ts +8 -8
  134. package/src/app/shared/inputs.d.ts +1 -1
  135. package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +7 -6
  136. package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +4 -4
  137. package/src/app/shared/material/badge/badge.test.d.ts +3 -2
  138. package/src/app/shared/material/boolean/material.boolean.d.ts +6 -5
  139. package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +5 -2
  140. package/src/app/shared/material/chips/material.chips.d.ts +5 -5
  141. package/src/app/shared/material/datetime/material.date.d.ts +11 -10
  142. package/src/app/shared/material/datetime/material.dateshort.d.ts +11 -10
  143. package/src/app/shared/material/datetime/material.datetime.d.ts +11 -10
  144. package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +4 -4
  145. package/src/app/shared/material/datetime/testing/mat-date.test.d.ts +3 -3
  146. package/src/app/shared/material/datetime/testing/mat-dateshort.test.d.ts +3 -3
  147. package/src/app/shared/material/duration/material.duration.d.ts +12 -6
  148. package/src/app/shared/material/duration/testing/mat-duration.test.d.ts +3 -3
  149. package/src/app/shared/material/latlong/material.latlong.d.ts +9 -9
  150. package/src/app/shared/material/swipe/material.swipe.d.ts +5 -5
  151. package/src/app/shared/material/testing/common.test.d.ts +4 -4
  152. package/src/app/shared/material/text/text-form.component.d.ts +6 -3
  153. package/src/app/shared/named-filter/named-filter-selector.component.d.ts +5 -2
  154. package/src/app/shared/named-filter/testing/named-filter-selector.testing.d.ts +3 -4
  155. package/src/app/shared/pipes/form.pipes.d.ts +7 -6
  156. package/src/app/shared/pipes/selection.pipes.d.ts +10 -10
  157. package/src/app/shared/storage/storage-explorer.component.d.ts +15 -12
  158. package/src/app/shared/toolbar/toolbar.d.ts +12 -10
  159. package/src/app/shared/upload-file/upload-file-popover.component.d.ts +4 -4
  160. package/src/app/shared/upload-file/upload-file.component.d.ts +3 -3
  161. package/src/app/social/job/progression/job-progression.icon.d.ts +6 -5
  162. package/src/app/social/message/message.form.d.ts +4 -2
  163. package/src/app/social/message/message.modal.d.ts +5 -5
  164. package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +8 -7
  165. package/src/app/social/user-event/notification/user-event-notification.list.d.ts +9 -8
  166. package/src/assets/manifest.json +1 -1
  167. 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-alpha2",
4
+ "version": "2.12.26",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,8 +1,9 @@
1
- import { ValidatorFn } from '@angular/forms';
1
+ import { UntypedFormBuilder, ValidatorFn } from '@angular/forms';
2
2
  import { Person } from '../../../core/services/model/person.model';
3
3
  import { AccountService } from '../../../core/services/account.service';
4
4
  import { FormFieldDefinition } from '../../../shared/form/field.model';
5
5
  import { AppValidatorService } from '../../../core/services/validator/base.validator.class';
6
+ import { TranslateService } from '@ngx-translate/core';
6
7
  import * as i0 from "@angular/core";
7
8
  export interface PersonValidatorOptions {
8
9
  withAvatar?: boolean;
@@ -11,7 +12,7 @@ export interface PersonValidatorOptions {
11
12
  }
12
13
  export declare class PersonValidatorService<T extends Person = Person, O extends PersonValidatorOptions = PersonValidatorOptions> extends AppValidatorService<T> {
13
14
  protected accountService: AccountService;
14
- constructor();
15
+ constructor(formBuilder: UntypedFormBuilder, translate: TranslateService, accountService: AccountService);
15
16
  getFormGroupConfig(data?: T, opts?: O): {
16
17
  [key: string]: any;
17
18
  };
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, 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';
@@ -19,6 +19,7 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
19
19
  protected dataService: PersonService;
20
20
  protected messageService: MessageService;
21
21
  protected menuService: MenuService;
22
+ protected cd: ChangeDetectorRef;
22
23
  readonly canEdit: boolean;
23
24
  readonly canSendMessage: boolean;
24
25
  readonly filterForm: UntypedFormGroup;
@@ -31,7 +32,7 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
31
32
  set showUsernameExtranetColumn(value: boolean);
32
33
  sticky: boolean;
33
34
  stickyEnd: boolean;
34
- constructor(formBuilder: UntypedFormBuilder, accountService: AccountService, validatorService: ValidatorService, configService: ConfigService, dataService: PersonService, messageService: MessageService, menuService: MenuService, environment: any);
35
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, validatorService: ValidatorService, configService: ConfigService, dataService: PersonService, messageService: MessageService, menuService: MenuService, cd: ChangeDetectorRef, environment: any);
35
36
  filterExpansionPanel: MatExpansionPanel;
36
37
  get firstUserColumn(): string;
37
38
  ngOnInit(): Promise<void>;
@@ -40,6 +41,7 @@ export declare class UsersPage extends AppTable<Person, PersonFilter> implements
40
41
  protected restoreFilterOrLoad(): Promise<void>;
41
42
  clearControlValue(event: Event, formControl: AbstractControl): boolean;
42
43
  openComposeMessageModal(event?: Event): Promise<any>;
44
+ protected markForCheck(): void;
43
45
  static ɵfac: i0.ɵɵFactoryDeclaration<UsersPage, never>;
44
46
  static ɵcmp: i0.ɵɵComponentDeclaration<UsersPage, "app-users-table", never, { "sticky": { "alias": "sticky"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; }, {}, never, never, false, never>;
45
47
  }
@@ -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,4 +1,4 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AccountService } from '../../services/account.service';
3
3
  import { ActivatedRoute } from '@angular/router';
4
4
  import { ConfigService } from '../../services/config.service';
@@ -15,6 +15,7 @@ export declare class AppChangePasswordPage extends AppFormContainer implements O
15
15
  protected translate: TranslateService;
16
16
  protected navController: NavController;
17
17
  protected activatedRoute: ActivatedRoute;
18
+ protected cd: ChangeDetectorRef;
18
19
  protected token: string;
19
20
  protected username: string;
20
21
  protected contentStyle: {};
@@ -23,12 +24,13 @@ export declare class AppChangePasswordPage extends AppFormContainer implements O
23
24
  protected usernamePlaceholder: string;
24
25
  protected emailValidator: boolean;
25
26
  private form;
26
- constructor(configService: ConfigService, accountService: AccountService, toastController: ToastController, translate: TranslateService, navController: NavController, activatedRoute: ActivatedRoute);
27
+ constructor(configService: ConfigService, accountService: AccountService, toastController: ToastController, translate: TranslateService, navController: NavController, activatedRoute: ActivatedRoute, cd: ChangeDetectorRef);
27
28
  ngOnInit(): Promise<void>;
28
29
  ngOnDestroy(): void;
29
30
  onConfigReady(config: Configuration): Promise<void>;
30
31
  doSubmit(event?: Event): Promise<void>;
31
32
  protected showToast(opts: ShowToastOptions): Promise<void>;
33
+ protected markForCheck(): void;
32
34
  static ɵfac: i0.ɵɵFactoryDeclaration<AppChangePasswordPage, never>;
33
35
  static ɵcmp: i0.ɵɵComponentDeclaration<AppChangePasswordPage, "app-change-password-page", never, {}, {}, never, never, false, never>;
34
36
  }
@@ -1,4 +1,4 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, Injector, OnInit } from '@angular/core';
2
2
  import { UntypedFormBuilder } from '@angular/forms';
3
3
  import { ValidatorService } from '@e-is/ngx-material-table';
4
4
  import { TokenScope, UserToken } from '../services/model/token.model';
@@ -8,14 +8,16 @@ import { ConfigService } from '../services/config.service';
8
8
  import { Configuration } from '../services/model/config.model';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class UserTokenTable extends AppInMemoryTable<UserToken> implements OnInit {
11
+ protected injector: Injector;
11
12
  protected formBuilder: UntypedFormBuilder;
12
13
  protected validatorService: ValidatorService;
14
+ protected cd: ChangeDetectorRef;
13
15
  protected configService: ConfigService;
14
16
  protected tokenScopes: TokenScope[];
15
17
  useSticky: boolean;
16
18
  protected showScopes: boolean;
17
19
  protected defaultScope: string;
18
- constructor(formBuilder: UntypedFormBuilder, validatorService: ValidatorService, configService: ConfigService, environment: Environment, tokenScopes: TokenScope[]);
20
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, validatorService: ValidatorService, cd: ChangeDetectorRef, configService: ConfigService, environment: Environment, tokenScopes: TokenScope[]);
19
21
  ngOnInit(): void;
20
22
  get value(): UserToken[];
21
23
  set value(data: UserToken[]);
@@ -25,6 +27,7 @@ export declare class UserTokenTable extends AppInMemoryTable<UserToken> implemen
25
27
  addToken(event: UIEvent): Promise<void>;
26
28
  display(scopes: TokenScope[]): string;
27
29
  protected onConfigLoaded(config: Configuration): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<UserTokenTable, [null, null, null, null, { optional: true; }]>;
30
+ protected markForCheck(): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserTokenTable, [null, null, null, null, null, null, { optional: true; }]>;
29
32
  static ɵcmp: i0.ɵɵComponentDeclaration<UserTokenTable, "app-user-token-table", never, { "useSticky": { "alias": "useSticky"; "required": false; }; }, {}, never, never, false, never>;
30
33
  }
@@ -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,12 +1,14 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { ModalController } from '@ionic/angular';
3
+ import { AccountService } from '../services/account.service';
2
4
  import * as i0 from "@angular/core";
3
5
  export declare class AppAuthModal implements OnInit {
6
+ private accountService;
7
+ private viewCtrl;
8
+ private cd;
4
9
  get loading(): boolean;
5
10
  private form;
6
- private readonly accountService;
7
- private readonly viewCtrl;
8
- private readonly cd;
9
- constructor();
11
+ constructor(accountService: AccountService, viewCtrl: ModalController, cd: ChangeDetectorRef);
10
12
  ngOnInit(): void;
11
13
  cancel(): void;
12
14
  doSubmit(): Promise<any>;
@@ -5,17 +5,17 @@ import { ShowToastOptions } from '../../shared/toast/toasts';
5
5
  import { TranslateService } from '@ngx-translate/core';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class AppResetPasswordModal implements OnInit {
8
+ protected accountService: AccountService;
9
+ protected viewCtrl: ModalController;
10
+ protected toastController: ToastController;
11
+ protected translate: TranslateService;
12
+ protected cd: ChangeDetectorRef;
8
13
  protected sending: boolean;
9
14
  username: string;
10
15
  usernamePlaceholder: string;
11
16
  emailValidator: boolean;
12
17
  private form;
13
- protected readonly accountService: AccountService;
14
- protected readonly viewCtrl: ModalController;
15
- protected readonly toastController: ToastController;
16
- protected readonly translate: TranslateService;
17
- protected readonly cd: ChangeDetectorRef;
18
- constructor();
18
+ constructor(accountService: AccountService, viewCtrl: ModalController, toastController: ToastController, translate: TranslateService, cd: ChangeDetectorRef);
19
19
  ngOnInit(): void;
20
20
  cancel(): Promise<void>;
21
21
  doSubmit(event?: any): 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 { 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
  }
@@ -14,12 +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;
17
+ protected route: ActivatedRoute;
18
+ protected router: Router;
19
+ protected navController: NavController;
20
+ protected alertCtrl: AlertController;
21
+ protected translate: TranslateService;
22
+ protected toastController: ToastController;
23
23
  readonly savingSubject: BehaviorSubject<boolean>;
24
24
  submitted: boolean;
25
25
  queryParams: Params;
@@ -32,7 +32,7 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> extends A
32
32
  formButtonsBar: FormButtonsBarToken | null;
33
33
  content: IonContent;
34
34
  abstract get isNewData(): boolean;
35
- protected constructor();
35
+ protected constructor(route: ActivatedRoute, router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService);
36
36
  ngOnInit(): void;
37
37
  ngAfterViewInit(): void;
38
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;
@@ -115,6 +116,7 @@ export declare abstract class AppEntityEditorModal<T extends Entity<T, ID>, ID =
115
116
  */
116
117
  protected updateTitle(data?: T): Promise<void>;
117
118
  protected scrollToTop(duration?: number): Promise<void>;
119
+ protected markForCheck(): void;
118
120
  /**
119
121
  * Open the first tab that is invalid
120
122
  */
@@ -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;
@@ -176,6 +178,7 @@ export declare abstract class AppEntityEditor<T extends Entity<T, ID>, S extends
176
178
  protected computePageUrl(id: ID | 'new'): string | any[];
177
179
  protected getParentPageUrl(withQueryParams?: boolean): string;
178
180
  protected listenChanges(id: ID, opts?: any): Observable<T | undefined>;
181
+ protected markForCheck(): void;
179
182
  /**
180
183
  * Update the route, without reloading the component
181
184
  *
@@ -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, OnDestroy, OnInit } from '@angular/core';
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { BehaviorSubject, Subject, Subscription } from 'rxjs';
3
3
  import { IAppForm, IAppFormGetter } from './form.utils';
4
4
  import { WaitForOptions } from '../../shared/observables';
@@ -25,7 +25,6 @@ export declare abstract class AppFormContainer<T = any> implements IAppFormConta
25
25
  protected _logPrefix: string;
26
26
  protected _enabled: boolean;
27
27
  protected readonly destroySubject: Subject<void>;
28
- protected readonly cd: ChangeDetectorRef;
29
28
  readonly readySubject: BehaviorSubject<boolean>;
30
29
  readonly loadingSubject: BehaviorSubject<boolean>;
31
30
  readonly dirtySubject: BehaviorSubject<boolean>;
@@ -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';
@@ -30,7 +30,8 @@ export declare class PropertyEntityFilter extends EntityFilter<PropertyEntityFil
30
30
  protected isCriteriaNotEmpty(key: string, value: any): boolean;
31
31
  }
32
32
  export declare class PropertyEntityValidator extends AppValidatorService<PropertyEntity> {
33
- constructor();
33
+ protected formBuilder: UntypedFormBuilder;
34
+ constructor(formBuilder: UntypedFormBuilder);
34
35
  getFormGroupConfig(data?: PropertyEntity): {
35
36
  [p: string]: any;
36
37
  };
@@ -38,6 +39,7 @@ export declare class PropertyEntityValidator extends AppValidatorService<Propert
38
39
  static ɵdir: i0.ɵɵDirectiveDeclaration<PropertyEntityValidator, never, never, {}, {}, never, never, false, never>;
39
40
  }
40
41
  export declare class AppPropertiesTable extends AppInMemoryTable<PropertyEntity, PropertyEntityFilter, string> implements OnInit {
42
+ protected injector: Injector;
41
43
  protected formBuilder: UntypedFormBuilder;
42
44
  protected validatorService: PropertyEntityValidator;
43
45
  definitions: FormFieldDefinition[];
@@ -48,7 +50,7 @@ export declare class AppPropertiesTable extends AppInMemoryTable<PropertyEntity,
48
50
  filterForm: UntypedFormGroup;
49
51
  filterCriteriaCount: number;
50
52
  filterPanelFloating: boolean;
51
- constructor(formBuilder: UntypedFormBuilder, validatorService: PropertyEntityValidator, environment: Environment);
53
+ constructor(injector: Injector, formBuilder: UntypedFormBuilder, validatorService: PropertyEntityValidator, environment: Environment);
52
54
  ngOnInit(): void;
53
55
  get value(): PropertyEntity[];
54
56
  set value(data: PropertyEntity[]);
@@ -1,8 +1,10 @@
1
+ import { UntypedFormBuilder } from '@angular/forms';
1
2
  import { Property } from '../../../shared/types';
2
3
  import { AppValidatorService } from '../../services/validator/base.validator.class';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class PropertyValidator extends AppValidatorService<Property> {
5
- constructor();
6
+ protected formBuilder: UntypedFormBuilder;
7
+ constructor(formBuilder: UntypedFormBuilder);
6
8
  getFormGroupConfig(data?: Property): {
7
9
  [p: string]: any;
8
10
  };