@indice/ng-components 0.2.121-beta → 0.2.121
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 +4 -4
- package/_styles.css +4 -53
- package/bundles/indice-ng-components.umd.js +52 -68
- package/bundles/indice-ng-components.umd.js.map +1 -1
- package/esm2015/lib/controls/kpi-tile/kpi-tile.component.js +1 -1
- package/esm2015/lib/controls/list-view/list-column.component.js +1 -1
- package/esm2015/lib/controls/list-view/list-view-empty-state.component.js +2 -2
- package/esm2015/lib/controls/skeleton-loader/skeleton-loader.component.js +1 -1
- package/esm2015/lib/layouts/shell/shell-header/shell-header.component.js +34 -46
- package/esm2015/lib/layouts/shell/shell-layout/shell-layout.component.js +11 -6
- package/esm2015/lib/layouts/views/form-layout/form-layout.component.js +5 -6
- package/esm2015/lib/services/toaster.service.js +1 -1
- package/esm2015/lib/types.js +5 -11
- package/fesm2015/indice-ng-components.js +50 -65
- package/fesm2015/indice-ng-components.js.map +1 -1
- package/lib/layouts/shell/shell-header/shell-header.component.d.ts +15 -21
- package/lib/layouts/shell/shell-layout/shell-layout.component.d.ts +3 -2
- package/lib/layouts/views/form-layout/form-layout.component.d.ts +2 -3
- package/lib/types.d.ts +6 -11
- package/package.json +1 -1
|
@@ -1,42 +1,36 @@
|
|
|
1
|
+
import { AuthService } from '@indice/ng-auth';
|
|
1
2
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
3
|
import { User } from 'oidc-client';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import {
|
|
5
|
-
import { Observable
|
|
6
|
-
import {
|
|
4
|
+
import { Event, Router } from '@angular/router';
|
|
5
|
+
import { NavLink } from '../../../types';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { Subscription } from 'rxjs';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ShellHeaderComponent implements OnInit, OnDestroy {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
protected authService: AuthService;
|
|
11
|
+
protected router: Router;
|
|
12
|
+
config: any;
|
|
11
13
|
links: any;
|
|
12
14
|
sectionLinksPath: string;
|
|
13
|
-
notificationLinksPath: string;
|
|
14
|
-
config: IShellConfig;
|
|
15
|
-
border: boolean;
|
|
16
|
-
showNotifications: boolean | undefined;
|
|
17
|
-
showUserNameOnHeader: boolean | undefined;
|
|
18
|
-
notificationsMenuVisible: boolean;
|
|
19
15
|
profileMenuVisible: boolean;
|
|
16
|
+
showUserNameOnHeader: boolean | undefined;
|
|
17
|
+
border: boolean;
|
|
20
18
|
sectionLinks: Observable<NavLink[]>;
|
|
21
|
-
notificationLinks: Observable<NotificationNavLink[]>;
|
|
22
19
|
mobileMenuExpanded: boolean;
|
|
23
20
|
userMenuExpanded: boolean;
|
|
24
|
-
notificationsMenuExpanded: boolean;
|
|
25
21
|
protected routeSubject: Observable<Event>;
|
|
26
22
|
protected routerSub$: Subscription | null;
|
|
27
23
|
protected userSub$: Subscription | null;
|
|
28
24
|
protected statusSub$: Subscription | null;
|
|
29
25
|
user: User | null;
|
|
30
26
|
avatarName: string | null;
|
|
31
|
-
constructor(authService: AuthService, router: Router, links: any);
|
|
27
|
+
constructor(authService: AuthService, router: Router, config: any, links: any);
|
|
32
28
|
ngOnDestroy(): void;
|
|
29
|
+
scroll(el: HTMLElement): void;
|
|
33
30
|
ngOnInit(): void;
|
|
34
|
-
|
|
35
|
-
onClickOutsideProfile($event: any): void;
|
|
36
|
-
onClickOutsideNotifications($event: any): void;
|
|
31
|
+
onClickOutside($event: any): void;
|
|
37
32
|
signin(event: any | null | undefined): void;
|
|
38
|
-
|
|
39
|
-
expandNotificationsMenu(): void;
|
|
33
|
+
private setCurrentUser;
|
|
40
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShellHeaderComponent, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShellHeaderComponent, "lib-shell-header", never, { "sectionLinksPath": "section-links"; "
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShellHeaderComponent, "lib-shell-header", never, { "sectionLinksPath": "section-links"; "profileMenuVisible": "profile-menu"; "showUserNameOnHeader": "show-userName"; "border": "border"; }, {}, never, never>;
|
|
42
36
|
}
|
|
@@ -6,16 +6,17 @@ import { DynamicComponentHostDirective } from '../../../directives/dynamic-compo
|
|
|
6
6
|
import { ComponentLoaderFactory } from '../../../services/component-loader/component-loader.factory';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ShellLayoutComponent implements OnInit, OnDestroy, AfterViewInit, AfterViewChecked {
|
|
9
|
+
private document;
|
|
9
10
|
private router;
|
|
10
11
|
private location;
|
|
11
12
|
private config;
|
|
12
13
|
private componentLoaderFactory;
|
|
13
14
|
dynamicComponentHosts: QueryList<DynamicComponentHostDirective> | null;
|
|
14
|
-
private routerSub$;
|
|
15
15
|
showRightPaneSM: boolean;
|
|
16
|
+
private routerSub$;
|
|
16
17
|
activeConfig: IShellConfig;
|
|
17
18
|
loaded: boolean;
|
|
18
|
-
constructor(router: Router, location: Location, config: IShellConfig | null, componentLoaderFactory: ComponentLoaderFactory);
|
|
19
|
+
constructor(document: any, router: Router, location: Location, config: IShellConfig | null, componentLoaderFactory: ComponentLoaderFactory);
|
|
19
20
|
ngAfterViewChecked(): void;
|
|
20
21
|
ngOnInit(): void;
|
|
21
22
|
ngAfterViewInit(): void;
|
|
@@ -3,7 +3,7 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { RouterViewAction, ViewAction } from '../../../types';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FormLayoutComponent implements OnInit {
|
|
6
|
-
private
|
|
6
|
+
private router$;
|
|
7
7
|
private searchInput$?;
|
|
8
8
|
title: string | null;
|
|
9
9
|
searchPlaceholder: string | null;
|
|
@@ -12,8 +12,7 @@ export declare class FormLayoutComponent implements OnInit {
|
|
|
12
12
|
onAction: EventEmitter<ViewAction>;
|
|
13
13
|
onSearch: EventEmitter<string>;
|
|
14
14
|
onComplete: EventEmitter<boolean>;
|
|
15
|
-
|
|
16
|
-
constructor(_router: Router);
|
|
15
|
+
constructor(router$: Router);
|
|
17
16
|
ngOnInit(): void;
|
|
18
17
|
onSidePaneDeactivated($event: any): void;
|
|
19
18
|
emitActionClick(action: ViewAction): void;
|
package/lib/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Observable } from
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
2
|
export interface IAppLinks {
|
|
3
3
|
public: Observable<NavLink[]>;
|
|
4
4
|
main: Observable<NavLink[]>;
|
|
@@ -6,26 +6,23 @@ export interface IAppLinks {
|
|
|
6
6
|
profileActions: Observable<NavLink[]>;
|
|
7
7
|
legal: Observable<NavLink[]>;
|
|
8
8
|
brand: Observable<NavLink[]>;
|
|
9
|
-
notifications?: Observable<NotificationNavLink[]>;
|
|
10
9
|
}
|
|
11
10
|
export declare class NavLink {
|
|
12
|
-
constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string
|
|
11
|
+
constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string);
|
|
13
12
|
text: string;
|
|
14
13
|
path: string;
|
|
15
14
|
exact: boolean;
|
|
16
15
|
external: boolean;
|
|
17
16
|
icon: string | undefined;
|
|
18
|
-
|
|
19
|
-
creationDate?: Date;
|
|
17
|
+
type: string;
|
|
20
18
|
}
|
|
21
19
|
export declare class ExternalNavLink extends NavLink {
|
|
22
20
|
constructor(text: string, path: string, openInNewTab?: boolean, icon?: string);
|
|
21
|
+
type: string;
|
|
23
22
|
}
|
|
24
23
|
export declare class FragmentNavLink extends NavLink {
|
|
25
24
|
constructor(text: string, path: string, icon?: string);
|
|
26
|
-
|
|
27
|
-
export declare class NotificationNavLink extends NavLink {
|
|
28
|
-
constructor(text: string, path: string, isRead: boolean, creationDate?: Date);
|
|
25
|
+
type: string;
|
|
29
26
|
}
|
|
30
27
|
export declare class ViewAction {
|
|
31
28
|
type: string;
|
|
@@ -80,9 +77,8 @@ export interface IShellConfig {
|
|
|
80
77
|
appLogoAlt: string;
|
|
81
78
|
showHeader: boolean;
|
|
82
79
|
showUserNameOnHeader?: boolean;
|
|
83
|
-
showNotifications: boolean;
|
|
84
|
-
showFooter: boolean;
|
|
85
80
|
customHeaderComponent?: any;
|
|
81
|
+
showFooter: boolean;
|
|
86
82
|
customFooterComponent?: any;
|
|
87
83
|
fluid: boolean;
|
|
88
84
|
}
|
|
@@ -91,7 +87,6 @@ export declare class DefaultShellConfig implements IShellConfig {
|
|
|
91
87
|
appLogoAlt: string;
|
|
92
88
|
showHeader: boolean;
|
|
93
89
|
showUserNameOnHeader: boolean;
|
|
94
|
-
showNotifications: boolean;
|
|
95
90
|
showFooter: boolean;
|
|
96
91
|
fluid: boolean;
|
|
97
92
|
}
|