Refactors all-day event rendering and DOM access

Decouples all-day event rendering, making it reactive to header readiness with period data.
Eliminates explicit DOM element caching, simplifying element access.
Enhances the `header:ready` event payload with `startDate` and `endDate`.
Improves all-day row height animation and calculation.
This commit is contained in:
Janus C. H. Knudsen 2025-09-22 23:37:43 +02:00
parent f5e9909935
commit 6498b0ba8e
6 changed files with 98 additions and 116 deletions

View file

@ -85,4 +85,12 @@ export interface DragMouseLeaveHeaderEventPayload {
mousePosition: MousePosition;
originalElement: HTMLElement| null;
cloneElement: HTMLElement| null;
}
// Header ready event payload
export interface HeaderReadyEventPayload {
headerElement: HTMLElement;
startDate: Date;
endDate: Date;
isNavigation?: boolean;
}