@innosolutions/inno-calendar 1.0.35 → 1.0.38
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/AGENT.md +36 -1
- package/dist/agenda-widget-BsRtRyZ3.cjs +2 -0
- package/dist/agenda-widget-BsRtRyZ3.cjs.map +1 -0
- package/dist/{agenda-widget-CyRPG-1p.js → agenda-widget-CNUXKiQT.js} +723 -745
- package/dist/agenda-widget-CNUXKiQT.js.map +1 -0
- package/dist/components/event/event-card.d.ts +16 -1
- package/dist/components/event/event-card.d.ts.map +1 -1
- package/dist/components/event/event-page-transition.d.ts +32 -0
- package/dist/components/event/event-page-transition.d.ts.map +1 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +27 -26
- package/dist/components/inno-calendar.d.ts.map +1 -1
- package/dist/components/primitives/multi-day-banner.d.ts.map +1 -1
- package/dist/components/views/day-events-expansion.d.ts +51 -0
- package/dist/components/views/day-events-expansion.d.ts.map +1 -0
- package/dist/components/views/index.d.ts +1 -0
- package/dist/components/views/index.d.ts.map +1 -1
- package/dist/components/views/month-view.d.ts +14 -3
- package/dist/components/views/month-view.d.ts.map +1 -1
- package/dist/components/views/timeline-view.d.ts.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +139 -136
- package/dist/core/utils/date-utils.d.ts +31 -1
- package/dist/core/utils/date-utils.d.ts.map +1 -1
- package/dist/core/utils/event-utils.d.ts +40 -0
- package/dist/core/utils/event-utils.d.ts.map +1 -1
- package/dist/core/utils/position-utils.d.ts +5 -1
- package/dist/core/utils/position-utils.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +190 -186
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/{tailwind-calendar-BaJAw6io.cjs → tailwind-calendar-BqhSHRk0.cjs} +2 -2
- package/dist/{tailwind-calendar-BaJAw6io.cjs.map → tailwind-calendar-BqhSHRk0.cjs.map} +1 -1
- package/dist/{tailwind-calendar-D-8ALvNh.js → tailwind-calendar-BvWm9ry9.js} +16 -16
- package/dist/{tailwind-calendar-D-8ALvNh.js.map → tailwind-calendar-BvWm9ry9.js.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.mjs +380 -335
- package/dist/utils.mjs.map +1 -1
- package/dist/week-view-BGthazCB.js +3015 -0
- package/dist/week-view-BGthazCB.js.map +1 -0
- package/dist/week-view-DOvr2VIq.cjs +11 -0
- package/dist/week-view-DOvr2VIq.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/agenda-widget-CuQxfYVI.cjs +0 -2
- package/dist/agenda-widget-CuQxfYVI.cjs.map +0 -1
- package/dist/agenda-widget-CyRPG-1p.js.map +0 -1
- package/dist/week-view-5nw-Hvod.js +0 -2754
- package/dist/week-view-5nw-Hvod.js.map +0 -1
- package/dist/week-view-C0iWG7_6.cjs +0 -11
- package/dist/week-view-C0iWG7_6.cjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,205 +1,209 @@
|
|
|
1
|
-
import { A as t, a as s, B as n, C as r, b as o, D as i, E as l, I as E, I as d, S as u, c as g, T as C, U as D, V as S, W as
|
|
2
|
-
import { A as
|
|
3
|
-
import { CALENDAR_VIEWS as
|
|
4
|
-
import { C as
|
|
5
|
-
import { D as
|
|
6
|
-
import { D as
|
|
7
|
-
import { c as
|
|
8
|
-
import { u as
|
|
1
|
+
import { A as t, a as s, B as n, C as r, b as o, D as i, E as l, I as E, I as d, S as u, c as g, T as C, U as D, V as S, W as v, Y as T } from "./agenda-widget-CNUXKiQT.js";
|
|
2
|
+
import { A as p, B as O, C as _, D as f, a as y, b as c, c as m, E as R, d as H, M as A, e as F, f as U, P, g as M, h as N, i as V, T as W, j as B, k as L, l as h, m as k, n as b, W as w, o as x, p as Y } from "./week-view-BGthazCB.js";
|
|
3
|
+
import { CALENDAR_VIEWS as K, DEFAULT_BUSINESS_HOURS as j, DEFAULT_HEADER_HEIGHT as X, DEFAULT_HOUR_HEIGHT as q, DEFAULT_PREFERENCES as z, DEFAULT_RESOURCE_WIDTH as J, DEFAULT_SLOT_HEIGHT as Q, DEFAULT_VIEW_CONFIGS as Z, DEFAULT_VISIBLE_HOURS as $, EVENT_COLORS as ee, EVENT_COLOR_CLASSES as ae, HEX_TO_EVENT_COLOR as te, HOURS_IN_DAY as se, MINUTES_IN_HOUR as ne, MIN_EVENT_HEIGHT as re, MS_PER_DAY as oe, MS_PER_HOUR as ie, MS_PER_MINUTE as le, addDays as Ee, addHours as de, addMinutes as ue, addMonths as ge, addWeeks as Ce, addYears as De, applyEventFilters as Se, calculateEventPosition as ve, calculateOverlappingPositions as Te, calculateSelectionOverlay as Ie, detectAllDayEvent as pe, differenceInDays as Oe, differenceInHours as _e, differenceInMilliseconds as fe, differenceInMinutes as ye, eachDayOfInterval as ce, eachHourOfInterval as me, endOfDay as Re, endOfMonth as He, endOfWeek as Ae, endOfYear as Fe, eventsOverlap as Ue, filterEventsByDateRange as Pe, filterEventsByResource as Me, filterEventsByScheduleType as Ne, filterEventsBySearch as Ve, filterOutCanceled as We, formatDateISO as Be, formatEventTimeDisplay as Le, formatHourLabel as he, formatTime as ke, generateHourLabels as be, generateMonthCells as we, generateMonthGrid as xe, generateTimeSlots as Ye, generateWeekCells as Ge, generateYearCells as Ke, getAllDayEvents as je, getDayOfWeek as Xe, getDaysInMonth as qe, getDecimalHours as ze, getEventColor as Je, getEventDurationMinutes as Qe, getEventsCountInView as Ze, getEventsForDay as $e, getEventsInRange as ea, getMonthNames as aa, getMultiDayEvents as ta, getOverlappingGroups as sa, getRangeText as na, getTimedEvents as ra, getViewDateRange as oa, getViewTitle as ia, getVisibleHoursArray as la, getWeekDays as Ea, getWeekNumber as da, getWeekdayHeaders as ua, getWeekdayNames as ga, getWorkingHoursForDay as Ca, getYearMonths as Da, groupEventsByDate as Sa, groupEventsByResource as va, groupEventsByScheduleType as Ta, isAfter as Ia, isBefore as pa, isBetween as Oa, isMultiDayEvent as _a, isSameDay as fa, isSameMonth as ya, isSameWeek as ca, isSameYear as ma, isToday as Ra, isWeekend as Ha, isWorkingHour as Aa, maxDate as Fa, minDate as Ua, navigateNext as Pa, navigatePrev as Ma, navigateToday as Na, parseISO as Va, resolveEventColor as Wa, separateEventsByDuration as Ba, setTime as La, shouldShowEventTime as ha, sortEventsByDuration as ka, sortEventsByEnd as ba, sortEventsByStart as wa, startOfDay as xa, startOfMonth as Ya, startOfWeek as Ga, startOfYear as Ka, subDays as ja, subMonths as Xa, subWeeks as qa, subYears as za, timeToY as Ja, yToTime as Qa } from "./utils.mjs";
|
|
4
|
+
import { C as $a, I as et, I as at, D as tt, a as st, b as nt, P as rt, u as ot, c as it, d as lt, e as Et, f as dt, g as ut, d as gt, h as Ct, i as Dt, j as St, k as vt, l as Tt, m as It, n as pt, j as Ot, k as _t, l as ft, m as yt, n as ct, o as mt, o as Rt, p as Ht, p as At } from "./use-calendar-DR2emWYC.js";
|
|
5
|
+
import { D as Ut, T as Pt } from "./tailwind-calendar-BvWm9ry9.js";
|
|
6
|
+
import { D as Nt, S as Vt, u as Wt, a as Bt, b as Lt, c as ht } from "./slot-selection-context-D2eu2o-7.js";
|
|
7
|
+
import { c as bt } from "./index-DtaLkIY8.js";
|
|
8
|
+
import { u as xt, a as Yt, b as Gt } from "./use-slot-selection-BJHlyfxL.js";
|
|
9
9
|
export {
|
|
10
10
|
t as AgendaDropdown,
|
|
11
|
-
|
|
11
|
+
p as AgendaView,
|
|
12
12
|
s as AgendaWidget,
|
|
13
13
|
n as BadgeVariantSetting,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
O as Button,
|
|
15
|
+
K as CALENDAR_VIEWS,
|
|
16
16
|
r as Calendar,
|
|
17
17
|
o as CalendarFilterSidebar,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
_ as CalendarHeader,
|
|
19
|
+
$a as CalendarProvider,
|
|
20
|
+
j as DEFAULT_BUSINESS_HOURS,
|
|
21
|
+
X as DEFAULT_HEADER_HEIGHT,
|
|
22
|
+
q as DEFAULT_HOUR_HEIGHT,
|
|
23
|
+
z as DEFAULT_PREFERENCES,
|
|
24
|
+
J as DEFAULT_RESOURCE_WIDTH,
|
|
25
|
+
Q as DEFAULT_SLOT_HEIGHT,
|
|
26
|
+
Z as DEFAULT_VIEW_CONFIGS,
|
|
27
|
+
$ as DEFAULT_VISIBLE_HOURS,
|
|
28
28
|
i as DEFAULT_WEEK_WORKING_HOURS,
|
|
29
|
-
|
|
30
|
-
y as
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
ee as
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
f as DateNavigator,
|
|
30
|
+
y as DayEventsExpansion,
|
|
31
|
+
c as DaySlot,
|
|
32
|
+
m as DayView,
|
|
33
|
+
Ut as DefaultCalendar,
|
|
34
|
+
Nt as DragDropProvider,
|
|
35
|
+
ee as EVENT_COLORS,
|
|
36
|
+
ae as EVENT_COLOR_CLASSES,
|
|
37
|
+
R as EventBlock,
|
|
38
|
+
H as EventCard,
|
|
38
39
|
l as EventPopover,
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
te as HEX_TO_EVENT_COLOR,
|
|
41
|
+
se as HOURS_IN_DAY,
|
|
41
42
|
E as InnoCalendar,
|
|
42
|
-
|
|
43
|
+
et as InnoCalendarProvider,
|
|
43
44
|
d as IntegratedCalendar,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
at as IntegratedCalendarProvider,
|
|
46
|
+
ne as MINUTES_IN_HOUR,
|
|
47
|
+
re as MIN_EVENT_HEIGHT,
|
|
48
|
+
oe as MS_PER_DAY,
|
|
49
|
+
ie as MS_PER_HOUR,
|
|
50
|
+
le as MS_PER_MINUTE,
|
|
51
|
+
A as MonthView,
|
|
52
|
+
F as MultiDayBanner,
|
|
53
|
+
U as MultiDayEventBar,
|
|
54
|
+
tt as PREFERENCES_DEFAULT_SLOT_DURATION,
|
|
55
|
+
st as PREFERENCES_DEFAULT_VISIBLE_HOURS,
|
|
56
|
+
nt as PREFERENCES_DEFAULT_WORKING_HOURS,
|
|
57
|
+
rt as PREFERENCES_STORAGE_KEY,
|
|
58
|
+
P as Popover,
|
|
59
|
+
M as PopoverAnchor,
|
|
60
|
+
N as PopoverContent,
|
|
61
|
+
V as PopoverTrigger,
|
|
61
62
|
u as ScheduleTypeFilter,
|
|
62
63
|
g as SlotDurationSetting,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Vt as SlotSelectionProvider,
|
|
65
|
+
Pt as TailwindCalendar,
|
|
66
|
+
W as TimeSlot,
|
|
66
67
|
C as TimelineView,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
B as TodayButton,
|
|
69
|
+
L as Tooltip,
|
|
70
|
+
h as TooltipContent,
|
|
71
|
+
k as TooltipProvider,
|
|
72
|
+
b as TooltipTrigger,
|
|
72
73
|
D as UserFilter,
|
|
73
74
|
S as VisibleHoursSetting,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
75
|
+
w as WeekView,
|
|
76
|
+
v as WorkingHoursSetting,
|
|
77
|
+
T as YearView,
|
|
78
|
+
Ee as addDays,
|
|
79
|
+
de as addHours,
|
|
80
|
+
ue as addMinutes,
|
|
81
|
+
ge as addMonths,
|
|
82
|
+
Ce as addWeeks,
|
|
83
|
+
De as addYears,
|
|
84
|
+
Se as applyEventFilters,
|
|
85
|
+
x as buttonVariants,
|
|
86
|
+
ve as calculateEventPosition,
|
|
86
87
|
Te as calculateOverlappingPositions,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Oe as
|
|
91
|
-
_e as
|
|
92
|
-
fe as
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
Ie as calculateSelectionOverlay,
|
|
89
|
+
bt as cn,
|
|
90
|
+
pe as detectAllDayEvent,
|
|
91
|
+
Oe as differenceInDays,
|
|
92
|
+
_e as differenceInHours,
|
|
93
|
+
fe as differenceInMilliseconds,
|
|
94
|
+
ye as differenceInMinutes,
|
|
95
|
+
ce as eachDayOfInterval,
|
|
96
|
+
me as eachHourOfInterval,
|
|
95
97
|
Re as endOfDay,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
Ra as
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
98
|
+
He as endOfMonth,
|
|
99
|
+
Ae as endOfWeek,
|
|
100
|
+
Fe as endOfYear,
|
|
101
|
+
Ue as eventsOverlap,
|
|
102
|
+
Pe as filterEventsByDateRange,
|
|
103
|
+
Me as filterEventsByResource,
|
|
104
|
+
Ne as filterEventsByScheduleType,
|
|
105
|
+
Ve as filterEventsBySearch,
|
|
106
|
+
We as filterOutCanceled,
|
|
107
|
+
Be as formatDateISO,
|
|
108
|
+
Le as formatEventTimeDisplay,
|
|
109
|
+
he as formatHourLabel,
|
|
110
|
+
ke as formatTime,
|
|
111
|
+
be as generateHourLabels,
|
|
112
|
+
we as generateMonthCells,
|
|
113
|
+
xe as generateMonthGrid,
|
|
114
|
+
Ye as generateTimeSlots,
|
|
115
|
+
Ge as generateWeekCells,
|
|
116
|
+
Ke as generateYearCells,
|
|
117
|
+
je as getAllDayEvents,
|
|
118
|
+
Xe as getDayOfWeek,
|
|
119
|
+
qe as getDaysInMonth,
|
|
120
|
+
ze as getDecimalHours,
|
|
121
|
+
Je as getEventColor,
|
|
122
|
+
Y as getEventColorClasses,
|
|
123
|
+
Qe as getEventDurationMinutes,
|
|
124
|
+
Ze as getEventsCountInView,
|
|
125
|
+
$e as getEventsForDay,
|
|
126
|
+
ea as getEventsInRange,
|
|
127
|
+
aa as getMonthNames,
|
|
128
|
+
ta as getMultiDayEvents,
|
|
129
|
+
sa as getOverlappingGroups,
|
|
130
|
+
na as getRangeText,
|
|
131
|
+
ra as getTimedEvents,
|
|
132
|
+
oa as getViewDateRange,
|
|
133
|
+
ia as getViewTitle,
|
|
134
|
+
la as getVisibleHoursArray,
|
|
135
|
+
Ea as getWeekDays,
|
|
136
|
+
da as getWeekNumber,
|
|
137
|
+
ua as getWeekdayHeaders,
|
|
138
|
+
ga as getWeekdayNames,
|
|
139
|
+
Ca as getWorkingHoursForDay,
|
|
140
|
+
Da as getYearMonths,
|
|
141
|
+
Sa as groupEventsByDate,
|
|
142
|
+
va as groupEventsByResource,
|
|
143
|
+
Ta as groupEventsByScheduleType,
|
|
144
|
+
Ia as isAfter,
|
|
145
|
+
pa as isBefore,
|
|
146
|
+
Oa as isBetween,
|
|
147
|
+
_a as isMultiDayEvent,
|
|
148
|
+
fa as isSameDay,
|
|
149
|
+
ya as isSameMonth,
|
|
150
|
+
ca as isSameWeek,
|
|
151
|
+
ma as isSameYear,
|
|
152
|
+
Ra as isToday,
|
|
153
|
+
Ha as isWeekend,
|
|
154
|
+
Aa as isWorkingHour,
|
|
155
|
+
Fa as maxDate,
|
|
156
|
+
Ua as minDate,
|
|
157
|
+
Pa as navigateNext,
|
|
158
|
+
Ma as navigatePrev,
|
|
159
|
+
Na as navigateToday,
|
|
160
|
+
Va as parseISO,
|
|
161
|
+
Wa as resolveEventColor,
|
|
162
|
+
Ba as separateEventsByDuration,
|
|
163
|
+
La as setTime,
|
|
164
|
+
ha as shouldShowEventTime,
|
|
165
|
+
ka as sortEventsByDuration,
|
|
166
|
+
ba as sortEventsByEnd,
|
|
167
|
+
wa as sortEventsByStart,
|
|
168
|
+
xa as startOfDay,
|
|
169
|
+
Ya as startOfMonth,
|
|
170
|
+
Ga as startOfWeek,
|
|
171
|
+
Ka as startOfYear,
|
|
172
|
+
ja as subDays,
|
|
173
|
+
Xa as subMonths,
|
|
174
|
+
qa as subWeeks,
|
|
175
|
+
za as subYears,
|
|
176
|
+
Ja as timeToY,
|
|
177
|
+
ot as useAdvancedPreferences,
|
|
178
|
+
it as useCalendar,
|
|
179
|
+
lt as useCalendarContext,
|
|
180
|
+
Et as useCalendarDate,
|
|
181
|
+
dt as useCalendarEvents,
|
|
182
|
+
ut as useCalendarFilters,
|
|
183
|
+
gt as useCalendarFromContext,
|
|
184
|
+
Ct as useCalendarPreferences,
|
|
185
|
+
xt as useCalendarTimeConfig,
|
|
186
|
+
Dt as useCalendarView,
|
|
187
|
+
Wt as useDragDrop,
|
|
188
|
+
St as useInnoCalendar,
|
|
189
|
+
vt as useInnoCalendarEvents,
|
|
190
|
+
Tt as useInnoCalendarFilters,
|
|
191
|
+
It as useInnoCalendarTimeConfig,
|
|
192
|
+
pt as useInnoCalendarView,
|
|
193
|
+
Ot as useIntegratedCalendar,
|
|
194
|
+
_t as useIntegratedCalendarEvents,
|
|
195
|
+
ft as useIntegratedCalendarFilters,
|
|
196
|
+
yt as useIntegratedCalendarTimeConfig,
|
|
197
|
+
ct as useIntegratedCalendarView,
|
|
198
|
+
mt as useOptionalCalendar,
|
|
199
|
+
Rt as useOptionalCalendarContext,
|
|
200
|
+
Bt as useOptionalDragDrop,
|
|
201
|
+
Ht as useOptionalInnoCalendar,
|
|
202
|
+
At as useOptionalIntegratedCalendar,
|
|
203
|
+
Lt as useOptionalSlotSelection,
|
|
204
|
+
Yt as usePreferences,
|
|
205
|
+
Gt as useSlotSelection,
|
|
206
|
+
ht as useSlotSelectionContext,
|
|
207
|
+
Qa as yToTime
|
|
204
208
|
};
|
|
205
209
|
//# sourceMappingURL=index.mjs.map
|
package/dist/presets/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../tailwind-calendar-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../tailwind-calendar-BqhSHRk0.cjs");exports.DefaultCalendar=a.DefaultCalendar;exports.TailwindCalendar=a.TailwindCalendar;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/presets/index.mjs
CHANGED
package/dist/styles/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.inno-calendar-disabled-hour,.bg-calendar-disabled-hour{background-image:repeating-linear-gradient(-60deg,var(--inno-border-color, #e5e7eb) 0 .5px,transparent .5px 8px)}:root{--inno-border-color: #e5e7eb;--inno-background: #ffffff;--inno-foreground: #111827;--inno-muted: #f3f4f6;--inno-muted-foreground: #6b7280;--inno-primary: #3b82f6;--inno-primary-foreground: #ffffff;--inno-event-blue: #3b82f6;--inno-event-green: #22c55e;--inno-event-red: #ef4444;--inno-event-yellow: #eab308;--inno-event-purple: #a855f7;--inno-event-orange: #f97316;--inno-event-pink: #ec4899;--inno-event-teal: #14b8a6;--inno-event-gray: #6b7280;--inno-event-indigo: #6366f1;--inno-hour-height: 96px;--inno-header-height: 56px;--inno-sidebar-width: 200px}.dark{--inno-border-color: #374151;--inno-background: #111827;--inno-foreground: #f9fafb;--inno-muted: #1f2937;--inno-muted-foreground: #9ca3af}.inno-calendar-root,.inno-calendar-root *{scrollbar-width:thin;scrollbar-color:#d4d4d8 transparent}.inno-calendar-root ::-webkit-scrollbar,.inno-calendar-root::-webkit-scrollbar{width:10px;height:10px}.inno-calendar-root ::-webkit-scrollbar-track,.inno-calendar-root::-webkit-scrollbar-track{background:transparent}.inno-calendar-root ::-webkit-scrollbar-thumb,.inno-calendar-root::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-calendar-root ::-webkit-scrollbar-thumb:hover,.inno-calendar-root::-webkit-scrollbar-thumb:hover{background:#a1a1aa;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-calendar-root ::-webkit-scrollbar-corner,.inno-calendar-root::-webkit-scrollbar-corner{background:transparent}.inno-calendar-scrollbar::-webkit-scrollbar{width:10px;height:10px}.inno-calendar-scrollbar::-webkit-scrollbar-track{background:transparent}.inno-calendar-scrollbar::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-calendar-scrollbar::-webkit-scrollbar-thumb:hover{background:#a1a1aa;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-scroll-right-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);z-index:30;display:flex;align-items:center;justify-content:center;width:28px;height:48px;border-radius:8px;border:1px solid #e4e4e7;background:#ffffffeb;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 1px 4px #00000014;cursor:pointer;color:#71717a;transition:top .15s ease,opacity .2s ease,background .15s ease,color .15s ease;opacity:1}.inno-scroll-right-btn:hover{background:#f4f4f5;color:#3f3f46;box-shadow:0 2px 8px #0000001a}.inno-scroll-right-btn:active{background:#e4e4e7}.inno-scroll-right-btn[data-hidden=true]{opacity:0;pointer-events:none}.inno-calendar-selection{background-color:#3b82f626;border:2px solid var(--inno-primary, #3b82f6);border-radius:4px;pointer-events:none}.inno-calendar-current-time{position:absolute;left:0;right:0;height:2px;background-color:#ef4444;z-index:20}.inno-calendar-current-time:before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;background-color:#ef4444;border-radius:50%}.inno-calendar-event{transition:transform .1s ease,box-shadow .1s ease}.inno-calendar-event:hover{transform:translateY(-1px);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.inno-calendar-event:active{transform:translateY(0)}.inno-calendar-event-canceled{opacity:.6;text-decoration:line-through}.inno-calendar-no-scrollbar::-webkit-scrollbar{display:none}.inno-calendar-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}@keyframes inno-spin{to{transform:rotate(360deg)}}.inno-calendar-loading-overlay{position:absolute;inset:0;z-index:25;display:flex;align-items:center;justify-content:center;background:#ffffff8c;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-radius:8px;pointer-events:none;animation:inno-fade-in .15s ease}@keyframes inno-fade-in{0%{opacity:0}to{opacity:1}}.inno-calendar-spinner{width:28px;height:28px;border:3px solid #e4e4e7;border-top-color:var(--inno-primary, #3b82f6);border-radius:50%;animation:inno-spin .7s linear infinite}.dark .inno-calendar-loading-overlay{background:#1118278c}.dark .inno-calendar-spinner{border-color:#374151;border-top-color:var(--inno-primary, #3b82f6)}
|
|
1
|
+
.inno-calendar-disabled-hour,.bg-calendar-disabled-hour{background-image:repeating-linear-gradient(-60deg,var(--inno-border-color, #e5e7eb) 0 .5px,transparent .5px 8px)}:root{--inno-border-color: #e5e7eb;--inno-background: #ffffff;--inno-foreground: #111827;--inno-muted: #f3f4f6;--inno-muted-foreground: #6b7280;--inno-primary: #3b82f6;--inno-primary-foreground: #ffffff;--inno-event-blue: #3b82f6;--inno-event-green: #22c55e;--inno-event-red: #ef4444;--inno-event-yellow: #eab308;--inno-event-purple: #a855f7;--inno-event-orange: #f97316;--inno-event-pink: #ec4899;--inno-event-teal: #14b8a6;--inno-event-gray: #6b7280;--inno-event-indigo: #6366f1;--inno-hour-height: 96px;--inno-header-height: 56px;--inno-sidebar-width: 200px}.dark{--inno-border-color: #374151;--inno-background: #111827;--inno-foreground: #f9fafb;--inno-muted: #1f2937;--inno-muted-foreground: #9ca3af}.inno-calendar-root,.inno-calendar-root *{scrollbar-width:thin;scrollbar-color:#d4d4d8 transparent}.inno-calendar-root ::-webkit-scrollbar,.inno-calendar-root::-webkit-scrollbar{width:10px;height:10px}.inno-calendar-root ::-webkit-scrollbar-track,.inno-calendar-root::-webkit-scrollbar-track{background:transparent}.inno-calendar-root ::-webkit-scrollbar-thumb,.inno-calendar-root::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-calendar-root ::-webkit-scrollbar-thumb:hover,.inno-calendar-root::-webkit-scrollbar-thumb:hover{background:#a1a1aa;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-calendar-root ::-webkit-scrollbar-corner,.inno-calendar-root::-webkit-scrollbar-corner{background:transparent}.inno-calendar-scrollbar::-webkit-scrollbar{width:10px;height:10px}.inno-calendar-scrollbar::-webkit-scrollbar-track{background:transparent}.inno-calendar-scrollbar::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-calendar-scrollbar::-webkit-scrollbar-thumb:hover{background:#a1a1aa;border-radius:9999px;border:3px solid transparent;background-clip:padding-box}.inno-scroll-right-btn{position:absolute;right:4px;top:50%;transform:translateY(-50%);z-index:30;display:flex;align-items:center;justify-content:center;width:28px;height:48px;border-radius:8px;border:1px solid #e4e4e7;background:#ffffffeb;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 1px 4px #00000014;cursor:pointer;color:#71717a;transition:top .15s ease,opacity .2s ease,background .15s ease,color .15s ease;opacity:1}.inno-scroll-right-btn:hover{background:#f4f4f5;color:#3f3f46;box-shadow:0 2px 8px #0000001a}.inno-scroll-right-btn:active{background:#e4e4e7}.inno-scroll-right-btn[data-hidden=true]{opacity:0;pointer-events:none}.inno-calendar-selection{background-color:#3b82f626;border:2px solid var(--inno-primary, #3b82f6);border-radius:4px;pointer-events:none}.inno-calendar-current-time{position:absolute;left:0;right:0;height:2px;background-color:#ef4444;z-index:20}.inno-calendar-current-time:before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;background-color:#ef4444;border-radius:50%}.inno-calendar-event{transition:transform .1s ease,box-shadow .1s ease}.inno-calendar-event:hover{transform:translateY(-1px);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.inno-calendar-event:active{transform:translateY(0)}.inno-calendar-event-canceled{opacity:.6;text-decoration:line-through}.inno-calendar-no-scrollbar::-webkit-scrollbar{display:none}.inno-calendar-no-scrollbar{-ms-overflow-style:none;scrollbar-width:none}@keyframes inno-spin{to{transform:rotate(360deg)}}.inno-calendar-loading-overlay{position:absolute;inset:0;z-index:25;display:flex;align-items:center;justify-content:center;background:#ffffff8c;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);border-radius:8px;pointer-events:none;animation:inno-fade-in .15s ease}@keyframes inno-fade-in{0%{opacity:0}to{opacity:1}}.inno-calendar-spinner{width:28px;height:28px;border:3px solid #e4e4e7;border-top-color:var(--inno-primary, #3b82f6);border-radius:50%;animation:inno-spin .7s linear infinite}.dark .inno-calendar-loading-overlay{background:#1118278c}.dark .inno-calendar-spinner{border-color:#374151;border-top-color:var(--inno-primary, #3b82f6)}.ic-expansion-backdrop{position:fixed;inset:0;z-index:50;background:#00000040;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);transition:opacity .28s cubic-bezier(.32,.72,0,1)}.ic-expansion-backdrop[data-state=entering],.ic-expansion-backdrop[data-state=open]{opacity:1}.ic-expansion-backdrop[data-state=exiting],.ic-expansion-backdrop[data-state=closed]{opacity:0}.ic-expansion-panel{position:fixed;z-index:51;background:hsl(var(--background, 0 0% 100%));border:1px solid hsl(var(--border, 0 0% 89.8%));border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;overflow:hidden;transition:top .28s cubic-bezier(.32,.72,0,1),left .28s cubic-bezier(.32,.72,0,1),width .28s cubic-bezier(.32,.72,0,1),height .28s cubic-bezier(.32,.72,0,1),opacity .2s cubic-bezier(.32,.72,0,1),transform .28s cubic-bezier(.32,.72,0,1)}.dark .ic-expansion-backdrop{background:#00000080}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),s=require("react"),y=require("./week-view-
|
|
2
|
-
//# sourceMappingURL=tailwind-calendar-
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),y=require("./week-view-DOvr2VIq.cjs"),g=require("./utils.cjs"),ce=require("./index-D2U2F80P.cjs"),de={display:"flex",flexDirection:"column",height:"100%",minHeight:"400px",backgroundColor:"var(--ic-bg, #ffffff)",border:"1px solid var(--ic-border, #e5e7eb)",borderRadius:"var(--ic-radius, 0.5rem)",overflow:"hidden",fontFamily:'var(--ic-font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif)',fontSize:"var(--ic-font-size, 0.875rem)",color:"var(--ic-text, #111827)"},ue={borderBottom:"1px solid var(--ic-border, #e5e7eb)"},fe={flex:1,overflow:"auto"},he={display:"flex",alignItems:"center",justifyContent:"center",height:"16rem",color:"var(--ic-text-muted, #6b7280)"};function ye({events:d,resources:ee,scheduleTypes:G,initialView:R="week",initialDate:_,initialFilters:se,preferences:p,badgeVariant:n="colored",hideHeader:W=!1,availableViews:F=["day","week","month","agenda"],onEventClick:u,onSlotSelect:a,onViewChange:x,onDateChange:N,className:j="",style:H,headerActions:b,emptyState:i,children:ae}){const[f,T]=s.useState(R),[c,q]=s.useState(_??new Date),w=s.useMemo(()=>({...g.DEFAULT_PREFERENCES,...p}),[p]),k=s.useCallback(t=>{T(t),x?.(t)},[x]),h=s.useCallback(t=>{q(t),N?.(t)},[N]),C=s.useCallback(()=>{const t=g.navigatePrev(c,f);h(t)},[c,f,h]),I=s.useCallback(()=>{const t=g.navigateNext(c,f);h(t)},[c,f,h]),J=s.useCallback(()=>{const t=g.navigateToday();h(t)},[h]),l=s.useCallback(t=>{h(t),k("day")},[h,k]),P=s.useMemo(()=>({startHour:w.startHour,endHour:w.endHour}),[w.startHour,w.endHour]),o=w.firstDayOfWeek===0?0:1,A=()=>{switch(f){case"day":return r.jsx(y.DayView,{events:d,date:c,badgeVariant:n,visibleHours:P,slotDuration:w.slotDuration,...u&&{onEventClick:u},...a&&{onSlotSelect:a}});case"week":return r.jsx(y.WeekView,{events:d,date:c,badgeVariant:n,weekStartsOn:o,visibleHours:P,slotDuration:w.slotDuration,onDayClick:l,...u&&{onEventClick:u},...a&&{onSlotSelect:a}});case"month":return r.jsx(y.MonthView,{events:d,date:c,badgeVariant:n,weekStartsOn:o,onDayClick:l,...u&&{onEventClick:u},...a&&{onSlotSelect:a}});case"agenda":return r.jsx(y.AgendaView,{events:d,date:c,badgeVariant:n,...u&&{onEventClick:u},...i&&{emptyState:i}});default:return r.jsxs("div",{style:he,children:['View "',f,'" is not yet implemented']})}};return r.jsxs("div",{className:j,style:{...de,...H},children:[!W&&r.jsx("div",{style:ue,children:r.jsx(y.CalendarHeader,{view:f,currentDate:c,availableViews:F,onViewChange:k,onNavigate:t=>{t==="prev"?C():t==="next"?I():J()},actions:b,className:"p-3"})}),r.jsx("div",{style:fe,children:A()})]})}function xe({events:d,resources:ee,scheduleTypes:G=[],initialView:R="week",initialDate:_,initialFilters:se,preferences:p,badgeVariant:n="colored",hideHeader:W=!1,showFilterSidebar:F=!1,availableViews:u=["day","week","month","agenda"],onEventClick:a,onSlotSelect:x,onViewChange:N,onDateChange:j,onAddEvent:H,onFiltersChange:b,renderEvent:i,renderEventPopover:ae,renderFilterSidebar:f,renderHeader:T,settingsContent:c,filterContent:q,showSettings:w=!0,showTimelineViews:k=!1,className:h,headerActions:C,emptyState:I,children:J}){const[l,P]=s.useState(R),[o,A]=s.useState(_??new Date),[t,K]=s.useState([]),[O,Q]=s.useState([]),m=s.useMemo(()=>({...g.DEFAULT_PREFERENCES,...p}),[p]),V=s.useCallback(e=>{P(e),N?.(e)},[N]),D=s.useCallback(e=>{A(e),j?.(e)},[j]),z=s.useCallback(()=>{const e=g.navigatePrev(o,l);D(e)},[o,l,D]),U=s.useCallback(()=>{const e=g.navigateNext(o,l);D(e)},[o,l,D]),B=s.useCallback(()=>{const e=g.navigateToday();D(e)},[D]),S=s.useCallback(e=>{D(e),V("day")},[D,V]),X=s.useMemo(()=>({startHour:0,endHour:24}),[]),L=m.firstDayOfWeek===0?0:1,Y=s.useMemo(()=>{const e={};for(let v=0;v<=6;v++)v===0||v===6?m.showWeekends?v===6?e[v]={enabled:!0,from:8,to:12}:e[v]={enabled:!1,from:0,to:0}:e[v]={enabled:!1,from:0,to:0}:e[v]={enabled:!0,from:m.startHour,to:m.endHour};return e},[m.startHour,m.endHour,m.showWeekends]),te=s.useCallback(e=>{K(e),b?.({scheduleTypeIds:e,participantIds:O})},[b,O]),re=s.useCallback(e=>{Q(e),b?.({scheduleTypeIds:t,participantIds:e})},[b,t]),M=s.useMemo(()=>{if(i)return e=>i({event:e.event,view:l,variant:"full",position:{...e.position,zIndex:1},badgeVariant:n,...a&&{onClick:()=>a(e.event)}})},[i,l,n,a]),Z=s.useMemo(()=>{if(i)return e=>i({event:e.event,view:"month",variant:e.variant,badgeVariant:n,...a&&{onClick:()=>a(e.event)}})},[i,n,a]),$=s.useMemo(()=>{if(i)return e=>i({event:e.event,view:"agenda",variant:"block",badgeVariant:n,...a&&{onClick:()=>a(e.event)}})},[i,n,a]),ne=()=>{switch(l){case"day":return r.jsx(y.DayView,{events:d,date:o,badgeVariant:n,visibleHours:X,workingHours:Y,slotDuration:m.slotDuration,...a&&{onEventClick:a},...x&&{onSlotSelect:x},...M&&{renderEvent:M}});case"week":return r.jsx(y.WeekView,{events:d,date:o,badgeVariant:n,weekStartsOn:L,visibleHours:X,workingHours:Y,slotDuration:m.slotDuration,onDayClick:S,...a&&{onEventClick:a},...x&&{onSlotSelect:x},...M&&{renderEvent:M}});case"month":return r.jsx(y.MonthView,{events:d,date:o,badgeVariant:n,weekStartsOn:L,onDayClick:S,...a&&{onEventClick:a},...x&&{onSlotSelect:x},...Z&&{renderEvent:Z}});case"agenda":return r.jsx(y.AgendaView,{events:d,date:o,badgeVariant:n,...a&&{onEventClick:a},...I&&{emptyState:I},...$&&{renderEvent:$}});default:return r.jsxs("div",{className:"flex items-center justify-center h-64 text-gray-500",children:['View "',l,'" is not yet implemented']})}},ie=s.useCallback(e=>{e==="prev"?z():e==="next"?U():B()},[z,U,B]),E={view:l,currentDate:o,availableViews:u,onViewChange:V,onNavigate:ie,onNavigatePrev:z,onNavigateNext:U,onNavigateToday:B,...H&&{onAddEvent:H},...C&&{actions:C},className:"border-b border-gray-200 p-3"},le={...E,events:d,weekStartsOn:L,settingsContent:c,filterContent:q,showSettings:w,showTimelineViews:k},oe=s.useCallback(()=>{K([]),Q([]),b?.({scheduleTypeIds:[],participantIds:[]})},[b]);return r.jsxs("div",{className:ce.cn("flex h-full bg-white border border-gray-200 rounded-lg",h),children:[F&&r.jsx("div",{className:"w-64 border-r border-gray-200 flex-shrink-0",children:f?f({scheduleTypes:G,selectedScheduleTypeIds:t,selectedParticipantIds:O,onScheduleTypeChange:te,onParticipantChange:re,onClearAll:oe}):r.jsx("div",{className:"p-4 text-sm text-gray-500",children:"Filter sidebar not configured"})}),r.jsxs("div",{className:"flex flex-col flex-1 min-w-0",children:[!W&&(T?T(E):r.jsx(y.CalendarHeader,{...le})),r.jsx("div",{className:"flex-1 overflow-auto",children:ne()})]})]})}exports.DefaultCalendar=ye;exports.TailwindCalendar=xe;
|
|
2
|
+
//# sourceMappingURL=tailwind-calendar-BqhSHRk0.cjs.map
|