@indice/ng-components 0.2.63 → 0.2.65

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.
@@ -1,8 +1,8 @@
1
+ import { AuthService } from '@indice/ng-auth';
1
2
  import { OnInit, OnDestroy } from '@angular/core';
2
3
  import { User } from 'oidc-client';
3
4
  import { Event, Router } from '@angular/router';
4
5
  import { NavLink } from '../../../types';
5
- import { AuthService } from '@indice/ng-auth';
6
6
  import { Observable } from 'rxjs';
7
7
  import { Subscription } from 'rxjs';
8
8
  export declare class ShellHeaderComponent implements OnInit, OnDestroy {
@@ -14,11 +14,10 @@ export declare class ShellHeaderComponent implements OnInit, OnDestroy {
14
14
  profileMenuVisible: boolean;
15
15
  showUserNameOnHeader: boolean | undefined;
16
16
  border: boolean;
17
- sectionLinks: NavLink[];
17
+ sectionLinks: NavLink[] | Observable<NavLink[]>;
18
18
  mobileMenuExpanded: boolean;
19
19
  userMenuExpanded: boolean;
20
20
  protected routeSubject: Observable<Event>;
21
- protected userSubject: Observable<User | null>;
22
21
  protected routerSub$: Subscription | null;
23
22
  protected userSub$: Subscription | null;
24
23
  protected statusSub$: Subscription | null;
@@ -1,5 +1,5 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { AuthService } from '@indice/ng-auth';
2
+ import { OnInit } from '@angular/core';
3
3
  export declare class LoggedOutComponent implements OnInit {
4
4
  private authService;
5
5
  constructor(authService: AuthService);
package/lib/types.d.ts CHANGED
@@ -1,10 +1,11 @@
1
+ import { Observable } from 'rxjs';
1
2
  export interface IAppLinks {
2
- public: NavLink[];
3
- main: NavLink[];
4
- profile: NavLink[];
5
- profileActions: NavLink[];
6
- legal: NavLink[];
7
- brand: NavLink[];
3
+ public: NavLink[] | Observable<NavLink[]>;
4
+ main: NavLink[] | Observable<NavLink[]>;
5
+ profile: NavLink[] | Observable<NavLink[]>;
6
+ profileActions: NavLink[] | Observable<NavLink[]>;
7
+ legal: NavLink[] | Observable<NavLink[]>;
8
+ brand: NavLink[] | Observable<NavLink[]>;
8
9
  }
9
10
  export declare class NavLink {
10
11
  constructor(text: string, path: string, exact?: boolean, external?: boolean, icon?: string);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indice/ng-components",
3
- "version": "0.2.63",
3
+ "version": "0.2.65",
4
4
  "description": "Indice common components for Angular v12",
5
5
  "repository": {
6
6
  "type": "git",