Refactors calendar type to calendar mode
Updates the codebase to utilize `CalendarMode` instead of the deprecated `CalendarType`. Simplifies `CalendarConfig` by removing legacy methods and related type aliases, enhancing code maintainability and clarity. Improves event rendering by ensuring `GRID_RENDERED` events include explicit start and end dates, preventing errors and ensuring correct data filtering.
This commit is contained in:
parent
83c0ce801c
commit
0ea4e47324
10 changed files with 61 additions and 91 deletions
|
|
@ -6,11 +6,8 @@ export type ViewPeriod = 'day' | 'week' | 'month';
|
|||
// Calendar mode types (how to organize the data)
|
||||
export type CalendarMode = 'date' | 'resource';
|
||||
|
||||
// Legacy aliases for backwards compatibility
|
||||
export type DateViewType = ViewPeriod;
|
||||
export type ViewType = DateViewType;
|
||||
export type CalendarView = ViewType;
|
||||
export type CalendarType = CalendarMode;
|
||||
// Type aliases
|
||||
export type CalendarView = ViewPeriod;
|
||||
|
||||
export type SyncStatus = 'synced' | 'pending' | 'error';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue