@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.
- package/doc/changelog.md +6 -0
- package/esm2022/src/app/admin/services/validator/person.validator.mjs +11 -8
- package/esm2022/src/app/admin/users/users.mjs +11 -5
- package/esm2022/src/app/core/account/account.page.mjs +12 -5
- package/esm2022/src/app/core/account/new-token.modal.mjs +15 -8
- package/esm2022/src/app/core/account/password/change-password.form.mjs +10 -5
- package/esm2022/src/app/core/account/password/change-password.page.mjs +9 -4
- package/esm2022/src/app/core/account/token.table.mjs +12 -5
- package/esm2022/src/app/core/auth/auth.form.mjs +11 -5
- package/esm2022/src/app/core/auth/auth.modal.mjs +17 -14
- package/esm2022/src/app/core/auth/reset-password.modal.mjs +20 -16
- package/esm2022/src/app/core/form/array/testing/form-array.test.mjs +13 -5
- package/esm2022/src/app/core/form/entity/editor.class.mjs +20 -14
- package/esm2022/src/app/core/form/entity/entity-editor-modal.class.mjs +21 -10
- package/esm2022/src/app/core/form/entity/entity-editor.class.mjs +24 -11
- package/esm2022/src/app/core/form/entity/tab-editor.class.mjs +21 -5
- package/esm2022/src/app/core/form/form-container.class.mjs +5 -4
- package/esm2022/src/app/core/form/form.class.mjs +13 -13
- package/esm2022/src/app/core/form/list/list.form.mjs +20 -10
- package/esm2022/src/app/core/form/properties/properties.form.mjs +26 -17
- package/esm2022/src/app/core/form/properties/properties.table.mjs +14 -10
- package/esm2022/src/app/core/form/properties/property.validator.mjs +8 -5
- package/esm2022/src/app/core/form/username/username.form.mjs +10 -5
- package/esm2022/src/app/core/home/home.mjs +63 -40
- package/esm2022/src/app/core/install/install-upgrade-card.component.mjs +34 -21
- package/esm2022/src/app/core/menu/menu.component.mjs +53 -33
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +15 -13
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +15 -13
- package/esm2022/src/app/core/peer/select-peer.modal.mjs +40 -26
- package/esm2022/src/app/core/services/testing/referential.validator.mjs +8 -5
- package/esm2022/src/app/core/services/validator/account.validator.mjs +18 -8
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +11 -9
- package/esm2022/src/app/core/services/validator/local-settings.validator.mjs +10 -8
- package/esm2022/src/app/core/services/validator/user-settings.validator.mjs +6 -5
- package/esm2022/src/app/core/services/validator/user-token.validator.mjs +6 -5
- package/esm2022/src/app/core/settings/settings.page.mjs +35 -25
- package/esm2022/src/app/core/table/async-table.class.mjs +32 -16
- package/esm2022/src/app/core/table/column/actions-column.component.mjs +9 -8
- package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +9 -8
- package/esm2022/src/app/core/table/column/row-field.component.mjs +11 -6
- package/esm2022/src/app/core/table/memory-table.class.mjs +4 -4
- package/esm2022/src/app/core/table/table.class.mjs +40 -27
- package/esm2022/src/app/core/table/table.pipes.mjs +21 -15
- package/esm2022/src/app/core/table/testing/table-validator.service.mjs +8 -5
- package/esm2022/src/app/core/table/testing/table.testing.mjs +11 -6
- package/esm2022/src/app/core/table/testing/table2-validator.service.mjs +8 -5
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +13 -9
- package/esm2022/src/app/shared/form/field.component.mjs +16 -14
- package/esm2022/src/app/shared/help/help.modal.mjs +25 -20
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +40 -31
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +18 -14
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +14 -13
- package/esm2022/src/app/shared/material/badge/badge.test.mjs +8 -6
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +21 -14
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +12 -5
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +23 -18
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +41 -33
- package/esm2022/src/app/shared/material/datetime/material.dateshort.mjs +42 -36
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +41 -33
- package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +13 -11
- package/esm2022/src/app/shared/material/datetime/testing/mat-date.test.mjs +14 -12
- package/esm2022/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +14 -12
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +29 -18
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +14 -12
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +32 -25
- package/esm2022/src/app/shared/material/swipe/material.swipe.mjs +20 -15
- package/esm2022/src/app/shared/material/testing/common.test.mjs +14 -12
- package/esm2022/src/app/shared/material/text/text-form.component.mjs +12 -5
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +13 -6
- package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +12 -13
- package/esm2022/src/app/shared/pipes/form.pipes.mjs +26 -18
- package/esm2022/src/app/shared/pipes/selection.pipes.mjs +35 -33
- package/esm2022/src/app/shared/storage/storage-explorer.component.mjs +53 -28
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +30 -20
- package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +16 -14
- package/esm2022/src/app/shared/upload-file/upload-file.component.mjs +20 -18
- package/esm2022/src/app/social/job/progression/job-progression.icon.mjs +26 -18
- package/esm2022/src/app/social/message/message.form.mjs +10 -5
- package/esm2022/src/app/social/message/message.modal.mjs +19 -16
- package/esm2022/src/app/social/user-event/notification/user-event-notification.icon.mjs +27 -18
- package/esm2022/src/app/social/user-event/notification/user-event-notification.list.mjs +40 -23
- package/fesm2022/sumaris-net.ngx-components.mjs +1250 -756
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/admin/services/validator/person.validator.d.ts +3 -2
- package/src/app/admin/users/users.d.ts +4 -2
- package/src/app/core/account/account.page.d.ts +4 -2
- package/src/app/core/account/new-token.modal.d.ts +3 -2
- package/src/app/core/account/password/change-password.form.d.ts +4 -2
- package/src/app/core/account/password/change-password.page.d.ts +4 -2
- package/src/app/core/account/token.table.d.ts +6 -3
- package/src/app/core/auth/auth.form.d.ts +5 -3
- package/src/app/core/auth/auth.modal.d.ts +7 -5
- package/src/app/core/auth/reset-password.modal.d.ts +6 -6
- package/src/app/core/form/array/testing/form-array.test.d.ts +5 -2
- package/src/app/core/form/entity/editor.class.d.ts +7 -7
- package/src/app/core/form/entity/entity-editor-modal.class.d.ts +5 -3
- package/src/app/core/form/entity/entity-editor.class.d.ts +7 -4
- package/src/app/core/form/entity/tab-editor.class.d.ts +11 -2
- package/src/app/core/form/form-container.class.d.ts +1 -2
- package/src/app/core/form/form.class.d.ts +3 -5
- package/src/app/core/form/list/list.form.d.ts +8 -3
- package/src/app/core/form/properties/properties.form.d.ts +7 -3
- package/src/app/core/form/properties/properties.table.d.ts +5 -3
- package/src/app/core/form/properties/property.validator.d.ts +3 -1
- package/src/app/core/form/username/username.form.d.ts +5 -3
- package/src/app/core/home/home.d.ts +22 -16
- package/src/app/core/install/install-upgrade-card.component.d.ts +15 -10
- package/src/app/core/menu/menu.component.d.ts +17 -13
- package/src/app/core/menu/testing/menu-other.testing.d.ts +5 -1
- package/src/app/core/menu/testing/menu.testing.d.ts +5 -1
- package/src/app/core/peer/select-peer.modal.d.ts +15 -10
- package/src/app/core/services/testing/referential.validator.d.ts +3 -2
- package/src/app/core/services/validator/account.validator.d.ts +8 -2
- package/src/app/core/services/validator/base.validator.class.d.ts +3 -3
- package/src/app/core/services/validator/local-settings.validator.d.ts +4 -3
- package/src/app/core/services/validator/user-settings.validator.d.ts +2 -2
- package/src/app/core/services/validator/user-token.validator.d.ts +2 -2
- package/src/app/core/settings/settings.page.d.ts +9 -3
- package/src/app/core/table/async-table.class.d.ts +14 -14
- package/src/app/core/table/column/actions-column.component.d.ts +3 -3
- package/src/app/core/table/column/nav-actions-column.component.d.ts +4 -4
- package/src/app/core/table/column/row-field.component.d.ts +2 -2
- package/src/app/core/table/memory-table.class.d.ts +2 -2
- package/src/app/core/table/table.class.d.ts +14 -15
- package/src/app/core/table/table.pipes.d.ts +5 -4
- package/src/app/core/table/testing/table-validator.service.d.ts +3 -2
- package/src/app/core/table/testing/table.testing.d.ts +4 -2
- package/src/app/core/table/testing/table2-validator.service.d.ts +3 -1
- package/src/app/core/table/testing/table2.testing.d.ts +4 -2
- package/src/app/shared/form/field.component.d.ts +5 -5
- package/src/app/shared/help/help.modal.d.ts +8 -7
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +8 -8
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +7 -6
- package/src/app/shared/material/autocomplete/testing/autocomplete.test.d.ts +4 -4
- package/src/app/shared/material/badge/badge.test.d.ts +3 -2
- package/src/app/shared/material/boolean/material.boolean.d.ts +6 -5
- package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +5 -2
- package/src/app/shared/material/chips/material.chips.d.ts +5 -5
- package/src/app/shared/material/datetime/material.date.d.ts +11 -10
- package/src/app/shared/material/datetime/material.dateshort.d.ts +11 -10
- package/src/app/shared/material/datetime/material.datetime.d.ts +11 -10
- package/src/app/shared/material/datetime/testing/mat-date-time.test.d.ts +4 -4
- package/src/app/shared/material/datetime/testing/mat-date.test.d.ts +3 -3
- package/src/app/shared/material/datetime/testing/mat-dateshort.test.d.ts +3 -3
- package/src/app/shared/material/duration/material.duration.d.ts +12 -6
- package/src/app/shared/material/duration/testing/mat-duration.test.d.ts +3 -3
- package/src/app/shared/material/latlong/material.latlong.d.ts +9 -9
- package/src/app/shared/material/swipe/material.swipe.d.ts +5 -5
- package/src/app/shared/material/testing/common.test.d.ts +4 -4
- package/src/app/shared/material/text/text-form.component.d.ts +6 -3
- package/src/app/shared/named-filter/named-filter-selector.component.d.ts +5 -2
- package/src/app/shared/named-filter/testing/named-filter-selector.testing.d.ts +3 -4
- package/src/app/shared/pipes/form.pipes.d.ts +7 -6
- package/src/app/shared/pipes/selection.pipes.d.ts +10 -10
- package/src/app/shared/storage/storage-explorer.component.d.ts +15 -12
- package/src/app/shared/toolbar/toolbar.d.ts +12 -10
- package/src/app/shared/upload-file/upload-file-popover.component.d.ts +4 -4
- package/src/app/shared/upload-file/upload-file.component.d.ts +3 -3
- package/src/app/social/job/progression/job-progression.icon.d.ts +6 -5
- package/src/app/social/message/message.form.d.ts +4 -2
- package/src/app/social/message/message.modal.d.ts +5 -5
- package/src/app/social/user-event/notification/user-event-notification.icon.d.ts +8 -7
- package/src/app/social/user-event/notification/user-event-notification.list.d.ts +9 -8
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.table.scss +1 -2
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
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
|
-
}>
|
|
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,13 +1,19 @@
|
|
|
1
|
-
import { InjectionToken, OnDestroy } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, InjectionToken, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ModalController, ToastController } from '@ionic/angular';
|
|
2
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { AccountService } from '../services/account.service';
|
|
3
5
|
import { Account } from '../services/model/account.model';
|
|
4
6
|
import { Configuration } from '../services/model/config.model';
|
|
5
7
|
import { Department } from '../services/model/department.model';
|
|
6
|
-
import { LocalSettings } from '../services/model/settings.model';
|
|
8
|
+
import { LocaleConfig, LocalSettings } from '../services/model/settings.model';
|
|
9
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
10
|
+
import { ConfigService } from '../services/config.service';
|
|
11
|
+
import { PlatformService } from '../services/platform.service';
|
|
7
12
|
import { LocalSettingsService } from '../services/local-settings.service';
|
|
8
13
|
import { NetworkService } from '../services/network.service';
|
|
9
14
|
import { IMenuItem } from '../menu/menu.model';
|
|
10
15
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
16
|
+
import { Environment } from '../../../environments/environment.class';
|
|
11
17
|
import { HistoryPageReference } from '../services/model/history.model';
|
|
12
18
|
import { RxState } from '@rx-angular/state';
|
|
13
19
|
import { ImagesUtils } from '../../shared/file/images.utils';
|
|
@@ -26,6 +32,18 @@ export interface HomePageState {
|
|
|
26
32
|
pageHistory: HistoryPageReference[];
|
|
27
33
|
}
|
|
28
34
|
export declare class HomePage extends RxState<HomePageState> implements OnDestroy {
|
|
35
|
+
private accountService;
|
|
36
|
+
private modalCtrl;
|
|
37
|
+
private translate;
|
|
38
|
+
private toastController;
|
|
39
|
+
private configService;
|
|
40
|
+
private platform;
|
|
41
|
+
private cd;
|
|
42
|
+
network: NetworkService;
|
|
43
|
+
settings: LocalSettingsService;
|
|
44
|
+
protected environment: Environment;
|
|
45
|
+
locales: LocaleConfig[];
|
|
46
|
+
buttons: IMenuItem[];
|
|
29
47
|
private readonly _debug;
|
|
30
48
|
private _subscription;
|
|
31
49
|
private _config;
|
|
@@ -54,19 +72,7 @@ export declare class HomePage extends RxState<HomePageState> implements OnDestro
|
|
|
54
72
|
set showPartnerBanner(value: boolean);
|
|
55
73
|
get showPartnerBanner(): boolean;
|
|
56
74
|
get currentLocaleCode(): string;
|
|
57
|
-
|
|
58
|
-
private readonly modalCtrl;
|
|
59
|
-
private readonly translate;
|
|
60
|
-
private readonly toastController;
|
|
61
|
-
private readonly configService;
|
|
62
|
-
private readonly platform;
|
|
63
|
-
private readonly cd;
|
|
64
|
-
network: NetworkService;
|
|
65
|
-
settings: LocalSettingsService;
|
|
66
|
-
protected environment: import("../../../environments/environment.class").Environment;
|
|
67
|
-
locales: import("../services/model/settings.model").LocaleConfig[];
|
|
68
|
-
buttons: IMenuItem[];
|
|
69
|
-
constructor();
|
|
75
|
+
constructor(accountService: AccountService, modalCtrl: ModalController, translate: TranslateService, toastController: ToastController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, settings: LocalSettingsService, environment: Environment, locales: LocaleConfig[], buttons: IMenuItem[]);
|
|
70
76
|
ngOnDestroy(): void;
|
|
71
77
|
login(): Promise<void>;
|
|
72
78
|
register(): Promise<void>;
|
|
@@ -83,6 +89,6 @@ export declare class HomePage extends RxState<HomePageState> implements OnDestro
|
|
|
83
89
|
protected refreshButtons(account?: Account): void;
|
|
84
90
|
protected removePageHistory(path: string): Promise<void>;
|
|
85
91
|
protected markForCheck(): void;
|
|
86
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HomePage,
|
|
92
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HomePage, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
87
93
|
static ɵcmp: i0.ɵɵComponentDeclaration<HomePage, "app-page-home", never, {}, {}, never, never, false, never>;
|
|
88
94
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AlertController, ModalController, ToastController } from '@ionic/angular';
|
|
3
|
+
import { ConfigService } from '../services/config.service';
|
|
2
4
|
import { PlatformService } from '../services/platform.service';
|
|
3
5
|
import { NetworkService } from '../services/network.service';
|
|
6
|
+
import { Environment } from '../../../environments/environment.class';
|
|
7
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
8
|
import * as i0 from "@angular/core";
|
|
5
9
|
export declare interface InstallAppLink {
|
|
6
10
|
name: string;
|
|
@@ -15,6 +19,15 @@ export declare interface InstallAppLink {
|
|
|
15
19
|
location?: string;
|
|
16
20
|
}
|
|
17
21
|
export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
22
|
+
private modalCtrl;
|
|
23
|
+
private configService;
|
|
24
|
+
private toastController;
|
|
25
|
+
private alertController;
|
|
26
|
+
private translate;
|
|
27
|
+
private cd;
|
|
28
|
+
platform: PlatformService;
|
|
29
|
+
network: NetworkService;
|
|
30
|
+
protected environment: Environment;
|
|
18
31
|
private _subscription;
|
|
19
32
|
loading: boolean;
|
|
20
33
|
hasDownloader: boolean;
|
|
@@ -28,15 +41,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
|
|
|
28
41
|
showUpgradeWarning: boolean;
|
|
29
42
|
showOfflineWarning: boolean;
|
|
30
43
|
showInstallButton: boolean;
|
|
31
|
-
|
|
32
|
-
private readonly toastController;
|
|
33
|
-
private readonly alertController;
|
|
34
|
-
private readonly translate;
|
|
35
|
-
private readonly cd;
|
|
36
|
-
platform: PlatformService;
|
|
37
|
-
network: NetworkService;
|
|
38
|
-
protected environment: import("../../../environments/environment.class").Environment;
|
|
39
|
-
constructor();
|
|
44
|
+
constructor(modalCtrl: ModalController, configService: ConfigService, toastController: ToastController, alertController: AlertController, translate: TranslateService, cd: ChangeDetectorRef, platform: PlatformService, network: NetworkService, environment: Environment);
|
|
40
45
|
ngOnInit(): void;
|
|
41
46
|
ngOnDestroy(): void;
|
|
42
47
|
download(event: Event, link: InstallAppLink): Promise<void>;
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { IonSplitPane, MenuController, ModalController, NavController } from '@ionic/angular';
|
|
2
|
+
import { AlertController, IonSplitPane, MenuController, ModalController, NavController } from '@ionic/angular';
|
|
3
3
|
import { Account } from '../services/model/account.model';
|
|
4
4
|
import { AccountService } from '../services/account.service';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
+
import { PlatformService } from '../services/platform.service';
|
|
7
|
+
import { Environment } from '../../../environments/environment.class';
|
|
6
8
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
7
9
|
import { IMenuItem, MenuItem } from './menu.model';
|
|
8
10
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
9
11
|
import { RxStrategyNames } from '@rx-angular/cdk/render-strategies';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
export declare class MenuComponent implements OnInit {
|
|
14
|
+
protected platformService: PlatformService;
|
|
15
|
+
protected accountService: AccountService;
|
|
16
|
+
protected navController: NavController;
|
|
17
|
+
protected menu: MenuController;
|
|
18
|
+
protected modalCtrl: ModalController;
|
|
19
|
+
protected alertController: AlertController;
|
|
20
|
+
protected translate: TranslateService;
|
|
21
|
+
protected cd: ChangeDetectorRef;
|
|
22
|
+
protected menuService: MenuService;
|
|
23
|
+
protected router: Router;
|
|
24
|
+
protected environment: Environment;
|
|
25
|
+
protected route: ActivatedRoute;
|
|
12
26
|
id: string;
|
|
13
27
|
menuId: string;
|
|
14
28
|
side: string;
|
|
@@ -25,17 +39,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
25
39
|
accountEmail: string;
|
|
26
40
|
private readonly _debug;
|
|
27
41
|
private _subscription;
|
|
28
|
-
|
|
29
|
-
protected readonly navController: NavController;
|
|
30
|
-
protected readonly menu: MenuController;
|
|
31
|
-
protected readonly modalCtrl: ModalController;
|
|
32
|
-
protected readonly translate: TranslateService;
|
|
33
|
-
protected readonly cd: ChangeDetectorRef;
|
|
34
|
-
protected readonly menuService: MenuService;
|
|
35
|
-
protected readonly router: Router;
|
|
36
|
-
protected environment: import("../../../environments/environment.class").Environment;
|
|
37
|
-
protected route: ActivatedRoute;
|
|
38
|
-
constructor();
|
|
42
|
+
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, cd: ChangeDetectorRef, menuService: MenuService, router: Router, environment: Environment, route: ActivatedRoute);
|
|
39
43
|
ngOnInit(): Promise<void>;
|
|
40
44
|
onLogin(account: Account): Promise<void>;
|
|
41
45
|
onLogout(skipRedirect?: boolean): Promise<void>;
|
|
@@ -60,6 +64,6 @@ export declare class MenuComponent implements OnInit {
|
|
|
60
64
|
protected detectChanges(): void;
|
|
61
65
|
protected markForCheck(): void;
|
|
62
66
|
protected togglePinned(event: Event, item: IMenuItem): void;
|
|
63
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent,
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
64
68
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, { "id": { "alias": "id"; "required": false; }; "menuId": { "alias": "menuId"; "required": false; }; "side": { "alias": "side"; "required": false; }; "contentId": { "alias": "contentId"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "appName": { "alias": "appName"; "required": false; }; "rxStrategy": { "alias": "rxStrategy"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; }, {}, never, ["*", "[headerBottomRight]"], false, never>;
|
|
65
69
|
}
|
|
@@ -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(
|
|
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(
|
|
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,7 +1,12 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ModalController, PopoverController } from '@ionic/angular';
|
|
2
3
|
import { Peer } from '../services/model/peer.model';
|
|
3
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { Environment } from '../../../environments/environment.class';
|
|
4
7
|
import { TextPopoverOptions } from '../form/text-popover/text-popover.component';
|
|
8
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
9
|
+
import { ILoggingService } from '../../shared/logging/logger.model';
|
|
5
10
|
import * as i0 from "@angular/core";
|
|
6
11
|
export interface ISelectPeerModalOptions {
|
|
7
12
|
canCancel: boolean;
|
|
@@ -11,6 +16,13 @@ export interface ISelectPeerModalOptions {
|
|
|
11
16
|
selectedPeer?: string;
|
|
12
17
|
}
|
|
13
18
|
export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptions {
|
|
19
|
+
private modalCtrl;
|
|
20
|
+
private popoverController;
|
|
21
|
+
private translate;
|
|
22
|
+
private http;
|
|
23
|
+
private cd;
|
|
24
|
+
protected environment: Environment;
|
|
25
|
+
protected loggingService?: ILoggingService;
|
|
14
26
|
private _subscription;
|
|
15
27
|
private readonly _logger;
|
|
16
28
|
protected loading: boolean;
|
|
@@ -23,14 +35,7 @@ export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptio
|
|
|
23
35
|
allowSelectDownPeer: boolean;
|
|
24
36
|
showSetManuallyButton: boolean;
|
|
25
37
|
onRefresh: EventEmitter<Event>;
|
|
26
|
-
|
|
27
|
-
private readonly popoverController;
|
|
28
|
-
private readonly translate;
|
|
29
|
-
private readonly http;
|
|
30
|
-
private readonly cd;
|
|
31
|
-
protected environment: import("../../../environments/environment.class").Environment;
|
|
32
|
-
protected loggingService: import("../../shared/logging/logger.model").ILoggingService;
|
|
33
|
-
constructor();
|
|
38
|
+
constructor(modalCtrl: ModalController, popoverController: PopoverController, translate: TranslateService, http: HttpClient, cd: ChangeDetectorRef, environment: Environment, loggingService?: ILoggingService);
|
|
34
39
|
set peers(peers: Observable<Peer[]>);
|
|
35
40
|
cancel(): void;
|
|
36
41
|
ngOnDestroy(): void;
|
|
@@ -47,7 +52,7 @@ export declare class SelectPeerModal implements OnDestroy, ISelectPeerModalOptio
|
|
|
47
52
|
protected refreshPeer(peer: Peer): Promise<Peer>;
|
|
48
53
|
protected openPeerUrlPopover(event: Event, opts?: Partial<TextPopoverOptions>): Promise<any>;
|
|
49
54
|
protected markForCheck(): void;
|
|
50
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectPeerModal,
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectPeerModal, [null, null, null, null, null, null, { optional: true; }]>;
|
|
51
56
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectPeerModal, "select-peer-modal", never, { "selectedPeer": { "alias": "selectedPeer"; "required": false; }; "canCancel": { "alias": "canCancel"; "required": false; }; "allowSelectDownPeer": { "alias": "allowSelectDownPeer"; "required": false; }; "showSetManuallyButton": { "alias": "showSetManuallyButton"; "required": false; }; "onRefresh": { "alias": "onRefresh"; "required": false; }; }, {}, never, never, false, never>;
|
|
52
57
|
static ngAcceptInputType_canCancel: unknown;
|
|
53
58
|
static ngAcceptInputType_allowSelectDownPeer: unknown;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { AbstractControlOptions, UntypedFormGroup } from '@angular/forms';
|
|
1
|
+
import { AbstractControlOptions, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { Referential } from '../model/referential.model';
|
|
3
3
|
import { AppValidatorService } from '../validator/base.validator.class';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ReferentialValidatorService<T extends Referential = Referential> extends AppValidatorService<T> {
|
|
6
|
-
|
|
6
|
+
protected formBuilder: UntypedFormBuilder;
|
|
7
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
7
8
|
getRowValidator(): UntypedFormGroup;
|
|
8
9
|
getFormGroup(data?: T, opts?: {
|
|
9
10
|
withDescription?: boolean;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
import { UntypedFormBuilder } from '@angular/forms';
|
|
1
2
|
import { Account } from '../model/account.model';
|
|
3
|
+
import { AccountService } from '../account.service';
|
|
2
4
|
import { UserSettingsValidatorService } from './user-settings.validator';
|
|
3
5
|
import { PersonValidatorOptions, PersonValidatorService } from '../../../admin/services/validator/person.validator';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
7
|
import * as i0 from "@angular/core";
|
|
5
8
|
export interface AccountValidatorOptions extends PersonValidatorOptions {
|
|
6
9
|
withSettings?: boolean;
|
|
7
10
|
withTokens?: boolean;
|
|
8
11
|
}
|
|
9
12
|
export declare class AccountValidatorService<T extends Account = Account, O extends AccountValidatorOptions = AccountValidatorOptions> extends PersonValidatorService<T, O> {
|
|
10
|
-
protected
|
|
11
|
-
|
|
13
|
+
protected formBuilder: UntypedFormBuilder;
|
|
14
|
+
protected translate: TranslateService;
|
|
15
|
+
protected accountService: AccountService;
|
|
16
|
+
protected userSettingsValidatorService: UserSettingsValidatorService;
|
|
17
|
+
constructor(formBuilder: UntypedFormBuilder, translate: TranslateService, accountService: AccountService, userSettingsValidatorService: UserSettingsValidatorService);
|
|
12
18
|
getFormGroupConfig(data?: T, opts?: O): {
|
|
13
19
|
[key: string]: any[];
|
|
14
20
|
};
|
|
@@ -5,9 +5,9 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
5
5
|
import { FormErrors } from '../../../shared/forms';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare abstract class AppValidatorService<T = any> extends ValidatorService implements IValidatorService<T> {
|
|
8
|
-
protected
|
|
9
|
-
protected
|
|
10
|
-
protected constructor();
|
|
8
|
+
protected formBuilder: UntypedFormBuilder;
|
|
9
|
+
protected translate?: TranslateService;
|
|
10
|
+
protected constructor(formBuilder: UntypedFormBuilder, translate?: TranslateService);
|
|
11
11
|
getRowValidator(): UntypedFormGroup;
|
|
12
12
|
getFormGroup(data?: T): UntypedFormGroup;
|
|
13
13
|
getFormGroupConfig(data?: T): {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AbstractControl, UntypedFormGroup, ValidationErrors } from '@angular/forms';
|
|
1
|
+
import { AbstractControl, UntypedFormBuilder, UntypedFormGroup, ValidationErrors } from '@angular/forms';
|
|
2
2
|
import { LocalSettings } from '../model/settings.model';
|
|
3
|
+
import { NetworkService } from '../network.service';
|
|
3
4
|
import { AppValidatorService } from './base.validator.class';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class LocalSettingsValidatorService extends AppValidatorService<LocalSettings> {
|
|
6
|
-
private
|
|
7
|
-
constructor();
|
|
7
|
+
private networkService;
|
|
8
|
+
constructor(formBuilder: UntypedFormBuilder, networkService: NetworkService);
|
|
8
9
|
getFormGroup(data?: LocalSettings): UntypedFormGroup;
|
|
9
10
|
getPropertiesArray(array?: any): import("@angular/forms").UntypedFormArray;
|
|
10
11
|
getPropertyFormGroup(data?: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
1
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
2
2
|
import { AppValidatorService } from './base.validator.class';
|
|
3
3
|
import { UserSettings } from '../model/account.model';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class UserSettingsValidatorService extends AppValidatorService<UserSettings> {
|
|
6
|
-
constructor();
|
|
6
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
7
7
|
getFormGroup(data?: UserSettings): UntypedFormGroup;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserSettingsValidatorService, never>;
|
|
9
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserSettingsValidatorService>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { UntypedFormControl, UntypedFormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
1
|
+
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { AppValidatorService } from './base.validator.class';
|
|
3
3
|
import { UserToken } from '../model/token.model';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class UserTokenValidatorService extends AppValidatorService<UserToken> {
|
|
6
|
-
constructor();
|
|
6
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
7
7
|
getFormGroup(data?: UserToken): UntypedFormGroup;
|
|
8
8
|
updateFormGroup(formGroup: UntypedFormGroup, existingNames: string[]): void;
|
|
9
9
|
static notAlreadyExists(existingNames: string[]): ValidatorFn;
|
|
@@ -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
|
-
|
|
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;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AsyncTableElement, TableElement } from '@e-is/ngx-material-table';
|
|
3
3
|
import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
4
4
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ActionsColumnComponent<T extends TableElement<any> | AsyncTableElement<any> = TableElement<any>> implements OnInit, OnDestroy {
|
|
7
7
|
private table;
|
|
8
|
+
private cd;
|
|
8
9
|
columnDef: MatColumnDef;
|
|
9
10
|
matMenuTrigger: MatMenuTrigger;
|
|
10
11
|
matColumnDef: string;
|
|
@@ -43,8 +44,7 @@ export declare class ActionsColumnComponent<T extends TableElement<any> | AsyncT
|
|
|
43
44
|
event: Event;
|
|
44
45
|
row: T;
|
|
45
46
|
}>;
|
|
46
|
-
|
|
47
|
-
constructor(table: MatTable<any>);
|
|
47
|
+
constructor(table: MatTable<any>, cd: ChangeDetectorRef);
|
|
48
48
|
ngOnInit(): void;
|
|
49
49
|
ngOnDestroy(): void;
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsColumnComponent<any>, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AsyncTableElement, TableElement } from '@e-is/ngx-material-table';
|
|
3
3
|
import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
4
4
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
@@ -8,6 +8,7 @@ import { Subject, Subscription } from 'rxjs';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class NavActionsColumnComponent<T extends TableElement<any> | AsyncTableElement<any> = TableElement<any>> implements OnInit, OnDestroy {
|
|
10
10
|
private matTable;
|
|
11
|
+
private cd;
|
|
11
12
|
_subscription: Subscription;
|
|
12
13
|
_forwardEventSubject: Subject<{
|
|
13
14
|
event: Event;
|
|
@@ -32,14 +33,13 @@ export declare class NavActionsColumnComponent<T extends TableElement<any> | Asy
|
|
|
32
33
|
}>;
|
|
33
34
|
throttleTime: number;
|
|
34
35
|
optionsClick: EventEmitter<Event>;
|
|
35
|
-
|
|
36
|
-
constructor(matTable: MatTable<any>, appTable: AppTable<any>, appAsyncTable: AppAsyncTable<any>);
|
|
36
|
+
constructor(matTable: MatTable<any>, cd: ChangeDetectorRef, appTable: AppTable<any>, appAsyncTable: AppAsyncTable<any>);
|
|
37
37
|
ngOnInit(): void;
|
|
38
38
|
ngOnDestroy(): void;
|
|
39
39
|
protected cancelOrDelete(event: Event, row: T): void;
|
|
40
40
|
protected confirmAndForward(event: Event, row: T): void;
|
|
41
41
|
protected confirmAndBackward(event: Event, row: T): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavActionsColumnComponent<any>, [null, { optional: true; }, { optional: true; }]>;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavActionsColumnComponent<any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
43
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<NavActionsColumnComponent<any>, "app-nav-actions-column", never, { "appTable": { "alias": "appTable"; "required": false; }; "matColumnDef": { "alias": "matColumnDef"; "required": false; }; "style": { "alias": "style"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; "showPending": { "alias": "showPending"; "required": false; }; "dirtyIcon": { "alias": "dirtyIcon"; "required": false; }; "optionsTitle": { "alias": "optionsTitle"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "throttleTime": { "alias": "throttleTime"; "required": false; }; }, { "optionsClick": "optionsClick"; }, never, ["[matHeader]", "[matFooter]", "[matHeader]", "[matFooter]"], false, never>;
|
|
44
44
|
static ngAcceptInputType_stickyEnd: unknown;
|
|
45
45
|
static ngAcceptInputType_showPending: unknown;
|
|
@@ -7,6 +7,7 @@ import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
|
7
7
|
import { AsyncTableElement, TableElement } from '@e-is/ngx-material-table';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class AppRowField implements OnInit, OnDestroy {
|
|
10
|
+
protected cd: ChangeDetectorRef;
|
|
10
11
|
matTable: MatTable<any>;
|
|
11
12
|
columnDef: MatColumnDef;
|
|
12
13
|
name: string;
|
|
@@ -31,8 +32,7 @@ export declare class AppRowField implements OnInit, OnDestroy {
|
|
|
31
32
|
classList: string;
|
|
32
33
|
debug: boolean;
|
|
33
34
|
protected logPrefix: string;
|
|
34
|
-
|
|
35
|
-
constructor(matTable: MatTable<any>);
|
|
35
|
+
constructor(cd: ChangeDetectorRef, matTable: MatTable<any>);
|
|
36
36
|
ngOnInit(): void;
|
|
37
37
|
ngOnDestroy(): void;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppRowField, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { Injector, OnInit } from '@angular/core';
|
|
2
2
|
import { ValidatorService } from '@e-is/ngx-material-table';
|
|
3
3
|
import { EntitiesTableDataSourceConfig } from './entities-table-datasource.class';
|
|
4
4
|
import { AppTable } from './table.class';
|
|
@@ -14,7 +14,7 @@ export declare abstract class AppInMemoryTable<T extends IEntity<T, ID>, F = any
|
|
|
14
14
|
canDelete: boolean;
|
|
15
15
|
set value(data: T[]);
|
|
16
16
|
get value(): T[];
|
|
17
|
-
protected constructor(columns: string[], dataType: new () => T, memoryDataService: InMemoryEntitiesService<T, F, ID>, validatorService: ValidatorService, options?: EntitiesTableDataSourceConfig<T, ID>, filter?: F);
|
|
17
|
+
protected constructor(injector: Injector, columns: string[], dataType: new () => T, memoryDataService: InMemoryEntitiesService<T, F, ID>, validatorService: ValidatorService, options?: EntitiesTableDataSourceConfig<T, ID>, filter?: F);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
setValue(value: T[], opts?: {
|
|
20
20
|
emitEvent?: boolean;
|
|
@@ -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 { MatSort, MatSortable, SortDirection } from '@angular/material/sort';
|
|
3
3
|
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
4
4
|
import { TableElement } from '@e-is/ngx-material-table';
|
|
@@ -31,23 +31,22 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
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;
|
|
50
|
-
protected
|
|
48
|
+
protected formErrorAdapter: FormErrorTranslator;
|
|
49
|
+
protected readonly destroySubject: Subject<void>;
|
|
51
50
|
excludesColumns: string[];
|
|
52
51
|
displayedColumns: string[];
|
|
53
52
|
totalRowCount: number | null;
|
|
@@ -197,7 +196,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
197
196
|
table: MatTable<T>;
|
|
198
197
|
childPaginator: MatPaginator;
|
|
199
198
|
sort: MatSort;
|
|
200
|
-
protected constructor(columns: string[], _dataSource?: EntitiesTableDataSource<T, F, ID>, _filter?: F);
|
|
199
|
+
protected constructor(injector: Injector, columns: string[], _dataSource?: EntitiesTableDataSource<T, F, ID>, _filter?: F);
|
|
201
200
|
ngOnInit(): void;
|
|
202
201
|
ngAfterViewInit(): void;
|
|
203
202
|
ngOnDestroy(): void;
|