@qeydar/datepicker
Version:
A comprehensive Date and Time Picker for Angular with Jalali calendar support
24 lines (23 loc) • 1.05 kB
TypeScript
import { ElementRef } from '@angular/core';
import * as i0 from "@angular/core";
export declare class DateMaskDirective {
el: ElementRef;
dateFormat: string;
disableInputMask: boolean;
delimiters: string[];
parts: string[];
lastValue: string;
constructor(el: ElementRef);
ngOnInit(): void;
parseFormat(): void;
isFormatChar(char: string): boolean;
onInput(event: InputEvent): void;
extractPart(value: string, format: string): string;
removeProcessedPart(value: string, part: string): string;
onKeyDown(event: KeyboardEvent): void;
validatePart(value: string, format: string): string;
getPartLength(format: string): number;
getCurrentPartIndex(value: string, cursorPosition: number): number;
static ɵfac: i0.ɵɵFactoryDeclaration<DateMaskDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<DateMaskDirective, "[qeydar-dateMask]", never, { "dateFormat": "qeydar-dateMask"; "disableInputMask": "disableInputMask"; }, {}, never, never, true>;
}