sgh-navbar 0.0.4 → 0.0.6
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/lib/sgh-navbar.component.mjs +3 -3
- package/esm2020/lib/sgh-navbar.module.mjs +10 -7
- package/esm2020/lib/sgh-navbar.service.mjs +3 -3
- package/esm2020/lib/sidenav/menu-list-item/menu-list-item.component.mjs +3 -3
- package/esm2020/lib/sidenav/sidenav-data.mjs +3 -0
- package/esm2020/lib/sidenav/sidenav.component.mjs +8 -17
- package/esm2020/lib/sidenav/sublevel-menu.component.mjs +3 -3
- package/esm2020/lib/sidenav/toolbar-data.mjs +3 -0
- package/esm2020/lib/toolbar/noftification-list/noftification-list.component.mjs +14 -0
- package/esm2020/lib/toolbar/toolbar.component.mjs +49 -11
- package/fesm2015/sgh-navbar.mjs +86 -44
- package/fesm2015/sgh-navbar.mjs.map +1 -1
- package/fesm2020/sgh-navbar.mjs +86 -44
- package/fesm2020/sgh-navbar.mjs.map +1 -1
- package/lib/sgh-navbar.module.d.ts +12 -11
- package/lib/sidenav/sidenav-data.d.ts +7 -0
- package/lib/sidenav/sidenav.component.d.ts +3 -5
- package/lib/sidenav/toolbar-data.d.ts +12 -0
- package/lib/toolbar/noftification-list/noftification-list.component.d.ts +8 -0
- package/lib/toolbar/toolbar.component.d.ts +10 -5
- package/package.json +3 -3
|
@@ -4,18 +4,19 @@ import * as i2 from "./sidenav/sublevel-menu.component";
|
|
|
4
4
|
import * as i3 from "./sidenav/sidenav.component";
|
|
5
5
|
import * as i4 from "./toolbar/toolbar.component";
|
|
6
6
|
import * as i5 from "./sidenav/menu-list-item/menu-list-item.component";
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "@angular/common
|
|
10
|
-
import * as i9 from "@angular/
|
|
11
|
-
import * as i10 from "@angular/
|
|
12
|
-
import * as i11 from "@angular/
|
|
13
|
-
import * as i12 from "@angular/material/
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@angular/material/
|
|
16
|
-
import * as i15 from "@angular/material/
|
|
7
|
+
import * as i6 from "./toolbar/noftification-list/noftification-list.component";
|
|
8
|
+
import * as i7 from "@angular/platform-browser/animations";
|
|
9
|
+
import * as i8 from "@angular/common";
|
|
10
|
+
import * as i9 from "@angular/common/http";
|
|
11
|
+
import * as i10 from "@angular/router";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "@angular/material/list";
|
|
14
|
+
import * as i13 from "@angular/material/icon";
|
|
15
|
+
import * as i14 from "@angular/material/toolbar";
|
|
16
|
+
import * as i15 from "@angular/material/button";
|
|
17
|
+
import * as i16 from "@angular/material/input";
|
|
17
18
|
export declare class SghNavbarModule {
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SghNavbarModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SghNavbarModule, [typeof i1.SghNavbarComponent, typeof i2.SublevelMenuComponent, typeof i3.SidenavComponent, typeof i4.ToolbarComponent, typeof i5.MenuListItemComponent], [typeof
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SghNavbarModule, [typeof i1.SghNavbarComponent, typeof i2.SublevelMenuComponent, typeof i3.SidenavComponent, typeof i4.ToolbarComponent, typeof i5.MenuListItemComponent, typeof i6.NoftificationListComponent], [typeof i7.BrowserAnimationsModule, typeof i8.CommonModule, typeof i9.HttpClientModule, typeof i10.RouterModule, typeof i11.FormsModule, typeof i12.MatListModule, typeof i13.MatIconModule, typeof i14.MatToolbarModule, typeof i15.MatButtonModule, typeof i16.MatInputModule], [typeof i1.SghNavbarComponent, typeof i2.SublevelMenuComponent, typeof i3.SidenavComponent, typeof i4.ToolbarComponent]>;
|
|
20
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<SghNavbarModule>;
|
|
21
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { INavbarData } from './helper';
|
|
4
|
+
import { SidenavData } from "./sidenav-data";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
interface SideNavToggle {
|
|
6
7
|
screenWidth: number;
|
|
@@ -11,10 +12,7 @@ export declare class SidenavComponent implements OnInit {
|
|
|
11
12
|
onToggleSideNav: EventEmitter<SideNavToggle>;
|
|
12
13
|
collapsed: boolean;
|
|
13
14
|
screenWidth: number;
|
|
14
|
-
|
|
15
|
-
bgColor: string;
|
|
16
|
-
imgSm: string;
|
|
17
|
-
imgLg: string;
|
|
15
|
+
sidenavData: SidenavData;
|
|
18
16
|
multiple: boolean;
|
|
19
17
|
onResize(event: any): void;
|
|
20
18
|
constructor(router: Router);
|
|
@@ -25,6 +23,6 @@ export declare class SidenavComponent implements OnInit {
|
|
|
25
23
|
getActiveClass(data: INavbarData): string;
|
|
26
24
|
shrinkItems(item: INavbarData): void;
|
|
27
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidenavComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "app-sidenav", never, { "
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidenavComponent, "app-sidenav", never, { "sidenavData": "sidenavData"; }, { "onToggleSideNav": "onToggleSideNav"; }, never, never, false, never>;
|
|
29
27
|
}
|
|
30
28
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NoftificationListComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoftificationListComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NoftificationListComponent, "app-noftification-list", never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
1
|
import { MatDrawer } from "@angular/material/sidenav";
|
|
2
2
|
import { SghNavbarService } from "../sgh-navbar.service";
|
|
3
|
+
import { ToolbarData } from "../sidenav/toolbar-data";
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ToolbarComponent {
|
|
5
6
|
navService: SghNavbarService;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
bgColor: string;
|
|
9
|
-
img: string;
|
|
7
|
+
prev: any;
|
|
8
|
+
toolbarData: ToolbarData;
|
|
10
9
|
sidenav: MatDrawer;
|
|
11
10
|
topbar: ToolbarComponent;
|
|
11
|
+
showNotificationList: boolean;
|
|
12
|
+
profileView: boolean;
|
|
13
|
+
isThemeCollapsed: boolean;
|
|
12
14
|
constructor(navService: SghNavbarService);
|
|
13
15
|
ngOnInit(): void;
|
|
14
16
|
toggleNotificationList(): void;
|
|
15
17
|
closeNotificationList(): void;
|
|
18
|
+
setClass(selected: any): void;
|
|
19
|
+
clickTheme(): void;
|
|
20
|
+
clickProfile(): void;
|
|
16
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "toolbarData": "toolbarData"; }, {}, never, never, false, never>;
|
|
18
23
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sgh-navbar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^15.2.
|
|
6
|
-
"@angular/core": "^15.2.
|
|
5
|
+
"@angular/common": "^15.2.8",
|
|
6
|
+
"@angular/core": "^15.2.8"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|