Supports dynamic event types; refactors navigation DOM access

Enables dynamic event types by reading the 'type' field from raw event data instead of using a hardcoded value.

Removes DOM element caching for calendar and grid containers in the navigation manager, opting for direct DOM queries. Eliminates associated cache clearing and post-animation header event emission.
This commit is contained in:
Janus C. H. Knudsen 2025-09-23 23:39:01 +02:00
parent 48d1fd681c
commit 32894cca82
2 changed files with 5 additions and 54 deletions

View file

@ -10,6 +10,7 @@ interface RawEventData {
title: string;
start: string | Date;
end: string | Date;
type : string;
color?: string;
allDay?: boolean;
[key: string]: unknown;
@ -88,7 +89,7 @@ export class EventManager {
...event,
start: new Date(event.start),
end: new Date(event.end),
type: 'event',
type : event.type,
allDay: event.allDay || false,
syncStatus: 'synced' as const
}));