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

@senior-hcm-service-tower/hst-input

v1.1.2

Published

Componentes desenvolvido para uso em telas customizadas e BPMs pelo time de serviços customizados HCM da Senior Sistemas.

Readme

HCM Service Tower Senior - Input 🚀

Componentes desenvolvido para uso em telas customizadas e BPMs pelo time de serviços customizados HCM da Senior Sistemas.

📝 Requisitos

  • Angular: 18.0.1
  • primeflex: 3.3.1
  • primeng: 17.18.9

Tipos disponíveis:

  • text: Texto aberto.
  • textarea: Texto no formato "textarea";
  • number: Tipo numérico.
  • currency: Tipo numérico com máscara de valor brasileiro (Possibilitando que o control seja em valor numérico ou string com máscara).
  • date: Tipo data com possibilidade de validação de máscara para seleção de data mínima e/ou data máxima.
  • time: Seleção de horas (retorna date)
  • phone: Tipo numérico com máscara para telefone (com DDD) ou celular.
  • cpf: Tipo numérico com máscara e validação de CPF.
  • cnpj: Tipo numérico com máscara e validação de CNPJ.
  • email: Tipo texto, se utilizado com formGroup, adiciona automaticamente validador de E-mail.

🛠️ Como usar

Utilizar o componente com ngModel ou formControl.

form: FormGroup;
valorModel = '';
constructor(private fb: FormBuilder){
  this.form = this.formBuilder.group({
    valor: ['', Validators.required]
  })
}
<form  [formGroup]="form">
  <hst-input
    label="Valor do campo"
    formControlName="valor"
    type="text">
  </hst-input>

  <hst-input
    label="Valor do campo model"
    [(ngModel)]="valorModel"
    type="text">
  </hst-input>
</form>

1. Texto

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="text">
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input

2. TextArea

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="textarea"
  [maxLength]="100"
  [showContador]="false"
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input | maxLength | Number | 255 | Tamanho máximo do campo | showContador | Boolean | true | Demonstra um contador de caracteres

3. Number

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="number">
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input

4. Currency

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="currency">
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input

5. Date

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="date"
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input | minDate | Date | null | Data mínima de seleção | maxDate | Date | null | Data máxima de seleção

6. Time

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="time"
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input

7. Phone

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="phone"
  dropSpecialCharacters
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input | dropSpecialCharacters | Boolean | false | Se informado retorna o valor sem máscara aplicada

8. CPF

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="cpf"
  dropSpecialCharacters
  noDefaultValidate
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input | dropSpecialCharacters | Boolean | false | Se informado retorna o valor sem máscara aplicada | noDefaultValidate | Boolean | false | Se informado remove a validação de CPF do campo

Obs.: É adicionado automaticamente um validador de CPF

9. CNPJ

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="cnpj"
  dropSpecialCharacters
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input | dropSpecialCharacters | Boolean | false | Se informado retorna o valor sem máscara aplicada | noDefaultValidate | Boolean | false | Se adicionado, remove a validação de CNPJ do campo

Obs.: É adicionado automaticamente um validador de CNPJ

10. E-mail

<hst-input
  [(ngModel)]="value"
  placeholder="Placeholder do campo"
  label="Label do campo"
  type="email"  
  >
</hst-input>

| Input | Entrada | Valor Padrão | Descrição | | ------------- | ------------- | ------------- |------------- | | label | String | '' | Label do input | placeholder | String | '' | placeholder do input | noDefaultValidate | Boolean | false | Se adicionado, remove a validação de e-mail do campo

Obs.: É adicionado automaticamente um validador de e-mail

📝 Dicionário de erros

Se utilizado o componente com FormGroup, é adicionado a mensagem de erro conforme validadores. Atualmente há algumas mensagens parametrizadas (required, minLength, cpf, cnpj, email), e uma mensagem default caso não tenha uma mensagem tratada. Para personalizar a mensagem dos validadores, basta enviar via parâmetro "errorsMessage" no input.

Exemplo:

<hst-input
  formControlName="emailColaborador"
  placeholder="Informe o e-mail do colaborador"
  label="E-mail do colaborador"
  type="email"
  [errorsMessage]="{ required: 'Esse campo é obrigatório', validadorPersonalizado: 'Mensagem de erro customizado!' }"
  >
</hst-input>

Nesse caso, é sobrescrito a mensagem de erro para o "required" de "Campo obrigatório!" para "Esse campo é obrigatório", mantem a mensagem padrão do validador de email "E-mail inválido!" (Pois não foi sobrescrito), e adiciona no dicionário uma mensagem para um validador personalizado.