Refactor data source and configuration management

Abstracts column data source with interface
Updates managers to use configuration-driven view and date
Decouples datasource creation from individual managers

Improves flexibility and dependency injection for calendar components
This commit is contained in:
Janus C. H. Knudsen 2025-11-18 22:33:48 +01:00
parent 0f10d44037
commit 9d270217bd
6 changed files with 31 additions and 17 deletions

View file

@ -19,14 +19,12 @@ export class DateColumnDataSource implements IColumnDataSource {
constructor(
dateService: DateService,
config: Configuration,
currentDate: Date,
currentView: CalendarView
config: Configuration
) {
this.dateService = dateService;
this.config = config;
this.currentDate = currentDate;
this.currentView = currentView;
this.currentDate = new Date();
this.currentView = this.config.currentView;
}
/**