@sumaris-net/ngx-components 2.4.131 → 2.4.132
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/menu/menu.service.mjs +50 -21
- package/esm2020/src/app/core/menu/sub-menu-tab.directive.mjs +6 -6
- package/esm2020/src/app/core/menu/testing/menu.testing.mjs +4 -10
- package/esm2020/src/app/core/menu/testing/menu.testing.module.mjs +15 -20
- package/fesm2015/sumaris-net.ngx-components.mjs +67 -50
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +67 -50
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.service.d.ts +2 -1
- package/src/app/core/menu/testing/menu.testing.d.ts +3 -5
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
29
29
|
protected environment: Environment;
|
|
30
30
|
readonly accountChanges: BehaviorSubject<Account>;
|
|
31
31
|
private _staticItems;
|
|
32
|
-
private
|
|
32
|
+
private _detachedSubItems;
|
|
33
33
|
private _itemCounter;
|
|
34
34
|
private readonly _logPrefix;
|
|
35
35
|
private readonly _$opened;
|
|
@@ -50,6 +50,7 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
50
50
|
removeSubMenuItem(item: MenuItem): void;
|
|
51
51
|
detachSubMenuItem(pathParam: MenuPathParam): void;
|
|
52
52
|
protected ngOnStart(): Promise<MenuItem[]>;
|
|
53
|
+
computeNewId(): number;
|
|
53
54
|
protected _addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): MenuItem;
|
|
54
55
|
protected _loadMenuItems(config: Configuration | null, account: Account | null): Promise<MenuItem[]>;
|
|
55
56
|
protected _findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
|
|
@@ -4,7 +4,7 @@ import { AppTabEditor } from '../../form/entity/editor.class';
|
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { AlertController, IonToggle, NavController } from '@ionic/angular';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import {
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnDestroy, AfterViewInit {
|
|
10
10
|
protected menuService: MenuService;
|
|
@@ -14,12 +14,10 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
|
|
|
14
14
|
protected thirdTabTitle: string;
|
|
15
15
|
protected parentPath: string;
|
|
16
16
|
protected showOtherLinks: boolean;
|
|
17
|
-
protected $title:
|
|
18
|
-
protected $secondTabTitle:
|
|
17
|
+
protected $title: Subject<string>;
|
|
18
|
+
protected $secondTabTitle: Subject<string>;
|
|
19
19
|
protected set title(value: string);
|
|
20
|
-
protected get title(): string;
|
|
21
20
|
protected set secondTabTitle(value: string);
|
|
22
|
-
protected get secondTabTitle(): string;
|
|
23
21
|
constructor(route: ActivatedRoute, // Modal editor give 'null'
|
|
24
22
|
router: Router, navController: NavController, alertCtrl: AlertController, translate: TranslateService, menuService: MenuService);
|
|
25
23
|
ngOnInit(): void;
|