UNPKG

@preamp/datepicker

Version:

VideoAmp's Component library

15 lines (14 loc) 1.03 kB
import { DateRange } from '../types'; export declare function parseDate(str: string): Date; export declare function formatDate(date: Date, format?: string): string; export declare function isDateFirstDayOfMonth(day: Date): boolean; export declare function isDateLastDayOfMonth(day: Date): boolean; export declare function isSelectingStartDay(fromDate: Date, toDate: Date, day: Date): boolean; export declare function textInputWidth(text: string): number; export declare function parseAllNonNumbers(text: string): string; export declare function parseAllNonNumbersButSlash(text: string): string; export declare function maskInputString(text: string): string; export declare function formatInputDisplay(date: Date, inputText: string): string; export declare function convertStringToNewDates(text: string, dates: DateRange, isStart?: boolean): DateRange; export declare function convertStringToNewDate(text: string): Date; export declare function outsideAvailableRange(selectedDays: DateRange, disabledDays: DateRange): boolean;