{"id":23250739,"url":"https://github.com/changhuixu/uiowa-header-demo","last_synced_at":"2025-08-20T09:30:57.057Z","repository":{"id":41322432,"uuid":"132487249","full_name":"changhuixu/uiowa-header-demo","owner":"changhuixu","description":"An Angular library for common website header, including a UIOWA branding bar and a website nav bar.","archived":false,"fork":false,"pushed_at":"2024-07-15T01:59:12.000Z","size":4444,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-12T14:16:54.709Z","etag":null,"topics":["angular","header","impersonation","uiowa","uiowa-branding","uiowa-header","website-nav"],"latest_commit_sha":null,"homepage":"https://changhuixu.github.io/uiowa-header-demo/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/changhuixu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-07T16:23:40.000Z","updated_at":"2024-07-14T22:40:37.000Z","dependencies_parsed_at":"2024-07-08T20:50:42.188Z","dependency_job_id":"c481122b-8330-4767-9c3a-8e2a224f97b7","html_url":"https://github.com/changhuixu/uiowa-header-demo","commit_stats":{"total_commits":98,"total_committers":3,"mean_commits":"32.666666666666664","dds":0.09183673469387754,"last_synced_commit":"36a345bfb9d6c54e7a9448f197d3c57895b3d8a8"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-header-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-header-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-header-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/changhuixu%2Fuiowa-header-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/changhuixu","download_url":"https://codeload.github.com/changhuixu/uiowa-header-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230408177,"owners_count":18220975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","header","impersonation","uiowa","uiowa-branding","uiowa-header","website-nav"],"created_at":"2024-12-19T09:14:51.816Z","updated_at":"2025-08-20T09:30:57.049Z","avatar_url":"https://github.com/changhuixu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIowa Header\n\nAn Angular library for common website header, including a UIowa branding bar and a website nav bar. This library also handles impersonation use case.\n\nYou might also want to check out libraries [@uiowa/universal-workflow](https://github.com/changhuixu/uiowa-universal-workflow), [@uiowa/spinner](https://github.com/changhuixu/spinner), [session-expiration-alert](https://github.com/changhuixu/session-expiration-alert), [@uiowa/date-range-picker](https://github.com/changhuixu/date-range-picker), [@uiowa/digit-only](https://github.com/changhuixu/ngx-digit-only) and [@uiowa/uiowa-mfk](https://github.com/changhuixu/uiowa-mfk-project).\n\n[![Build Status](https://github.com/changhuixu/uiowa-header-demo/actions/workflows/main.yml/badge.svg)](https://github.com/changhuixu/uiowa-header-demo/actions)\n[![npm](https://img.shields.io/npm/v/@uiowa/uiowa-header.svg?style=flat-square)](https://www.npmjs.com/package/@uiowa/uiowa-header)\n![Web Content Accessibility](https://img.shields.io/badge/Accessibility-100-brightgreen.svg?longCache=true\u0026style=flat-square)\n\n## [Demo](https://changhuixu.github.io/uiowa-header-demo/)\n\n**v19** Dependencies: Angular \u003e=19\n\n**v17** Dependencies: Angular \u003e=17\n\n**v13** Dependencies: Angular \u003e=13\n\n**v12.1.1** Dependencies: Angular \u003e=12\n\n**v12** Dependencies: Angular \u003e=12, ng-bootstrap \u003e=10, Bootstrap \u003e=4.5 (css)\n\n**v10** Dependencies: Angular \u003e=10, ng-bootstrap \u003e=7, Bootstrap \u003e=4.5 (css)\n\n**v9** Dependencies: Angular \u003e=9, ng-bootstrap \u003e=6, Bootstrap \u003e=4 (css)\n\n**v6 ~ v8** Dependencies: Angular \u003e=6, ng-bootstrap \u003e=2, Bootstrap \u003e=4 (css)\n\n## Library Details\n\n### Models\n\n- `ExternalLink`: static link listed in navigation menu bar. eg, Employee Self Service site link. (Optional)\n- `InternalRoute`: route for pages in your app.\n- `HeaderUser`: used to display user name and/or original user name when impersonation.\n- `BannerLinks`: static link listed in Uiowa branding bar. eg, Employee Self Service site link. Maximum two links. (Optional)\n\n### Features\n\n- Responsive header layout with Hawkeye color styles\n- 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,\n\n  ```html\n  \u003cuiowa-header\n    applicationName=\"My Awesome App\"\n    [internalRoutes]=\"myInternalRoutes\"\n  \u003e\n    \u003cdiv class=\"text-white\"\u003emy content\u003c/div\u003e\n  \u003c/uiowa-header\u003e\n  ```\n\n- Support application Nav menus with dropdown sub menus, as well as dividers in dropdown menu.\n- 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.\n\n  If you want to customize login and/or logout process, you can provide your customized service via dependency injection. eg,\n\n  ```typescript\n  @NgModule({\n    imports: [CommonModule, UiowaHeaderModule],\n    declarations: [...],\n    providers: [{ provide: LoginService, useClass: HawkIdLoginService }],\n    exports: [UiowaHeaderModule, ...]\n  })\n  export class CoreModule {\n    constructor(@Optional() @SkipSelf() core: CoreModule) {\n      if (core) {\n        throw new Error('Core Module can only be imported to AppModule.');\n      }\n    }\n  }\n  ```\n\n- 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.\n\n- Follow web content accessibility guidelines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fuiowa-header-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanghuixu%2Fuiowa-header-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanghuixu%2Fuiowa-header-demo/lists"}