
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
@tul/number-input
Advanced tools
Management of tul numbers inputs.
npm i @tul/select --save
<tul-currency [(data)]="data" (modelChange)="modelChange($event)"></tul-currency>
<tul-number [(data)]="data" (modelChange)="modelChange($event)"></tul-number>
<tul-percent [(data)]="data" (modelChange)="modelChange($event)"></tul-percent>
<tul-phone-number [(data)]="data" (modelChange)="modelChange($event)"></tul-phone-number>
//GENERAL
@Input() id: string;
@Input() placeholder: string = '';
@Input() data: string = '';
@Input() label: string;
@Input() required: boolean = false;
@Input() error: string;
@Input() disabled = false;
@Input() styles: { [key: string]: string } = { width: '100%' };
@Input() step = 0;
@Input() precisionMode = 'cut';
//CURRENCY
@Input() precision = 2;
@Input() precisionMode = 'cut';
@Input() max = Infinity;
@Input() min = 0;
@Input() currency = 'COP';
@Input() locales = 'es-CO';
@Input() defaultValue: number | null;
@Input() parser = (value: string) => value.replace('$ ', '');
@Input() formatterBlur = (value: number) => {
if (value === null || value === undefined) {
return this.defaultValue;
}
return ` ${new Intl.NumberFormat(this.locales, { style: 'currency', currency: this.currency }).format(
Number(parseFloat(value.toFixed(this.precision)))
)}`;
};
@Input() formatterFocus = (value: number) => {
return value;
};
//NUMBER
@Input() precision = 0;
@Input() max = Infinity;
@Input() min = -Infinity;
@Input() formatter = (value: number) => `${new Intl.NumberFormat('es-CO').format(value)}`;
@Input() parser = (value: string) => value.replace('', '');
//PERCENT
@Input() precision = 0;
@Input() max = 100;
@Input() min = 0;
@Input() formatter = (value: number) => `${new Intl.NumberFormat('es-CO').format(value)}`;
@Input() parser = (value: string) => value.replace('', '');
//PHONE NUMBER
@Input() precision = 0;
@Input() max = Infinity;
@Input() min = -Infinity;
@Input() digitsCellphone = 10;
@Input() formatter = (value: number) => `${new Intl.NumberFormat('es-CO').format(value)}`;
@Input() parser = (value: string) => value.replace('', '');
@Output() modelChange = new EventEmitter<string>();
@Output() focusChange = new EventEmitter<string>();
@Output() blurChange = new EventEmitter<string>();
0.0.1
Andres Felipe Chia Avila
FAQs
> Management of tul numbers inputs.
The npm package @tul/number-input receives a total of 6 weekly downloads. As such, @tul/number-input popularity was classified as not popular.
We found that @tul/number-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.