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 🙏

© 2024 – Pkg Stats / Ryan Hefner

form-create-component

v0.0.13

Published

Componente para criação de forms

Downloads

4

Readme

Create Form Component

O que é?

É um componente composto por elementos <ion-input> com funções de cadastros, sendo eles: Usuário.

Para sua utilização, é necessário a importação do componente

npm install componente

declarar no módulo desejado

imports: [CreateFormModule]

inicialização do mesmo napágina desejada

constructor(public formUsername: FormUsername) {}

e a relização da chamada no arquivo de visão

<form-username [username]="this.username" (usernameReturn)="this.setUsername($event)"></form-username>.

Parâmetros

Os parâmetros podem ser informados para garantir a personalização no nível desejado. Sendo os parâmetros:

| Tag | Descrição | Default | Tipo | Retorno | |----------------------|--------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------:|:------------------------------------------------------------:| | required | Configura o campo como obrigatório | true | boolean | - | | maxLength | Define a quantidade máxima de caractéres | 25 | number | - | | minLength | Define a quantidade mínima de caractéres | 5 | number | - | | pattern | Define o padrão que será validado | ^(?=.*[a-zA-Z])(?=.*[0-9])[a-zA-Z0-9]+$ | string(REGEX) | - | | username | Variável que será preenchida | - | String | - | | styleDivInputText | Estilo do campo de texto | { "display": "flex" , "align-items": "center", "margin-top": "5px", "padding": "0", "background": "var(--ion-color-primary)", "border-radius": "0.5em"} | string (JSON) | - | | styleUserIcon | Estilo do campo do ícone | { "color": "var(--ion-color-primary-contrast)", "float": "left", "font-size": "20px", "margin-left": "3px" } | string (JSON) | - | | styleInputText | Estilo do texto | { "color": "var(--ion-color-primary-contrast)" } | string (JSON) | - | | styleDivErrors | Estilo da div contendo as mensagens de erro | {"display": "flex", "flex-direction":"column", "justify-content": "center", "align-items": "center" } | string (JSON) | - | | styleDivErrorMessage | Estilo das mensagens de erro | {"font-size": "0.9em", "margin-top": "3px", "color": "var(--ion-color-danger)" } | string (JSON) | - | | errMsgRequired | Mensagem de erro para usuário obrigatório | Username is required | string | - | | errMsgMinlength | Mensagem de erro para quantidade mínima de caractéres | Username must be at least 5 characters long. | string | - | | errMsgMaxlength | Mensagem de erro para quantidade máxima de cararactéres | Username cannot be more than 25 characters long | string | - | | errMsgpattern | Mensagem de erro exibida para informar o padrão do usuário | Your username must contain only numbers and letters | string | - | | errMsgValidUsername | Mensagem de erro para usuário inválido | Your username has already been taken | string | - | | usernameReturn | Método callback para retornar o valor da entrada e se está válido ou não | | Método Callback | { username : String ;valid : Boolean;} |