npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@uiowa/uiowa-header

v13.3.0

Published

An Angular library for uiowa website header, including an IOWA branding bar and a website nav bar.

Downloads

65

Readme

UIowa Header

An Angular library for common website header, including a UIowa branding bar and a website nav bar. This library also handles impersonation use case.

You might also want to check out libraries @uiowa/spinner, session-expiration-alert, @uiowa/date-range-picker, @uiowa/digit-only and @uiowa/uiowa-mfk.

Build Status npm Web Content Accessibility

Demo

v13 Dependencies: Angular >=13

v12.1.1 Dependencies: Angular >=12

v12 Dependencies: Angular >=12, ng-bootstrap >=10, Bootstrap >=4.5 (css)

v10 Dependencies: Angular >=10, ng-bootstrap >=7, Bootstrap >=4.5 (css)

v9 Dependencies: Angular >=9, ng-bootstrap >=6, Bootstrap >=4 (css)

v6 ~ v8 Dependencies: Angular >=6, ng-bootstrap >=2, Bootstrap >=4 (css)

Library Details

Models

  • ExternalLink: static link listed in navigation menu bar. eg, Employee Self Service site link. (Optional)
  • InternalRoute: route for pages in your app.
  • HeaderUser: used to display user name and/or original user name when impersonation.
  • BannerLinks: static link listed in Uiowa branding bar. eg, Employee Self Service site link. Maximum two links. (Optional)

Features

  • Responsive header layout with Hawkeye color styles

  • Support custom "top-right" part of Uiowa branding bar. By default, "top-right" part of Uiowa branding bar shows External Links (if any) and Login link or User dropdown button. If you want to customize the "top-right" part, you can provide your content inside of uiowa-header tag. eg,

    <uiowa-header
      applicationName="My Awesome App"
      [internalRoutes]="myInternalRoutes"
    >
      <div class="text-white">my content</div>
    </uiowa-header>
  • Support application Nav menus with dropdown sub menus, as well as dividers in dropdown menu.

  • Provide LoginService with default implementations for login() and logout() methods which correspond to click event from login and logout buttons. By default, you don't need to do extra work for login/logout. The two methods follow .NET Core convention redirect to routes account\login and account\logout, respectively. LoginService has a public member returnUri (string, default empty), which is the return uri after login.

    If you want to customize login and/or logout process, you can provide your customized service via dependency injection. eg,

    @NgModule({
      imports: [CommonModule, UiowaHeaderModule],
      declarations: [...],
      providers: [{ provide: LoginService, useClass: HawkIdLoginService }],
      exports: [UiowaHeaderModule, ...]
    })
    export class CoreModule {
      constructor(@Optional() @SkipSelf() core: CoreModule) {
        if (core) {
          throw new Error('Core Module can only be imported to AppModule.');
        }
      }
    }
  • When user is impersonating and wants to stop impersonation, user dropdown will show a link which would emit a stopImpersonation event. You can handle this event accordingly.

  • Follow web content accessibility guidelines.