@dayflow/core 3.6.0 → 3.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1203,11 +1203,12 @@ interface WeekViewConfig extends ViewFactoryConfig {
1203
1203
  gridDateClick?: 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1204
1204
  /**
1205
1205
  * Action when a date cell is double-clicked.
1206
- * - 'day-view' (default): navigate to the Day View
1206
+ * - 'create-event' (default): create a 1-hour timed event at the clicked position (hour)
1207
+ * - 'day-view': navigate to the Day View
1207
1208
  * - 'none': no action
1208
1209
  * - function: custom handler
1209
1210
  */
1210
- gridDateDoubleClick?: 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1211
+ gridDateDoubleClick?: 'create-event' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1211
1212
  }
1212
1213
  /**
1213
1214
  * Month scroll / navigation configuration
@@ -1233,17 +1234,21 @@ interface MonthViewConfig extends ViewFactoryConfig {
1233
1234
  /** Scroll / navigation behavior for the month view */
1234
1235
  scroll?: MonthScrollConfig;
1235
1236
  showEventDots?: boolean;
1237
+ /** Height in pixels of each event row in the month grid. Default: 16 */
1238
+ eventHeight?: number;
1236
1239
  /**
1237
1240
  * Action when a date cell is clicked.
1238
1241
  */
1239
1242
  gridDateClick?: 'week-view' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1240
1243
  /**
1241
1244
  * Action when a date cell is double-clicked.
1242
- * - 'week-view' (default): navigate to the Week View
1245
+ * - 'create-event' (default): create a timed event from 9:00 to 10:00 on the clicked date
1246
+ * - 'week-view': navigate to the Week View
1247
+ * - 'day-view': navigate to the Day View
1243
1248
  * - 'none': no action
1244
1249
  * - function: custom handler
1245
1250
  */
1246
- gridDateDoubleClick?: 'week-view' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1251
+ gridDateDoubleClick?: 'create-event' | 'week-view' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1247
1252
  }
1248
1253
  /**
1249
1254
  * Agenda view factory configuration
@@ -1281,11 +1286,12 @@ interface YearViewConfig extends ViewFactoryConfig {
1281
1286
  gridDateClick?: 'popup' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1282
1287
  /**
1283
1288
  * Grid mode: action when a date cell is double-clicked.
1284
- * - 'day-view' (default): navigate to the Day View
1289
+ * - 'create-event' (default): create a timed event from 9:00 to 10:00 on the clicked date
1290
+ * - 'day-view': navigate to the Day View
1285
1291
  * - 'none': no action
1286
1292
  * - function: custom handler
1287
1293
  */
1288
- gridDateDoubleClick?: 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1294
+ gridDateDoubleClick?: 'create-event' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1289
1295
  /**
1290
1296
  * Grid mode: render custom popup content.
1291
1297
  * Receives the clicked date and its events; return null/undefined to use the default popup.
@@ -3224,9 +3230,11 @@ interface CalendarEventProps {
3224
3230
  resizeHandleOrientation?: 'vertical' | 'horizontal';
3225
3231
  /** App-level timezone used to project event times for display (Month/Year view). */
3226
3232
  appTimeZone?: string;
3233
+ /** Height in pixels of each event row in the month grid (month multi-day events only). */
3234
+ monthEventHeight?: number;
3227
3235
  }
3228
3236
 
3229
- declare const _default: ({ event, layout, isAllDay, allDayHeight, calendarRef, isBeingDragged, isBeingResized, viewType, isMultiDay, segment, yearSegment, columnsPerRow, segmentIndex, hourHeight, firstHour, selectedEventId, detailPanelEventId, onMoveStart, onResizeStart, onEventUpdate, onEventDelete, newlyCreatedEventId, onDetailPanelOpen, onEventSelect, onEventLongPress, onDetailPanelToggle, useEventDetailPanel, multiDaySegmentInfo, app, isMobile, isSlidingView, enableTouch, hideTime, timeFormat, styleOverride, className, disableDefaultStyle, renderVisualContent, resizeHandleOrientation, appTimeZone, }: CalendarEventProps) => preact.JSX.Element;
3237
+ declare const _default: ({ event, layout, isAllDay, allDayHeight, calendarRef, isBeingDragged, isBeingResized, viewType, isMultiDay, segment, yearSegment, columnsPerRow, segmentIndex, hourHeight, firstHour, selectedEventId, detailPanelEventId, onMoveStart, onResizeStart, onEventUpdate, onEventDelete, newlyCreatedEventId, onDetailPanelOpen, onEventSelect, onEventLongPress, onDetailPanelToggle, useEventDetailPanel, multiDaySegmentInfo, app, isMobile, isSlidingView, enableTouch, hideTime, timeFormat, styleOverride, className, disableDefaultStyle, renderVisualContent, resizeHandleOrientation, appTimeZone, monthEventHeight, }: CalendarEventProps) => preact.JSX.Element;
3230
3238
 
3231
3239
  interface LayoutCalculationParams {
3232
3240
  containerWidth?: number;