{"id":23095002,"url":"https://github.com/preignition/preignition-mixin","last_synced_at":"2025-07-28T11:03:05.613Z","repository":{"id":35093951,"uuid":"205773679","full_name":"preignition/preignition-mixin","owner":"preignition","description":"lit-element mixins used in preignition","archived":false,"fork":false,"pushed_at":"2023-01-04T08:43:45.000Z","size":1382,"stargazers_count":0,"open_issues_count":21,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T14:12:19.909Z","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/preignition.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-09-02T03:58:41.000Z","updated_at":"2021-08-31T07:52:14.000Z","dependencies_parsed_at":"2023-01-15T13:41:44.843Z","dependency_job_id":null,"html_url":"https://github.com/preignition/preignition-mixin","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/preignition/preignition-mixin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preignition%2Fpreignition-mixin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preignition%2Fpreignition-mixin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preignition%2Fpreignition-mixin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preignition%2Fpreignition-mixin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preignition","download_url":"https://codeload.github.com/preignition/preignition-mixin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preignition%2Fpreignition-mixin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267505099,"owners_count":24098346,"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-07-28T02:00:09.689Z","response_time":68,"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":"2024-12-16T22:19:09.448Z","updated_at":"2025-07-28T11:03:05.589Z","avatar_url":"https://github.com/preignition.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \\\u003cpreignition-mixin\u003e\n\nSeries of helper mixin while developping Preignition with lit-element: \n\n- DoNotSetUndefinedValue: prevent property setting when value is undefined. This is usefull for not overriding child components default values when parent have not set those properties.\n- SelectMixin: use d3-selection in component shadowRoot\n- DefaultValueMixin: allow to declare default values in properties (similar to Polymer)\n- RelayTo: allow to automatically relay properties from parent to child, without declaring the binding in template. \n- CacheId: cache element having an `id` under `this.$`for easier reference. Usage borrowed from Polymer.\n\nThis webcomponent follows the [open-wc](https://github.com/open-wc/open-wc) recommendation.\n\n## Installation\n```bash\nnpm i preignition-mixin\n```\n\n## Usage\n\n### defaultValueMixin\n```js\nimport { DefaultValueMixin } from '@preignition/preignition-mixin';\n\nclass DefaultElement extends defaultValueMixin(TestElement) {\n  \n  static get properties() {\n    return {\n      value: {type: String, value: 'test'}\n    };\n  }\n}\n```\n\n### selectMixin\n```js\nimport { SelectMixin } from '@preignition/preignition-mixin';\n\nclass SelectElement extends selectMixin(TestElement) {\n}\nwindow.customElements.define('select-element', SelectElement);\n\nconst el = html`\u003cselect-element\u003e\u003c/select-element\u003e`;\nconst title = el.selectShadow('#title')\n```\n\n\n## Testing using karma (if applied by author)\n```bash\nnpm run test\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreignition%2Fpreignition-mixin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreignition%2Fpreignition-mixin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreignition%2Fpreignition-mixin/lists"}