angular-cc-library
Version:
angular credit card library
26 lines (25 loc) • 944 B
TypeScript
import { ElementRef } from '@angular/core';
import { NgControl } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class ExpiryFormatDirective {
private el;
private control;
private target;
constructor(el: ElementRef, control: NgControl);
/**
* Updates the value to target element, or FormControl if exists.
* @param value New input value.
*/
private updateValue;
onKeypress(e: KeyboardEvent): boolean;
onKeydown(e: KeyboardEvent): void;
onChange(): void;
onInput(): void;
private formatExpiry;
private formatForwardSlashAndSpace;
private formatForwardExpiry;
private formatBackExpiry;
private reformatExpiry;
static ɵfac: i0.ɵɵFactoryDeclaration<ExpiryFormatDirective, [null, { optional: true; self: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpiryFormatDirective, "[ccExp]", never, {}, {}, never, never, true, never>;
}