{"id":13580967,"url":"https://github.com/patternfly/patternfly-ng","last_synced_at":"2025-04-05T05:06:00.930Z","repository":{"id":18462875,"uuid":"84369917","full_name":"patternfly/patternfly-ng","owner":"patternfly","description":"The code for a set of Angular 6+ components for the PatternFly project. Note that the release/3.x branch supports Angular 4 and 5.","archived":false,"fork":false,"pushed_at":"2024-04-29T15:52:54.000Z","size":104246,"stargazers_count":88,"open_issues_count":0,"forks_count":55,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-29T04:05:34.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.patternfly.org/patternfly-ng","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patternfly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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":"2017-03-08T21:55:44.000Z","updated_at":"2024-04-29T03:15:22.000Z","dependencies_parsed_at":"2024-06-18T15:17:45.655Z","dependency_job_id":"044d1e3b-3399-43ab-b647-540ac74fdaac","html_url":"https://github.com/patternfly/patternfly-ng","commit_stats":{"total_commits":404,"total_committers":27,"mean_commits":"14.962962962962964","dds":"0.35148514851485146","last_synced_commit":"78ed1775579c6b1c1bac65549ac834c9d8e33fd6"},"previous_names":[],"tags_count":118,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patternfly%2Fpatternfly-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patternfly","download_url":"https://codeload.github.com/patternfly/patternfly-ng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289426,"owners_count":20914464,"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":[],"created_at":"2024-08-01T15:01:56.864Z","updated_at":"2025-04-05T05:06:00.909Z","avatar_url":"https://github.com/patternfly.png","language":"TypeScript","readme":"# DEPRECATED\n\nThis project is no longer active. Please see [patternfly-react](https://github.com/patternfly/patternfly-react) for React based components.\n\n# PatternFly-Ng\n\n[![Build Status](https://travis-ci.org/patternfly/patternfly-ng.svg?branch=master)](https://travis-ci.org/patternfly/patternfly-ng) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nWelcome to PatternFly-Ng.  This is a library of common Angular 6 components for use with the PatternFly 3 reference implementation. Below is information on how to get started using PatternFly-ng.  If you wish to contribute to PatternFly-ng, please go to our [Contributions page][contributing].\n\n- Web site: https://www.patternfly.org\n- API Docs: http://www.patternfly.org/patternfly-ng/\n- Build Status: https://travis-ci.org/patternfly/patternfly-ng.svg?branch=master\n\n### Using PatternFly-ng In Your Application\n\nThis example demonstrates using the Angular-cli to get started with PatternFly-ng\n\n1. Installing angular-cli  \n*Note*: you can skip this part if you already have generated an Angular application using `ng-cli` and webpack\n  \n ```bash\n npm i -g @angular/cli\n ng new patternfly-ng-app\n cd patternfly-ng-app\n ng serve\n ```\n\n2. Install patternfly-ng\n   ```bash\n     npm install patternfly-ng --save\n   ```\n\n3. Add patternfly-ng dependencies\n \n - install `patternfly`\n\n ```bash\n   npm install patternfly --save\n ```\n \n4. Add a patternfly-ng component\n- open `src/app/app.module.ts` and add\n\n```typescript\nimport { ToastNotificationModule } from 'patternfly-ng/notification';\n// Or\nimport { ToastNotificationModule } from 'patternfly-ng';\n...\n\n@NgModule({\n   ...\n   imports: [ToastNotificationModule, ... ],\n    ... \n})\n```\n\n- open `angular.json` and insert a new entry into the styles array \n\n```json\n      \"styles\": [\n        \"./node_modules/patternfly/dist/css/patternfly.min.css\",\n        \"./node_modules/patternfly/dist/css/patternfly-additions.min.css\",\n        \"./node_modules/patternfly-ng/dist/css/patternfly-ng.min.css\",\n        \"styles.css\",\n      ],\n```\n\n- open `src/app/app.component.html` and add\n```\n\u003cpfng-toast-notification\n  [header]=\"'test header'\"\n  [message]=\"'this is a notification'\"\n  [showClose]=\"'true'\"\n  [type]=\"'success'\"\u003e\n\u003c/pfng-toast-notification\u003e\n```\n\n5. For Angular 8, open `angular.json` and insert the following into the options array\n\n```\n\"options\": {\n  \"preserveSymlinks\": true,\n```\n\n### Optional Dependencies\n\n1. To enable table drag and drop, add dragula.min.css from the ng2-dragula package\n\n- open `angular.json` and insert a new entry into the styles array \n\n```json\n      \"styles\": [\n        \"./node_modules/dragula/dist/dragula.min.css\",\n        \"./node_modules/patternfly/dist/css/patternfly.min.css\",\n        \"./node_modules/patternfly/dist/css/patternfly-additions.min.css\",\n        \"./node_modules/patternfly-ng/dist/css/patternfly-ng.min.css\",\n        \"styles.css\",\n      ],\n```\n\n2. To enable charts, add patternfly-settings.js from the patternfly package\n\n- open `angular.json` and insert a new entry into the scripts array \n\n```json\n      \"scripts\": [\n        \"./node_modules/patternfly/dist/js/patternfly-settings.js\"\n      ],\n```\n\n## \u003ca name=\"question\"\u003e\u003c/a\u003e Do you have a question?\n - Search our [GitHub issues][github-issues]\n - Join our patternfly-ng channel on [Slack](http://slack.patternfly.org)\n - Join our mailing-list following the instructions on [patternfly.org](http://www.patternfly.org/community/)\n\n[contributing]: https://github.com/patternfly/patternfly-ng/blob/master/CONTRIBUTING.md\n[github-issues]: https://github.com/patternfly/patternfly-ng/issues\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternfly%2Fpatternfly-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatternfly%2Fpatternfly-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatternfly%2Fpatternfly-ng/lists"}