Adds work week configuration feature
Implements configurable work week presets, allowing users to customize the days displayed in the calendar. This includes: - Defining work week settings (work days, day names, total days). - Providing predefined work week presets (standard, compressed, weekend, full week). - Adding UI elements to switch between presets. - Updating grid and header rendering logic to reflect the selected work week. - Emitting events when the work week changes, triggering necessary UI updates and data re-renders. This provides a more flexible and personalized calendar experience.
This commit is contained in:
parent
26f0cb8aaa
commit
d017d48bd6
11 changed files with 283 additions and 34 deletions
|
|
@ -13,6 +13,7 @@ export const EventTypes = {
|
|||
CONFIG_UPDATE: 'calendar:configupdate',
|
||||
CALENDAR_TYPE_CHANGED: 'calendar:calendartypechanged',
|
||||
SELECTED_DATE_CHANGED: 'calendar:selecteddatechanged',
|
||||
WORKWEEK_CHANGED: 'calendar:workweekchanged',
|
||||
|
||||
// View change events
|
||||
VIEW_CHANGE: 'calendar:viewchange',
|
||||
|
|
@ -86,7 +87,7 @@ export const EventTypes = {
|
|||
// Management events (legacy - prefer StateEvents)
|
||||
REFRESH_REQUESTED: 'calendar:refreshrequested',
|
||||
RESET_REQUESTED: 'calendar:resetrequested',
|
||||
CALENDAR_REFRESH_REQUESTED: 'calendar:refreshrequested',
|
||||
CALENDAR_REFRESH_REQUESTED: 'calendar:calendarrefreshrequested',
|
||||
CALENDAR_RESET: 'calendar:reset',
|
||||
|
||||
// System events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue