2025-12-08 00:26:16 +01:00
|
|
|
/**
|
|
|
|
|
* CoreEvents - Consolidated essential events for the calendar V2
|
|
|
|
|
*/
|
|
|
|
|
export const CoreEvents = {
|
|
|
|
|
// Lifecycle events
|
|
|
|
|
INITIALIZED: 'core:initialized',
|
|
|
|
|
READY: 'core:ready',
|
|
|
|
|
DESTROYED: 'core:destroyed',
|
|
|
|
|
|
|
|
|
|
// View events
|
|
|
|
|
VIEW_CHANGED: 'view:changed',
|
|
|
|
|
VIEW_RENDERED: 'view:rendered',
|
|
|
|
|
|
|
|
|
|
// Navigation events
|
|
|
|
|
DATE_CHANGED: 'nav:date-changed',
|
|
|
|
|
NAVIGATION_COMPLETED: 'nav:navigation-completed',
|
|
|
|
|
|
|
|
|
|
// Data events
|
|
|
|
|
DATA_LOADING: 'data:loading',
|
|
|
|
|
DATA_LOADED: 'data:loaded',
|
|
|
|
|
DATA_ERROR: 'data:error',
|
|
|
|
|
|
|
|
|
|
// Grid events
|
|
|
|
|
GRID_RENDERED: 'grid:rendered',
|
|
|
|
|
GRID_CLICKED: 'grid:clicked',
|
|
|
|
|
|
|
|
|
|
// Event management
|
|
|
|
|
EVENT_CREATED: 'event:created',
|
|
|
|
|
EVENT_UPDATED: 'event:updated',
|
|
|
|
|
EVENT_DELETED: 'event:deleted',
|
|
|
|
|
EVENT_SELECTED: 'event:selected',
|
|
|
|
|
|
2025-12-10 17:07:03 +01:00
|
|
|
// Event drag-drop
|
|
|
|
|
EVENT_DRAG_START: 'event:drag-start',
|
|
|
|
|
EVENT_DRAG_MOVE: 'event:drag-move',
|
|
|
|
|
EVENT_DRAG_END: 'event:drag-end',
|
|
|
|
|
EVENT_DRAG_CANCEL: 'event:drag-cancel',
|
|
|
|
|
|
2025-12-08 00:26:16 +01:00
|
|
|
// System events
|
|
|
|
|
ERROR: 'system:error',
|
|
|
|
|
|
|
|
|
|
// Sync events
|
|
|
|
|
SYNC_STARTED: 'sync:started',
|
|
|
|
|
SYNC_COMPLETED: 'sync:completed',
|
|
|
|
|
SYNC_FAILED: 'sync:failed',
|
|
|
|
|
|
|
|
|
|
// Entity events - for audit and sync
|
|
|
|
|
ENTITY_SAVED: 'entity:saved',
|
|
|
|
|
ENTITY_DELETED: 'entity:deleted',
|
|
|
|
|
|
|
|
|
|
// Rendering events
|
|
|
|
|
EVENTS_RENDERED: 'events:rendered'
|
|
|
|
|
} as const;
|