@sumaris-net/ngx-components 2.4.120 → 2.4.122-alpha1
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.component.mjs +4 -8
- package/esm2020/src/app/core/menu/menu.model.mjs +5 -5
- package/esm2020/src/app/core/menu/menu.service.mjs +20 -24
- package/fesm2015/sumaris-net.ngx-components.mjs +25 -33
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +25 -33
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.component.d.ts +0 -4
- package/src/app/core/menu/menu.model.d.ts +2 -0
- package/src/app/core/menu/menu.service.d.ts +1 -1
package/package.json
CHANGED
|
@@ -39,10 +39,6 @@ export declare class MenuComponent implements OnInit {
|
|
|
39
39
|
accountName: string;
|
|
40
40
|
accountAvatar: string;
|
|
41
41
|
accountEmail: string;
|
|
42
|
-
private readonly _$toggled;
|
|
43
|
-
private readonly _$opened;
|
|
44
|
-
private readonly _$splitPaneWhen;
|
|
45
|
-
private readonly _$enabled;
|
|
46
42
|
private readonly _debug;
|
|
47
43
|
private _subscription;
|
|
48
44
|
constructor(platformService: PlatformService, accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, alertController: AlertController, translate: TranslateService, configService: ConfigService, cd: ChangeDetectorRef, menuService: MenuService, environment: any, route: ActivatedRoute, // Modal editor give 'null'
|
|
@@ -32,12 +32,14 @@ export interface MenuItem extends IconRef {
|
|
|
32
32
|
export declare class MenuItems {
|
|
33
33
|
/**
|
|
34
34
|
* Compare, without checking the children
|
|
35
|
+
*
|
|
35
36
|
* @param mainItem
|
|
36
37
|
* @param otherItem
|
|
37
38
|
*/
|
|
38
39
|
static isSame(mainItem: MenuItem, otherItem: MenuItem): boolean;
|
|
39
40
|
/**
|
|
40
41
|
* All key/value of the mainParams should exist (and be equals) in the other params
|
|
42
|
+
*
|
|
41
43
|
* @param mainParams
|
|
42
44
|
* @param otherParams
|
|
43
45
|
*/
|
|
@@ -45,6 +45,7 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
45
45
|
_markAsClosed(): void;
|
|
46
46
|
addSubMenuItems(newItems: MenuItem[], opts?: AddSubMenuItemsOption): Promise<boolean[]>;
|
|
47
47
|
addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): Promise<boolean>;
|
|
48
|
+
detachSubMenus(currentPathParam: MenuPathParam, items?: MenuItem[], excludedItems?: MenuItem[]): MenuItem[];
|
|
48
49
|
protected _addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): boolean;
|
|
49
50
|
protected ngOnStart(): Promise<MenuItem[]>;
|
|
50
51
|
protected loadMenuItems(config: Configuration, account: Account): Promise<void>;
|
|
@@ -52,7 +53,6 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
52
53
|
protected findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
|
|
53
54
|
protected findParent(childItem: MenuItem, availableParents?: MenuItem[]): MenuItem;
|
|
54
55
|
protected addMenuToParent(parent: MenuItem, child: MenuItem): void;
|
|
55
|
-
protected detachSubMenus(currentPathParam: MenuPathParam, items?: MenuItem[], excludedItems?: MenuItem[]): MenuItem[];
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, [null, null, null, null, null, { optional: true; }]>;
|
|
57
57
|
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
58
58
|
}
|