{"id":23170159,"url":"https://github.com/gbuomprisco/ng2-expansion-panels","last_synced_at":"2025-08-18T07:31:19.214Z","repository":{"id":57310778,"uuid":"69893664","full_name":"Gbuomprisco/ng2-expansion-panels","owner":"Gbuomprisco","description":"Expansion Panels component for Angular 2","archived":false,"fork":false,"pushed_at":"2017-05-21T16:55:26.000Z","size":24,"stargazers_count":18,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T12:03:47.744Z","etag":null,"topics":["angular","angular-components","expansion-panels","material-design"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Gbuomprisco.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}},"created_at":"2016-10-03T17:27:50.000Z","updated_at":"2023-04-27T21:09:47.000Z","dependencies_parsed_at":"2022-08-26T06:20:33.602Z","dependency_job_id":null,"html_url":"https://github.com/Gbuomprisco/ng2-expansion-panels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gbuomprisco/ng2-expansion-panels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fng2-expansion-panels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fng2-expansion-panels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fng2-expansion-panels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fng2-expansion-panels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gbuomprisco","download_url":"https://codeload.github.com/Gbuomprisco/ng2-expansion-panels/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gbuomprisco%2Fng2-expansion-panels/sbom","scorecard":{"id":55199,"data":{"date":"2025-08-11","repo":{"name":"github.com/Gbuomprisco/ng2-expansion-panels","commit":"5c703e26a87b50dce2bbb051544b44f49eb2e4ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-15T00:33:59.560Z","repository_id":57310778,"created_at":"2025-08-15T00:33:59.560Z","updated_at":"2025-08-15T00:33:59.560Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270961499,"owners_count":24675914,"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","status":"online","status_checked_at":"2025-08-18T02:00:08.743Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","angular-components","expansion-panels","material-design"],"created_at":"2024-12-18T03:26:01.372Z","updated_at":"2025-08-18T07:31:18.983Z","avatar_url":"https://github.com/Gbuomprisco.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ng2 Expansion Panels [![Build Status](https://travis-ci.org/Gbuomprisco/ng2-expansion-panels.svg?branch=master)](https://travis-ci.org/Gbuomprisco/ng2-expansion-panels)\n\nThis is a component for Angular 2. Design is inspired by Material Design's component Expansion Panels.\n\n**Development is in very early stage**\n\n## Demo\nCheck out the live demo (with source code) here [http://www.buompris.co/ng2-expansion-panels](http://www.buompris.co/ng2-expansion-panels).\n\n## Installing\n\n    npm install ng2-expansion-panels --save\n\n## Configuration\n\nEnsure you import the module:\n\n```javascript\nimport { ExpansionPanelsModule } from 'ng2-expansion-panels';\n\n// please notice this is the new way of telling a Component\n// to import another component...no more directives[]\n@NgModule({\n   imports: [ExpansionPanelsModule]\n})\nexport class MyModule {}\n```\n\n## API\n- **`onOpen`** - [**`?onOpen(panel: ExpansionPanelComponent)`**] - event fired when a panel is opened\n- **`onClose`** - [**`?onClose(panel: ExpansionPanelComponent)`**] - event fired when a panel is closed\n- **`onSubmit`** - [**`?onSubmit()`**] - event fired when `submit` is called\n- **`onCancel`** - [**`?onCancel()`**] - event fired when `cancel` is called\n\n## Examples\n### Basic Example\n\n```html\n\u003cexpansion-panels-container\u003e\n    \u003cexpansion-panel\u003e\n        \u003cexpansion-panel-title\u003e\n            Title\n        \u003c/expansion-panel-title\u003e\n\n        \u003cexpansion-panel-description-hidden\u003e\n            Description when hidden\n        \u003c/expansion-panel-description-hidden\u003e\n\n        \u003cexpansion-panel-description-toggled\u003e\n            Description when toggled\n        \u003c/expansion-panel-description-toggled\u003e\n\n        \u003cexpansion-panel-content\u003e\n            Content\n        \u003c/expansion-panel-content\u003e\n    \u003c/expansion-panel\u003e\n\n    \u003c/expansion-panel\u003e...\u003c/expansion-panel\u003e\n    \u003c/expansion-panel\u003e...\u003c/expansion-panel\u003e\n    \u003c/expansion-panel\u003e...\u003c/expansion-panel\u003e\n\u003c/expansion-panels-container\u003e\n```\n\n### Add Buttons to a panel\n\nEvery panel has already defined two methods, `cancel` and `submit`. In order to bind those\nto the buttons we define, we need to create a reference to the panel. In this example, I called it `#panel`\nand them I'm calling panel.cancel() and panel.submit().\n\nIt is possible to listen to these events with the outputs `onCancel` and `onSubmit`.\n\n```html\n\u003cexpansion-panels-container\u003e\n    \u003cexpansion-panel (onCancel)='resetForm()' (onSubmit)='saveForm()'\u003e\n        \u003cexpansion-panel-title\u003e\n            Title\n        \u003c/expansion-panel-title\u003e\n\n        \u003cexpansion-panel-description-hidden\u003e\n            Description when hidden\n        \u003c/expansion-panel-description-hidden\u003e\n\n        \u003cexpansion-panel-description-toggled\u003e\n            Description when toggled\n        \u003c/expansion-panel-description-toggled\u003e\n\n        \u003cexpansion-panel-content\u003e\n            Content\n        \u003c/expansion-panel-content\u003e\n\n        \u003cexpansion-panel-buttons\u003e\n            \u003cbutton (click)='pancel.cancel()'\u003eCancel\u003c/button\u003e\n            \u003cbutton (click)='pancel.submit()'\u003eSubmit\u003c/button\u003e\n        \u003c/expansion-panel-buttons\u003e\n    \u003c/expansion-panel\u003e\n\n\u003c/expansion-panels-container\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbuomprisco%2Fng2-expansion-panels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbuomprisco%2Fng2-expansion-panels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbuomprisco%2Fng2-expansion-panels/lists"}