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

general-input-components

v0.0.3

Published

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.1.6.

Readme

GeneralInputComponents

This library was generated with Angular CLI version 10.1.6.

Installazione

npm i general-input-components

in app.module.ts:

import { InputBootstrapComponentsModule } from 'general-input-components';

imports:[ InputBootstrapComponentsModule ]

Esempio di uso

Running unit tests

Run ng test general-input-components to execute the unit tests via Karma.

Author

Il componente è stato sviluppato da @Vito Buonsanto email contatto: [email protected]

Versione

V.0.0.2

Il componente gestisce i casi di input-text di tipo string e numerici. Il componente gestisce le textarea. Il componente gestisce i datePicker Il componente è compatibile con la validazione Bootstrap che usa il Template driven Validation.

Desrizone dei componenti

************************************************** INPUT-TEXT **************************************************

****************** INPUT ******************** @Input() inputData: string; -> input del dato @Input() name: string; -> nome del componente @Input() label: string; -> ciò che viene mostrato nella label @Input() isDisabled: boolean; -> disabilitato @Input() isRequired: boolean; -> controllo required del campo @Input() maxLength: number; -> lunghezza massima del campo @Input() minLength: number; -> lunghezza minima del campo @Input() placeholder: string; -> placeholder da mostrare @Input() autocomplete: any; -> disabilita autocomplete con [autocomplete]="'off'" @Input() blockCopyPaste: boolean; -> disabilita copy paste cut

@Input() upperCase: boolean; -> true/false caratteri maiuscoli @Input() lowerCase: boolean; -> true/false caratteri minuscoli @Input() onlyNumber: boolean; -> true/false solo numeri non decimali @Input() decimals: number; -> true/false solo numeri specificando i decimali @Input() optionsNumberBetween: -> { min: number, max: number, errore: string }; min: numero minimo(numero/null) max: numero massimo (numero/null) errore: errore da mostare (opzionale) @Input() regexControl: -> { regex: string, errore: string }; regex: stringa per formare la regex (obbligatoria) errore: errore da mostare (opzionale) @Input() codiceFiscale: -> { cf: boolean, personaFisica: boolean, checkUltimoCarattere: boolean } / boolean; -> leggi sezione cf @Input() errori: Array -> possibilità di inserire una serie di errori esterni che renderanno invalido il componente. Le stringhe verranno mostrate a video all'utente segnalando l'errore

****************** OUTPUT ******************** @Output() dateOut = new EventEmitter(); -> output di NgModel per aggiungerlo ai controlli del tuo form @Output() modelOut = new EventEmitter(); -> output del valore del campo

Nella cartella esempio vi sono diversi esempi di utilizzi e combinazioni del componente.


CF: regexCF: ([0-9]{11}|[a-zA-Z]{6}[0-9]{2}[a-zA-Z][0-9]{2}[a-zA-Z][0-9]{3}[a-zA-Z]) 1)Passando l'attributo [codiceFiscale] = "true" verrà controllato che il codice fiscale rispetti la seguente regola: 11 caratteri numerici 16 caratteri alfanumerici che rispettano la regex regexCF 2)Passando l'attributo [codiceFiscale] = [codiceFiscale]="{ cf:true , personaFisica: true}" verrà controllato che il codice fiscale rispetti la seguente regola: 16 caratteri alfanumerici che rispettano la regex regexCF 3)Passando l'attributo [codiceFiscale]="{ cf:true , personaFisica: true, checkUltimoCarattere: true }" verrà controllato che il codice fiscale rispetti la seguente regola: 16 caratteri alfanumerici che rispettano la regex regexCF e controlla che l'ultimo carattere del cf sia corretto rispetto ai precedenti


************************************************** TEXTAREA **************************************************

****************** INPUT ******************** @Input() inputData: string; -> input del dato @Input() name: string; -> nome del componente @Input() label: string; -> ciò che viene mostrato nella label @Input() isDisabled: boolean; -> disabilitato @Input() isRequired: boolean; -> controllo required del campo @Input() maxLength: number; -> lunghezza massima del campo (se c'è appare un contatore) @Input() minLength: number; -> lunghezza minima del campo @Input() placeholder: string; -> placeholder da mostrare @Input() blockCopyPaste: boolean; -> disabilita copy paste cut

@Input() upperCase: boolean; -> true/false caratteri maiuscoli @Input() lowerCase: boolean; -> true/false caratteri minuscoli @Input() regexControl: -> { regex: string, errore: string }; regex: stringa per formare la regex (obbligatoria) errore: errore da mostare (opzionale) @Input() rows: numbers -> numbero di rows

****************** OUTPUT ******************** @Output() dateOut = new EventEmitter(); -> output di NgModel per aggiungerlo ai controlli del tuo form @Output() modelOut = new EventEmitter(); -> output del valore del campo

Nella cartella esempio vi sono diversi esempi di utilizzi e combinazioni del componente.

************************************************** CHECKBOX **************************************************

****************** INPUT ******************** @Input() textLabel; -> label da mostrare @Input() model; -> dato da passare in input @Input() id; -> identificativo checkbox @Input() isRequired: boolean; -> con isRequired true si intende che la checkbox per essere valida deve avere valore true

****************** OUTPUT ********************

@Output() isCheckedOut = new EventEmitter(); -> output di NgModel per aggiungerlo ai controlli del tuo form @Output() value = new EventEmitter(); -> output del valore del campo

************************************************** DATEPICKER **************************************************

****************** INPUT ******************** @Input() isRequired: boolean; -> controllo required del campo @Input() isDisabled: boolean; -> controllo disabilitazione del campo @Input() dateIn: string; -> dato da passare in input @Input() label: string; -> label da mostrare @Input() options: OptionsDatePicker; -> @Input() name: string; -> identificativo checkbox

@Input() errori: []; Array -> possibilità di inserire una serie di errori esterni che renderanno invalido il componente. Le stringhe verranno mostrate a video all'utente segnalando l'errore ****************** OUTPUT ******************** @Output() dateOut = new EventEmitter(); @ViewChild('myControl') myControl: NgModel; @Output() modelOut = new EventEmitter();