@sumaris-net/ngx-components 2.4.121 → 2.4.122
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 +45 -13
- package/esm2020/src/app/core/menu/menu.module.mjs +8 -14
- package/esm2020/src/app/core/menu/menu.service.mjs +11 -5
- package/esm2020/src/app/shared/material/material.animations.mjs +41 -2
- package/esm2020/src/environments/environment.mjs +5 -5
- package/fesm2015/sumaris-net.ngx-components.mjs +102 -34
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +101 -32
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.component.d.ts +10 -1
- package/src/app/core/menu/menu.module.d.ts +3 -2
- package/src/app/core/menu/menu.service.d.ts +4 -3
- package/src/app/shared/material/material.animations.d.ts +2 -0
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ import { PlatformService } from '../services/platform.service';
|
|
|
8
8
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
9
9
|
import { MenuItem, MenuOptions } from './menu.model';
|
|
10
10
|
import { ActivatedRoute } from '@angular/router';
|
|
11
|
+
import { RxStrategyNames } from '@rx-angular/cdk/render-strategies';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
12
13
|
export declare const APP_MENU_ITEMS: InjectionToken<MenuItem[]>;
|
|
13
14
|
export declare const APP_MENU_OPTIONS: InjectionToken<MenuOptions>;
|
|
@@ -33,6 +34,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
33
34
|
logo: string;
|
|
34
35
|
appName: string;
|
|
35
36
|
appVersion: string;
|
|
37
|
+
rxStrategy: RxStrategyNames;
|
|
36
38
|
splitPane: IonSplitPane;
|
|
37
39
|
loading: boolean;
|
|
38
40
|
isLogin: boolean;
|
|
@@ -56,7 +58,14 @@ export declare class MenuComponent implements OnInit {
|
|
|
56
58
|
toggleSplitPaneShow(event?: Event): Promise<void>;
|
|
57
59
|
doAction(action: string, event: Event): Promise<void>;
|
|
58
60
|
onSwipeRight(event: any): boolean;
|
|
61
|
+
protected markAsLoaded(opts?: {
|
|
62
|
+
emitEvent?: boolean;
|
|
63
|
+
}): void;
|
|
64
|
+
protected markAsLoading(opts?: {
|
|
65
|
+
emitEvent?: boolean;
|
|
66
|
+
}): void;
|
|
59
67
|
protected detectChanges(): void;
|
|
68
|
+
protected markForCheck(): void;
|
|
60
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, { "id": "id"; "menuId": "menuId"; "side": "side"; "contentId": "contentId"; "logo": "logo"; "appName": "appName"; "appVersion": "appVersion"; }, {}, never, ["*", "[headerBottomRight]"], false>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, { "id": "id"; "menuId": "menuId"; "side": "side"; "contentId": "contentId"; "logo": "logo"; "appName": "appName"; "appVersion": "appVersion"; "rxStrategy": "rxStrategy"; }, {}, never, ["*", "[headerBottomRight]"], false>;
|
|
62
71
|
}
|
|
@@ -2,9 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./menu.component";
|
|
3
3
|
import * as i2 from "../../shared/shared.module";
|
|
4
4
|
import * as i3 from "@angular/router";
|
|
5
|
-
import * as i4 from "@
|
|
5
|
+
import * as i4 from "@rx-angular/template/for";
|
|
6
|
+
import * as i5 from "@ngx-translate/core";
|
|
6
7
|
export declare class AppMenuModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMenuModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AppMenuModule, [typeof i1.MenuComponent], [typeof i2.SharedModule, typeof i3.RouterModule, typeof i4.TranslateModule], [typeof
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AppMenuModule, [typeof i1.MenuComponent], [typeof i2.SharedModule, typeof i3.RouterModule, typeof i4.ForModule, typeof i5.TranslateModule], [typeof i5.TranslateModule, typeof i1.MenuComponent]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<AppMenuModule>;
|
|
10
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { MenuItem } from './menu.model';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { Environment } from '../../../environments/environment.class';
|
|
@@ -27,9 +27,10 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
27
27
|
protected accountService: AccountService;
|
|
28
28
|
protected router: Router;
|
|
29
29
|
protected environment: Environment;
|
|
30
|
+
readonly accountChanges: BehaviorSubject<Account>;
|
|
30
31
|
private _staticItems;
|
|
31
32
|
private _itemCounter;
|
|
32
|
-
private _logPrefix;
|
|
33
|
+
private readonly _logPrefix;
|
|
33
34
|
private readonly _$opened;
|
|
34
35
|
private readonly _$splitPaneWhen;
|
|
35
36
|
private readonly _$enabled;
|
|
@@ -47,7 +48,7 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
47
48
|
addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): Promise<boolean>;
|
|
48
49
|
protected _addSubMenuItem(newItem: MenuItem, opts?: AddSubMenuItemsOption): boolean;
|
|
49
50
|
protected ngOnStart(): Promise<MenuItem[]>;
|
|
50
|
-
protected loadMenuItems(config: Configuration, account: Account): Promise<void>;
|
|
51
|
+
protected loadMenuItems(config: Configuration | null, account: Account | null): Promise<void>;
|
|
51
52
|
protected prepareItem(item: MenuItem): MenuItem;
|
|
52
53
|
protected findExistingItem(item: MenuItem, items?: MenuItem[]): MenuItem;
|
|
53
54
|
protected findParent(childItem: MenuItem, availableParents?: MenuItem[]): MenuItem;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export declare const fadeInAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
|
+
export declare const fadeInSlowAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
3
|
export declare const fadeInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
|
+
export declare const slideInAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
3
5
|
export declare const slideInOutAnimation: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
6
|
export declare const slideUpDownAnimation: import("@angular/animations").AnimationTriggerMetadata;
|