@dayflow/core 2.0.6 → 3.0.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.
Files changed (164) hide show
  1. package/dist/index.d.ts +2555 -39
  2. package/dist/index.esm.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/styles.css +2128 -3113
  5. package/package.json +14 -24
  6. package/LICENSE +0 -21
  7. package/README.ja.md +0 -47
  8. package/README.md +0 -49
  9. package/README.zh.md +0 -47
  10. package/dist/components/calendarEvent/components/AllDayContent.d.ts +0 -9
  11. package/dist/components/calendarEvent/components/MonthAllDayContent.d.ts +0 -8
  12. package/dist/components/calendarEvent/components/MonthRegularContent.d.ts +0 -11
  13. package/dist/components/calendarEvent/components/RegularEventContent.d.ts +0 -20
  14. package/dist/components/calendarEvent/index.d.ts +0 -4
  15. package/dist/components/calendarEvent/types.d.ts +0 -49
  16. package/dist/components/common/CalendarHeader.d.ts +0 -4
  17. package/dist/components/common/CalendarPicker.d.ts +0 -19
  18. package/dist/components/common/ColorPicker.d.ts +0 -19
  19. package/dist/components/common/ContextMenu.d.ts +0 -25
  20. package/dist/components/common/CreateCalendarDialog.d.ts +0 -3
  21. package/dist/components/common/DefaultEventDetailDialog.d.ts +0 -12
  22. package/dist/components/common/DefaultEventDetailPanel.d.ts +0 -11
  23. package/dist/components/common/EventDetailPanelWithContent.d.ts +0 -11
  24. package/dist/components/common/MiniCalendar.d.ts +0 -11
  25. package/dist/components/common/QuickCreateEventPopup.d.ts +0 -10
  26. package/dist/components/common/TodayBox.d.ts +0 -7
  27. package/dist/components/common/ViewHeader.d.ts +0 -33
  28. package/dist/components/common/ViewSwitcher.d.ts +0 -8
  29. package/dist/components/dayView/DayContent.d.ts +0 -55
  30. package/dist/components/dayView/RightPanel.d.ts +0 -16
  31. package/dist/components/dayView/util.d.ts +0 -8
  32. package/dist/components/eventLayout/constants.d.ts +0 -8
  33. package/dist/components/eventLayout/index.d.ts +0 -129
  34. package/dist/components/eventLayout/types.d.ts +0 -23
  35. package/dist/components/eventLayout/utils.d.ts +0 -5
  36. package/dist/components/mobileEventDrawer/DefaultMobileEventDrawer.d.ts +0 -3
  37. package/dist/components/mobileEventDrawer/components/Switch.d.ts +0 -7
  38. package/dist/components/mobileEventDrawer/components/TimePickerWheel.d.ts +0 -7
  39. package/dist/components/mobileEventDrawer/index.d.ts +0 -3
  40. package/dist/components/monthView/MonthDragIndicator.d.ts +0 -12
  41. package/dist/components/monthView/MultiDayEvent.d.ts +0 -31
  42. package/dist/components/monthView/WeekComponent.d.ts +0 -53
  43. package/dist/components/monthView/util.d.ts +0 -11
  44. package/dist/components/rangePicker/components/CalendarGrid.d.ts +0 -13
  45. package/dist/components/rangePicker/components/CalendarHeader.d.ts +0 -11
  46. package/dist/components/rangePicker/components/RangePickerPanel.d.ts +0 -25
  47. package/dist/components/rangePicker/components/TimeSelector.d.ts +0 -21
  48. package/dist/components/rangePicker/constants.d.ts +0 -5
  49. package/dist/components/rangePicker/index.d.ts +0 -4
  50. package/dist/components/rangePicker/types.d.ts +0 -23
  51. package/dist/components/rangePicker/utils.d.ts +0 -2
  52. package/dist/components/search/MobileSearchDialog.d.ts +0 -14
  53. package/dist/components/search/SearchDrawer.d.ts +0 -13
  54. package/dist/components/search/SearchResultsList.d.ts +0 -11
  55. package/dist/components/sidebar/DefaultCalendarSidebar.d.ts +0 -4
  56. package/dist/components/sidebar/components/CalendarList.d.ts +0 -16
  57. package/dist/components/sidebar/components/DeleteCalendarDialog.d.ts +0 -14
  58. package/dist/components/sidebar/components/ImportCalendarDialog.d.ts +0 -11
  59. package/dist/components/sidebar/components/MergeCalendarDialog.d.ts +0 -9
  60. package/dist/components/sidebar/components/MergeMenuItem.d.ts +0 -9
  61. package/dist/components/sidebar/components/SidebarHeader.d.ts +0 -7
  62. package/dist/components/weekView/AllDayRow.d.ts +0 -49
  63. package/dist/components/weekView/DragIndicator/DefaultDragIndicator.d.ts +0 -2
  64. package/dist/components/weekView/DragIndicator/DragIndicatorComponent.d.ts +0 -7
  65. package/dist/components/weekView/TimeGrid.d.ts +0 -52
  66. package/dist/components/weekView/util.d.ts +0 -9
  67. package/dist/components/yearView/DefaultYearView.d.ts +0 -11
  68. package/dist/components/yearView/FixedWeekYearView.d.ts +0 -14
  69. package/dist/components/yearView/YearDayCell.d.ts +0 -12
  70. package/dist/components/yearView/YearMultiDayEvent.d.ts +0 -23
  71. package/dist/components/yearView/YearRowComponent.d.ts +0 -27
  72. package/dist/components/yearView/utils.d.ts +0 -19
  73. package/dist/contexts/ThemeContext.d.ts +0 -38
  74. package/dist/core/CalendarApp.d.ts +0 -85
  75. package/dist/core/DayFlowCalendar.d.ts +0 -20
  76. package/dist/core/calendarRegistry.d.ts +0 -121
  77. package/dist/core/config.d.ts +0 -60
  78. package/dist/core/index.d.ts +0 -6
  79. package/dist/core/useCalendarApp.d.ts +0 -2
  80. package/dist/factories/ViewAdapter.d.ts +0 -4
  81. package/dist/factories/createDayView.d.ts +0 -3
  82. package/dist/factories/createMonthView.d.ts +0 -3
  83. package/dist/factories/createWeekView.d.ts +0 -3
  84. package/dist/factories/createYearView.d.ts +0 -3
  85. package/dist/factories/index.d.ts +0 -10
  86. package/dist/hooks/drag/index.d.ts +0 -7
  87. package/dist/hooks/drag/useDrag.d.ts +0 -2
  88. package/dist/hooks/drag/useDragCommon.d.ts +0 -2
  89. package/dist/hooks/drag/useDragHandlers.d.ts +0 -2
  90. package/dist/hooks/drag/useDragManager.d.ts +0 -2
  91. package/dist/hooks/drag/useDragState.d.ts +0 -2
  92. package/dist/hooks/drag/useMonthDrag.d.ts +0 -2
  93. package/dist/hooks/drag/useWeekDayDrag.d.ts +0 -2
  94. package/dist/hooks/useCalendarDrop.d.ts +0 -20
  95. package/dist/hooks/virtualScroll/index.d.ts +0 -2
  96. package/dist/hooks/virtualScroll/useVirtualMonthScroll.d.ts +0 -7
  97. package/dist/hooks/virtualScroll/useVirtualScroll.d.ts +0 -48
  98. package/dist/locale/LocaleContext.d.ts +0 -10
  99. package/dist/locale/LocaleProvider.d.ts +0 -8
  100. package/dist/locale/index.d.ts +0 -7
  101. package/dist/locale/intl.d.ts +0 -16
  102. package/dist/locale/locales/de.d.ts +0 -3
  103. package/dist/locale/locales/en.d.ts +0 -3
  104. package/dist/locale/locales/es.d.ts +0 -3
  105. package/dist/locale/locales/fr.d.ts +0 -3
  106. package/dist/locale/locales/index.d.ts +0 -18
  107. package/dist/locale/locales/ja.d.ts +0 -3
  108. package/dist/locale/locales/ko.d.ts +0 -3
  109. package/dist/locale/locales/zh.d.ts +0 -3
  110. package/dist/locale/translator.d.ts +0 -9
  111. package/dist/locale/types.d.ts +0 -8
  112. package/dist/locale/useLocale.d.ts +0 -5
  113. package/dist/locale/utils.d.ts +0 -10
  114. package/dist/plugins/dragPlugin.d.ts +0 -5
  115. package/dist/plugins/eventsPlugin.d.ts +0 -3
  116. package/dist/plugins/index.d.ts +0 -6
  117. package/dist/setupTests.d.ts +0 -1
  118. package/dist/styles/classNames.d.ts +0 -381
  119. package/dist/types/calendar.d.ts +0 -26
  120. package/dist/types/calendarTypes.d.ts +0 -68
  121. package/dist/types/config.d.ts +0 -19
  122. package/dist/types/core.d.ts +0 -265
  123. package/dist/types/dragIndicator.d.ts +0 -160
  124. package/dist/types/event.d.ts +0 -18
  125. package/dist/types/eventDetail.d.ts +0 -74
  126. package/dist/types/factory.d.ts +0 -155
  127. package/dist/types/hook.d.ts +0 -103
  128. package/dist/types/index.d.ts +0 -13
  129. package/dist/types/layout.d.ts +0 -113
  130. package/dist/types/mobileEvent.d.ts +0 -21
  131. package/dist/types/monthView.d.ts +0 -65
  132. package/dist/types/plugin.d.ts +0 -80
  133. package/dist/types/search.d.ts +0 -35
  134. package/dist/utils/calendarDataUtils.d.ts +0 -83
  135. package/dist/utils/colorUtils.d.ts +0 -27
  136. package/dist/utils/compareUtils.d.ts +0 -5
  137. package/dist/utils/dateConstants.d.ts +0 -22
  138. package/dist/utils/dateFormat.d.ts +0 -15
  139. package/dist/utils/dateRangeUtils.d.ts +0 -24
  140. package/dist/utils/dateTimeUtils.d.ts +0 -49
  141. package/dist/utils/eventHelpers.d.ts +0 -143
  142. package/dist/utils/eventUtils.d.ts +0 -115
  143. package/dist/utils/helpers.d.ts +0 -27
  144. package/dist/utils/ics/icsDateUtils.d.ts +0 -37
  145. package/dist/utils/ics/icsGenerator.d.ts +0 -23
  146. package/dist/utils/ics/icsParser.d.ts +0 -15
  147. package/dist/utils/ics/index.d.ts +0 -16
  148. package/dist/utils/ics/types.d.ts +0 -91
  149. package/dist/utils/index.d.ts +0 -10
  150. package/dist/utils/logger.d.ts +0 -15
  151. package/dist/utils/rangePicker.d.ts +0 -8
  152. package/dist/utils/searchUtils.d.ts +0 -35
  153. package/dist/utils/styleUtils.d.ts +0 -24
  154. package/dist/utils/temporal.d.ts +0 -100
  155. package/dist/utils/temporalTypeGuards.d.ts +0 -63
  156. package/dist/utils/testDataUtils.d.ts +0 -14
  157. package/dist/utils/themeUtils.d.ts +0 -93
  158. package/dist/utils/throttle.d.ts +0 -11
  159. package/dist/utils/timeUtils.d.ts +0 -38
  160. package/dist/utils/utilityFunctions.d.ts +0 -11
  161. package/dist/views/DayView.d.ts +0 -13
  162. package/dist/views/MonthView.d.ts +0 -11
  163. package/dist/views/WeekView.d.ts +0 -11
  164. package/dist/views/YearView.d.ts +0 -12
