npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gipisistemas/ngx-core

v1.0.28

Published

Componentes e utilitários para projetos da GIPI Sistemas.

Downloads

517

Readme

GIPI - ngx-core

Este projeto foi gerado utilizando o Angular CLI - versão 19.2.0.

📝 Sobre

A biblioteca ngx-core fornece utilitários, temas e componentes reutilizáveis para projetos Angular, facilitando o desenvolvimento de interfaces consistentes e responsivas.

🧩 Pré-requisitos

⚠️ Estrutura de Commits (Conventional Commits)

Este projeto utiliza Semantic Release para gerar versões automaticamente. A versão (patch, minor, major) é definida de acordo com o tipo do commit.

🔑 Regras principais

  • fix: incrementa patch1.0.0 → 1.0.1
  • feat: incrementa minor1.0.0 → 1.1.0
  • feat!: ou qualquer commit com BREAKING CHANGE no corpo → incrementa major1.0.0 → 2.0.0

✅ Exemplos de commits válidos

  • fix: corrige bug no botão de login
  • feat: adiciona novo componente de avatar
  • feat!: altera API de autenticação
  • chore: atualiza dependências (não gera release)
  • docs: adiciona instruções no README (não gera release)

⚠️ Importante

Sempre coloque dois pontos e um espaço depois do tipo.

  • ✅ fix: descrição
  • ❌ fix:descrição

Somente commits fix, feat ou com BREAKING CHANGE geram versão. Outros tipos (chore, docs, refactor, etc.) não geram release automaticamente.

🛠️ Desenvolvimento

Para compilar a biblioteca em modo de desenvolvimento, execute:

npm run watch

Isso executará o comando:

ng build --watch --configuration development

Uma vez compilada. A biblioteca será recarregada automaticamente sempre que houver modificações nos arquivos.

🖥️ Utilização no aplicativo

Para utilizar esta biblioteca, siga os passos abaixo:

1️⃣ Instalar a biblioteca no aplicativo

Instale a biblioteca no seu aplicativo Angular executando:

npm install caminho-da-lib\\dist\\ngx-core

Substitua caminho-da-lib pelo caminho correto onde a biblioteca foi compilada.

2️⃣ Configurar preserveSymlinks

É necessário definir preserveSymlinks: true no arquivo angular.json para evitar o seguinte erro:

core.mjs:7195 ERROR RuntimeError: NG0203: inject() must be called from an injection context...

🔹 No angular.json, dentro de projects -> nome-do-projeto -> architect -> build -> options, adicione:

"preserveSymlinks": true

3️⃣ Adicionar os providers necessários

Esses providers são essenciais para o funcionamento da biblioteca. No main.ts ou no arquivo de configuração app.config.ts, adicione os seguintes providers:

import { bootstrapApplication } from "@angular/platform-browser";
import { AppComponent } from "./app/app.component";
import { importProvidersFrom } from "@angular/core";
import { MatSnackBarModule } from "@angular/material/snack-bar";
import { provideHttpClient, withInterceptorsFromDi } from "@angular/common/http";
import { provideAppMessages, DEFAULT_MESSAGES } from "@gipisistemas/ngx-core";

bootstrapApplication(AppComponent, {
    providers: [
        // ...outros providers
        importProvidersFrom(MatSnackBarModule),
        provideHttpClient(withInterceptorsFromDi()),
        provideAppMessages(DEFAULT_MESSAGES),
    ],
}).catch((err) => console.error(err));

4️⃣ Temas e estilos globais

Definição de temas:

🔹 Se não informar o $custom-theme no mixin all-component-themes a biblioteca irá aderir as paletas de cores, fontes e densidades padrão.

Palettes
  • primary: $palette-primary
  • secondary: $palette-secondary
  • success: $palette-success
  • information: $palette-information
  • warning: $palette-warning
  • danger: $palette-danger
  • white: $palette-white
  • black: $palette-black
  • pastels: $palette-pastels
Typography
  • font-family: 'Roboto, sans-serif'
  • font-size: 1.4rem
  • font-base: 62.5% - 100% equivale a 16px; Logo 62.5% de 16px = 10px; Assim 1rem equivale 10px;
Density
  • scale: 0

Utilizando tema customizado:

@use "@gipisistemas/ngx-core" as ngx-core;

$custom-theme: ngx-core.define-theme(
    (
        palettes: (
            primary: $palette-primary,
            secondary: $palette-secondary,
            // ... other palettes
        ),
        typography: (
            font-family: "Roboto, sans-serif",
            font-size: 1.4rem,
            font-base: 62.5%,
        ),
    )
);

@include ngx-core.all-component-themes($custom-theme);

Utilizando tema padrão:

@use "@gipisistemas/ngx-core" as ngx-core;
@include ngx-core.all-component-themes();

🚀 Produção

Ainda será implementado