{"id":30822757,"url":"https://github.com/RzoDev/ngx-list-manager","last_synced_at":"2025-09-06T11:07:28.768Z","repository":{"id":312650402,"uuid":"1048195920","full_name":"RzoDev/ngx-list-manager","owner":"RzoDev","description":"An Angular Service tool to manage lists efficiently.","archived":false,"fork":false,"pushed_at":"2025-09-01T05:48:40.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T07:27:16.254Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/RzoDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-01T04:47:23.000Z","updated_at":"2025-09-01T04:53:12.000Z","dependencies_parsed_at":"2025-09-01T07:27:18.522Z","dependency_job_id":"b7a4d431-49cb-4b6b-b933-e4c0523edb5e","html_url":"https://github.com/RzoDev/ngx-list-manager","commit_stats":null,"previous_names":["rzodev/ngx-list-manager"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RzoDev/ngx-list-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RzoDev%2Fngx-list-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RzoDev%2Fngx-list-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RzoDev%2Fngx-list-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RzoDev%2Fngx-list-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RzoDev","download_url":"https://codeload.github.com/RzoDev/ngx-list-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RzoDev%2Fngx-list-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273893299,"owners_count":25186622,"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-06T02:00:13.247Z","response_time":2576,"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":[],"created_at":"2025-09-06T11:02:17.025Z","updated_at":"2025-09-06T11:07:28.751Z","avatar_url":"https://github.com/RzoDev.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Data Grids"],"readme":"# ngx-list-manager [![npm version](https://badge.fury.io/js/ngx-list-manager.svg)](https://badge.fury.io/js/ngx-list-manager) [![Build Status](https://api.travis-ci.com/rzodev/ngx-list-manager.svg?branch=main)](https://app.travis-ci.com/github/rzodev/ngx-list-manager) [![Support](https://img.shields.io/badge/Support-Angular%2019%2B-blue.svg)]() [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/RzoDev/ngx-list-manager/blob/main/LICENSE.md)\n\nAn Angular Service tool to manage lists efficiently.\n\n## Prerequisites\n\n- Angular: `\u003e=19.2.0`\n\n\n## Usage\n\n1. Install via npm\n\n`npm i ngx-list-manager`\n\n2. Import\n\n```typescript\nimport { NgxListManager } from 'ngx-list-manager';\n```\n\n3. Usage example: In a table component that send events when rows are selected.\n\n```html\n\u003cdiv class=\"table-info\"\u003e\n   \u003cspan\u003eItems selected: \u003c/span\u003e\u003cspan [innerText]=\"getList().length\"\u003e\u003c/span\u003e\n   \u003cbutton (click)=\"openModal()\"\u003eView selected\u003c/button\u003e\n   \u003cbutton (click)=\"clearSelectedItems()\"\u003eClear selected\u003c/button\u003e\n\u003c/div\u003e\n\u003cdiv class=\"table-container\"\u003e\n   \u003capp-table-component [data]=\"tableData\" (sendCheck)=\"receiveItem($event)\" (sendChecks)=\"receiveItems($event)\"/\u003e\n\u003c/div\u003e\n\n\u003cmodal\u003e\n   \u003cmodal-title\u003eItems selected\u003c/modal-title\u003e\n   \u003cmodal-body\u003e\n      \u003cdiv\u003e\u003cspan\u003eItems selected: \u003c/span\u003e\u003cspan [innerText]=\"getList().length\"\u003e\u003c/span\u003e\u003c/div\u003e\n      @for(let item of items; track item.id; let i = $index){\n         \u003cdiv class=\"row\"\u003e\n            \u003cdiv class=\"col\"\u003e#{{i+1}}\u003c/div\u003e\n            \u003cdiv class=\"col\" [innerText]=\"item.name\"\u003e\u003c/div\u003e\n            \u003cdiv class=\"col\"\u003e\n               \u003cbutton (click)=\"removeItemIndex(i)\"\u003eRemove\u003c/button\u003e\n            \u003c/div\u003e\n         \u003cdiv\u003e\n      }\n   \u003c/modal-body\u003e\n   \u003cmodal-footer\u003e\n      \u003cbutton (click)=\"closeModal()\"\u003eClose\u003c/button\u003e\n   \u003c/modal-footer\u003e\n\u003c/modal\u003e\n```\n\n```typescript\nexport interface IData{\n   id: string;\n   name: string;\n   ...\n}\nexport interface ITableRow{\n   selected: boolean;\n   data: IData;\n   ...\n}\n\n...\n\nlistManager = new NgxListManager\u003cIData\u003e();\n\nreceiveItem(item: ITableRow){\n   this.listManager.insertOrRemove(item.data,item.selected);\n}\nreceiveItems(items: ITableRow[]){\n   items.forEach((item: ITableRow)=\u003e{\n      this.listManager.insertOrRemove(item.data,item.selected);\n   })\n}\n\nremoveItemIndex(index: number){\n   this.listManager.removeIndex(index);\n}\nclearSelectedItems(){\n   this.listManager.clear();\n}\ngetList(): IData[]{\n   return this.listManager.list();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRzoDev%2Fngx-list-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRzoDev%2Fngx-list-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRzoDev%2Fngx-list-manager/lists"}