{"id":15295300,"url":"https://github.com/manishjanky/ngx-sortable","last_synced_at":"2025-09-20T10:00:26.251Z","repository":{"id":31599157,"uuid":"128377937","full_name":"manishjanky/ngx-sortable","owner":"manishjanky","description":"ngx-sortable is an angular sortable list components that support drag and drop sorting","archived":false,"fork":false,"pushed_at":"2023-02-04T15:56:36.000Z","size":4833,"stargazers_count":21,"open_issues_count":9,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-18T09:19:57.533Z","etag":null,"topics":["angualar4","angular","angular-components","component","drag-and-drop","library","ngx-sortable","sortable","sortable-lists","sorting"],"latest_commit_sha":null,"homepage":"","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/manishjanky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-06T09:56:09.000Z","updated_at":"2023-11-20T12:57:54.000Z","dependencies_parsed_at":"2023-02-18T17:35:16.984Z","dependency_job_id":null,"html_url":"https://github.com/manishjanky/ngx-sortable","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/manishjanky/ngx-sortable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishjanky%2Fngx-sortable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishjanky%2Fngx-sortable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishjanky%2Fngx-sortable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishjanky%2Fngx-sortable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manishjanky","download_url":"https://codeload.github.com/manishjanky/ngx-sortable/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishjanky%2Fngx-sortable/sbom","scorecard":{"id":615226,"data":{"date":"2025-08-11","repo":{"name":"github.com/manishjanky/ngx-sortable","commit":"10768f7a1ad7a69d9aeeeb9430496ffac7d509f7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"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":"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":"Code-Review","score":0,"reason":"Found 0/14 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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"53 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-q9mw-68c2-j6m5","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-4www-5p9h-95mh","Warn: Project is vulnerable to: GHSA-9gqv-wp59-fq42","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-7752-f4gf-94gc","Warn: Project is vulnerable to: GHSA-98f7-p5rc-jx67","Warn: Project is vulnerable to: GHSA-rg3q-jxmp-pvjj","Warn: Project is vulnerable to: GHSA-7jvx-f994-rfw2","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T03:45:43.556Z","repository_id":31599157,"created_at":"2025-08-21T03:45:43.557Z","updated_at":"2025-08-21T03:45:43.557Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276078005,"owners_count":25581313,"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-09-20T02:00:10.207Z","response_time":63,"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":["angualar4","angular","angular-components","component","drag-and-drop","library","ngx-sortable","sortable","sortable-lists","sorting"],"created_at":"2024-09-30T17:09:23.112Z","updated_at":"2025-09-20T10:00:26.208Z","avatar_url":"https://github.com/manishjanky.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-sortable\n\n[![GitHub license](https://img.shields.io/github/license/manishjanky/ngx-sortable.svg)](https://github.com/me-and/mdf/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/ngx-sortable.svg)]()\n[![Codecov branch](https://codecov.io/gh/manishjanky/ngx-sortable/branch/master/graphs/badge.svg)]()\n[![npm](https://img.shields.io/npm/dt/ngx-sortable.svg)]()\n[![GitHub top language](https://img.shields.io/github/languages/top/manishjanky/ngx-sortable.svg)]()\n[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/manishjanky/ngx-sortable.svg)]()\n[![GitHub issues](https://img.shields.io/github/issues/manishjanky/ngx-sortable.svg)]()\n[![GitHub closed issues](https://img.shields.io/github/issues-closed/manishjanky/ngx-sortable.svg)]()\n[![GitHub contributors](https://img.shields.io/github/contributors/manishjanky/ngx-sortable.svg)]()\n\n`ngx-sortable` an angular 4 and above component for sorting list supporting drag and drop sort.\n\n## Features\n* Custom template\n* Customizable\n* Drag and drop sorting\n* Use keyboard to sort\n* Remove elements\n\n## Examples\n\n* [demo-page](https://manishjanky.github.io/ngx-sortable/)\n\n## Installation\n\n* `npm install ngx-sortable`\n\n### Using with webpack and tsc builds/ angular-cli builds\n\n* import `NgxSortableModule` into your app.module;\n````\nimport { NgxSortableModule } from 'ngx-sortable'\n````\n* add `NgxSortableModule` to the imports of your NgModule:\n`````\n@NgModule({\n  imports: [\n    ...,\n    NgxSortableModule\n  ],\n  ...\n})\nclass YourModule { ... }\n`````\n\n* use `\u003cngx-sortable\u003e\u003c/ngx-sortable\u003e` in your templates to add sortable list in your view\n\n## Deprecated\n````\n    \u003cngx-sortable [items]=\"items\" [name]=\"'List'\" (listSorted)=\"listOrderChanged($event)\"\u003e\n        \u003cng-template let-item\u003e\n            \u003cdiv class=\"sortable-list-item\"\u003e\n                {{item}}\n            \u003c/div\u003e\n        \u003c/ng-template\u003e\n    \u003c/ngx-sortable\u003e\n````\n## `v2.0.0` onwards use below\n````\n    \u003cngx-sortable [items]=\"items\" [name]=\"'List'\" (listSorted)=\"listOrderChanged($event)\"\u003e\n        \u003cng-template let-item=\"item\"\u003e\n            \u003cdiv class=\"sortable-list-item\"\u003e\n                {{item}}\n            \u003c/div\u003e\n        \u003c/ng-template\u003e\n    \u003c/ngx-sortable\u003e\n````\n\nWhere content inside ``\u003cng-template\u003e \u003c/ng-template\u003e`` is the template that will be used for displaying list items. Also the class can be named accordingly this is just an example. Create a class and add it to your root style.css\n\u003e Notice the difference in accessing the `item` in above two examples. Also from `v2.0.0` onwards index of the item is also available in the template similar to `let-item=\"item\"` use `let-i=\"index\"` and `i` will be the index variable available in the template.\n\n\n\n## Config\n\n### Input\n\n* `items: any[]` - array of list items.\n* `name: string` - List name that will be shown in the header.\n* `listStyle: any` - list styles such as `height, width`.\n* `showHeader: boolean` -  flag to hide / show header default is true\n* `removeOnDropOutside: boolean` -  flag to enable remove items by dragging and dropping them outside the list. Default is false\n* `arrowKeySort: boolean` - flag to enable sort using keyboard arrow keys. Example: Ctrl + ArrowDown moves item down\n* `commandKey: CommandKey` - key type to use along with arrow keys for sorting e.g. ctrlKey/altKey. Default is ctrlKey\n\n````\nenum CommandKey {\n  CtrlKey = \"ctrlKey\",\n  ShiftKey = \"shiftKey\",\n  Altkey = \"altKey\",\n  MetaKey = \"metaKey\",\n}\n````\n````\nlistStyle = {\n        width:'300px', //width of the list defaults to 300\n        height: '250px', //height of the list defaults to 250\n      }\n````\n\n### Output\n\n* `listSorted($event): Event` - when list is sorted emits listSorted event with updated order\n\n\u003e Where `$event` is the sorted list\n\n* `dragStart($event): Event` -  emitted when an item is seleceted and starts dragging\n\u003e Where ``$event:{\n  event: Javascript event,\n  itemIndex: current item index,\n  newIndex: -1,\n  item: selected item}\n``\n\n* `dropped($event): Event` - emitted when an item is dropped at the new index\n\u003e Where ``$event:{\n  event: Javascript event,\n  itemIndex: current item index,\n  newIndex: new item index,\n  item: selected item}\n``\n\n* `moveDown($event): Event` - emitted when an item is moved down in the list using the sort arrows\n\u003e Where ``$event:{\n  itemIndex: current item index,\n  newIndex: new item index,\n  item: selected item}\n``\n* `moveUp($event): Event` - emitted when an item is moved up in the list using sort arrows\n\u003e Where ``$event:{\n  itemIndex: current item index,\n  newIndex: new item index,\n  item: selected item}\n``\n* `remove($event): Event` - emitted when an item is removed from the list by dropping out, only works when `removeOnDropOutside` is set to true\n\u003e Where ``$event:{\n  itemIndex: current item index,\n  item: selected item}\n``\n## Help Improve\n\nFound a bug or an issue with this? [Open a new issue](https://github.com/manishjanky/ngx-sortable/issues) here on GitHub.\n\n## Contributing to this project\n\nAnyone and everyone is welcome to contribute. Please take a moment to\nreview the [guidelines for contributing](CONTRIBUTING.md).\n\n* [Bug reports](CONTRIBUTING.md#bugs)\n* [Feature requests](CONTRIBUTING.md#features)\n* [Pull requests](CONTRIBUTING.md#pull-requests)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanishjanky%2Fngx-sortable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanishjanky%2Fngx-sortable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanishjanky%2Fngx-sortable/lists"}