@sarasanalytics-com/design-system 0.0.123 → 0.0.124
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/esm2022/interfaces/menu.interface.mjs +1 -1
- package/esm2022/lib/left-nav/left-nav.component.mjs +34 -2
- package/esm2022/lib/menu/menu.component.mjs +13 -3
- package/esm2022/lib/menu/menu.directive.mjs +64 -21
- package/fesm2022/sarasanalytics-com-design-system.mjs +108 -24
- package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -1
- package/interfaces/menu.interface.d.ts +1 -0
- package/lib/left-nav/left-nav.component.d.ts +4 -2
- package/lib/menu/menu.component.d.ts +2 -2
- package/lib/menu/menu.directive.d.ts +9 -2
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { MatTooltip } from '@angular/material/tooltip';
|
|
4
4
|
import { ILeftNav, ILeftNavBlurEvent, ILeftNavClickEvent, ILeftNavItem, ILeftNavLogo } from '../../interfaces/left-nav-interface';
|
|
5
5
|
import { IMenu } from '../../interfaces/menu.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class LeftNavComponent {
|
|
7
|
+
export declare class LeftNavComponent implements OnChanges {
|
|
8
8
|
private route;
|
|
9
9
|
private router;
|
|
10
10
|
isMenuAttached: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
private activeMenuItemRef;
|
|
11
12
|
config: ILeftNav;
|
|
12
13
|
clickEvent: EventEmitter<ILeftNavClickEvent>;
|
|
13
14
|
hoverEvent: EventEmitter<ILeftNavBlurEvent>;
|
|
@@ -16,6 +17,7 @@ export declare class LeftNavComponent {
|
|
|
16
17
|
constructor(route: ActivatedRoute, router: Router);
|
|
17
18
|
ngOnInit(): void;
|
|
18
19
|
ngAfterViewInit(): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
21
|
setItemActive(index: number): void;
|
|
20
22
|
onNavItemClick(item: ILeftNavItem, index: number, event?: any): void;
|
|
21
23
|
onFooterItemClick(item: ILeftNavItem, index: number, event?: any): void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SimpleChanges, EventEmitter } from '@angular/core';
|
|
1
|
+
import { SimpleChanges, OnChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { Overlay } from '@angular/cdk/overlay';
|
|
3
3
|
import { IMenu, IMenuItem } from '../../interfaces/menu.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SAMenuComponent {
|
|
5
|
+
export declare class SAMenuComponent implements OnChanges {
|
|
6
6
|
private overlay;
|
|
7
7
|
position: 'left' | 'right' | 'top' | 'bottom';
|
|
8
8
|
menu: IMenu;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { ElementRef, EventEmitter, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { IMenu } from '../../interfaces/menu.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class MenuDirective implements OnInit {
|
|
5
|
+
export declare class MenuDirective implements OnInit, OnChanges, OnDestroy {
|
|
6
6
|
private overlay;
|
|
7
7
|
private elRef;
|
|
8
|
+
private menuConfig$;
|
|
9
|
+
private destroy$;
|
|
8
10
|
saMenuRef: ViewContainerRef | TemplateRef<ElementRef> | null;
|
|
9
11
|
onMenuEvent: EventEmitter<any>;
|
|
10
12
|
onEvent: EventEmitter<any>;
|
|
@@ -24,9 +26,14 @@ export declare class MenuDirective implements OnInit {
|
|
|
24
26
|
set position(value: 'left' | 'right' | 'top' | 'bottom');
|
|
25
27
|
constructor(overlay: Overlay, elRef: ElementRef);
|
|
26
28
|
onClick(e: any): void;
|
|
29
|
+
private overlayRef;
|
|
30
|
+
private compRef;
|
|
27
31
|
ngOnInit(): void;
|
|
28
32
|
ngAfterViewInit(): void;
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
29
35
|
attachMenu(): void;
|
|
36
|
+
detachMenu(): void;
|
|
30
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuDirective, never>;
|
|
31
38
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MenuDirective, "[saMenu]", never, { "saMenuRef": { "alias": "saMenuRef"; "required": false; }; "saMenu": { "alias": "saMenu"; "required": false; }; "position": { "alias": "saManuPosition"; "required": false; }; }, { "onMenuEvent": "onMenuEvent"; "onEvent": "onEvent"; "onAttached": "onAttached"; "onDetached": "onDetached"; }, never, never, true, never>;
|
|
32
39
|
}
|