45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
import { Configuration } from '../configurations/CalendarConfig';
|
|
import { CalendarView, IEventBus } from '../types/CalendarTypes';
|
|
import { EventManager } from './EventManager';
|
|
import { GridManager } from './GridManager';
|
|
import { EventRenderingService } from '../renderers/EventRendererManager';
|
|
import { ScrollManager } from './ScrollManager';
|
|
/**
|
|
* CalendarManager - Main coordinator for all calendar managers
|
|
*/
|
|
export declare class CalendarManager {
|
|
private eventBus;
|
|
private eventManager;
|
|
private gridManager;
|
|
private eventRenderer;
|
|
private scrollManager;
|
|
private config;
|
|
private currentView;
|
|
private currentDate;
|
|
private isInitialized;
|
|
constructor(eventBus: IEventBus, eventManager: EventManager, gridManager: GridManager, eventRenderingService: EventRenderingService, scrollManager: ScrollManager, config: Configuration);
|
|
/**
|
|
* Initialize calendar system using simple direct calls
|
|
*/
|
|
initialize(): Promise<void>;
|
|
/**
|
|
* Skift calendar view (dag/uge/måned)
|
|
*/
|
|
setView(view: CalendarView): void;
|
|
/**
|
|
* Sæt aktuel dato
|
|
*/
|
|
setCurrentDate(date: Date): void;
|
|
/**
|
|
* Setup event listeners for at håndtere events fra andre managers
|
|
*/
|
|
private setupEventListeners;
|
|
/**
|
|
* Calculate the current period based on view and date
|
|
*/
|
|
private calculateCurrentPeriod;
|
|
/**
|
|
* Handle workweek configuration changes
|
|
*/
|
|
private handleWorkweekChange;
|
|
}
|