ngx-bootstrap
Version:
Angular Bootstrap
16 lines (15 loc) • 1.37 kB
TypeScript
import { BsDatepickerState } from '../reducer/bs-datepicker.state';
import { BsCustomDates } from '../themes/bs/bs-custom-dates-view.component';
export declare function getStartingDayOfCalendar(date: Date, options: {
firstDayOfWeek?: number;
}): Date;
export declare function calculateDateOffset(weekday: number, startingDayOffset?: number): number;
export declare function isMonthDisabled(date: Date, min?: Date, max?: Date): boolean;
export declare function isYearDisabled(date: Date, min?: Date, max?: Date): boolean;
export declare function isDisabledDate(date?: Date, datesDisabled?: Date[], unit?: 'year' | 'date' | 'month'): boolean;
export declare function isEnabledDate(date?: Date, datesEnabled?: Date[], unit?: 'year' | 'date' | 'month'): boolean;
export declare function getYearsCalendarInitialDate(state: BsDatepickerState, calendarIndex?: number): Date | undefined;
export declare function checkRangesWithMaxDate(ranges?: BsCustomDates[], maxDate?: Date): BsCustomDates[] | undefined;
export declare function checkBsValue(date?: Array<Date> | Date | (Date | undefined)[], maxDate?: Date): Array<Date> | Date | (Date | undefined)[] | undefined;
export declare function setCurrentTimeOnDateSelect(value?: Date): Date | undefined;
export declare function setDateRangesCurrentTimeOnDateSelect(value?: (Date | undefined)[]): (Date | undefined)[] | undefined;