whensday-calendar-lib
Version:
A flexible calendar library with Whensday/Gregorian calendar systems, event management, and customizable UI components
29 lines • 1.15 kB
TypeScript
import React from 'react';
import { DayInGrid, CalendarDay, Event, Layer, CalendarSystem, DragState } from '../types';
export interface ScheduleForDay {
schedule: any;
color: string;
state: 'on' | 'off' | 'holiday' | 'exemption' | 'bonus';
isCompleted: boolean;
}
interface DayColumnProps {
day: CalendarDay;
timedEvents: Event[];
schedules: ScheduleForDay[];
onTimeSlotClick: (date: DayInGrid, time: string) => void;
onEventClick: (event: Event) => void;
hourHeight: number;
system: CalendarSystem;
layersById: Map<string, Layer>;
dragState: DragState | null;
ghostTopPercent: number | null;
isDraggingOver: boolean;
onDragStart: (e: React.DragEvent, event: Event) => void;
onDragOver: (e: React.DragEvent, columnRef: React.RefObject<HTMLDivElement>, day: DayInGrid) => void;
onDrop: (e: React.DragEvent, day: DayInGrid) => void;
onDragEnd: (e: React.DragEvent) => void;
onEventMove?: (eventId: string, newDayTimestamp: number, newStartTime?: string) => void;
}
export declare const DayColumn: React.FC<DayColumnProps>;
export {};
//# sourceMappingURL=DayColumn.d.ts.map