Unused function
This commit is contained in:
parent
34cf4fbfca
commit
1fa7aa26e5
1 changed files with 13 additions and 20 deletions
|
|
@ -27,7 +27,7 @@ export class GridManager {
|
|||
this.dateService = dateService;
|
||||
this.init();
|
||||
}
|
||||
|
||||
|
||||
private init(): void {
|
||||
this.findElements();
|
||||
this.subscribeToEvents();
|
||||
|
|
@ -48,11 +48,11 @@ export class GridManager {
|
|||
const weekBounds = this.dateService.getWeekBounds(date);
|
||||
return this.dateService.endOfDay(weekBounds.end);
|
||||
}
|
||||
|
||||
|
||||
private findElements(): void {
|
||||
this.container = document.querySelector('swp-calendar-container');
|
||||
}
|
||||
|
||||
|
||||
private subscribeToEvents(): void {
|
||||
// Listen for view changes
|
||||
eventBus.on(CoreEvents.VIEW_CHANGED, (e: Event) => {
|
||||
|
|
@ -70,14 +70,7 @@ export class GridManager {
|
|||
this.render();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Switch to a different view
|
||||
*/
|
||||
public switchView(view: CalendarView): void {
|
||||
this.currentView = view;
|
||||
this.render();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Main render method - delegates to GridRenderer
|
||||
|
|
@ -93,13 +86,13 @@ export class GridManager {
|
|||
this.container,
|
||||
this.currentDate
|
||||
);
|
||||
|
||||
|
||||
// Calculate period range
|
||||
const periodRange = this.getPeriodRange();
|
||||
|
||||
|
||||
// Get layout config based on current view
|
||||
const layoutConfig = this.getLayoutConfig();
|
||||
|
||||
|
||||
// Emit grid rendered event
|
||||
eventBus.emit(CoreEvents.GRID_RENDERED, {
|
||||
container: this.container,
|
||||
|
|
@ -110,8 +103,8 @@ export class GridManager {
|
|||
columnCount: layoutConfig.columnCount
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Get current period label
|
||||
*/
|
||||
|
|
@ -130,7 +123,7 @@ export class GridManager {
|
|||
return this.dateService.formatDateRange(defaultWeekStart, defaultWeekEnd);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Navigate to next period
|
||||
*/
|
||||
|
|
@ -192,7 +185,7 @@ export class GridManager {
|
|||
|
||||
this.render();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get current view's display dates
|
||||
*/
|
||||
|
|
@ -210,7 +203,7 @@ export class GridManager {
|
|||
return this.dateService.getFullWeekDates(defaultWeekStart);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get period range for current view
|
||||
*/
|
||||
|
|
@ -242,7 +235,7 @@ export class GridManager {
|
|||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get layout config for current view
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue