{"id":15184655,"url":"https://github.com/snorrwe/frenetiq-dnd","last_synced_at":"2025-10-01T23:30:44.780Z","repository":{"id":78385615,"uuid":"93541450","full_name":"snorrwe/Frenetiq-Dnd","owner":"snorrwe","description":"Angular 2+ drag'n'drop ","archived":true,"fork":false,"pushed_at":"2017-08-28T22:52:43.000Z","size":259,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-14T08:52:24.100Z","etag":null,"topics":["angular","angular-2","angular2","drag","drag-and-drop","drag-n-drop","drop","frenetiq","frenetiq-dnd","ng2","ngx"],"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/snorrwe.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-06T16:46:02.000Z","updated_at":"2023-01-28T16:44:15.000Z","dependencies_parsed_at":"2023-02-24T15:15:35.570Z","dependency_job_id":null,"html_url":"https://github.com/snorrwe/Frenetiq-Dnd","commit_stats":{"total_commits":67,"total_committers":1,"mean_commits":67.0,"dds":0.0,"last_synced_commit":"016ef54d2551a90e1f8d0010e1c80bc06639d92c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snorrwe%2FFrenetiq-Dnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snorrwe%2FFrenetiq-Dnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snorrwe%2FFrenetiq-Dnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snorrwe%2FFrenetiq-Dnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snorrwe","download_url":"https://codeload.github.com/snorrwe/Frenetiq-Dnd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234909086,"owners_count":18905504,"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","angular-2","angular2","drag","drag-and-drop","drag-n-drop","drop","frenetiq","frenetiq-dnd","ng2","ngx"],"created_at":"2024-09-27T17:21:26.579Z","updated_at":"2025-10-01T23:30:44.367Z","avatar_url":"https://github.com/snorrwe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\nA simple, but working drag'n'drop framework for Angular2\n\n# Installation\nRun `npm install --save ngx-frenetiq-dnd`\n\n# Demo\nThere's a very basic demo available at [https://snorrwe.github.io/frenetiq-dnd](https://snorrwe.github.io/frenetiq-dnd)\n\n# Usage\n\n* Import the `ngx-frenetiq-dnd` *Module* into your *Module*\n\n```js\n\nimport { FrenetiqDnd } from 'ngx-frenetiq-dnd/ngx-frenetiq-dnd';\n\n@NgModule({\n\t//....\n    imports: [\n        FrenetiqDnd\n    ]\n    //....\n})\nexport class AppModule {\n}\n\n```\n\n* Make html elements draggable with the `frenetiq-draggable` directive.\n* See the [Wiki](https://github.com/snorrwe/Frenetiq-Dnd/wiki/FrenetiqDraggable) for more information about the directive and its options.\n\n```html\n\n\u003cdiv frenetiq-draggable\u003e\n\t\u003cp\u003eDrag me!\u003c/p\u003e\n\u003c/div\u003e\n\n\u003cdiv #someName=\"frenetiq-draggable\"\u003e\n\t\u003cp\u003eDrag me!\u003c/p\u003e\n\u003c/div\u003e\n\n```\n\n* Make html elements drop targets with the `frenetiq-container` directive.\n* See the [Wiki](https://github.com/snorrwe/Frenetiq-Dnd/wiki/FrenetiqContainer) for more information about the directive and its options.\n\n```html\n\n\u003cdiv frenetiq-container\u003e\u003c/div\u003e\n\n\u003cdiv #someName=\"frenetiq-container\"\u003e\u003c/div\u003e\n\n```\n\n* CSS\n\t* FrenetiqDnd uses the `fren-drag` css class on items that are being _dragged_ \n\t* FrenetiqDnd uses the `fren-hover` css class on valid containers when you _drag_ an item over it.\n\n```css\n\n.fren-drag{\n\tbackground-color:red; /* Make dragged items red */\t\n}\n\n```\n\n* You can listen to events either via the *Directives* or by subscribing to the `DragService`\n* See the [Wiki](https://github.com/snorrwe/Frenetiq-Dnd/wiki/DragService) for more information about the service and its API.\n\n```js\n\n@Component({\n\ttemplate: `\n\t\u003cdiv frenetiq-container\u003e\n\t\t\t\u003cdiv frenetiq-draggable [parent]=\"this\" (onDragEnd)=\"onDragEnd($event)\"\u003eDrag me!\u003c/div\u003e\n\t\u003c/div\u003e\n`\n})\nclass SomeComponent {\n\tconstructor(private dragService: DragService) {\n\t\tthis.dragService\n\t\t    .onDragEnd()\n\t\t    .subscribe((draggable) =\u003e {\n\t\t        if (draggable.parent === this) {\n\t\t            //Draggable has been dropped on its parent.\n\t\t            console.log(\"Oh, you're back!\", draggable, this);\n\t\t        }\n\t\t    });\n\t}\n\n\tprivate onDragEnd(draggable) {\n\t\tconsole.log(\"Child has been released!\", draggable, this);\n\t}\n\n}\n\n```\n\n# Sample code\n\n**_TBA_**\n\n# API Documentation\n\nPlease refer to the [Wiki](https://github.com/snorrwe/Frenetiq-Dnd/wiki/)\n\n# Contributing\n## Build files\n\n* single run: `npm run build`\n* build files and watch: `npm run watch`\n\n## Testing\n* Please note that all pull requests must pass the tests in order to be merged into _master_. \nThis project uses [https://travis-ci.org](https://travis-ci.org) to enforce successful builds on _master_.\n\n* Running the tests locally:\n\t* single run: `npm run test`\n\t* watch: `npm run test-watch`\n\n## Deployment\n\nDeployment is done via Travis CI. Mark the package for deployment by running `npm version \u003cupdate\\_type\u003e`\\* in the _dist_ directory\n\u003e \\* where update\\_type is one of the semantic versioning release types, patch, minor, or major.\n\u003e For more info go to [npm](https://docs.npmjs.com/getting-started/publishing-npm-packages)\n\n# Credits\n\n* Project setup based on [angular2-webpack](https://github.com/preboot/angular2-webpack)\n* Testing strategies found from [Angular —  Unit Testing recipes by Gerard Sans](https://medium.com/google-developer-experts/angular-2-unit-testing-with-jasmine-defe20421584)\n* [![codebeat badge](https://codebeat.co/badges/57556947-9843-487f-aa3d-abcbb7daf7b0)](https://codebeat.co/projects/github-com-snorrwe-frenetiq-dnd-master)\n* ![travis badge](https://travis-ci.org/snorrwe/Frenetiq-Dnd.svg?branch=master)\n\n# License\n\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnorrwe%2Ffrenetiq-dnd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnorrwe%2Ffrenetiq-dnd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnorrwe%2Ffrenetiq-dnd/lists"}