@ng-dl/numeric-input
Version:
override browser's default behavior & localization on numeric inputs
31 lines (30 loc) • 1.25 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
import { NgControl } from '@angular/forms';
import { LocaleService } from './locale.service';
import * as i0 from "@angular/core";
export declare class NumericInputDirective implements AfterViewInit, OnDestroy {
private hostElement;
private localeService;
private control?;
min: number;
max: number;
localized: EventEmitter<string>;
private readonly decimalSeparators;
private readonly thousandSeparators;
private readonly destroy$;
constructor(hostElement: ElementRef, localeService: LocaleService, control?: NgControl);
ngAfterViewInit(): void;
ngOnDestroy(): void;
private setValue;
private onChange;
private onPaste;
private onDrop;
private onKeyDown;
private onFormSubmit;
private onValueChange;
private get el();
private get decimalSeparator();
private get thousandsSeparator();
static ɵfac: i0.ɵɵFactoryDeclaration<NumericInputDirective, [null, null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NumericInputDirective, "[dlNumericInput]", never, { "min": "min"; "max": "max"; }, { "localized": "localized"; }, never, never, false, never>;
}