Initial commit: Calendar Plantempus project setup with TypeScript, ASP.NET Core, and event-driven architecture
This commit is contained in:
commit
f06c02121c
38 changed files with 8233 additions and 0 deletions
98
src/constants/EventTypes.ts
Normal file
98
src/constants/EventTypes.ts
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
// Calendar event type constants
|
||||
|
||||
/**
|
||||
* Calendar event type constants for DOM CustomEvents
|
||||
*/
|
||||
export const EventTypes = {
|
||||
// View events
|
||||
VIEW_CHANGE: 'calendar:viewchange',
|
||||
VIEW_RENDERED: 'calendar:viewrendered',
|
||||
PERIOD_CHANGE: 'calendar:periodchange',
|
||||
|
||||
// Event CRUD
|
||||
EVENT_CREATE: 'calendar:eventcreate',
|
||||
EVENT_CREATED: 'calendar:eventcreated',
|
||||
EVENT_UPDATE: 'calendar:eventupdate',
|
||||
EVENT_UPDATED: 'calendar:eventupdated',
|
||||
EVENT_DELETE: 'calendar:eventdelete',
|
||||
EVENT_DELETED: 'calendar:eventdeleted',
|
||||
EVENT_RENDERED: 'calendar:eventrendered',
|
||||
EVENT_SELECTED: 'calendar:eventselected',
|
||||
EVENTS_LOADED: 'calendar:eventsloaded',
|
||||
|
||||
// Interaction events
|
||||
DRAG_START: 'calendar:dragstart',
|
||||
DRAG_MOVE: 'calendar:dragmove',
|
||||
DRAG_END: 'calendar:dragend',
|
||||
DRAG_CANCEL: 'calendar:dragcancel',
|
||||
|
||||
RESIZE_START: 'calendar:resizestart',
|
||||
RESIZE_MOVE: 'calendar:resizemove',
|
||||
RESIZE_END: 'calendar:resizeend',
|
||||
RESIZE_CANCEL: 'calendar:resizecancel',
|
||||
|
||||
// UI events
|
||||
POPUP_SHOW: 'calendar:popupshow',
|
||||
POPUP_HIDE: 'calendar:popuphide',
|
||||
|
||||
SEARCH_START: 'calendar:searchstart',
|
||||
SEARCH_UPDATE: 'calendar:searchupdate',
|
||||
SEARCH_CLEAR: 'calendar:searchclear',
|
||||
|
||||
// Grid events
|
||||
GRID_CLICK: 'calendar:gridclick',
|
||||
GRID_DBLCLICK: 'calendar:griddblclick',
|
||||
GRID_RENDERED: 'calendar:gridrendered',
|
||||
|
||||
// Data events
|
||||
DATA_FETCH_START: 'calendar:datafetchstart',
|
||||
DATA_FETCH_SUCCESS: 'calendar:datafetchsuccess',
|
||||
DATA_FETCH_ERROR: 'calendar:datafetcherror',
|
||||
DATA_SYNC_START: 'calendar:datasyncstart',
|
||||
DATA_SYNC_SUCCESS: 'calendar:datasyncsuccess',
|
||||
DATA_SYNC_ERROR: 'calendar:datasyncerror',
|
||||
|
||||
// State events
|
||||
STATE_UPDATE: 'calendar:stateupdate',
|
||||
CONFIG_UPDATE: 'calendar:configupdate',
|
||||
|
||||
// Time events
|
||||
TIME_UPDATE: 'calendar:timeupdate',
|
||||
|
||||
// Navigation events
|
||||
NAV_PREV: 'calendar:navprev',
|
||||
NAV_NEXT: 'calendar:navnext',
|
||||
NAV_TODAY: 'calendar:navtoday',
|
||||
NAVIGATE_TO_DATE: 'calendar:navigatetodate',
|
||||
WEEK_CHANGED: 'calendar:weekchanged',
|
||||
WEEK_INFO_UPDATED: 'calendar:weekinfoupdated',
|
||||
WEEK_CONTAINER_CREATED: 'calendar:weekcontainercreated',
|
||||
|
||||
// Loading events
|
||||
LOADING_START: 'calendar:loadingstart',
|
||||
LOADING_END: 'calendar:loadingend',
|
||||
|
||||
// Error events
|
||||
ERROR: 'calendar:error',
|
||||
|
||||
// Init events
|
||||
READY: 'calendar:ready',
|
||||
DESTROY: 'calendar:destroy',
|
||||
|
||||
// Calendar Manager Events
|
||||
CALENDAR_INITIALIZING: 'calendar:initializing',
|
||||
CALENDAR_INITIALIZED: 'calendar:initialized',
|
||||
VIEW_CHANGED: 'calendar:viewchanged',
|
||||
DATE_CHANGED: 'calendar:datechanged',
|
||||
CALENDAR_REFRESH_REQUESTED: 'calendar:refreshrequested',
|
||||
CALENDAR_RESET: 'calendar:reset',
|
||||
VIEW_CHANGE_REQUESTED: 'calendar:viewchangerequested',
|
||||
NAVIGATE_TO_TODAY: 'calendar:navigatetotoday',
|
||||
NAVIGATE_NEXT: 'calendar:navigatenext',
|
||||
NAVIGATE_PREVIOUS: 'calendar:navigateprevious',
|
||||
REFRESH_REQUESTED: 'calendar:refreshrequested',
|
||||
RESET_REQUESTED: 'calendar:resetrequested'
|
||||
} as const;
|
||||
|
||||
// Type for event type values
|
||||
export type EventType = typeof EventTypes[keyof typeof EventTypes];
|
||||
Loading…
Add table
Add a link
Reference in a new issue