@dayflow/core 3.6.0 → 3.6.2
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 +38 -15
- package/dist/index.esm.js +1 -1
- package/dist/styles.components.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
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
|
-
* - '
|
|
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
|
-
* - '
|
|
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
|
-
* - '
|
|
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.
|
|
@@ -2509,6 +2515,11 @@ interface CreateEventParams {
|
|
|
2509
2515
|
calendarId?: string;
|
|
2510
2516
|
meta?: Record<string, unknown>;
|
|
2511
2517
|
}
|
|
2518
|
+
type CreateAllDayEventDateInput = Date | Temporal.PlainDate;
|
|
2519
|
+
interface CreateAllDayEventParams extends Omit<CreateEventParams, 'start' | 'end' | 'allDay'> {
|
|
2520
|
+
start: CreateAllDayEventDateInput;
|
|
2521
|
+
end?: CreateAllDayEventDateInput;
|
|
2522
|
+
}
|
|
2512
2523
|
/**
|
|
2513
2524
|
* Timezone event creation parameters
|
|
2514
2525
|
* For events that need explicit timezone handling
|
|
@@ -2602,13 +2613,23 @@ declare function createEvents(paramsArray: CreateEventParams[]): Event[];
|
|
|
2602
2613
|
*/
|
|
2603
2614
|
declare function createTimezoneEvents(paramsArray: CreateTimezoneEventParams[]): Event[];
|
|
2604
2615
|
/**
|
|
2605
|
-
* Quick create all-day event
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
*
|
|
2616
|
+
* Quick create all-day event.
|
|
2617
|
+
*
|
|
2618
|
+
* Preferred API:
|
|
2619
|
+
* createAllDayEvent({
|
|
2620
|
+
* id: '1',
|
|
2621
|
+
* title: 'Conference',
|
|
2622
|
+
* start: new Date(2025, 0, 15),
|
|
2623
|
+
* end: new Date(2025, 0, 17),
|
|
2624
|
+
* calendarId: 'work',
|
|
2625
|
+
* });
|
|
2626
|
+
*
|
|
2627
|
+
* Legacy positional signature is still supported for backward compatibility:
|
|
2628
|
+
* createAllDayEvent('1', 'Conference', new Date(2025, 0, 15));
|
|
2610
2629
|
*/
|
|
2611
|
-
declare function
|
|
2630
|
+
declare function createAllDayEvent(params: CreateAllDayEventParams): Event;
|
|
2631
|
+
declare function createAllDayEvent(id: string, title: string, start: CreateAllDayEventDateInput, end?: CreateAllDayEventDateInput, calendarId?: string): Event;
|
|
2632
|
+
declare function createAllDayEvent(id: string, title: string, start: CreateAllDayEventDateInput, options?: Omit<CreateAllDayEventParams, 'id' | 'title' | 'start'>): Event;
|
|
2612
2633
|
|
|
2613
2634
|
/**
|
|
2614
2635
|
* Helper to get date object from event start
|
|
@@ -3224,9 +3245,11 @@ interface CalendarEventProps {
|
|
|
3224
3245
|
resizeHandleOrientation?: 'vertical' | 'horizontal';
|
|
3225
3246
|
/** App-level timezone used to project event times for display (Month/Year view). */
|
|
3226
3247
|
appTimeZone?: string;
|
|
3248
|
+
/** Height in pixels of each event row in the month grid (month multi-day events only). */
|
|
3249
|
+
monthEventHeight?: number;
|
|
3227
3250
|
}
|
|
3228
3251
|
|
|
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;
|
|
3252
|
+
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
3253
|
|
|
3231
3254
|
interface LayoutCalculationParams {
|
|
3232
3255
|
containerWidth?: number;
|
|
@@ -3284,5 +3307,5 @@ declare const sidebarHeaderToggle = "df-sidebar-toggle";
|
|
|
3284
3307
|
*/
|
|
3285
3308
|
declare const sidebarHeaderTitle = "df-sidebar-header-title";
|
|
3286
3309
|
|
|
3287
|
-
export { AlertCircle, AudioLines, BlossomColorPicker, CalendarApp, _default as CalendarEvent, CalendarRegistry, CalendarRenderer, Check, ChevronDown, ChevronRight, ChevronsUpDown, ContentSlot, CreateCalendarDialog, CustomRenderingStore, DefaultColorPicker, DefaultEventDetailDialog, DefaultEventDetailPanel, EventContextMenu, EventLayoutCalculator, GridContextMenu, LAYOUT_CONFIG, LOCALES, Loader2, LoadingButton, LocaleContext, LocaleProvider, MiniCalendar, PanelRightClose, PanelRightOpen, Plus, TIME_STEP, TimeZone, VIRTUAL_MONTH_SCROLL_CONFIG, ViewType, WeekDataCache, addDays, analyzeMultiDayEventsForRow, buildColorBarGradient, buildDiagonalColorBarGradient, buildDiagonalPatternBackground, buildFixedWeekMonthsData, calculateDayIndex, calendarPickerDropdown, cancelButton, capitalize, clipboardStore, compareAllDayDisplayPriority, compareViews, convertToDayFlowEvent, createAgendaView, createAllDayDisplayComparator, createAllDayEvent, createConfigSyncSnapshot, createDateWithHour, createDayView, createEvent, createEventWithDate, createEventWithPlainDateTime, createEventWithRealDate, createEventWithZonedDateTime, createEvents, createEventsPlugin, createMonthView, createNormalizedCalendarAppConfigGetter, createStandardViews, createTemporalWithHour,
|
|
3288
|
-
export type { AgendaViewConfig, AgendaViewProps, AllDaySortComparator, BalanceStrategy, BaseViewProps, CalendarAppConfig, CalendarAppConfigSyncSnapshot, CalendarAppState, CalendarCallbacks, CalendarColors, CalendarConfig, CalendarEventProps, CalendarHeaderProps, CalendarPlugin, CalendarSearchEvent, CalendarSearchProps, CalendarType, CalendarView, CalendarViewType, CalendarsConfig, ColorPickerProps, CreateCalendarDialogColorPickerProps, CreateCalendarDialogProps, CreateEventParams, CreateTimezoneEventParams, CustomRendering, DayData, DayViewConfig, DayViewProps, DragConfig, DragHookOptions, DragHookReturn, DragIndicatorProps, DragIndicatorRenderer, DragIntegrationProps, DragPluginConfig, DragRef, DragService, Event, EventChange, EventContentSlotArgs, EventContextMenuSlotArgs, EventDetailContentProps, EventDetailContentRenderer, EventDetailDialogProps, EventDetailDialogRenderer, EventDetailPanelProps, EventDetailPanelRenderer, EventDetailPosition, EventGroup, EventLayout, EventRelations, EventsPluginConfig, EventsService, FixedWeekMonthData, GridContextMenuSlotArgs, ICSDateParams, ICSExportOptions, ICSImportOptions, ICSImportResult, ICSParseError, ICSVEvent, ICalendarApp, Locale, LocaleCode, LocaleContextValue, LocaleDict, LocaleMessages, LocaleProviderProps, MobileEventProps, Mode, MonthDragState, MonthEventDragState, MonthEventSegment, MonthScrollConfig, MonthViewConfig, MonthViewProps, NestedLayer, RangeChangeReason, ReadOnlyConfig, SidebarBridgeReturn, SidebarHeaderSlotArgs, SpecialLayoutRule, SubscribeResult, SubtreeAnalysis, SupportedLang, SyncableCalendarAppConfig, TComponent, TNode, ThemeColors, ThemeConfig, ThemeMode, TimeZoneValue, TitleBarSlotProps, TransferOperation, TranslationKey, UnifiedDragRef, UseCalendarAppReturn, UseCalendarReturn, UseDragCommonReturn, UseDragHandlersParams, UseDragHandlersReturn, UseDragManagerReturn, UseDragStateReturn, UseMonthDragParams, UseMonthDragReturn, UseVirtualMonthScrollProps, UseVirtualMonthScrollReturn, UseVirtualScrollProps, UseVirtualScrollReturn, UseWeekDayDragParams, UseWeekDayDragReturn, ViewAdapterProps, ViewConfigComparison, ViewFactory, ViewFactoryConfig, VirtualItem, VirtualScrollIntegrationProps, VirtualWeekItem, WeekDayDragState, WeekViewConfig, WeekViewProps, WeeksData, YearMultiDaySegment, YearViewConfig, YearViewProps, useDragProps, useDragReturn };
|
|
3310
|
+
export { AlertCircle, AudioLines, BlossomColorPicker, CalendarApp, _default as CalendarEvent, CalendarRegistry, CalendarRenderer, Check, ChevronDown, ChevronRight, ChevronsUpDown, ContentSlot, CreateCalendarDialog, CustomRenderingStore, DefaultColorPicker, DefaultEventDetailDialog, DefaultEventDetailPanel, EventContextMenu, EventLayoutCalculator, GridContextMenu, LAYOUT_CONFIG, LOCALES, Loader2, LoadingButton, LocaleContext, LocaleProvider, MiniCalendar, PanelRightClose, PanelRightOpen, Plus, TIME_STEP, TimeZone, VIRTUAL_MONTH_SCROLL_CONFIG, ViewType, WeekDataCache, addDays, analyzeMultiDayEventsForRow, buildColorBarGradient, buildDiagonalColorBarGradient, buildDiagonalPatternBackground, buildFixedWeekMonthsData, calculateDayIndex, calendarPickerDropdown, cancelButton, capitalize, clipboardStore, compareAllDayDisplayPriority, compareViews, convertToDayFlowEvent, createAgendaView, createAllDayDisplayComparator, createAllDayEvent, createConfigSyncSnapshot, createDateWithHour, createDayView, createEvent, createEventWithDate, createEventWithPlainDateTime, createEventWithRealDate, createEventWithZonedDateTime, createEvents, createEventsPlugin, createMonthView, createNormalizedCalendarAppConfigGetter, createStandardViews, createTemporalWithHour, createTimezoneEvent, createTimezoneEvents, createWeekView, createYearView, dateToPlainDate, dateToPlainDateTime, dateToZonedDateTime, daysBetween, daysDifference, downloadICS, en, escapeICSValue, extractHourFromDate, extractHourFromTemporal, extractVEvents, foldLine, formatDate, formatDateConsistent, formatDateToICSTimestamp, formatEventTimeRange, formatICSDate, formatMonthYear, formatProperty, formatTime, generateDayData, generateICS, generateSecondaryTimeSlots, generateUniKey, generateVEvent, generateWeekData, generateWeekRange, generateWeeksData, getAllDayEventsForDay, getAllDayRangeMetrics, getCalendarColorsForHex, getCalendarEventBgColors, getCalendarLineColors, getCallbackConfigUpdate, getCurrentWeekDates, getDateByDayIndex, getDateObj, getDayIndexByDate, getEndOfDay, getEndOfTemporal, getEventBgColor, getEventEndHour, getEventIcon, getEventTextColor, getEventsForDay, getEventsForWeek, getFixedWeekTotalColumns, getIntlLabel, getLineColor, getMonthLabels, getMonthYearOfWeek, getNextHourRangeInTimeZone, getNowInTimeZone, getPlainDate, getPrimaryCalendarId, getSearchHeaderInfo, getSelectedBgColor, getStartOfDay, getStartOfTemporal, getSyncConfigUpdates, getTestEvents, getTimezoneDisplayLabel, getTodayInTimeZone, getWeekDaysLabels, getWeekNumber, getWeekRange, groupDaysIntoRows, groupSearchResults, hasEventChanged, importICSFile, isDate, isDeepEqual, isEventDeepEqual, isEventInWeek, isMultiDayEvent, isMultiDayTemporalEvent, isPlainDate, isPlainDateTime, isSameDay, isSamePlainDate, isSameTemporal, isValidLocale, isZonedDateTime, monthNames, normalizeCssWidth, normalizeDate, normalizeLocale, normalizeTimeZoneValue, now, pad2, parseICS, parseICSDate, parseVEventLines, pickSyncableConfig, plainDateTimeToDate, plainDateToDate, recalculateEventDays, registerDragImplementation, registerLocale, registerSidebarImplementation, resolveAppliedTheme, restoreTimedDragFromAllDayTransition, restoreVisualEventToCanonical, restoreVisualTimedTemporalToCanonical, roundToTimeStep, scrollbarTakesSpace, setHourInTemporal, shortMonthNames, sidebarContainer, sidebarHeader, sidebarHeaderTitle, sidebarHeaderToggle, sortAllDayByTitle, subscribeCalendar, syncCalendarAppConfig, t, temporalToDate, temporalToVisualDate, temporalToVisualTemporal, today, unescapeICSValue, updateEventDateAndDay, updateEventWithRealDate, useDragForView, useLocale, useSidebarBridge, weekDays, weekDaysFullName, zonedDateTimeToDate };
|
|
3311
|
+
export type { AgendaViewConfig, AgendaViewProps, AllDaySortComparator, BalanceStrategy, BaseViewProps, CalendarAppConfig, CalendarAppConfigSyncSnapshot, CalendarAppState, CalendarCallbacks, CalendarColors, CalendarConfig, CalendarEventProps, CalendarHeaderProps, CalendarPlugin, CalendarSearchEvent, CalendarSearchProps, CalendarType, CalendarView, CalendarViewType, CalendarsConfig, ColorPickerProps, CreateAllDayEventDateInput, CreateAllDayEventParams, CreateCalendarDialogColorPickerProps, CreateCalendarDialogProps, CreateEventParams, CreateTimezoneEventParams, CustomRendering, DayData, DayViewConfig, DayViewProps, DragConfig, DragHookOptions, DragHookReturn, DragIndicatorProps, DragIndicatorRenderer, DragIntegrationProps, DragPluginConfig, DragRef, DragService, Event, EventChange, EventContentSlotArgs, EventContextMenuSlotArgs, EventDetailContentProps, EventDetailContentRenderer, EventDetailDialogProps, EventDetailDialogRenderer, EventDetailPanelProps, EventDetailPanelRenderer, EventDetailPosition, EventGroup, EventLayout, EventRelations, EventsPluginConfig, EventsService, FixedWeekMonthData, GridContextMenuSlotArgs, ICSDateParams, ICSExportOptions, ICSImportOptions, ICSImportResult, ICSParseError, ICSVEvent, ICalendarApp, Locale, LocaleCode, LocaleContextValue, LocaleDict, LocaleMessages, LocaleProviderProps, MobileEventProps, Mode, MonthDragState, MonthEventDragState, MonthEventSegment, MonthScrollConfig, MonthViewConfig, MonthViewProps, NestedLayer, RangeChangeReason, ReadOnlyConfig, SidebarBridgeReturn, SidebarHeaderSlotArgs, SpecialLayoutRule, SubscribeResult, SubtreeAnalysis, SupportedLang, SyncableCalendarAppConfig, TComponent, TNode, ThemeColors, ThemeConfig, ThemeMode, TimeZoneValue, TitleBarSlotProps, TransferOperation, TranslationKey, UnifiedDragRef, UseCalendarAppReturn, UseCalendarReturn, UseDragCommonReturn, UseDragHandlersParams, UseDragHandlersReturn, UseDragManagerReturn, UseDragStateReturn, UseMonthDragParams, UseMonthDragReturn, UseVirtualMonthScrollProps, UseVirtualMonthScrollReturn, UseVirtualScrollProps, UseVirtualScrollReturn, UseWeekDayDragParams, UseWeekDayDragReturn, ViewAdapterProps, ViewConfigComparison, ViewFactory, ViewFactoryConfig, VirtualItem, VirtualScrollIntegrationProps, VirtualWeekItem, WeekDayDragState, WeekViewConfig, WeekViewProps, WeeksData, YearMultiDaySegment, YearViewConfig, YearViewProps, useDragProps, useDragReturn };
|