Refactors calendar project structure and build configuration
Consolidates V2 codebase into main project directory Updates build script to support simplified entry points Removes redundant files and cleans up project organization Simplifies module imports and entry points for calendar application
This commit is contained in:
parent
9f360237cf
commit
863b433eba
200 changed files with 2331 additions and 16193 deletions
|
|
@ -1,61 +1,71 @@
|
|||
/**
|
||||
* CoreEvents - Consolidated essential events for the calendar
|
||||
* Reduces complexity from 102+ events to ~20 core events
|
||||
*/
|
||||
export const CoreEvents = {
|
||||
// Lifecycle events (3)
|
||||
// Lifecycle events
|
||||
INITIALIZED: 'core:initialized',
|
||||
READY: 'core:ready',
|
||||
DESTROYED: 'core:destroyed',
|
||||
|
||||
// View events (3)
|
||||
|
||||
// View events
|
||||
VIEW_CHANGED: 'view:changed',
|
||||
VIEW_RENDERED: 'view:rendered',
|
||||
WORKWEEK_CHANGED: 'workweek:changed',
|
||||
|
||||
// Navigation events (4)
|
||||
NAV_BUTTON_CLICKED: 'nav:button-clicked',
|
||||
|
||||
// Navigation events
|
||||
DATE_CHANGED: 'nav:date-changed',
|
||||
NAVIGATION_COMPLETED: 'nav:navigation-completed',
|
||||
NAVIGATE_TO_EVENT: 'nav:navigate-to-event',
|
||||
|
||||
// Data events (5)
|
||||
|
||||
// Data events
|
||||
DATA_LOADING: 'data:loading',
|
||||
DATA_LOADED: 'data:loaded',
|
||||
DATA_ERROR: 'data:error',
|
||||
EVENTS_FILTERED: 'data:events-filtered',
|
||||
REMOTE_UPDATE_RECEIVED: 'data:remote-update',
|
||||
|
||||
// Grid events (3)
|
||||
|
||||
// Grid events
|
||||
GRID_RENDERED: 'grid:rendered',
|
||||
GRID_CLICKED: 'grid:clicked',
|
||||
CELL_SELECTED: 'grid:cell-selected',
|
||||
|
||||
// Event management (4)
|
||||
|
||||
// Event management
|
||||
EVENT_CREATED: 'event:created',
|
||||
EVENT_UPDATED: 'event:updated',
|
||||
EVENT_DELETED: 'event:deleted',
|
||||
EVENT_SELECTED: 'event:selected',
|
||||
|
||||
// System events (3)
|
||||
ERROR: 'system:error',
|
||||
REFRESH_REQUESTED: 'system:refresh',
|
||||
OFFLINE_MODE_CHANGED: 'system:offline-mode-changed',
|
||||
|
||||
// Sync events (4)
|
||||
// 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',
|
||||
EVENT_DRAG_COLUMN_CHANGE: 'event:drag-column-change',
|
||||
|
||||
// Header drag (timed → header conversion)
|
||||
EVENT_DRAG_ENTER_HEADER: 'event:drag-enter-header',
|
||||
EVENT_DRAG_MOVE_HEADER: 'event:drag-move-header',
|
||||
EVENT_DRAG_LEAVE_HEADER: 'event:drag-leave-header',
|
||||
|
||||
// Event resize
|
||||
EVENT_RESIZE_START: 'event:resize-start',
|
||||
EVENT_RESIZE_END: 'event:resize-end',
|
||||
|
||||
// Edge scroll
|
||||
EDGE_SCROLL_TICK: 'edge-scroll:tick',
|
||||
EDGE_SCROLL_STARTED: 'edge-scroll:started',
|
||||
EDGE_SCROLL_STOPPED: 'edge-scroll:stopped',
|
||||
|
||||
// System events
|
||||
ERROR: 'system:error',
|
||||
|
||||
// Sync events
|
||||
SYNC_STARTED: 'sync:started',
|
||||
SYNC_COMPLETED: 'sync:completed',
|
||||
SYNC_FAILED: 'sync:failed',
|
||||
SYNC_RETRY: 'sync:retry',
|
||||
|
||||
// Entity events (3) - for audit and sync
|
||||
// Entity events - for audit and sync
|
||||
ENTITY_SAVED: 'entity:saved',
|
||||
ENTITY_DELETED: 'entity:deleted',
|
||||
|
||||
// Audit events
|
||||
AUDIT_LOGGED: 'audit:logged',
|
||||
|
||||
// Filter events (1)
|
||||
FILTER_CHANGED: 'filter:changed',
|
||||
|
||||
// Rendering events (1)
|
||||
|
||||
// Rendering events
|
||||
EVENTS_RENDERED: 'events:rendered'
|
||||
} as const;
|
||||
} as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue