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

silveriosepulveda-api-front

v1.0.6

Published

Módulos frontend do sistema SegMed - AngularJS

Readme

silveriosepulveda-api-front

Módulos frontend do sistema SegMed - AngularJS com suporte a bundling moderno.

📦 Instalação

Via NPM (Recomendado)

npm install silveriosepulveda-api-front

Via Git (Desenvolvimento)

cd api/front
npm install

🚀 Uso Rápido

Instalação via NPM

npm install silveriosepulveda-api-front

Importação no seu projeto

Opção 1: Carregamento Individual (Recomendado)

<!-- Carregamento via node_modules - arquivos originais -->
<script src="node_modules/silveriosepulveda-api-front/js/helpers/ajudaFormatacoes.js"></script>
<script src="node_modules/silveriosepulveda-api-front/js/services/services.js"></script>
<script src="node_modules/silveriosepulveda-api-front/js/directives/directivesPadrao.js"></script>
<script src="node_modules/silveriosepulveda-api-front/js/services/authService.js"></script>
<script src="node_modules/silveriosepulveda-api-front/js/menuPainel.js"></script>

Opção 2: Carregamento Otimizado (com hashes para cache)

<!-- Carregamento via dist - arquivos otimizados com hashes -->
<script src="node_modules/silveriosepulveda-api-front/dist/js/ajudaFormatacoes.abc123.js"></script>
<script src="node_modules/silveriosepulveda-api-front/dist/js/services.def456.js"></script>
<script src="node_modules/silveriosepulveda-api-front/dist/js/directives.ghi789.js"></script>

Configuração AngularJS

Para Aplicação Principal (com variável 'app')

Se sua aplicação já cria uma variável app (ex: em apiLocal/js/app.js):

// O pacote detecta automaticamente a variável 'app' e a utiliza
var app = angular.module('app', [
    'ajudaFormatacoes',
    'servicos', 
    'directivesPadrao',
    'authService',
    'menuPainel'
    // ... outros módulos
]);

Para Aplicação Independente (sem variável 'app')

Se você não tem uma variável app global:

// O pacote cria módulos independentes automaticamente
var app = angular.module('app', [
    'ajudaFormatacoes',
    'servicos',
    'directivesPadrao', 
    'authService',
    'menuPainel'
    // ... outros módulos
]);

🔧 Compatibilidade

Detecção Automática

O pacote detecta automaticamente se existe uma variável app global:

  • Se app existe: Usa a variável existente da aplicação principal
  • Se app não existe: Cria módulos independentes

Estrutura da Aplicação

O pacote é compatível com aplicações que:

  1. Criam variável app em apiLocal/js/app.js
  2. Usam authService.js que precisa da variável app
  3. Têm estrutura modular com dependências entre serviços

Arquivos Modificados para Compatibilidade

  • js/services/authService.js - Detecta variável app
  • js/menuPainel.js - Detecta variável app
  • js/directives/srcDirectivesPadrao/estruturaGerencia.js - Detecta variável app
  • templates/eventosSistema/eventosSistema.js - Detecta variável app

📁 Estrutura do Pacote

silveriosepulveda-api-front/
├── js/
│   ├── helpers/
│   │   └── ajudaFormatacoes.js          # Módulo: ajudaFormatacoes
│   ├── services/
│   │   ├── services.js                   # Módulo: servicos
│   │   ├── authService.js                # Módulo: authService (compatível)
│   │   └── mascarasValidacoesService.js # Módulo: mascarasValidacoes
│   ├── directives/
│   │   ├── directivesPadrao.js          # Módulo: directivesPadrao
│   │   └── srcDirectivesPadrao/
│   │       └── estruturaGerencia.js     # Módulo: estruturaGerencia (compatível)
│   ├── controllers/
│   │   ├── controllersBasicos.js        # Módulo: app.controllersBasicos
│   │   └── controllersUsuarios.js       # Módulo: app.controllersUsuarios
│   └── menuPainel.js                    # Módulo: menuPainel (compatível)
├── css/
│   ├── painel.css
│   ├── sistema-unificado.css
│   └── ...
├── dist/                                # Arquivos otimizados (com hashes)
└── templates/
    └── eventosSistema/
        └── eventosSistema.js            # Módulo: eventosSistema (compatível)

🎯 Módulos Disponíveis

Módulos Principais

  • ajudaFormatacoes - Funções auxiliares de formatação
  • servicos - Serviços principais da aplicação
  • directivesPadrao - Diretivas padrão do sistema
  • mascarasValidacoes - Máscaras e validações

Módulos Compatíveis (detectam variável 'app')

  • authService - Serviço de autenticação
  • menuPainel - Sistema de menu lateral
  • estruturaGerencia - Diretiva de estrutura gerencial
  • eventosSistema - Sistema de eventos

Módulos de Controllers

  • app.controllersBasicos - Controllers básicos
  • app.controllersUsuarios - Controllers de usuários

🔄 Desenvolvimento

Build

npm run build          # Build de produção
npm run build:dev      # Build de desenvolvimento
npm run dev            # Servidor de desenvolvimento

Scripts Disponíveis

npm run lint           # Verificar código
npm run lint:fix       # Corrigir código automaticamente
npm run clean          # Limpar arquivos de build
npm run prepare        # Build antes de publicar

📄 Licença

MIT License - veja o arquivo LICENSE para detalhes.

📝 Exemplos

Veja o arquivo example-usage.html para um exemplo completo de como usar o pacote.

🔗 Links

  • NPM: https://www.npmjs.com/package/silveriosepulveda-api-front
  • GitHub: https://github.com/silveriosepulveda/api-front
  • Documentação: https://github.com/silveriosepulveda/api-front#readme