{"id":18303256,"url":"https://github.com/erickpetru/cps-elements-example-angular","last_synced_at":"2026-04-29T16:36:10.623Z","repository":{"id":232810355,"uuid":"620536774","full_name":"ErickPetru/cps-elements-example-angular","owner":"ErickPetru","description":"Projeto de exemplo da integração de componentes CPS Elements com Angular.","archived":false,"fork":false,"pushed_at":"2023-04-17T19:53:38.000Z","size":216,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T01:53:20.359Z","etag":null,"topics":["angular","angular15","web-components"],"latest_commit_sha":null,"homepage":"https://codesandbox.io/p/github/ErickPetru/cps-elements-example-angular/main?file=README.md","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErickPetru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-03-28T22:01:57.000Z","updated_at":"2023-03-31T21:00:00.000Z","dependencies_parsed_at":"2024-04-11T16:09:02.685Z","dependency_job_id":"d21d5d3d-a13b-4767-aa6b-2e1fbd0ebd03","html_url":"https://github.com/ErickPetru/cps-elements-example-angular","commit_stats":null,"previous_names":["erickpetru/cps-elements-example-angular"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ErickPetru/cps-elements-example-angular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickPetru%2Fcps-elements-example-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickPetru%2Fcps-elements-example-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickPetru%2Fcps-elements-example-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickPetru%2Fcps-elements-example-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErickPetru","download_url":"https://codeload.github.com/ErickPetru/cps-elements-example-angular/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErickPetru%2Fcps-elements-example-angular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273983047,"owners_count":25202092,"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-09-06T02:00:13.247Z","response_time":2576,"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":["angular","angular15","web-components"],"created_at":"2024-11-05T15:25:02.094Z","updated_at":"2026-04-29T16:36:10.576Z","avatar_url":"https://github.com/ErickPetru.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPS Elements - Exemplo - Angular\n\nProjeto de exemplo da integração de componentes [CPS Elements](https://cpsrepositorio.github.io/cps-elements/#/) com [Angular](https://angular.io/).\n\n\u003e **CPS Elements** é parte do projeto de UI/UX institucional, que também sustenta o [CPS Design System](https://cpsrepositorio.github.io/cps-design-system/), projetados originalmente pelo professor [Erick Petrucelli](https://github.com/ErickPetru). Independentemente de suas origens e motivações iniciais, é um projeto totalmente _open-source_ disponível sob os termos da licença [MIT](https://github.com/cpsrepositorio/cps-elements/blob/main/LICENSE.md).\n\n## Executando o projeto\n\nPara execução local, é necessário um ambiente [Node](https://nodejs.org/en) pré-configurado. Em seguida, executa a instalação dos pacotes:\n\n```sh\nnpm install\n```\n\nPara executar em modo de desenvolvimento, com suporte a _hot-reload_, executar em seguida:\n\n```sh\nnpm run dev\n```\n\nPara testar a checagem de tipos, compilação e minificação para produção:\n\n```sh\nnpm run build\n```\n\n## Como a integração funciona\n\nEste projeto de exemplo simples já está pronto para execução, utilizando-se dos comandos já apresentados.\n\nSua estruturação se baseia na [documentação de integração com Angular](https://cpsrepositorio.github.io/cps-elements/#/frameworks/angular) do CPS Elements. Embora detalhes possam ser obtidos em tal documentação, segue resumo do que foi realizado no projeto para que a integração funcione:\n\n- Instalação do CPS Elements usando `npm install @cps-elements/web`, ficando então registrado no [package.json](./package.json);\n- [Configuração](https://cpsrepositorio.github.io/cps-elements/#/frameworks/angular?id=configuração) em [src/app/app.module.ts](./src/app/app.module.ts) importando `CUSTOM_ELEMENTS_SCHEMA` de `@angular/core` e injetando em `@NgModule({ schemas })`;\n- Importação do tema base `light.css` em [src/styles.css](./src/styles.css);\n- Importação e chamada ao método `setBasePath` em [src/main.ts](./src/main.ts);\n- _[Opcional]_ Registrada biblioteca de ícones adicional em [src/main.ts](./src/main.ts) usando o método `registerIconLibrary`, apenas como exemplo;\n- Nos componentes Angular que utilizarão CPS Elements, basta re-exportar cada componente desejado, como exibido em [src/app/app.component.ts](./src/app/app.component.ts);\n- _[Opcional]_ Para [auto-completação de código](https://cpsrepositorio.github.io/cps-elements/#/fundamentos/utilização?id=auto-completação-de-código) dos CPS Elements e seus atributos no [VS Code](https://code.visualstudio.com/), vide [.vscode/settings.json](./.vscode/settings.json).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickpetru%2Fcps-elements-example-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferickpetru%2Fcps-elements-example-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferickpetru%2Fcps-elements-example-angular/lists"}