Some ignored filles was missing
This commit is contained in:
parent
7db22245e2
commit
fd5ab6bc0d
268 changed files with 31970 additions and 4 deletions
42
wwwroot/js/utils/AllDayLayoutEngine.d.ts
vendored
Normal file
42
wwwroot/js/utils/AllDayLayoutEngine.d.ts
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import { ICalendarEvent } from '../types/CalendarTypes';
|
||||
export interface IEventLayout {
|
||||
calenderEvent: ICalendarEvent;
|
||||
gridArea: string;
|
||||
startColumn: number;
|
||||
endColumn: number;
|
||||
row: number;
|
||||
columnSpan: number;
|
||||
}
|
||||
export declare class AllDayLayoutEngine {
|
||||
private weekDates;
|
||||
private tracks;
|
||||
constructor(weekDates: string[]);
|
||||
/**
|
||||
* Calculate layout for all events using clean day-based logic
|
||||
*/
|
||||
calculateLayout(events: ICalendarEvent[]): IEventLayout[];
|
||||
/**
|
||||
* Find available track for event spanning from startDay to endDay (0-based indices)
|
||||
*/
|
||||
private findAvailableTrack;
|
||||
/**
|
||||
* Check if track is available for the given day range (0-based indices)
|
||||
*/
|
||||
private isTrackAvailable;
|
||||
/**
|
||||
* Get start day index for event (1-based, 0 if not visible)
|
||||
*/
|
||||
private getEventStartDay;
|
||||
/**
|
||||
* Get end day index for event (1-based, 0 if not visible)
|
||||
*/
|
||||
private getEventEndDay;
|
||||
/**
|
||||
* Check if event is visible in the current date range
|
||||
*/
|
||||
private isEventVisible;
|
||||
/**
|
||||
* Format date to YYYY-MM-DD string using local date
|
||||
*/
|
||||
private formatDate;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue