0.0.1 • Published 3 years ago

@test-org123456/header v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Header

This library was generated with Angular CLI version 13.3.0.

HeaderModule

import { HeaderModule } from '@synlab-poc/header';

A single component module that exports the HeaderComponent.

HeaderComponent

import { HeaderComponent } from '@synlab-poc/header';

The header component with lib-header selector.

Input properties

@Input() links: Link[] = [];
@Input() brandLogo = '';
@Input() myAccountLink: string | null = '';
@Input() brandLogoLink: string | null = '';
@Input() disableLinks = false;
@Input() user?: Profile;

Output properties

@Output() onLogout = new EventEmitter();
@Output() onMyAccount = new EventEmitter();

Types

Link

export type Link = {
  label: string;
  url?: string;
  route?: string;
  state?: Object;
  icon?: string;
  urlGenerator?: (config: Config, lang: string) => string;
}

Config

export type Config = {
  EnablePreventionWellness?: boolean,
  FullCatalogueViewEnabled?: boolean,
  basePlasmaUrl: string,
  baseAdminUrl: string,
  baseBigcommerceUrl: string
  baseBookingUrl: string,
  baseWebreqUrl: string,
  baseProfileUrl: string,
  applicationId?: string
}

Profile

export type Profile = {
  givenName: string,
  familyName: string,
  synlabId: string,
  claims: Claim[];
}

Claim

export type Claim = {
  claimValue: string,
  claimType: string
}