@dayflow/core 3.2.2 → 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 +77 -31
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.components.css +557 -0
- package/dist/styles.css +230 -206
- package/package.json +3 -2
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;
|
|
@@ -1218,6 +1191,19 @@ interface WeekViewConfig extends ViewFactoryConfig {
|
|
|
1218
1191
|
scrollToCurrentTime?: boolean;
|
|
1219
1192
|
secondaryTimeZone?: TimeZoneValue;
|
|
1220
1193
|
}
|
|
1194
|
+
/**
|
|
1195
|
+
* Month scroll / navigation configuration
|
|
1196
|
+
*/
|
|
1197
|
+
interface MonthScrollConfig {
|
|
1198
|
+
/** Disable continuous scrolling; only Prev/Next buttons switch months */
|
|
1199
|
+
disabled?: boolean;
|
|
1200
|
+
/**
|
|
1201
|
+
* Transition animation when switching months in disabled-scroll mode.
|
|
1202
|
+
* - 'slide' (default) – vertical slide up/down
|
|
1203
|
+
* - 'fade' – horizontal fade-slide (left ↔ right)
|
|
1204
|
+
*/
|
|
1205
|
+
transition?: 'slide' | 'fade';
|
|
1206
|
+
}
|
|
1221
1207
|
/**
|
|
1222
1208
|
* Month view factory configuration
|
|
1223
1209
|
*/
|
|
@@ -1226,14 +1212,43 @@ interface MonthViewConfig extends ViewFactoryConfig {
|
|
|
1226
1212
|
showMonthIndicator?: boolean;
|
|
1227
1213
|
startOfWeek?: number;
|
|
1228
1214
|
snapToMonth?: boolean;
|
|
1215
|
+
/** Scroll / navigation behavior for the month view */
|
|
1216
|
+
scroll?: MonthScrollConfig;
|
|
1229
1217
|
}
|
|
1230
1218
|
/**
|
|
1231
1219
|
* Year view factory configuration
|
|
1232
1220
|
*/
|
|
1233
1221
|
interface YearViewConfig extends ViewFactoryConfig {
|
|
1234
|
-
mode?: 'year-canvas' | 'fixed-week';
|
|
1222
|
+
mode?: 'year-canvas' | 'fixed-week' | 'grid';
|
|
1235
1223
|
showTimedEventsInYearView?: boolean;
|
|
1236
1224
|
startOfWeek?: number;
|
|
1225
|
+
/** Scroll / navigation behavior for the month view */
|
|
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;
|
|
1237
1252
|
}
|
|
1238
1253
|
/**
|
|
1239
1254
|
* View adapter Props
|
|
@@ -1299,6 +1314,37 @@ interface DragConfig {
|
|
|
1299
1314
|
ALL_DAY_HEIGHT: number;
|
|
1300
1315
|
}
|
|
1301
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
|
+
}
|
|
1302
1348
|
/**
|
|
1303
1349
|
* Events service interface
|
|
1304
1350
|
* Provides various event management functions
|
|
@@ -2890,11 +2936,11 @@ declare const cancelButton = "rounded-md bg-background border border-border px-3
|
|
|
2890
2936
|
/**
|
|
2891
2937
|
* Calendar picker dropdown (for selecting calendar for an event)
|
|
2892
2938
|
*/
|
|
2893
|
-
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";
|
|
2894
2940
|
/**
|
|
2895
2941
|
* Sidebar container
|
|
2896
2942
|
*/
|
|
2897
|
-
declare const sidebarContainer = "df-sidebar flex h-full flex-col border-r
|
|
2943
|
+
declare const sidebarContainer = "df-sidebar flex h-full flex-col border-r";
|
|
2898
2944
|
/**
|
|
2899
2945
|
* Sidebar header
|
|
2900
2946
|
*/
|
|
@@ -2909,4 +2955,4 @@ declare const sidebarHeaderToggle = "df-sidebar-header-toggle flex h-8 w-8 items
|
|
|
2909
2955
|
declare const sidebarHeaderTitle = "df-sidebar-header-title text-sm font-semibold text-gray-700 dark:text-gray-200";
|
|
2910
2956
|
|
|
2911
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 };
|
|
2912
|
-
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, 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 };
|