sgh-navbar 0.0.54 → 0.0.57
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/README.md +576 -20
- package/fesm2022/sgh-navbar.mjs +630 -332
- package/fesm2022/sgh-navbar.mjs.map +1 -1
- package/index.d.ts +0 -0
- package/lib/breadcrumb/breadcrumb.component.d.ts +13 -0
- package/lib/breadcrumb/breadcrumb.service.d.ts +21 -0
- package/lib/configs/default-sidenav.config.d.ts +2 -0
- package/lib/configs/default-toolbar.config.d.ts +2 -0
- package/lib/sgh-navbar.component.d.ts +19 -2
- package/lib/sgh-navbar.module.d.ts +10 -9
- package/lib/sgh-navbar.service.d.ts +8 -7
- package/lib/sidenav/helper.d.ts +0 -0
- package/lib/sidenav/menu-list-item/menu-list-item.component.d.ts +2 -3
- package/lib/sidenav/nav-data.d.ts +0 -0
- package/lib/sidenav/sidenav-data.d.ts +1 -1
- package/lib/sidenav/sidenav.component.d.ts +10 -6
- package/lib/sidenav/sublevel-menu.component.d.ts +1 -1
- package/lib/toolbar/notification-list/notification-list.component.d.ts +8 -0
- package/lib/toolbar/search.pipe.d.ts +0 -0
- package/lib/toolbar/sub-client-dialog/sub-client-dialog.component.d.ts +0 -0
- package/lib/toolbar/toolbar-data.d.ts +5 -5
- package/lib/toolbar/toolbar.component.d.ts +9 -11
- package/package.json +7 -2
- package/public-api.d.ts +7 -0
- package/lib/toolbar/noftification-list/noftification-list.component.d.ts +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ToolbarData {
|
|
2
2
|
themeOptions: ThemeOption[];
|
|
3
3
|
clientList?: ClientListItem[];
|
|
4
4
|
bgColor: string;
|
|
@@ -8,24 +8,24 @@ export declare class ToolbarData {
|
|
|
8
8
|
profileEnable?: boolean;
|
|
9
9
|
settingsEnable?: boolean;
|
|
10
10
|
profileView?: boolean;
|
|
11
|
-
profileContent?:
|
|
11
|
+
profileContent?: string;
|
|
12
12
|
clientConfigurationEnable?: boolean;
|
|
13
13
|
applicationConfigurationEnable?: boolean;
|
|
14
14
|
isThemeCollapsed?: boolean;
|
|
15
15
|
isNotifNavCollapsed?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export interface ThemeOption {
|
|
18
18
|
name: string;
|
|
19
19
|
value: string;
|
|
20
20
|
checked: boolean;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export interface ClientListItem {
|
|
23
23
|
text: string;
|
|
24
24
|
value: string;
|
|
25
25
|
selected: boolean;
|
|
26
26
|
subClientList?: SubClientListItem[];
|
|
27
27
|
}
|
|
28
|
-
export
|
|
28
|
+
export interface SubClientListItem {
|
|
29
29
|
text: string;
|
|
30
30
|
value: string;
|
|
31
31
|
checked: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { MatDialog } from "@angular/material/dialog";
|
|
3
3
|
import { MatMenuTrigger } from "@angular/material/menu";
|
|
4
|
-
import { ClientListItem, ToolbarData } from "./toolbar-data";
|
|
4
|
+
import { ClientListItem, SubClientListItem, ToolbarData } from "./toolbar-data";
|
|
5
5
|
import { SghNavbarService } from "../sgh-navbar.service";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ToolbarComponent implements AfterViewInit {
|
|
@@ -11,13 +11,13 @@ export declare class ToolbarComponent implements AfterViewInit {
|
|
|
11
11
|
toggleSidebarEvent: EventEmitter<boolean>;
|
|
12
12
|
toolbarData: ToolbarData;
|
|
13
13
|
searchInputEvent: EventEmitter<string>;
|
|
14
|
-
client: EventEmitter<
|
|
15
|
-
subClient: EventEmitter<
|
|
14
|
+
client: EventEmitter<ClientListItem>;
|
|
15
|
+
subClient: EventEmitter<SubClientListItem>;
|
|
16
16
|
searchInput: string;
|
|
17
17
|
private prev;
|
|
18
|
-
selected:
|
|
18
|
+
selected: string;
|
|
19
19
|
private wasInside;
|
|
20
|
-
selectedClient:
|
|
20
|
+
selectedClient: ClientListItem | null;
|
|
21
21
|
clientMenuTrigger: MatMenuTrigger;
|
|
22
22
|
clickInside(): void;
|
|
23
23
|
clickOut(): void;
|
|
@@ -27,15 +27,13 @@ export declare class ToolbarComponent implements AfterViewInit {
|
|
|
27
27
|
clickProfile(): void;
|
|
28
28
|
onSearchInput(): void;
|
|
29
29
|
ngAfterViewInit(): void;
|
|
30
|
-
setClass(selected:
|
|
31
|
-
|
|
32
|
-
selectedTheme: string;
|
|
33
|
-
searchText: any;
|
|
30
|
+
setClass(selected: string): void;
|
|
31
|
+
searchText: string;
|
|
34
32
|
onRadioClick(themeValue: string): void;
|
|
35
|
-
toggleSelect(event:
|
|
33
|
+
toggleSelect(event: Event, clientItem: ClientListItem): void;
|
|
36
34
|
initSelectedSubClient(client: ClientListItem): void;
|
|
37
35
|
unselectClientItems(): void;
|
|
38
36
|
selectFirstSubclient(): void;
|
|
39
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, never>;
|
|
40
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "sgh-toolbar", never, { "expanded": { "alias": "expanded"; "required": false; }; "toolbarData": { "alias": "toolbarData"; "required": false; }; }, { "toggleSidebarEvent": "toggleSidebarEvent"; "searchInputEvent": "searchInputEvent"; "client": "client"; "subClient": "subClient"; }, never, never, false, never>;
|
|
41
39
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sgh-navbar",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.57",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^19.2.0",
|
|
6
|
-
"@angular/core": "^19.2.0"
|
|
6
|
+
"@angular/core": "^19.2.0",
|
|
7
|
+
"@angular/material": "^19.2.0",
|
|
8
|
+
"@angular/animations": "^19.2.0",
|
|
9
|
+
"@angular/cdk": "^19.2.0",
|
|
10
|
+
"@angular/router": "^19.2.0",
|
|
11
|
+
"@angular/forms": "^19.2.0"
|
|
7
12
|
},
|
|
8
13
|
"dependencies": {
|
|
9
14
|
"tslib": "^2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -3,4 +3,11 @@ export * from './lib/sgh-navbar.component';
|
|
|
3
3
|
export * from './lib/sgh-navbar.module';
|
|
4
4
|
export * from './lib/sidenav/sidenav.component';
|
|
5
5
|
export * from './lib/sidenav/sublevel-menu.component';
|
|
6
|
+
export * from './lib/sidenav/sidenav-data';
|
|
7
|
+
export * from './lib/sidenav/helper';
|
|
6
8
|
export * from './lib/toolbar/toolbar.component';
|
|
9
|
+
export * from './lib/toolbar/toolbar-data';
|
|
10
|
+
export * from './lib/breadcrumb/breadcrumb.component';
|
|
11
|
+
export * from './lib/breadcrumb/breadcrumb.service';
|
|
12
|
+
export * from './lib/configs/default-toolbar.config';
|
|
13
|
+
export * from './lib/configs/default-sidenav.config';
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|