@sumaris-net/ngx-components 2.4.52 → 2.4.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/app/core/account/account.page.mjs +20 -21
- package/esm2020/src/app/core/form/entity/editor.class.mjs +11 -9
- package/esm2020/src/app/core/form/entity/entity-editor-modal.class.mjs +3 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +5 -5
- package/esm2020/src/app/core/menu/menu.component.mjs +17 -18
- package/esm2020/src/app/core/table/table.class.mjs +4 -4
- package/fesm2015/sumaris-net.ngx-components.mjs +345 -344
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +345 -344
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/account/account.page.d.ts +3 -3
- package/src/app/core/form/entity/editor.class.d.ts +6 -4
- package/src/app/core/menu/menu.component.d.ts +3 -4
- package/src/app/core/table/table.class.d.ts +2 -1
package/package.json
CHANGED
|
@@ -10,16 +10,16 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
10
10
|
import { FormFieldDefinition } from '../../shared/form/field.model';
|
|
11
11
|
import { LocalSettingsService } from '../services/local-settings.service';
|
|
12
12
|
import { LocaleConfig } from '../services/model/settings.model';
|
|
13
|
-
import { Router } from '@angular/router';
|
|
14
13
|
import { CanLeave } from '../../shared/guard/component-dirty.guard';
|
|
15
14
|
import { NetworkService } from '../services/network.service';
|
|
16
15
|
import { MatTabGroup } from '@angular/material/tabs';
|
|
16
|
+
import { NavController } from '@ionic/angular';
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
export declare class AccountPage extends AppForm<Account> implements OnDestroy, CanLeave {
|
|
19
19
|
formBuilder: UntypedFormBuilder;
|
|
20
20
|
accountService: AccountService;
|
|
21
21
|
network: NetworkService;
|
|
22
|
-
protected
|
|
22
|
+
protected navController: NavController;
|
|
23
23
|
protected validatorService: AccountValidatorService;
|
|
24
24
|
protected settingsValidatorService: UserSettingsValidatorService;
|
|
25
25
|
protected translate: TranslateService;
|
|
@@ -39,7 +39,7 @@ export declare class AccountPage extends AppForm<Account> implements OnDestroy,
|
|
|
39
39
|
saving: boolean;
|
|
40
40
|
submitted: boolean;
|
|
41
41
|
tabGroup: MatTabGroup;
|
|
42
|
-
constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, network: NetworkService,
|
|
42
|
+
constructor(injector: Injector, formBuilder: UntypedFormBuilder, accountService: AccountService, network: NetworkService, navController: NavController, validatorService: AccountValidatorService, settingsValidatorService: UserSettingsValidatorService, translate: TranslateService, settings: LocalSettingsService, cd: ChangeDetectorRef, locales: any);
|
|
43
43
|
ngOnInit(): void;
|
|
44
44
|
ngOnDestroy(): void;
|
|
45
45
|
onLogin(account: Account): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Params, Router } from '@angular/router';
|
|
3
3
|
import { MatTabChangeEvent, MatTabGroup } from '@angular/material/tabs';
|
|
4
|
-
import { AlertController, IonContent, ToastController } from '@ionic/angular';
|
|
4
|
+
import { AlertController, IonContent, NavController, ToastController } from '@ionic/angular';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
6
|
import { BehaviorSubject, Subject, Subscription, TeardownLogic } from 'rxjs';
|
|
7
7
|
import { AppTable } from '../../table/table.class';
|
|
@@ -48,6 +48,7 @@ export declare class AppTabEditorOptions {
|
|
|
48
48
|
export declare abstract class AppEditor<T = any, ID = number, O = any> implements IAppEditor, OnInit, OnDestroy, AfterViewInit {
|
|
49
49
|
protected route: ActivatedRoute;
|
|
50
50
|
protected router: Router;
|
|
51
|
+
protected navController: NavController;
|
|
51
52
|
protected alertCtrl: AlertController;
|
|
52
53
|
protected translate: TranslateService;
|
|
53
54
|
private _children;
|
|
@@ -111,7 +112,7 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> implement
|
|
|
111
112
|
get children(): IAppForm[];
|
|
112
113
|
get empty(): boolean;
|
|
113
114
|
abstract get isNewData(): boolean;
|
|
114
|
-
protected constructor(route: ActivatedRoute, router: Router, alertCtrl: AlertController, translate: TranslateService);
|
|
115
|
+
protected constructor(route: ActivatedRoute, router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService);
|
|
115
116
|
ngOnInit(): void;
|
|
116
117
|
ngAfterViewInit(): void;
|
|
117
118
|
ngOnDestroy(): void;
|
|
@@ -205,6 +206,7 @@ export declare abstract class AppEditor<T = any, ID = number, O = any> implement
|
|
|
205
206
|
export declare abstract class AppTabEditor<T = any, ID = number, O = any> extends AppEditor<T, ID, O> implements IAppTabEditor {
|
|
206
207
|
protected route: ActivatedRoute;
|
|
207
208
|
protected router: Router;
|
|
209
|
+
protected navController: NavController;
|
|
208
210
|
protected alertCtrl: AlertController;
|
|
209
211
|
protected translate: TranslateService;
|
|
210
212
|
protected _selectedTabIndex: number;
|
|
@@ -217,7 +219,7 @@ export declare abstract class AppTabEditor<T = any, ID = number, O = any> extend
|
|
|
217
219
|
readonly selectedTabIndexChange: EventEmitter<number>;
|
|
218
220
|
tabGroup: MatTabGroup;
|
|
219
221
|
protected constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
220
|
-
router: Router, alertCtrl: AlertController, translate: TranslateService, options?: AppTabEditorOptions);
|
|
222
|
+
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, options?: AppTabEditorOptions);
|
|
221
223
|
ngOnInit(): void;
|
|
222
224
|
ngOnDestroy(): void;
|
|
223
225
|
setSelectedTabIndex(value: number, opts?: {
|
|
@@ -236,6 +238,6 @@ export declare abstract class AppTabEditor<T = any, ID = number, O = any> extend
|
|
|
236
238
|
}): Promise<void>;
|
|
237
239
|
protected abstract getFirstInvalidTabIndex(): number;
|
|
238
240
|
protected saveDirtyChildren(): Promise<boolean>;
|
|
239
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppTabEditor<any, any, any>, [{ optional: true; }, null, null, null, { optional: true; }]>;
|
|
241
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppTabEditor<any, any, any>, [{ optional: true; }, null, null, null, null, { optional: true; }]>;
|
|
240
242
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AppTabEditor<any, any, any>, never, never, { "queryTabIndexParamName": "queryTabIndexParamName"; "selectedTabIndex": "selectedTabIndex"; }, { "selectedTabIndexChange": "selectedTabIndexChange"; }, never, never, false>;
|
|
241
243
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, InjectionToken, OnInit } from '@angular/core';
|
|
2
|
-
import { AlertController, IonSplitPane, MenuController, ModalController } from '@ionic/angular';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
2
|
+
import { AlertController, IonSplitPane, MenuController, ModalController, NavController } from '@ionic/angular';
|
|
4
3
|
import { Account } from '../services/model/account.model';
|
|
5
4
|
import { AccountService } from '../services/account.service';
|
|
6
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
@@ -15,7 +14,7 @@ export declare const APP_MENU_OPTIONS: InjectionToken<MenuOptions>;
|
|
|
15
14
|
export declare class MenuComponent implements OnInit {
|
|
16
15
|
protected platformService: PlatformService;
|
|
17
16
|
protected accountService: AccountService;
|
|
18
|
-
protected
|
|
17
|
+
protected navController: NavController;
|
|
19
18
|
protected menu: MenuController;
|
|
20
19
|
protected modalCtrl: ModalController;
|
|
21
20
|
protected alertController: AlertController;
|
|
@@ -43,7 +42,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
43
42
|
appName: string;
|
|
44
43
|
appVersion: string;
|
|
45
44
|
splitPane: IonSplitPane;
|
|
46
|
-
constructor(platformService: PlatformService, accountService: AccountService,
|
|
45
|
+
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, environment: any, options: MenuOptions, items: MenuItem[]);
|
|
47
46
|
ngOnInit(): Promise<void>;
|
|
48
47
|
onLogin(account: Account): Promise<void>;
|
|
49
48
|
onLogout(skipRedirect?: boolean): Promise<void>;
|
|
@@ -7,7 +7,7 @@ import { TableElement } from '@e-is/ngx-material-table';
|
|
|
7
7
|
import { EntitiesTableDataSource } from './entities-table-datasource.class';
|
|
8
8
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
9
9
|
import { IEntity } from '../services/model/entity.model';
|
|
10
|
-
import { AlertController, ModalController, ToastController } from '@ionic/angular';
|
|
10
|
+
import { AlertController, ModalController, NavController, ToastController } from '@ionic/angular';
|
|
11
11
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
12
12
|
import { ColumnItem } from './table-select-columns.component';
|
|
13
13
|
import { Location } from '@angular/common';
|
|
@@ -36,6 +36,7 @@ export declare abstract class AppTable<T extends IEntity<T, ID>, F = any, ID = n
|
|
|
36
36
|
protected allowRowDetail: boolean;
|
|
37
37
|
protected route: ActivatedRoute;
|
|
38
38
|
protected router: Router;
|
|
39
|
+
protected navController: NavController;
|
|
39
40
|
protected location: Location;
|
|
40
41
|
protected settings: LocalSettingsService;
|
|
41
42
|
protected translate: TranslateService;
|