fui-fancyui
Version:
FancyUI Libary
26 lines (25 loc) • 1.12 kB
TypeScript
import { IDisabledDateSettings } from '../MonthWithDays/utils/types/IDisableDateSettings.model';
import { default as IExternalYearWithMonths } from '../MonthWithDays/utils/types/IExternalMonthWithDays.model';
import { TUiColorsNotTransparent } from '../../../types/TUiColorsNotTransparent';
import { TLayer } from '../../../types/TLayer';
export type TDateArray = [Date | undefined, Date | undefined] | Date;
export type TDateOnlyArray = [Date | undefined, Date | undefined];
export type TYearMonth = {
year: number;
month: number;
};
export type TCalendar = {
selectedYearMonth?: TYearMonth;
rangeCalendar: boolean;
selectFromTo?: 'from' | 'to' | undefined;
handleDates?: (date: TDateArray) => void;
currentInViewhandler?: (date: TYearMonth) => void;
handleSwitchFromTo?: (change: 'from' | 'to') => void;
disabledDateSetting?: IDisabledDateSettings;
externalMonthsWithDays?: IExternalYearWithMonths;
startWeekOnDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
startCalendarDate?: TYearMonth;
endCalendarDate?: TYearMonth;
themeType?: TUiColorsNotTransparent;
layer?: TLayer;
};