{"id":21721641,"url":"https://github.com/polydile/dile-close-document-click-mixin","last_synced_at":"2025-03-20T21:44:38.536Z","repository":{"id":97969807,"uuid":"200272273","full_name":"Polydile/dile-close-document-click-mixin","owner":"Polydile","description":"Mixin to close custom elements when user do clicks in any document area.","archived":false,"fork":false,"pushed_at":"2020-07-08T17:56:54.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T22:42:53.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Polydile.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}},"created_at":"2019-08-02T17:18:32.000Z","updated_at":"2020-07-08T17:56:57.000Z","dependencies_parsed_at":"2023-04-29T19:46:50.670Z","dependency_job_id":null,"html_url":"https://github.com/Polydile/dile-close-document-click-mixin","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"07d2f3d5b1778fface72040d3dedc959cf2b3e79"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-close-document-click-mixin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-close-document-click-mixin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-close-document-click-mixin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-close-document-click-mixin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polydile","download_url":"https://codeload.github.com/Polydile/dile-close-document-click-mixin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244694173,"owners_count":20494597,"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-11-26T02:18:12.685Z","updated_at":"2025-03-20T21:44:38.531Z","avatar_url":"https://github.com/Polydile.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moved\n\n**This package has moved** and is now available at [@dile/ui](https://github.com/Polydile/dile-components). Please update your dependencies. This repository is no longer maintained. You can read the documentation at [Dile Components](https://dile-components.com/).\n\n# DileCloseDocumentClickMixin\n\nMixin to close custom elements when user do click in any area of the document.\n\nThis mixin, that you may apply to any Custom Element,  offers a way to close elements when the user clicks in any area of the document.\n\n## Usage\n\nInstall it:\n\n```bash\nnpm i dile-close-document-click-mixin\n```\n\nTo use it you olny need to extend your custom element class with the mixin.\n\n```javascript\nimport { DileCloseDocumentClickMixin } from 'dile-close-document-click-mixin/dile-close-document-click-mixin.js';\n\nclass MyElement extends DileCloseDocumentClickMixin(HTMLElement) {\n  // your custom element code...\n}\n```\n\nTo do it's work, the mixin depends on a close() method created in your custom element class.\n\n## Available methods\n\nThe mixin also provides two utility methods:\n\n- **closeAll()**: Close all the elements of this type\n- **closeOthers()**: Close the other items of this type (distinct to this)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolydile%2Fdile-close-document-click-mixin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolydile%2Fdile-close-document-click-mixin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolydile%2Fdile-close-document-click-mixin/lists"}