@dayflow/core 3.3.4 → 3.3.6
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 +140 -36
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.components.css +285 -370
- package/dist/styles.css +354 -325
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,12 @@ interface CalendarType {
|
|
|
45
45
|
subscribed?: boolean;
|
|
46
46
|
/** The source of this calendar (e.g., 'Google Calendar', 'iCloud', 'Outlook') */
|
|
47
47
|
source?: string;
|
|
48
|
+
/** Subscription status and metadata */
|
|
49
|
+
subscription?: {
|
|
50
|
+
url: string;
|
|
51
|
+
status: 'loading' | 'ready' | 'error';
|
|
52
|
+
meta?: Record<string, unknown>;
|
|
53
|
+
};
|
|
48
54
|
}
|
|
49
55
|
/**
|
|
50
56
|
* Theme mode
|
|
@@ -186,7 +192,7 @@ declare function getCalendarColorsForHex(hex: string): {
|
|
|
186
192
|
};
|
|
187
193
|
|
|
188
194
|
type LocaleCode = string;
|
|
189
|
-
type TranslationKey = 'allDay' | 'noEvents' | 'more' | 'eventTitle' | 'dateRange' | 'timeRange' | 'note' | 'addNotePlaceholder' | 'setAsAllDay' | 'setAsTimed' | 'delete' | 'confirm' | 'cancel' | 'today' | 'day' | 'week' | 'month' | 'year' | 'newEvent' | 'newAllDayEvent' | 'newCalendarEvent' | 'newAllDayCalendarEvent' | 'save' | 'deleteCalendar' | 'deleteCalendarMessage' | 'merge' | 'confirmDeleteTitle' | 'confirmDeleteMessage' | 'mergeConfirmTitle' | 'mergeConfirmMessage' | 'expandSidebar' | 'collapseSidebar' | 'calendars' | 'createCalendar' | 'calendarNamePlaceholder' | 'customColor' | 'create' | 'calendarOptions' | 'untitled' | 'search' | 'noResults' | 'calendar' | 'starts' | 'ends' | 'notes' | 'titlePlaceholder' | 'notesPlaceholder' | 'editEvent' | 'viewEvent' | 'done' | 'quickCreateEvent' | 'quickCreatePlaceholder' | 'noSuggestions' | 'newCalendar' | 'refreshAll' | 'tomorrow' | 'importCalendar' | 'exportCalendar' | 'addSchedule' | 'importCalendarMessage' | 'ok' | 'cut' | 'copy' | 'pasteHere' | 'eventSummary' | 'subscribeCalendar' | 'subscribeCalendarTitle' | 'calendarUrl' | 'calendarUrlPlaceholder' | 'subscribe' | 'fetchingCalendar' | 'subscribeError';
|
|
195
|
+
type TranslationKey = 'allDay' | 'noEvents' | 'more' | 'eventTitle' | 'dateRange' | 'timeRange' | 'note' | 'addNotePlaceholder' | 'setAsAllDay' | 'setAsTimed' | 'delete' | 'confirm' | 'cancel' | 'today' | 'day' | 'week' | 'month' | 'year' | 'newEvent' | 'newAllDayEvent' | 'newCalendarEvent' | 'newAllDayCalendarEvent' | 'save' | 'deleteCalendar' | 'deleteCalendarMessage' | 'merge' | 'confirmDeleteTitle' | 'confirmDeleteMessage' | 'mergeConfirmTitle' | 'mergeConfirmMessage' | 'expandSidebar' | 'collapseSidebar' | 'calendars' | 'createCalendar' | 'calendarNamePlaceholder' | 'customColor' | 'create' | 'calendarOptions' | 'untitled' | 'search' | 'noResults' | 'calendar' | 'starts' | 'ends' | 'notes' | 'titlePlaceholder' | 'notesPlaceholder' | 'editEvent' | 'viewEvent' | 'done' | 'quickCreateEvent' | 'quickCreatePlaceholder' | 'noSuggestions' | 'newCalendar' | 'refreshAll' | 'tomorrow' | 'importCalendar' | 'exportCalendar' | 'addSchedule' | 'importCalendarMessage' | 'ok' | 'cut' | 'copy' | 'pasteHere' | 'eventSummary' | 'subscribeCalendar' | 'subscribeCalendarTitle' | 'calendarUrl' | 'calendarUrlPlaceholder' | 'subscribe' | 'fetchingCalendar' | 'subscribeError' | 'calendarAlreadySubscribed';
|
|
190
196
|
type LocaleDict = Partial<Record<TranslationKey, string>>;
|
|
191
197
|
type LocaleMessages = Partial<Record<TranslationKey, string>>;
|
|
192
198
|
interface Locale {
|
|
@@ -483,6 +489,7 @@ interface CalendarAppState {
|
|
|
483
489
|
interface ICalendarApp {
|
|
484
490
|
state: CalendarAppState;
|
|
485
491
|
getReadOnlyConfig: () => ReadOnlyConfig;
|
|
492
|
+
canMutateFromUI: () => boolean;
|
|
486
493
|
subscribe: (listener: (app: ICalendarApp) => void) => () => void;
|
|
487
494
|
changeView: (view: CalendarViewType) => void;
|
|
488
495
|
getCurrentView: () => CalendarView;
|
|
@@ -503,8 +510,10 @@ interface ICalendarApp {
|
|
|
503
510
|
delete?: string[];
|
|
504
511
|
}, isPending?: boolean, source?: 'drag' | 'resize') => void;
|
|
505
512
|
addEvent: (event: Event) => void;
|
|
506
|
-
|
|
507
|
-
|
|
513
|
+
/** Add events from external sources (like subscriptions) without persisting to main DB */
|
|
514
|
+
addExternalEvents: (calendarId: string, events: Event[]) => void;
|
|
515
|
+
updateEvent: (id: string, event: Partial<Event>, isPending?: boolean, source?: 'drag' | 'resize') => Promise<void>;
|
|
516
|
+
deleteEvent: (id: string) => Promise<void>;
|
|
508
517
|
getEvents: () => Event[];
|
|
509
518
|
getAllEvents: () => Event[];
|
|
510
519
|
onEventClick: (event: Event) => void;
|
|
@@ -516,9 +525,9 @@ interface ICalendarApp {
|
|
|
516
525
|
setCalendarVisibility: (calendarId: string, visible: boolean) => void;
|
|
517
526
|
setAllCalendarsVisibility: (visible: boolean) => void;
|
|
518
527
|
updateCalendar: (id: string, updates: Partial<CalendarType>, isPending?: boolean) => void;
|
|
519
|
-
createCalendar: (calendar: CalendarType) => void
|
|
520
|
-
deleteCalendar: (id: string) => void
|
|
521
|
-
mergeCalendars: (sourceId: string, targetId: string) => void
|
|
528
|
+
createCalendar: (calendar: CalendarType) => Promise<void>;
|
|
529
|
+
deleteCalendar: (id: string) => Promise<void>;
|
|
530
|
+
mergeCalendars: (sourceId: string, targetId: string) => Promise<void>;
|
|
522
531
|
setVisibleMonth: (date: Date) => void;
|
|
523
532
|
getVisibleMonth: () => Date;
|
|
524
533
|
emitVisibleRange: (start: Date, end: Date, reason?: RangeChangeReason) => void;
|
|
@@ -557,16 +566,16 @@ interface UseCalendarAppReturn {
|
|
|
557
566
|
changeView: (view: CalendarViewType) => void;
|
|
558
567
|
setCurrentDate: (date: Date) => void;
|
|
559
568
|
addEvent: (event: Event) => void;
|
|
560
|
-
updateEvent: (id: string, event: Partial<Event>, isPending?: boolean, source?: 'drag' | 'resize') => void
|
|
561
|
-
deleteEvent: (id: string) => void
|
|
569
|
+
updateEvent: (id: string, event: Partial<Event>, isPending?: boolean, source?: 'drag' | 'resize') => Promise<void>;
|
|
570
|
+
deleteEvent: (id: string) => Promise<void>;
|
|
562
571
|
goToToday: () => void;
|
|
563
572
|
goToPrevious: () => void;
|
|
564
573
|
goToNext: () => void;
|
|
565
574
|
selectDate: (date: Date) => void;
|
|
566
575
|
undo: () => void;
|
|
567
576
|
getCalendars: () => CalendarType[];
|
|
568
|
-
createCalendar: (calendar: CalendarType) => void
|
|
569
|
-
mergeCalendars: (sourceId: string, targetId: string) => void
|
|
577
|
+
createCalendar: (calendar: CalendarType) => Promise<void>;
|
|
578
|
+
mergeCalendars: (sourceId: string, targetId: string) => Promise<void>;
|
|
570
579
|
setCalendarVisibility: (calendarId: string, visible: boolean) => void;
|
|
571
580
|
setAllCalendarsVisibility: (visible: boolean) => void;
|
|
572
581
|
getAllEvents: () => Event[];
|
|
@@ -574,6 +583,7 @@ interface UseCalendarAppReturn {
|
|
|
574
583
|
setVisibleMonth: (date: Date) => void;
|
|
575
584
|
getVisibleMonth: () => Date;
|
|
576
585
|
emitVisibleRange: (start: Date, end: Date, reason?: RangeChangeReason) => void;
|
|
586
|
+
canMutateFromUI: () => boolean;
|
|
577
587
|
readOnlyConfig: ReadOnlyConfig;
|
|
578
588
|
}
|
|
579
589
|
/**
|
|
@@ -611,8 +621,8 @@ interface UseCalendarReturn {
|
|
|
611
621
|
goToPrevious: () => void;
|
|
612
622
|
goToNext: () => void;
|
|
613
623
|
selectDate: (date: Date) => void;
|
|
614
|
-
updateEvent: (eventId: string, updates: Partial<Event>, isPending?: boolean) => void
|
|
615
|
-
deleteEvent: (eventId: string) => void
|
|
624
|
+
updateEvent: (eventId: string, updates: Partial<Event>, isPending?: boolean) => Promise<void>;
|
|
625
|
+
deleteEvent: (eventId: string) => Promise<void>;
|
|
616
626
|
addEvent: (event: Omit<Event, 'id'>) => void;
|
|
617
627
|
setEvents: (events: Event[] | ((prev: Event[]) => Event[])) => void;
|
|
618
628
|
}
|
|
@@ -955,9 +965,9 @@ interface EventDetailPanelProps {
|
|
|
955
965
|
/** Selected event element reference */
|
|
956
966
|
selectedEventElementRef: RefObject<HTMLElement | null>;
|
|
957
967
|
/** Event update callback */
|
|
958
|
-
onEventUpdate: (updatedEvent: Event) => void
|
|
968
|
+
onEventUpdate: (updatedEvent: Event) => void | Promise<void>;
|
|
959
969
|
/** Event delete callback */
|
|
960
|
-
onEventDelete: (eventId: string) => void
|
|
970
|
+
onEventDelete: (eventId: string) => void | Promise<void>;
|
|
961
971
|
/** Close panel callback (optional) */
|
|
962
972
|
onClose?: () => void;
|
|
963
973
|
}
|
|
@@ -974,9 +984,9 @@ interface EventDetailContentProps {
|
|
|
974
984
|
/** Whether the event is all-day */
|
|
975
985
|
isAllDay: boolean;
|
|
976
986
|
/** Event update callback */
|
|
977
|
-
onEventUpdate: (updatedEvent: Event) => void
|
|
987
|
+
onEventUpdate: (updatedEvent: Event) => void | Promise<void>;
|
|
978
988
|
/** Event delete callback */
|
|
979
|
-
onEventDelete: (eventId: string) => void
|
|
989
|
+
onEventDelete: (eventId: string) => void | Promise<void>;
|
|
980
990
|
/** Close panel callback (optional) */
|
|
981
991
|
onClose?: () => void;
|
|
982
992
|
app?: ICalendarApp;
|
|
@@ -996,9 +1006,9 @@ interface EventDetailDialogProps {
|
|
|
996
1006
|
/** Whether the event is all-day */
|
|
997
1007
|
isAllDay: boolean;
|
|
998
1008
|
/** Event update callback */
|
|
999
|
-
onEventUpdate: (updatedEvent: Event) => void
|
|
1009
|
+
onEventUpdate: (updatedEvent: Event) => void | Promise<void>;
|
|
1000
1010
|
/** Event delete callback */
|
|
1001
|
-
onEventDelete: (eventId: string) => void
|
|
1011
|
+
onEventDelete: (eventId: string) => void | Promise<void>;
|
|
1002
1012
|
/** Close dialog callback */
|
|
1003
1013
|
onClose: () => void;
|
|
1004
1014
|
app?: ICalendarApp;
|
|
@@ -1150,8 +1160,8 @@ interface BaseViewProps<TConfig = unknown> {
|
|
|
1150
1160
|
currentDate?: Date;
|
|
1151
1161
|
currentView?: CalendarViewType;
|
|
1152
1162
|
events?: Event[];
|
|
1153
|
-
onEventUpdate?: (event: Event) => void
|
|
1154
|
-
onEventDelete?: (eventId: string) => void
|
|
1163
|
+
onEventUpdate?: (event: Event) => void | Promise<void>;
|
|
1164
|
+
onEventDelete?: (eventId: string) => void | Promise<void>;
|
|
1155
1165
|
onEventCreate?: (event: Event) => void;
|
|
1156
1166
|
onDateChange?: (date: Date) => void;
|
|
1157
1167
|
onViewChange?: (view: CalendarViewType) => void;
|
|
@@ -1362,7 +1372,7 @@ interface ColorPickerProps {
|
|
|
1362
1372
|
}
|
|
1363
1373
|
interface CreateCalendarDialogProps {
|
|
1364
1374
|
onClose: () => void;
|
|
1365
|
-
onCreate: (calendar: CalendarType) => void
|
|
1375
|
+
onCreate: (calendar: CalendarType) => void | Promise<void>;
|
|
1366
1376
|
app: ICalendarApp;
|
|
1367
1377
|
}
|
|
1368
1378
|
/**
|
|
@@ -1373,8 +1383,8 @@ interface EventsService {
|
|
|
1373
1383
|
getAll: () => Event[];
|
|
1374
1384
|
getById: (id: string) => Event | undefined;
|
|
1375
1385
|
add: (event: Event) => void;
|
|
1376
|
-
update: (id: string, updates: Partial<Event>) =>
|
|
1377
|
-
delete: (id: string) => void
|
|
1386
|
+
update: (id: string, updates: Partial<Event>) => void | Promise<void>;
|
|
1387
|
+
delete: (id: string) => void | Promise<void>;
|
|
1378
1388
|
getByDate: (date: Date) => Event[];
|
|
1379
1389
|
getByDateRange: (startDate: Date, endDate: Date) => Event[];
|
|
1380
1390
|
getByDay: (dayIndex: number, weekStart: Date) => Event[];
|
|
@@ -1525,6 +1535,7 @@ declare class CalendarApp implements ICalendarApp {
|
|
|
1525
1535
|
private pendingSnapshot;
|
|
1526
1536
|
private pendingChangeSource;
|
|
1527
1537
|
private readonly MAX_UNDO_STACK;
|
|
1538
|
+
private externalEvents;
|
|
1528
1539
|
constructor(config: CalendarAppConfig);
|
|
1529
1540
|
private setupStoreListeners;
|
|
1530
1541
|
private static resolveLocale;
|
|
@@ -1533,11 +1544,7 @@ declare class CalendarApp implements ICalendarApp {
|
|
|
1533
1544
|
private pushToUndo;
|
|
1534
1545
|
undo: () => void;
|
|
1535
1546
|
getReadOnlyConfig: () => ReadOnlyConfig;
|
|
1536
|
-
|
|
1537
|
-
* Helper to check if the calendar is in any form of read-only mode.
|
|
1538
|
-
* If readOnly config is present, it's considered non-editable.
|
|
1539
|
-
*/
|
|
1540
|
-
private isInternalEditable;
|
|
1547
|
+
canMutateFromUI: () => boolean;
|
|
1541
1548
|
changeView: (view: CalendarViewType) => void;
|
|
1542
1549
|
getCurrentView: () => CalendarView;
|
|
1543
1550
|
emitVisibleRange: (start: Date, end: Date, reason?: RangeChangeReason) => void;
|
|
@@ -1559,8 +1566,18 @@ declare class CalendarApp implements ICalendarApp {
|
|
|
1559
1566
|
delete?: string[];
|
|
1560
1567
|
}, isPending?: boolean, source?: "drag" | "resize") => void;
|
|
1561
1568
|
addEvent: (event: Event) => void;
|
|
1562
|
-
|
|
1563
|
-
|
|
1569
|
+
/**
|
|
1570
|
+
* Add external events to the state without persisting to the core store.
|
|
1571
|
+
* This is used for temporary/subscription-based events.
|
|
1572
|
+
*/
|
|
1573
|
+
addExternalEvents: (calendarId: string, events: Event[]) => void;
|
|
1574
|
+
/**
|
|
1575
|
+
* Synchronize all events (core + external) into the main state.events array.
|
|
1576
|
+
* This ensures all views and plugins that listen to state.events see the combined list.
|
|
1577
|
+
*/
|
|
1578
|
+
private syncExternalEventsToState;
|
|
1579
|
+
updateEvent: (id: string, eventUpdate: Partial<Event>, isPending?: boolean, source?: "drag" | "resize") => Promise<void>;
|
|
1580
|
+
deleteEvent: (id: string) => Promise<void>;
|
|
1564
1581
|
getAllEvents: () => Event[];
|
|
1565
1582
|
onEventClick: (event: Event) => void;
|
|
1566
1583
|
onMoreEventsClick: (date: Date) => void;
|
|
@@ -1573,9 +1590,9 @@ declare class CalendarApp implements ICalendarApp {
|
|
|
1573
1590
|
setCalendarVisibility: (calendarId: string, visible: boolean) => void;
|
|
1574
1591
|
setAllCalendarsVisibility: (visible: boolean) => void;
|
|
1575
1592
|
updateCalendar: (id: string, updates: Partial<CalendarType>, isPending?: boolean) => void;
|
|
1576
|
-
createCalendar: (calendar: CalendarType) => void
|
|
1577
|
-
deleteCalendar: (id: string) => void
|
|
1578
|
-
mergeCalendars: (sourceId: string, targetId: string) => void
|
|
1593
|
+
createCalendar: (calendar: CalendarType) => Promise<void>;
|
|
1594
|
+
deleteCalendar: (id: string) => Promise<void>;
|
|
1595
|
+
mergeCalendars: (sourceId: string, targetId: string) => Promise<void>;
|
|
1579
1596
|
getCalendarHeaderConfig: () => boolean | ((props: CalendarHeaderProps) => TNode);
|
|
1580
1597
|
private installPlugin;
|
|
1581
1598
|
getPlugin: <T = unknown>(name: string) => T | undefined;
|
|
@@ -2796,6 +2813,16 @@ interface RestoredTimedDragState {
|
|
|
2796
2813
|
}
|
|
2797
2814
|
declare const restoreTimedDragFromAllDayTransition: ({ wasOriginallyAllDay, mouseHour, hourOffset, duration, originalStartHour, originalEndHour, firstHour, lastHour, minDuration, roundToTimeStep, }: RestoreTimedDragOptions) => RestoredTimedDragState;
|
|
2798
2815
|
|
|
2816
|
+
interface SubscribeResult {
|
|
2817
|
+
calendar: CalendarType;
|
|
2818
|
+
events: Event[];
|
|
2819
|
+
}
|
|
2820
|
+
/**
|
|
2821
|
+
* Utility to fetch and parse a calendar subscription.
|
|
2822
|
+
* Does not perform any storage operations.
|
|
2823
|
+
*/
|
|
2824
|
+
declare function subscribeCalendar(url: string): Promise<SubscribeResult>;
|
|
2825
|
+
|
|
2799
2826
|
/**
|
|
2800
2827
|
* Core translation function.
|
|
2801
2828
|
* 1. Try Intl API for standard terms.
|
|
@@ -2930,6 +2957,39 @@ declare const ContextMenuColorPicker: ({ selectedColor, onSelect, onCustomColor,
|
|
|
2930
2957
|
onCustomColor?: () => void;
|
|
2931
2958
|
}) => preact.JSX.Element;
|
|
2932
2959
|
|
|
2960
|
+
interface GridContextMenuProps {
|
|
2961
|
+
x: number;
|
|
2962
|
+
y: number;
|
|
2963
|
+
date: Date;
|
|
2964
|
+
onClose: () => void;
|
|
2965
|
+
app: ICalendarApp;
|
|
2966
|
+
onCreateEvent: () => void;
|
|
2967
|
+
viewType?: ViewType;
|
|
2968
|
+
}
|
|
2969
|
+
declare const GridContextMenu: ({ x, y, date, onClose, app, onCreateEvent, viewType, }: GridContextMenuProps) => preact.JSX.Element | null;
|
|
2970
|
+
|
|
2971
|
+
interface EventContextMenuProps {
|
|
2972
|
+
event: Event;
|
|
2973
|
+
x: number;
|
|
2974
|
+
y: number;
|
|
2975
|
+
onClose: () => void;
|
|
2976
|
+
app: ICalendarApp;
|
|
2977
|
+
onDetailPanelToggle?: (id: string | null) => void;
|
|
2978
|
+
detailPanelKey: string;
|
|
2979
|
+
}
|
|
2980
|
+
declare const EventContextMenu: ({ event, x, y, onClose, app, }: EventContextMenuProps) => preact.JSX.Element | null;
|
|
2981
|
+
|
|
2982
|
+
interface ButtonProps extends Omit<JSX.HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
2983
|
+
loading?: boolean;
|
|
2984
|
+
loadingText?: string;
|
|
2985
|
+
onClick?: (e: JSX.TargetedMouseEvent<HTMLButtonElement>) => void | Promise<void>;
|
|
2986
|
+
children?: ComponentChildren;
|
|
2987
|
+
disabled?: boolean;
|
|
2988
|
+
type?: 'button' | 'submit' | 'reset';
|
|
2989
|
+
className?: string;
|
|
2990
|
+
}
|
|
2991
|
+
declare const LoadingButton: ({ children, onClick, loading: propLoading, loadingText, disabled, className, type, ...props }: ButtonProps) => JSX.Element;
|
|
2992
|
+
|
|
2933
2993
|
interface BlossomColorPickerProps extends Partial<BlossomColorPickerOptions> {
|
|
2934
2994
|
className?: string;
|
|
2935
2995
|
}
|
|
@@ -2945,6 +3005,30 @@ interface DefaultColorPickerProps {
|
|
|
2945
3005
|
}
|
|
2946
3006
|
declare const DefaultColorPicker: ({ color, onChange, onClose, }: DefaultColorPickerProps) => preact.JSX.Element;
|
|
2947
3007
|
|
|
3008
|
+
type ZonedRange = [Temporal.ZonedDateTime, Temporal.ZonedDateTime];
|
|
3009
|
+
interface RangePickerProps {
|
|
3010
|
+
value: [
|
|
3011
|
+
Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime,
|
|
3012
|
+
Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime
|
|
3013
|
+
];
|
|
3014
|
+
format?: string;
|
|
3015
|
+
showTimeFormat?: string;
|
|
3016
|
+
showTime?: boolean | {
|
|
3017
|
+
format?: string;
|
|
3018
|
+
};
|
|
3019
|
+
onChange?: (value: ZonedRange, dateString: [string, string]) => void;
|
|
3020
|
+
onOk?: (value: ZonedRange, dateString: [string, string]) => void;
|
|
3021
|
+
timeZone?: string;
|
|
3022
|
+
disabled?: boolean;
|
|
3023
|
+
placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
3024
|
+
autoAdjustOverflow?: boolean;
|
|
3025
|
+
getPopupContainer?: () => HTMLElement;
|
|
3026
|
+
matchTriggerWidth?: boolean;
|
|
3027
|
+
locale?: string | Locale;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
declare const RangePicker: ({ value, format, showTimeFormat, showTime, onChange, onOk, timeZone, disabled, placement, autoAdjustOverflow, getPopupContainer, matchTriggerWidth, locale, }: RangePickerProps) => JSX.Element;
|
|
3031
|
+
|
|
2948
3032
|
interface MiniCalendarProps {
|
|
2949
3033
|
visibleMonth: Date;
|
|
2950
3034
|
currentDate: Date;
|
|
@@ -2957,6 +3041,23 @@ declare const MiniCalendar: ({ visibleMonth, currentDate, showHeader, onMonthCha
|
|
|
2957
3041
|
|
|
2958
3042
|
declare const CreateCalendarDialog: ({ onClose, onCreate, app, }: CreateCalendarDialogProps) => preact.VNode<any> | null;
|
|
2959
3043
|
|
|
3044
|
+
interface DefaultEventDetailPanelProps extends EventDetailPanelProps {
|
|
3045
|
+
app?: ICalendarApp;
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* Default event detail panel component
|
|
3049
|
+
*/
|
|
3050
|
+
declare const DefaultEventDetailPanel: ({ event, position, panelRef, isAllDay: _isAllDay, eventVisibility, calendarRef, selectedEventElementRef, onEventUpdate, onEventDelete, onClose: _onClose, app, }: DefaultEventDetailPanelProps) => preact.VNode<any> | null;
|
|
3051
|
+
|
|
3052
|
+
interface DefaultEventDetailDialogProps extends EventDetailDialogProps {
|
|
3053
|
+
app?: ICalendarApp;
|
|
3054
|
+
}
|
|
3055
|
+
/**
|
|
3056
|
+
* Default event detail dialog component (Dialog mode)
|
|
3057
|
+
* Content is consistent with DefaultEventDetailPanel, but displayed using Dialog/Modal
|
|
3058
|
+
*/
|
|
3059
|
+
declare const DefaultEventDetailDialog: ({ event, isOpen, onEventUpdate, onEventDelete, onClose, app, }: DefaultEventDetailDialogProps) => preact.VNode<any> | null;
|
|
3060
|
+
|
|
2960
3061
|
interface ContentSlotProps {
|
|
2961
3062
|
generatorName: string | null;
|
|
2962
3063
|
generatorArgs?: unknown;
|
|
@@ -3066,15 +3167,18 @@ interface IconProps {
|
|
|
3066
3167
|
className?: string;
|
|
3067
3168
|
width?: number;
|
|
3068
3169
|
height?: number;
|
|
3170
|
+
title?: string;
|
|
3069
3171
|
}
|
|
3070
3172
|
declare const ChevronRight: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3071
3173
|
declare const ChevronDown: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3072
3174
|
declare const Plus: ({ className, width, height }: IconProps) => preact.JSX.Element;
|
|
3073
3175
|
declare const Check: ({ className, width, height }: IconProps) => preact.JSX.Element;
|
|
3074
3176
|
declare const ChevronsUpDown: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3177
|
+
declare const Loader2: ({ className, width, height }: IconProps) => preact.JSX.Element;
|
|
3075
3178
|
declare const PanelRightClose: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3076
3179
|
declare const PanelRightOpen: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3077
3180
|
declare const AudioLines: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3181
|
+
declare const AlertCircle: ({ className, width, height, }: IconProps) => preact.JSX.Element;
|
|
3078
3182
|
|
|
3079
3183
|
/**
|
|
3080
3184
|
* Cancel button
|
|
@@ -3083,7 +3187,7 @@ declare const cancelButton = "rounded-md bg-background border border-border px-3
|
|
|
3083
3187
|
/**
|
|
3084
3188
|
* Calendar picker dropdown (for selecting calendar for an event)
|
|
3085
3189
|
*/
|
|
3086
|
-
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";
|
|
3190
|
+
declare const calendarPickerDropdown = "df-portal 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";
|
|
3087
3191
|
/**
|
|
3088
3192
|
* Sidebar container
|
|
3089
3193
|
*/
|
|
@@ -3101,5 +3205,5 @@ declare const sidebarHeaderToggle = "df-sidebar-header-toggle flex h-8 w-8 items
|
|
|
3101
3205
|
*/
|
|
3102
3206
|
declare const sidebarHeaderTitle = "df-sidebar-header-title text-sm font-semibold text-gray-700 dark:text-gray-200";
|
|
3103
3207
|
|
|
3104
|
-
export { AudioLines, BlossomColorPicker, CalendarApp, CalendarEvent, CalendarRegistry, CalendarRenderer, Check, ChevronDown, 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, compareAllDayDisplayPriority, conditionalTheme, convertDateEvent, convertDateEventWithTimeZone, convertToDayFlowEvent, createAllDayDisplayComparator, 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, getAllDayRangeMetrics, 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, restoreTimedDragFromAllDayTransition, roundToTimeStep, scrollbarTakesSpace, setHourInTemporal, shortMonthNames, sidebarContainer, sidebarHeader, sidebarHeaderTitle, sidebarHeaderToggle, sortAllDayByTitle, t, temporalToDate, themeClasses, themeCn, today, unescapeICSValue, updateEventDateAndDay, updateEventWithRealDate, useDragForView, useLocale, useSidebarBridge, weekDays, weekDaysFullName, zonedDateTimeToDate };
|
|
3105
|
-
export type { AllDaySortComparator, BalanceStrategy, BaseViewProps, CalendarAppConfig, CalendarAppState, CalendarCallbacks, CalendarColors, CalendarConfig, CalendarEventProps, CalendarHeaderProps, CalendarPlugin, 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, 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 };
|
|
3208
|
+
export { AlertCircle, AudioLines, BlossomColorPicker, CalendarApp, CalendarEvent, CalendarRegistry, CalendarRenderer, Check, ChevronDown, ChevronRight, ChevronsUpDown, ContentSlot, ContextMenu, ContextMenuColorPicker, ContextMenuItem, ContextMenuLabel, ContextMenuSeparator, CreateCalendarDialog, CustomRenderingStore, RangePicker as DayflowRangePicker, DefaultColorPicker, DefaultEventDetailDialog, DefaultEventDetailPanel, EventContextMenu, GridContextMenu, LAYOUT_CONFIG, LOCALES, Loader2, LoadingButton, LocaleContext, LocaleProvider, MiniCalendar, PanelRightClose, PanelRightOpen, Plus, TIME_STEP, TimeZone, VIRTUAL_MONTH_SCROLL_CONFIG, ViewType, WeekDataCache, addDays, buildParseRegExp, calculateDayIndex, calendarPickerDropdown, cancelButton, capitalize, clipboardStore, compareAllDayDisplayPriority, conditionalTheme, convertDateEvent, convertDateEventWithTimeZone, convertToDayFlowEvent, createAllDayDisplayComparator, 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, getAllDayRangeMetrics, 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, restoreTimedDragFromAllDayTransition, roundToTimeStep, scrollbarTakesSpace, setHourInTemporal, shortMonthNames, sidebarContainer, sidebarHeader, sidebarHeaderTitle, sidebarHeaderToggle, sortAllDayByTitle, subscribeCalendar, t, temporalToDate, themeClasses, themeCn, today, unescapeICSValue, updateEventDateAndDay, updateEventWithRealDate, useDragForView, useLocale, useSidebarBridge, weekDays, weekDaysFullName, zonedDateTimeToDate };
|
|
3209
|
+
export type { AllDaySortComparator, BalanceStrategy, BaseViewProps, CalendarAppConfig, CalendarAppState, CalendarCallbacks, CalendarColors, CalendarConfig, CalendarEventProps, CalendarHeaderProps, CalendarPlugin, 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, 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, RangePickerProps, ReadOnlyConfig, SidebarBridgeReturn, SidebarHeaderSlotArgs, SpecialLayoutRule, SubscribeResult, 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, ZonedRange, useDragProps, useDragReturn };
|