@dayflow/core 3.2.3 → 3.3.0

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
@@ -393,33 +393,6 @@ interface CalendarCallbacks {
393
393
  onMoreEventsClick?: (date: Date) => void | Promise<void>;
394
394
  onDismissUI?: () => void | Promise<void>;
395
395
  }
396
- interface TitleBarSlotProps {
397
- isCollapsed: boolean;
398
- toggleCollapsed: () => void;
399
- }
400
- interface CreateCalendarDialogColorPickerProps {
401
- color: string;
402
- onChange: (color: {
403
- hex: string;
404
- }) => void;
405
- onAccept?: () => void;
406
- onCancel?: () => void;
407
- styles?: any;
408
- }
409
- interface ColorPickerProps {
410
- color: string;
411
- onChange: (color: {
412
- hex: string;
413
- }) => void;
414
- onChangeComplete?: (color: {
415
- hex: string;
416
- }) => void;
417
- }
418
- interface CreateCalendarDialogProps {
419
- onClose: () => void;
420
- onCreate: (calendar: CalendarType) => void;
421
- app: ICalendarApp;
422
- }
423
396
  interface CalendarHeaderProps {
424
397
  calendar: ICalendarApp;
425
398
  switcherMode?: ViewSwitcherMode;
@@ -1246,11 +1219,36 @@ interface MonthViewConfig extends ViewFactoryConfig {
1246
1219
  * Year view factory configuration
1247
1220
  */
1248
1221
  interface YearViewConfig extends ViewFactoryConfig {
1249
- mode?: 'year-canvas' | 'fixed-week';
1222
+ mode?: 'year-canvas' | 'fixed-week' | 'grid';
1250
1223
  showTimedEventsInYearView?: boolean;
1251
1224
  startOfWeek?: number;
1252
1225
  /** Scroll / navigation behavior for the month view */
1253
1226
  scroll?: MonthScrollConfig;
1227
+ /**
1228
+ * Grid mode: action when a date cell is clicked.
1229
+ * - 'popup' (default): show a popup with events for that day
1230
+ * - 'day-view': navigate to the Day View
1231
+ * - 'none': no action
1232
+ * - function: custom handler
1233
+ */
1234
+ gridDateClick?: 'popup' | 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1235
+ /**
1236
+ * Grid mode: action when a date cell is double-clicked.
1237
+ * - 'day-view' (default): navigate to the Day View
1238
+ * - 'none': no action
1239
+ * - function: custom handler
1240
+ */
1241
+ gridDateDoubleClick?: 'day-view' | 'none' | ((date: Date, events: Event[]) => void);
1242
+ /**
1243
+ * Grid mode: render custom popup content.
1244
+ * Receives the clicked date and its events; return null/undefined to use the default popup.
1245
+ */
1246
+ gridPopupContent?: (date: Date, events: Event[]) => ComponentChildren;
1247
+ /**
1248
+ * Grid mode: number of heatmap intensity levels.
1249
+ * @default 5
1250
+ */
1251
+ gridHeatmapLevels?: number;
1254
1252
  }
1255
1253
  /**
1256
1254
  * View adapter Props
@@ -1316,6 +1314,37 @@ interface DragConfig {
1316
1314
  ALL_DAY_HEIGHT: number;
1317
1315
  }
1318
1316
 
1317
+ interface TitleBarSlotProps {
1318
+ isCollapsed: boolean;
1319
+ toggleCollapsed: () => void;
1320
+ }
1321
+ interface SidebarHeaderSlotArgs {
1322
+ isCollapsed: boolean;
1323
+ onCollapseToggle: () => void;
1324
+ }
1325
+ interface CreateCalendarDialogColorPickerProps {
1326
+ color: string;
1327
+ onChange: (color: {
1328
+ hex: string;
1329
+ }) => void;
1330
+ onAccept?: () => void;
1331
+ onCancel?: () => void;
1332
+ styles?: any;
1333
+ }
1334
+ interface ColorPickerProps {
1335
+ color: string;
1336
+ onChange: (color: {
1337
+ hex: string;
1338
+ }) => void;
1339
+ onChangeComplete?: (color: {
1340
+ hex: string;
1341
+ }) => void;
1342
+ }
1343
+ interface CreateCalendarDialogProps {
1344
+ onClose: () => void;
1345
+ onCreate: (calendar: CalendarType) => void;
1346
+ app: ICalendarApp;
1347
+ }
1319
1348
  /**
1320
1349
  * Events service interface
1321
1350
  * Provides various event management functions
@@ -2907,11 +2936,11 @@ declare const cancelButton = "rounded-md bg-background border border-border px-3
2907
2936
  /**
2908
2937
  * Calendar picker dropdown (for selecting calendar for an event)
2909
2938
  */
2910
- declare const calendarPickerDropdown = "bg-white dark:bg-gray-800 rounded-md shadow-lg border border-gray-200 dark:border-gray-700 overflow-hidden transition-all duration-200 origin-top-right animate-in fade-in zoom-in-95";
2939
+ declare const calendarPickerDropdown = "bg-white dark:bg-gray-800 rounded-md shadow-lg border border-gray-200 dark:border-gray-700 overflow-hidden transition-all duration-200 origin-top-right df-animate-in df-fade-in df-zoom-in-95";
2911
2940
  /**
2912
2941
  * Sidebar container
2913
2942
  */
2914
- declare const sidebarContainer = "df-sidebar flex h-full flex-col border-r border-gray-200 dark:border-gray-700 bg-white dark:bg-slate-900";
2943
+ declare const sidebarContainer = "df-sidebar flex h-full flex-col border-r";
2915
2944
  /**
2916
2945
  * Sidebar header
2917
2946
  */
@@ -2926,4 +2955,4 @@ declare const sidebarHeaderToggle = "df-sidebar-header-toggle flex h-8 w-8 items
2926
2955
  declare const sidebarHeaderTitle = "df-sidebar-header-title text-sm font-semibold text-gray-700 dark:text-gray-200";
2927
2956
 
2928
2957
  export { BlossomColorPicker, CalendarApp, CalendarRegistry, CalendarRenderer, Check, ChevronRight, ChevronsUpDown, ContentSlot, ContextMenu, ContextMenuColorPicker, ContextMenuItem, ContextMenuLabel, ContextMenuSeparator, CreateCalendarDialog, CustomRenderingStore, DefaultColorPicker, LAYOUT_CONFIG, LOCALES, LocaleContext, LocaleProvider, MiniCalendar, PanelRightClose, PanelRightOpen, Plus, TIME_STEP, TimeZone, VIRTUAL_MONTH_SCROLL_CONFIG, ViewType, WeekDataCache, addDays, buildParseRegExp, calculateDayIndex, calendarPickerDropdown, cancelButton, capitalize, clipboardStore, conditionalTheme, convertDateEvent, convertDateEventWithTimeZone, convertToDayFlowEvent, createAllDayEvent, createDateWithHour, createDayView, createEvent, createEventWithDate, createEventWithPlainDateTime, createEventWithRealDate, createEventWithZonedDateTime, createEvents, createEventsPlugin, createMonthView, createStandardViews, createTemporalWithHour, createTimedEvent, createTimezoneEvent, createTimezoneEvents, createWeekView, createYearView, dateToPlainDate, dateToPlainDateTime, dateToZonedDateTime, daysBetween, daysDifference, downloadICS, en, escapeICSValue, extractHourFromDate, extractHourFromTemporal, extractVEvents, foldLine, formatDate, formatDateConsistent, formatDateToICSTimestamp, formatEventTimeRange, formatICSDate, formatMonthYear, formatProperty, formatTemporal, formatTime, generateDayData, generateICS, generateSecondaryTimeSlots, generateUniKey, generateVEvent, generateWeekData, generateWeekRange, generateWeeksData, getAllDayEventsForDay, getCalendarColorsForHex, getCurrentWeekDates, getDateByDayIndex, getDateObj, getDayIndexByDate, getEndOfDay, getEndOfTemporal, getEventBgColor, getEventEndHour, getEventTextColor, getEventsForDay, getEventsForWeek, getIntlLabel, getLineColor, getMonthLabels, getMonthYearOfWeek, getPlainDate, getSearchHeaderInfo, getSelectedBgColor, getStartOfDay, getStartOfTemporal, getTestEvents, getTimezoneDisplayLabel, getWeekDaysLabels, getWeekNumber, getWeekRange, getZoneId, groupSearchResults, hasEventChanged, importICSFile, isDate, isDeepEqual, isEventDeepEqual, isEventInWeek, isMultiDayEvent, isMultiDayTemporalEvent, isPlainDate, isPlainDateTime, isSameDay, isSamePlainDate, isSameTemporal, isValidLocale, isZonedDateTime, mergeClasses, mergeFormatTemplate, monthNames, normalizeCssWidth, normalizeDate, normalizeLocale, normalizeToZoned, now, pad, pad2, parseICS, parseICSDate, parseTemporalString, parseVEventLines, plainDateTimeToDate, plainDateToDate, recalculateEventDays, registerDragImplementation, registerLocale, registerSidebarImplementation, resolveAppliedTheme, roundToTimeStep, scrollbarTakesSpace, setHourInTemporal, shortMonthNames, sidebarContainer, sidebarHeader, sidebarHeaderTitle, sidebarHeaderToggle, t, temporalToDate, themeClasses, themeCn, today, unescapeICSValue, updateEventDateAndDay, updateEventWithRealDate, useDragForView, useLocale, useSidebarBridge, weekDays, weekDaysFullName, zonedDateTimeToDate };
2929
- export type { BalanceStrategy, BaseViewProps, CalendarAppConfig, CalendarAppState, CalendarCallbacks, CalendarColors, CalendarConfig, CalendarHeaderProps, CalendarPlugin, CalendarType, CalendarView, CalendarsConfig, ColorPickerProps, CreateCalendarDialogColorPickerProps, CreateCalendarDialogProps, CreateEventParams, CreateTimezoneEventParams, CustomRendering, DayData, DayViewConfig, DayViewProps, DragConfig, DragHookOptions, DragHookReturn, DragIndicatorProps, DragIndicatorRenderer, DragIntegrationProps, DragPluginConfig, DragRef, DragService, Event, EventChange, EventContentSlotArgs, EventDetailContentProps, EventDetailContentRenderer, EventDetailDialogProps, EventDetailDialogRenderer, EventDetailPanelProps, EventDetailPanelRenderer, EventDetailPosition, EventGroup, EventLayout, EventRelations, EventsPluginConfig, EventsService, ICSDateParams, ICSExportOptions, ICSImportOptions, ICSImportResult, ICSParseError, ICSVEvent, ICalendarApp, Locale, LocaleCode, LocaleContextValue, LocaleDict, LocaleMessages, LocaleProviderProps, MobileEventProps, MobileEventRenderer, Mode, MonthDragState, MonthEventDragState, MonthScrollConfig, MonthViewConfig, MonthViewProps, NestedLayer, RangeChangeReason, ReadOnlyConfig, SidebarBridgeReturn, SpecialLayoutRule, SubtreeAnalysis, SupportedLang, 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, ViewFactory, ViewFactoryConfig, VirtualItem, VirtualScrollIntegrationProps, VirtualWeekItem, WeekDayDragState, WeekViewConfig, WeekViewProps, WeeksData, YearViewConfig, YearViewProps, useDragProps, useDragReturn };
2958
+ export type { BalanceStrategy, BaseViewProps, CalendarAppConfig, CalendarAppState, CalendarCallbacks, CalendarColors, CalendarConfig, CalendarHeaderProps, CalendarPlugin, CalendarType, CalendarView, CalendarsConfig, ColorPickerProps, CreateCalendarDialogColorPickerProps, CreateCalendarDialogProps, CreateEventParams, CreateTimezoneEventParams, CustomRendering, DayData, DayViewConfig, DayViewProps, DragConfig, DragHookOptions, DragHookReturn, DragIndicatorProps, DragIndicatorRenderer, DragIntegrationProps, DragPluginConfig, DragRef, DragService, Event, EventChange, EventContentSlotArgs, EventDetailContentProps, EventDetailContentRenderer, EventDetailDialogProps, EventDetailDialogRenderer, EventDetailPanelProps, EventDetailPanelRenderer, EventDetailPosition, EventGroup, EventLayout, EventRelations, EventsPluginConfig, EventsService, ICSDateParams, ICSExportOptions, ICSImportOptions, ICSImportResult, ICSParseError, ICSVEvent, ICalendarApp, Locale, LocaleCode, LocaleContextValue, LocaleDict, LocaleMessages, LocaleProviderProps, MobileEventProps, MobileEventRenderer, Mode, MonthDragState, MonthEventDragState, MonthScrollConfig, MonthViewConfig, MonthViewProps, NestedLayer, RangeChangeReason, ReadOnlyConfig, SidebarBridgeReturn, SidebarHeaderSlotArgs, SpecialLayoutRule, SubtreeAnalysis, SupportedLang, 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, ViewFactory, ViewFactoryConfig, VirtualItem, VirtualScrollIntegrationProps, VirtualWeekItem, WeekDayDragState, WeekViewConfig, WeekViewProps, WeeksData, YearViewConfig, YearViewProps, useDragProps, useDragReturn };