@@ -1,129 +0,0 @@
1
- import { EventLayout, Event } from '@/types';
2
- import { LayoutCalculationParams } from './types';
3
- export declare class EventLayoutCalculator {
4
- /**
5
- * Get indent step size based on view type
6
- * @param viewType View type
7
- */
8
- private static getIndentStepPercent;
9
- /**
10
- * Calculate layout for all events in a day
11
- * @param dayEvents Array of events for the day
12
- * @param params Layout calculation parameters
13
- */
14
- static calculateDayEventLayouts(dayEvents: Event[], params?: LayoutCalculationParams): Map<string, EventLayout>;
15
- /**
16
- * Clear all parent-child relationships for events
17
- */
18
- private static clearAllParentChildRelations;
19
- /**
20
- * Set parent-child relationship
21
- */
22
- private static setParentChildRelation;
23
- /**
24
- * Check if two events overlap
25
- */
26
- private static eventsOverlap;
27
- /**
28
- * Group overlapping events
29
- */
30
- private static groupOverlappingEvents;
31
- /**
32
- * Set layout for a single event
33
- */
34
- private static setSingleEventLayout;
35
- /**
36
- * Calculate layout for complex overlapping groups
37
- */
38
- private static calculateComplexGroupLayout;
39
- /**
40
- * Analyze parallel groups - group by start time
41
- */
42
- private static analyzeParallelGroups;
43
- /**
44
- * Determine if two events should be displayed in parallel, supporting load balancing and extended event parallelism
45
- */
46
- private static shouldBeParallel;
47
- /**
48
- * Check parallel relationship of extended events
49
- */
50
- private static checkExtendedEventParallel;
51
- /**
52
- * Check one-way parallel relationship of extended events
53
- * @param extendedEvent Potential extended event
54
- * @param otherEvent Other event
55
- */
56
- private static isExtendedEventParallel;
57
- /**
58
- * Build nested structure, fix cross-branch detection range, prioritize detecting nearest parent group
59
- */
60
- private static buildNestedStructure;
61
- /**
62
- * Find the peer branch root node of the branch where the event is located
63
- */
64
- private static findAlternateBranchRoot;
65
- /**
66
- * Calculate branch load (total number of child nodes)
67
- */
68
- private static calculateBranchLoad;
69
- /**
70
- * Check if parent group can contain child group - consider load balancing parallelism
71
- */
72
- private static canGroupContain;
73
- /**
74
- * Check if load balancing parallel relationship exists, based on time intersection and extension situation
75
- */
76
- private static checkLoadBalanceParallel;
77
- /**
78
- * Check if parent event can contain child event
79
- */
80
- private static canEventContain;
81
- /**
82
- * Load balancing and cross-branch parallel processing
83
- */
84
- private static optimizeChildAssignments;
85
- /**
86
- * Build temporary node mapping for cross-branch lookup
87
- */
88
- private static buildTempNodeMap;
89
- /**
90
- * Find parent node with minimum load from LayoutWeekEvent
91
- */
92
- private static findParentWithMinLoadFromEvents;
93
- /**
94
- * Find best parent node for child event in parent group - configurable priority
95
- */
96
- private static findBestParentInGroup;
97
- /**
98
- * Calculate layout from nested structure
99
- */
100
- private static calculateLayoutFromStructure;
101
- /**
102
- * Recursively calculate node layout - refactored version, removed dependency on CONTAINER_WIDTH
103
- */
104
- private static calculateNodeLayoutWithVirtualParallel;
105
- /**
106
- * Calculate layout for parallel child nodes - refactored version
107
- */
108
- private static calculateParallelChildrenLayout;
109
- /**
110
- * Find branch root node indent that cross-branch parallel nodes should align with
111
- */
112
- private static findBranchRootIndent;
113
- /**
114
- * Determine if child nodes should be parallel
115
- */
116
- private static shouldChildrenBeParallel;
117
- /**
118
- * Calculate event importance
119
- */
120
- private static calculateEventImportance;
121
- private static countDescendants;
122
- private static findTransferableLeaf;
123
- private static collectLeaves;
124
- private static transferNode;
125
- private static calculateParentLoads;
126
- private static needsRebalancing;
127
- private static rebalanceGroupLoad;
128
- private static rebalanceLoadByGroups;
129
- }
@@ -1,23 +0,0 @@
1
- import { Event } from '@/types';
2
- export interface LayoutWeekEvent extends Event {
3
- parentId?: string;
4
- children: string[];
5
- _startHour?: number;
6
- _endHour?: number;
7
- }
8
- export interface LayoutNode {
9
- event: LayoutWeekEvent;
10
- children: LayoutNode[];
11
- parent: LayoutNode | null;
12
- depth: number;
13
- isProcessed: boolean;
14
- }
15
- export interface ParallelGroup {
16
- events: LayoutWeekEvent[];
17
- startHour: number;
18
- endHour: number;
19
- }
20
- export interface LayoutCalculationParams {
21
- containerWidth?: number;
22
- viewType?: 'week' | 'day';
23
- }
@@ -1,5 +0,0 @@
1
- import { Event } from '@/types';
2
- import { LayoutWeekEvent } from './types';
3
- export declare function toLayoutEvent(event: Event): LayoutWeekEvent;
4
- export declare function getStartHour(event: LayoutWeekEvent): number;
5
- export declare function getEndHour(event: LayoutWeekEvent): number;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { MobileEventProps } from '@/types';
3
- export declare const MobileEventDrawer: React.FC<MobileEventProps>;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface SwitchProps {
3
- checked: boolean;
4
- onChange: (v: boolean) => void;
5
- }
6
- export declare const Switch: React.FC<SwitchProps>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface TimePickerWheelProps {
3
- date: Date;
4
- onChange: (d: Date) => void;
5
- }
6
- export declare const TimePickerWheel: React.FC<TimePickerWheelProps>;
7
- export {};
@@ -1,3 +0,0 @@
1
- export * from './DefaultMobileEventDrawer';
2
- export * from './components/Switch';
3
- export * from './components/TimePickerWheel';
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { Event } from '../../types';
3
- interface MonthDragIndicatorProps {
4
- event: Event;
5
- isCreating: boolean;
6
- targetDate: Date | null;
7
- isMultiDay?: boolean;
8
- startDate?: Date | null;
9
- endDate?: Date | null;
10
- }
11
- declare const MonthDragIndicatorComponent: React.FC<MonthDragIndicatorProps>;
12
- export default MonthDragIndicatorComponent;
@@ -1,31 +0,0 @@
1
- import React from 'react';
2
- import { Event } from '../../types';
3
- export interface MultiDayEventSegment {
4
- id: string;
5
- originalEventId: string;
6
- event: Event;
7
- startDayIndex: number;
8
- endDayIndex: number;
9
- segmentType: 'start' | 'middle' | 'end' | 'single' | 'start-week-end' | 'end-week-start';
10
- totalDays: number;
11
- segmentIndex: number;
12
- isFirstSegment: boolean;
13
- isLastSegment: boolean;
14
- yPosition?: number;
15
- }
16
- interface MultiDayEventProps {
17
- segment: MultiDayEventSegment;
18
- segmentIndex: number;
19
- isDragging: boolean;
20
- isResizing?: boolean;
21
- isSelected?: boolean;
22
- onMoveStart: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>, event: Event) => void;
23
- onResizeStart?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>, event: Event, direction: string) => void;
24
- onEventLongPress?: (eventId: string) => void;
25
- isMobile?: boolean;
26
- isDraggable?: boolean;
27
- isEditable?: boolean;
28
- viewable?: boolean;
29
- }
30
- export declare const MultiDayEvent: React.NamedExoticComponent<MultiDayEventProps>;
31
- export default MultiDayEvent;
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import { CalendarApp } from '@/core';
3
- import { MonthEventDragState, Event, ViewType, EventDetailContentRenderer, EventDetailDialogRenderer } from '@/types';
4
- import { VirtualWeekItem } from '@/types/monthView';
5
- export interface MultiDayEventSegment {
6
- id: string;
7
- originalEventId: string;
8
- event: Event;
9
- startDayIndex: number;
10
- endDayIndex: number;
11
- segmentType: 'start' | 'middle' | 'end' | 'single' | 'start-week-end' | 'end-week-start';
12
- totalDays: number;
13
- segmentIndex: number;
14
- isFirstSegment: boolean;
15
- isLastSegment: boolean;
16
- yPosition?: number;
17
- }
18
- interface WeekComponentProps {
19
- currentMonth: string;
20
- currentYear: number;
21
- newlyCreatedEventId: string | null;
22
- screenSize: 'mobile' | 'tablet' | 'desktop';
23
- isScrolling: boolean;
24
- isDragging: boolean;
25
- item: VirtualWeekItem;
26
- weekHeight: number;
27
- events: Event[];
28
- dragState: MonthEventDragState;
29
- calendarRef: React.RefObject<HTMLDivElement>;
30
- onEventUpdate: (updatedEvent: Event) => void;
31
- onEventDelete: (eventId: string) => void;
32
- onMoveStart?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>, event: Event) => void;
33
- onCreateStart?: (e: React.MouseEvent | React.TouchEvent, targetDate: Date) => void;
34
- onResizeStart?: (e: React.MouseEvent<HTMLDivElement, MouseEvent> | React.TouchEvent<HTMLDivElement>, event: Event, direction: string) => void;
35
- onDetailPanelOpen: () => void;
36
- onMoreEventsClick?: (date: Date) => void;
37
- onChangeView?: (view: ViewType) => void;
38
- onSelectDate?: (date: Date) => void;
39
- selectedEventId?: string | null;
40
- onEventSelect?: (eventId: string | null) => void;
41
- onEventLongPress?: (eventId: string) => void;
42
- detailPanelEventId?: string | null;
43
- onDetailPanelToggle?: (eventId: string | null) => void;
44
- customDetailPanelContent?: EventDetailContentRenderer;
45
- customEventDetailDialog?: EventDetailDialogRenderer;
46
- onCalendarDrop?: (e: React.DragEvent, dropDate: Date, dropHour?: number, isAllDay?: boolean) => Event | null;
47
- onCalendarDragOver?: (e: React.DragEvent) => void;
48
- calendarSignature?: string;
49
- app: CalendarApp;
50
- enableTouch?: boolean;
51
- }
52
- declare const WeekComponent: React.NamedExoticComponent<WeekComponentProps>;
53
- export default WeekComponent;
@@ -1,11 +0,0 @@
1
- import { Event } from '@/types';
2
- import { MultiDayEventSegment } from '@/components/monthView/WeekComponent';
3
- export declare const getEventIcon: (event: Event) => string | number | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null;
4
- export declare const analyzeMultiDayEventsForWeek: (events: Event[], weekStart: Date) => MultiDayEventSegment[];
5
- export declare const analyzeMultiDayRegularEvent: (event: Event, weekStart: Date) => {
6
- dayIndex: number;
7
- startHour: number;
8
- endHour: number;
9
- isFirst: boolean;
10
- isLast: boolean;
11
- }[];
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { Temporal } from 'temporal-polyfill';
3
- interface CalendarGridProps {
4
- calendarDays: Temporal.PlainDate[];
5
- visibleMonth: Temporal.PlainDate;
6
- startDate: Temporal.PlainDate;
7
- endDate: Temporal.PlainDate;
8
- weekDayLabels: string[];
9
- disabled?: boolean;
10
- onDaySelect: (day: Temporal.PlainDate) => void;
11
- }
12
- declare const CalendarGrid: React.FC<CalendarGridProps>;
13
- export default CalendarGrid;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { Temporal } from 'temporal-polyfill';
3
- interface CalendarHeaderProps {
4
- visibleMonth: Temporal.PlainDate;
5
- monthLabels: string[];
6
- disabled?: boolean;
7
- onMonthChange: (months: number) => void;
8
- onYearChange: (years: number) => void;
9
- }
10
- declare const CalendarHeader: React.FC<CalendarHeaderProps>;
11
- export default CalendarHeader;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { Temporal } from 'temporal-polyfill';
3
- import { ZonedRange } from '../types';
4
- interface RangePickerPanelProps {
5
- visibleMonth: Temporal.PlainDate;
6
- monthLabels: string[];
7
- weekDayLabels: string[];
8
- calendarDays: Temporal.PlainDate[];
9
- draftRange: ZonedRange;
10
- focusedField: 'start' | 'end';
11
- isTimeEnabled: boolean;
12
- disabled?: boolean;
13
- matchTriggerWidth?: boolean;
14
- popupRef: React.RefObject<HTMLDivElement>;
15
- timeListRefs: React.MutableRefObject<any>;
16
- onMonthChange: (months: number) => void;
17
- onYearChange: (years: number) => void;
18
- onDaySelect: (day: Temporal.PlainDate) => void;
19
- onHourSelect: (field: 'start' | 'end', hour: number) => void;
20
- onMinuteSelect: (field: 'start' | 'end', minute: number) => void;
21
- onOk: () => void;
22
- getPopupStyle: () => React.CSSProperties;
23
- }
24
- declare const RangePickerPanel: React.FC<RangePickerPanelProps>;
25
- export default RangePickerPanel;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { ZonedRange } from '../types';
3
- interface TimeSelectorProps {
4
- focusedField: 'start' | 'end';
5
- draftRange: ZonedRange;
6
- disabled?: boolean;
7
- onHourSelect: (field: 'start' | 'end', hour: number) => void;
8
- onMinuteSelect: (field: 'start' | 'end', minute: number) => void;
9
- timeListRefs: React.MutableRefObject<{
10
- start: {
11
- hour: HTMLDivElement | null;
12
- minute: HTMLDivElement | null;
13
- };
14
- end: {
15
- hour: HTMLDivElement | null;
16
- minute: HTMLDivElement | null;
17
- };
18
- }>;
19
- }
20
- declare const TimeSelector: React.FC<TimeSelectorProps>;
21
- export default TimeSelector;
@@ -1,5 +0,0 @@
1
- export declare const DEFAULT_FORMAT = "YYYY-MM-DD HH:mm";
2
- export declare const DEFAULT_TIME_FORMAT = "HH:mm";
3
- export declare const HOURS: number[];
4
- export declare const MINUTES: number[];
5
- export declare const MONTHS: string[];
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { RangePickerProps } from './types';
3
- declare const RangePicker: React.FC<RangePickerProps>;
4
- export default RangePicker;
@@ -1,23 +0,0 @@
1
- import { Temporal } from 'temporal-polyfill';
2
- import { Locale } from '../../locale/types';
3
- export type ZonedRange = [Temporal.ZonedDateTime, Temporal.ZonedDateTime];
4
- export interface RangePickerProps {
5
- value: [
6
- Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime,
7
- Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime
8
- ];
9
- format?: string;
10
- showTimeFormat?: string;
11
- showTime?: boolean | {
12
- format?: string;
13
- };
14
- onChange?: (value: ZonedRange, dateString: [string, string]) => void;
15
- onOk?: (value: ZonedRange, dateString: [string, string]) => void;
16
- timeZone?: string;
17
- disabled?: boolean;
18
- placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
19
- autoAdjustOverflow?: boolean;
20
- getPopupContainer?: () => HTMLElement;
21
- matchTriggerWidth?: boolean;
22
- locale?: string | Locale;
23
- }
@@ -1,2 +0,0 @@
1
- import { Temporal } from 'temporal-polyfill';
2
- export declare const compareDates: (a: Temporal.PlainDate, b: Temporal.PlainDate) => number;
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { CalendarSearchEvent } from '../../types/search';
3
- interface MobileSearchDialogProps {
4
- isOpen: boolean;
5
- onClose: () => void;
6
- keyword: string;
7
- onSearchChange: (value: string) => void;
8
- results: CalendarSearchEvent[];
9
- loading: boolean;
10
- onResultClick?: (event: CalendarSearchEvent) => void;
11
- emptyText?: string | Record<string, string>;
12
- }
13
- declare const MobileSearchDialog: React.FC<MobileSearchDialogProps>;
14
- export default MobileSearchDialog;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { CalendarSearchEvent } from '../../types/search';
3
- interface SearchDrawerProps {
4
- isOpen: boolean;
5
- onClose: () => void;
6
- loading: boolean;
7
- results: CalendarSearchEvent[];
8
- keyword: string;
9
- onResultClick?: (event: CalendarSearchEvent) => void;
10
- emptyText?: string | Record<string, string>;
11
- }
12
- declare const SearchDrawer: React.FC<SearchDrawerProps>;
13
- export default SearchDrawer;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { CalendarSearchEvent } from '../../types/search';
3
- interface SearchResultsListProps {
4
- loading: boolean;
5
- results: CalendarSearchEvent[];
6
- keyword: string;
7
- onResultClick?: (event: CalendarSearchEvent) => void;
8
- emptyText?: string | Record<string, string>;
9
- }
10
- declare const SearchResultsList: React.FC<SearchResultsListProps>;
11
- export default SearchResultsList;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { CalendarSidebarRenderProps } from '../../types';
3
- declare const DefaultCalendarSidebar: React.FC<CalendarSidebarRenderProps>;
4
- export default DefaultCalendarSidebar;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { CalendarType } from '../../../types';
3
- interface CalendarListProps {
4
- calendars: CalendarType[];
5
- onToggleVisibility: (id: string, visible: boolean) => void;
6
- onReorder: (fromIndex: number, toIndex: number) => void;
7
- onRename: (id: string, newName: string) => void;
8
- onContextMenu: (e: React.MouseEvent, id: string) => void;
9
- editingId: string | null;
10
- setEditingId: (id: string | null) => void;
11
- activeContextMenuCalendarId?: string | null;
12
- isDraggable?: boolean;
13
- isEditable?: boolean;
14
- }
15
- export declare const CalendarList: React.FC<CalendarListProps>;
16
- export {};
@@ -1,14 +0,0 @@
1
- import React from 'react';
2
- import { CalendarType } from '../../../types';
3
- interface DeleteCalendarDialogProps {
4
- calendarId: string;
5
- calendarName: string;
6
- calendars: CalendarType[];
7
- step: 'initial' | 'confirm_delete';
8
- onStepChange: (step: 'initial' | 'confirm_delete') => void;
9
- onConfirmDelete: () => void;
10
- onCancel: () => void;
11
- onMergeSelect: (targetId: string) => void;
12
- }
13
- export declare const DeleteCalendarDialog: React.FC<DeleteCalendarDialogProps>;
14
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { CalendarType } from '../../../types';
3
- interface ImportCalendarDialogProps {
4
- calendars: CalendarType[];
5
- filename: string;
6
- onConfirm: (targetCalendarId: string) => void;
7
- onCancel: () => void;
8
- }
9
- export declare const NEW_CALENDAR_ID = "new-calendar";
10
- export declare const ImportCalendarDialog: React.FC<ImportCalendarDialogProps>;
11
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface MergeCalendarDialogProps {
3
- sourceName: string;
4
- targetName: string;
5
- onConfirm: () => void;
6
- onCancel: () => void;
7
- }
8
- export declare const MergeCalendarDialog: React.FC<MergeCalendarDialogProps>;
9
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { CalendarType } from '../../../types';
3
- interface MergeMenuItemProps {
4
- calendars: CalendarType[];
5
- currentCalendarId: string;
6
- onMergeSelect: (targetId: string) => void;
7
- }
8
- export declare const MergeMenuItem: React.FC<MergeMenuItemProps>;
9
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface SidebarHeaderProps {
3
- isCollapsed: boolean;
4
- onCollapseToggle: () => void;
5
- }
6
- export declare const SidebarHeader: React.FC<SidebarHeaderProps>;
7
- export {};
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import { CalendarApp } from '@/core';
3
- import { Event, EventDetailContentRenderer, EventDetailDialogRenderer } from '@/types';
4
- interface AllDayRowProps {
5
- app: CalendarApp;
6
- weekDaysLabels: string[];
7
- mobileWeekDaysLabels: string[];
8
- weekDates: Array<{
9
- date: number;
10
- month: string;
11
- fullDate: Date;
12
- isToday: boolean;
13
- }>;
14
- currentWeekStart: Date;
15
- gridWidth: string;
16
- allDayAreaHeight: number;
17
- organizedAllDaySegments: any[];
18
- allDayLabelText: string;
19
- isMobile: boolean;
20
- isTouch: boolean;
21
- calendarRef: React.RefObject<HTMLDivElement>;
22
- allDayRowRef: React.RefObject<HTMLDivElement>;
23
- topFrozenContentRef: React.RefObject<HTMLDivElement>;
24
- ALL_DAY_HEIGHT: number;
25
- HOUR_HEIGHT: number;
26
- FIRST_HOUR: number;
27
- dragState: any;
28
- isDragging: boolean;
29
- handleMoveStart: any;
30
- handleResizeStart: any;
31
- handleEventUpdate: (event: Event) => void;
32
- handleEventDelete: (id: string) => void;
33
- newlyCreatedEventId: string | null;
34
- setNewlyCreatedEventId: (id: string | null) => void;
35
- selectedEventId: string | null;
36
- setSelectedEventId: (id: string | null) => void;
37
- detailPanelEventId: string | null;
38
- setDetailPanelEventId: (id: string | null) => void;
39
- handleCreateAllDayEvent?: (e: React.MouseEvent, dayIndex: number) => void;
40
- handleDragOver: (e: React.DragEvent) => void;
41
- handleDrop: (e: React.DragEvent, date: Date, hour?: number, allDay?: boolean) => void;
42
- customDetailPanelContent?: EventDetailContentRenderer;
43
- customEventDetailDialog?: EventDetailDialogRenderer;
44
- events: Event[];
45
- setDraftEvent: (event: Event | null) => void;
46
- setIsDrawerOpen: (isOpen: boolean) => void;
47
- }
48
- export declare const AllDayRow: React.FC<AllDayRowProps>;
49
- export {};
@@ -1,2 +0,0 @@
1
- import { DragIndicatorRenderer } from '@/types/dragIndicator';
2
- export declare const DefaultDragIndicatorRenderer: DragIndicatorRenderer;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import { DragIndicatorProps, DragIndicatorRenderer } from '@/types/dragIndicator';
3
- interface DragIndicatorComponentProps extends DragIndicatorProps {
4
- renderer?: DragIndicatorRenderer;
5
- }
6
- declare const DragIndicatorComponent: React.FC<DragIndicatorComponentProps>;
7
- export default DragIndicatorComponent;
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import { CalendarApp } from '@/core';
3
- import { EventLayout, Event, EventDetailContentRenderer, EventDetailDialogRenderer } from '@/types';
4
- interface TimeGridProps {
5
- app: CalendarApp;
6
- timeSlots: Array<{
7
- hour: number;
8
- label: string;
9
- }>;
10
- weekDaysLabels: string[];
11
- currentWeekStart: Date;
12
- currentWeekEvents: Event[];
13
- eventLayouts: Map<number, Map<string, EventLayout>>;
14
- gridWidth: string;
15
- isMobile: boolean;
16
- isTouch: boolean;
17
- scrollerRef: React.RefObject<HTMLDivElement>;
18
- timeGridRef: React.RefObject<HTMLDivElement>;
19
- leftFrozenContentRef: React.RefObject<HTMLDivElement>;
20
- calendarRef: React.RefObject<HTMLDivElement>;
21
- handleScroll: (e: React.UIEvent<HTMLDivElement>) => void;
22
- handleCreateStart?: (e: React.MouseEvent | React.TouchEvent, dayIndex: number, hour: number) => void;
23
- handleTouchStart: (e: React.TouchEvent, dayIndex: number, hour: number) => void;
24
- handleTouchEnd: () => void;
25
- handleTouchMove: () => void;
26
- handleDragOver: (e: React.DragEvent) => void;
27
- handleDrop: (e: React.DragEvent, date: Date, hour?: number, allDay?: boolean) => void;
28
- dragState: any;
29
- isDragging: boolean;
30
- handleMoveStart: any;
31
- handleResizeStart: any;
32
- handleEventUpdate: (event: Event) => void;
33
- handleEventDelete: (id: string) => void;
34
- newlyCreatedEventId: string | null;
35
- setNewlyCreatedEventId: (id: string | null) => void;
36
- selectedEventId: string | null;
37
- setSelectedEventId: (id: string | null) => void;
38
- detailPanelEventId: string | null;
39
- setDetailPanelEventId: (id: string | null) => void;
40
- customDetailPanelContent?: EventDetailContentRenderer;
41
- customEventDetailDialog?: EventDetailDialogRenderer;
42
- events: Event[];
43
- setDraftEvent: (event: Event | null) => void;
44
- setIsDrawerOpen: (isOpen: boolean) => void;
45
- isCurrentWeek: boolean;
46
- currentTime: Date | null;
47
- HOUR_HEIGHT: number;
48
- FIRST_HOUR: number;
49
- LAST_HOUR: number;
50
- }
51
- export declare const TimeGrid: React.FC<TimeGridProps>;
52
- export {};