{"id":15408932,"url":"https://github.com/sec-ant/wc-progress-bar","last_synced_at":"2026-01-27T18:05:30.932Z","repository":{"id":194526941,"uuid":"691047166","full_name":"Sec-ant/wc-progress-bar","owner":"Sec-ant","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-06T06:57:40.000Z","size":301,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T07:26:23.201Z","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/Sec-ant.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":"2023-09-13T11:55:05.000Z","updated_at":"2023-09-13T11:55:11.000Z","dependencies_parsed_at":"2024-04-22T18:26:23.073Z","dependency_job_id":"54c6a687-791d-4852-9028-284d79ce128d","html_url":"https://github.com/Sec-ant/wc-progress-bar","commit_stats":{"total_commits":29,"total_committers":2,"mean_commits":14.5,"dds":0.03448275862068961,"last_synced_commit":"36c6db26eb3999cd6042cfe8f6ad8e1e922510e0"},"previous_names":["sec-ant/wc-progress-bar"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Sec-ant/wc-progress-bar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sec-ant%2Fwc-progress-bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sec-ant%2Fwc-progress-bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sec-ant%2Fwc-progress-bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sec-ant%2Fwc-progress-bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sec-ant","download_url":"https://codeload.github.com/Sec-ant/wc-progress-bar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sec-ant%2Fwc-progress-bar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28817796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:01:38.485Z","status":"ssl_error","status_checked_at":"2026-01-27T18:01:27.499Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-01T16:36:01.555Z","updated_at":"2026-01-27T18:05:30.905Z","avatar_url":"https://github.com/Sec-ant.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @sec-ant/wc-progress-bar\n\n[![release status](https://github.com/Sec-ant/wc-progress-bar/actions/workflows/release.yml/badge.svg)](https://github.com/Sec-ant/wc-progress-bar/actions/workflows/release.yml)\n\nA `\u003cprogress-bar\u003e` web component powered by [Lit](https://lit.dev/).\n\n## Install\n\n```bash\nnpm i @sec-ant/wc-progress-bar\n```\n\n## Usage\n\nThis package does not bundle dependencies inside it, and is designed to be used with a build tool. For further information on this design decision, please check [this link](https://lit.dev/docs/tools/publishing/#don't-bundle-minify-or-optimize-modules).\n\nThis packages exports 3 import paths: `@sec-ant/wc-progress-bar/pure`, `@sec-ant/wc-progress-bar/side-effects` and `@sec-ant/wc-progress-bar`.\n\n### `@sec-ant/wc-progress-bar/pure`\n\nThis subpath exports the `ProgressBarElement` class. You'll have to manually register it on the [`CustomElementRegistry`](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) to use the web component.\n\nIn your script:\n\n```ts\nimport { ProgressBarElement } from \"@sec-ant/wc-progress-bar/pure\";\n\ncustomElements.define(\"progress-bar\", ProgressBarElement);\n```\n\nAfterwards, in your html file:\n\n```html\n\u003cprogress-bar value=\"0.5\"\u003e\u003c/progress-bar\u003e\n```\n\nBefore https://github.com/WICG/webcomponents/issues/716 is resolved, you'll have to handle possible tag name collisions yourself.\n\nIf you use Typescript and wants `document.createElement(\"progress-bar\")` to infer the `ProgressBarElement` type for you, you should create a declaration file to augment the types:\n\n```ts\ndeclare global {\n  interface HTMLElementTagNameMap {\n    \"progress-bar\": ProgressBarElement;\n  }\n}\n```\n\n### `@sec-ant/wc-progress-bar/side-effects`\n\nThis subpath will automatically register `ProgressBarElement` on the `CustomElementRegistry` with the tag name `progress-bar`, only if the tag name `progress-bar` isn't already registered. `HTMLElementTagNameMap` will be automatically augmented.\n\nIn your script:\n\n```ts\nimport \"@sec-ant/wc-progress-bar/side-effects\";\n```\n\nAfterwards, in your html file:\n\n```html\n\u003cprogress-bar value=\"0.5\"\u003e\u003c/progress-bar\u003e\n```\n\n### `@sec-ant/wc-progress-bar`\n\nThis works just like `side-effects` but also exports the `ProgressBarElement` class.\n\n## Attributes\n\n### `value`\n\nThe ratio of the progress bar from 0 ~ 1.\n\nDefault: \"0\"\n\n### `hide`\n\nWhether to hide the progress bar.\n\nDefault: unpresent.\n\n### `animation-duration`\n\nThe animation duration in ms.\n\nDefault: \"300\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsec-ant%2Fwc-progress-bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsec-ant%2Fwc-progress-bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsec-ant%2Fwc-progress-bar/lists"}