{"id":21721633,"url":"https://github.com/polydile/dile-spinner","last_synced_at":"2025-07-18T17:30:38.550Z","repository":{"id":35002404,"uuid":"195475134","full_name":"Polydile/dile-spinner","owner":"Polydile","description":"Web Component to create a spinner element to display during Ajax calls or other asynchronous tasks","archived":true,"fork":false,"pushed_at":"2025-02-19T18:31:21.000Z","size":3476,"stargazers_count":5,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T10:19:17.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://dile-spinner.polydile.com","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}},"created_at":"2019-07-05T22:53:50.000Z","updated_at":"2025-02-19T18:31:37.000Z","dependencies_parsed_at":"2023-01-15T11:49:22.799Z","dependency_job_id":null,"html_url":"https://github.com/Polydile/dile-spinner","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Polydile/dile-spinner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-spinner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-spinner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-spinner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-spinner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Polydile","download_url":"https://codeload.github.com/Polydile/dile-spinner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Polydile%2Fdile-spinner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265801585,"owners_count":23830438,"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:08.496Z","updated_at":"2025-07-18T17:30:38.539Z","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# dile-spinner\n\nA pack of web components to implement the tipical \"Ajax loading\" spinner interface. Based on LitElement.\n\nMore details: [Go to DEMO page](https://dile-spinner.polydile.com)\n\n## \\\u003cdile-spinner\u003e\n\nThe simpler implementation. Useful to show a inline spinner element, localized in the place where you put the dile-spinner element.\n\n### Installation\n```bash\nnpm i dile-spinner\n```\n\n### Usage\n```html\n\u003cscript type=\"module\"\u003e\n  import 'dile-spinner/dile-spinner.js';\n\u003c/script\u003e\n\n\u003cdile-spinner active\u003e\u003c/dile-spinner\u003e\n```\n\n#### Properties\n\n- **active**: Boolean, defines the spinner visibility. The spinner only appears when active is true.\n\n#### Styling\n\nCustom property | Description | Default\n----------------|-------------|---------\n--dile-spinner-color | The ajax loading color | #888\n--dile-spinner-dot-size | The size of the dots in the spinner animation | 6px\n\n## \\\u003cdile-spinner-modal\u003e\n\nThis is an adaptation of the dile-spinner element using a modal box, blocking the interface of the rest of the page when the spinner is active.\n\n### Usage\n\nSame as dile-spinner implementation.\n\n```html\n\u003cscript type=\"module\"\u003e\n  import 'dile-spinner/dile-spinner-modal.js';\n\u003c/script\u003e\n\n\u003cdile-spinner-modal active\u003e\u003c/dile-spinner-modal\u003e\n```\n\n#### Styling\n\nCustom property | Description | Default\n----------------|-------------|---------\n--dile-spinner-modal-background-color | The modal layer background color | rgba(255, 255, 255, 0.8)\n--dile-spinner-modal-box-color | Color of a small layer rounding the spinner element for higher contrast and visibility | rgba(0, 0, 0, 0.9)\n\n```html\n\u003cstyle\u003e\n.customized {\n  --dile-spinner-color: #3ca;\n  --dile-spinner-dot-size: 10px;\n  --dile-spinner-modal-background-color: #505050;\n  --dile-spinner-modal-box-color: #fff;\n}\n\u003c/style\u003e\n\u003cdile-spinner-modal active class=\"customized\" id=\"spinnerModal\"\u003e\u003c/dile-spinner-modal\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolydile%2Fdile-spinner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolydile%2Fdile-spinner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolydile%2Fdile-spinner/lists"}