@innosolutions/inno-calendar 1.0.59 → 1.0.61
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 +1783 -1721
- package/README.md +279 -235
- package/dist/agenda-widget-D6E-NQK-.cjs +2 -0
- package/dist/agenda-widget-D6E-NQK-.cjs.map +1 -0
- package/dist/{agenda-widget-wrZfO67A.js → agenda-widget-DVj4CEZE.js} +1297 -1279
- package/dist/agenda-widget-DVj4CEZE.js.map +1 -0
- package/dist/components/event/event-card.d.ts.map +1 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +2 -2
- package/dist/components/primitives/scroll-navigator.d.ts +3 -1
- package/dist/components/primitives/scroll-navigator.d.ts.map +1 -1
- package/dist/components/views/timeline-view.d.ts +1 -1
- package/dist/components/views/timeline-view.d.ts.map +1 -1
- package/dist/core/context/inno-calendar-provider.d.ts.map +1 -1
- package/dist/core/context/slot-selection-context.d.ts +2 -0
- package/dist/core/context/slot-selection-context.d.ts.map +1 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +115 -114
- package/dist/core/types.d.ts +6 -18
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/utils/event-utils.d.ts.map +1 -1
- package/dist/core/utils/index.d.ts +1 -0
- package/dist/core/utils/index.d.ts.map +1 -1
- package/dist/core/utils/react-node-utils.d.ts +14 -0
- package/dist/core/utils/react-node-utils.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +207 -206
- package/dist/position-utils-BQpbtF6N.cjs +2 -0
- package/dist/position-utils-BQpbtF6N.cjs.map +1 -0
- package/dist/position-utils-DMVQFywD.js +936 -0
- package/dist/position-utils-DMVQFywD.js.map +1 -0
- package/dist/presets/index.cjs +1 -1
- package/dist/presets/index.mjs +1 -1
- package/dist/slot-selection-context-CRstOosL.js +604 -0
- package/dist/slot-selection-context-CRstOosL.js.map +1 -0
- package/dist/slot-selection-context-DBCZI2Dn.cjs +2 -0
- package/dist/slot-selection-context-DBCZI2Dn.cjs.map +1 -0
- package/dist/styles/index.css +1 -1
- package/dist/{tailwind-calendar-CVuxWXLY.js → tailwind-calendar-CNhXkxzW.js} +80 -80
- package/dist/{tailwind-calendar-CVuxWXLY.js.map → tailwind-calendar-CNhXkxzW.js.map} +1 -1
- package/dist/tailwind-calendar-VRvPJQwa.cjs +2 -0
- package/dist/{tailwind-calendar-DoG6s3PJ.cjs.map → tailwind-calendar-VRvPJQwa.cjs.map} +1 -1
- package/dist/{use-calendar-Clo9DFK4.js → use-calendar-D8XaVe44.js} +69 -69
- package/dist/{use-calendar-Clo9DFK4.js.map → use-calendar-D8XaVe44.js.map} +1 -1
- package/dist/use-calendar-DkT1_V3j.cjs +2 -0
- package/dist/{use-calendar-BEuelmSu.cjs.map → use-calendar-DkT1_V3j.cjs.map} +1 -1
- package/dist/{use-slot-selection-BCZKnZSM.js → use-slot-selection-CWRk_17s.js} +32 -32
- package/dist/{use-slot-selection-BCZKnZSM.js.map → use-slot-selection-CWRk_17s.js.map} +1 -1
- package/dist/use-slot-selection-Dj_tWg1O.cjs +2 -0
- package/dist/{use-slot-selection-Bwqwjiaq.cjs.map → use-slot-selection-Dj_tWg1O.cjs.map} +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.mjs +117 -920
- package/dist/utils.mjs.map +1 -1
- package/dist/week-view-C1Vu2ErD.cjs +11 -0
- package/dist/week-view-C1Vu2ErD.cjs.map +1 -0
- package/dist/{week-view-C1FxF_nk.js → week-view-DY167Wok.js} +1084 -1043
- package/dist/week-view-DY167Wok.js.map +1 -0
- package/package.json +138 -138
- package/dist/agenda-widget-BxZU4eGL.cjs +0 -2
- package/dist/agenda-widget-BxZU4eGL.cjs.map +0 -1
- package/dist/agenda-widget-wrZfO67A.js.map +0 -1
- package/dist/slot-selection-context-BwghpxKA.js +0 -597
- package/dist/slot-selection-context-BwghpxKA.js.map +0 -1
- package/dist/slot-selection-context-CHSaOPWP.cjs +0 -2
- package/dist/slot-selection-context-CHSaOPWP.cjs.map +0 -1
- package/dist/tailwind-calendar-DoG6s3PJ.cjs +0 -2
- package/dist/use-calendar-BEuelmSu.cjs +0 -2
- package/dist/use-slot-selection-Bwqwjiaq.cjs +0 -2
- package/dist/week-view-Bzpbti1B.cjs +0 -11
- package/dist/week-view-Bzpbti1B.cjs.map +0 -1
- package/dist/week-view-C1FxF_nk.js.map +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Recursively extracts plain text from a ReactNode tree.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* reactNodeToText("hello") // "hello"
|
|
8
|
+
* reactNodeToText(<span>hello <b>world</b></span>) // "hello world"
|
|
9
|
+
* reactNodeToText(null) // ""
|
|
10
|
+
* reactNodeToText(42) // "42"
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare function reactNodeToText(node: ReactNode): string;
|
|
14
|
+
//# sourceMappingURL=react-node-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-node-utils.d.ts","sourceRoot":"","sources":["../../../src/core/utils/react-node-utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAkB,MAAM,OAAO,CAAC;AAEvD;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,CAUvD"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./agenda-widget-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./agenda-widget-D6E-NQK-.cjs"),t=require("./week-view-C1Vu2ErD.cjs"),e=require("./position-utils-BQpbtF6N.cjs"),r=require("./use-calendar-DkT1_V3j.cjs"),i=require("./tailwind-calendar-VRvPJQwa.cjs"),a=require("./slot-selection-context-DBCZI2Dn.cjs"),s=require("./index-D2U2F80P.cjs"),o=require("./use-slot-selection-Dj_tWg1O.cjs");exports.AgendaDropdown=n.AgendaDropdown;exports.AgendaWidget=n.AgendaWidget;exports.BadgeVariantSetting=n.BadgeVariantSetting;exports.Calendar=n.Calendar;exports.CalendarFilterSidebar=n.CalendarFilterSidebar;exports.DEFAULT_WEEK_WORKING_HOURS=n.DEFAULT_WEEK_WORKING_HOURS;exports.EventPopover=n.EventPopover;exports.InnoCalendar=n.InnoCalendar;exports.IntegratedCalendar=n.InnoCalendar;exports.ScheduleTypeFilter=n.ScheduleTypeFilter;exports.SlotDurationSetting=n.SlotDurationSetting;exports.TimelineView=n.TimelineView;exports.UserFilter=n.UserFilter;exports.VisibleHoursSetting=n.VisibleHoursSetting;exports.WorkingHoursSetting=n.WorkingHoursSetting;exports.YearView=n.YearView;exports.AgendaView=t.AgendaView;exports.Button=t.Button;exports.CalendarHeader=t.CalendarHeader;exports.DateNavigator=t.DateNavigator;exports.DayEventsExpansion=t.DayEventsExpansion;exports.DaySlot=t.DaySlot;exports.DayView=t.DayView;exports.Dialog=t.Dialog;exports.DialogClose=t.DialogClose;exports.DialogContent=t.DialogContent;exports.DialogDescription=t.DialogDescription;exports.DialogHeader=t.DialogHeader;exports.DialogTitle=t.DialogTitle;exports.DialogTrigger=t.DialogTrigger;exports.EventBlock=t.EventBlock;exports.EventCard=t.EventCard;exports.MonthView=t.MonthView;exports.MultiDayBanner=t.MultiDayBanner;exports.MultiDayEventBar=t.MultiDayEventBar;exports.Popover=t.Popover;exports.PopoverAnchor=t.PopoverAnchor;exports.PopoverContent=t.PopoverContent;exports.PopoverTrigger=t.PopoverTrigger;exports.Sheet=t.Sheet;exports.SheetClose=t.SheetClose;exports.SheetContent=t.SheetContent;exports.SheetDescription=t.SheetDescription;exports.SheetHeader=t.SheetHeader;exports.SheetTitle=t.SheetTitle;exports.SheetTrigger=t.SheetTrigger;exports.TimeSlot=t.TimeSlot;exports.TodayButton=t.TodayButton;exports.Tooltip=t.Tooltip;exports.TooltipContent=t.TooltipContent;exports.TooltipProvider=t.TooltipProvider;exports.TooltipTrigger=t.TooltipTrigger;exports.WeekView=t.WeekView;exports.buttonVariants=t.buttonVariants;exports.getEventColorClasses=t.getEventColorClasses;exports.CALENDAR_VIEWS=e.CALENDAR_VIEWS;exports.DEFAULT_BUSINESS_HOURS=e.DEFAULT_BUSINESS_HOURS;exports.DEFAULT_HEADER_HEIGHT=e.DEFAULT_HEADER_HEIGHT;exports.DEFAULT_HOUR_HEIGHT=e.DEFAULT_HOUR_HEIGHT;exports.DEFAULT_PREFERENCES=e.DEFAULT_PREFERENCES;exports.DEFAULT_RESOURCE_WIDTH=e.DEFAULT_RESOURCE_WIDTH;exports.DEFAULT_SLOT_HEIGHT=e.DEFAULT_SLOT_HEIGHT;exports.DEFAULT_VIEW_CONFIGS=e.DEFAULT_VIEW_CONFIGS;exports.DEFAULT_VISIBLE_HOURS=e.DEFAULT_VISIBLE_HOURS;exports.EVENT_COLORS=e.EVENT_COLORS;exports.EVENT_COLOR_CLASSES=e.EVENT_COLOR_CLASSES;exports.HEX_TO_EVENT_COLOR=e.HEX_TO_EVENT_COLOR;exports.HOURS_IN_DAY=e.HOURS_IN_DAY;exports.MINUTES_IN_HOUR=e.MINUTES_IN_HOUR;exports.MIN_EVENT_HEIGHT=e.MIN_EVENT_HEIGHT;exports.MS_PER_DAY=e.MS_PER_DAY;exports.MS_PER_HOUR=e.MS_PER_HOUR;exports.MS_PER_MINUTE=e.MS_PER_MINUTE;exports.addDays=e.addDays;exports.addHours=e.addHours;exports.addMinutes=e.addMinutes;exports.addMonths=e.addMonths;exports.addWeeks=e.addWeeks;exports.addYears=e.addYears;exports.applyEventFilters=e.applyEventFilters;exports.calculateEventPosition=e.calculateEventPosition;exports.calculateOverlappingPositions=e.calculateOverlappingPositions;exports.calculateSelectionOverlay=e.calculateSelectionOverlay;exports.detectAllDayEvent=e.detectAllDayEvent;exports.differenceInDays=e.differenceInDays;exports.differenceInHours=e.differenceInHours;exports.differenceInMilliseconds=e.differenceInMilliseconds;exports.differenceInMinutes=e.differenceInMinutes;exports.eachDayOfInterval=e.eachDayOfInterval;exports.eachHourOfInterval=e.eachHourOfInterval;exports.endOfDay=e.endOfDay;exports.endOfMonth=e.endOfMonth;exports.endOfWeek=e.endOfWeek;exports.endOfYear=e.endOfYear;exports.eventsOverlap=e.eventsOverlap;exports.filterEventsByDateRange=e.filterEventsByDateRange;exports.filterEventsByResource=e.filterEventsByResource;exports.filterEventsByScheduleType=e.filterEventsByScheduleType;exports.filterEventsBySearch=e.filterEventsBySearch;exports.filterOutCanceled=e.filterOutCanceled;exports.formatDateISO=e.formatDateISO;exports.formatEventTimeDisplay=e.formatEventTimeDisplay;exports.formatHourLabel=e.formatHourLabel;exports.formatTime=e.formatTime;exports.generateHourLabels=e.generateHourLabels;exports.generateMonthCells=e.generateMonthCells;exports.generateMonthGrid=e.generateMonthGrid;exports.generateTimeSlots=e.generateTimeSlots;exports.generateWeekCells=e.generateWeekCells;exports.generateYearCells=e.generateYearCells;exports.getAllDayEvents=e.getAllDayEvents;exports.getDayOfWeek=e.getDayOfWeek;exports.getDaysInMonth=e.getDaysInMonth;exports.getDecimalHours=e.getDecimalHours;exports.getEventColor=e.getEventColor;exports.getEventDurationMinutes=e.getEventDurationMinutes;exports.getEventsCountInView=e.getEventsCountInView;exports.getEventsForDay=e.getEventsForDay;exports.getEventsInRange=e.getEventsInRange;exports.getMonthNames=e.getMonthNames;exports.getMultiDayEvents=e.getMultiDayEvents;exports.getOverlappingGroups=e.getOverlappingGroups;exports.getRangeText=e.getRangeText;exports.getTimedEvents=e.getTimedEvents;exports.getViewDateRange=e.getViewDateRange;exports.getViewTitle=e.getViewTitle;exports.getVisibleHoursArray=e.getVisibleHoursArray;exports.getWeekDays=e.getWeekDays;exports.getWeekNumber=e.getWeekNumber;exports.getWeekdayHeaders=e.getWeekdayHeaders;exports.getWeekdayNames=e.getWeekdayNames;exports.getWorkingHoursForDay=e.getWorkingHoursForDay;exports.getYearMonths=e.getYearMonths;exports.groupEventsByDate=e.groupEventsByDate;exports.groupEventsByResource=e.groupEventsByResource;exports.groupEventsByScheduleType=e.groupEventsByScheduleType;exports.isAfter=e.isAfter;exports.isBefore=e.isBefore;exports.isBetween=e.isBetween;exports.isMultiDayEvent=e.isMultiDayEvent;exports.isSameDay=e.isSameDay;exports.isSameMonth=e.isSameMonth;exports.isSameWeek=e.isSameWeek;exports.isSameYear=e.isSameYear;exports.isToday=e.isToday;exports.isWeekend=e.isWeekend;exports.isWorkingHour=e.isWorkingHour;exports.maxDate=e.maxDate;exports.minDate=e.minDate;exports.navigateNext=e.navigateNext;exports.navigatePrev=e.navigatePrev;exports.navigateToday=e.navigateToday;exports.parseISO=e.parseISO;exports.reactNodeToText=e.reactNodeToText;exports.resolveEventColor=e.resolveEventColor;exports.separateEventsByDuration=e.separateEventsByDuration;exports.setTime=e.setTime;exports.shouldShowEventTime=e.shouldShowEventTime;exports.sortEventsByDuration=e.sortEventsByDuration;exports.sortEventsByEnd=e.sortEventsByEnd;exports.sortEventsByStart=e.sortEventsByStart;exports.startOfDay=e.startOfDay;exports.startOfMonth=e.startOfMonth;exports.startOfWeek=e.startOfWeek;exports.startOfYear=e.startOfYear;exports.subDays=e.subDays;exports.subMonths=e.subMonths;exports.subWeeks=e.subWeeks;exports.subYears=e.subYears;exports.timeToY=e.timeToY;exports.yToTime=e.yToTime;exports.CalendarProvider=r.CalendarProvider;exports.useCalendar=r.useCalendar;exports.useCalendarContext=r.useCalendarContext;exports.useCalendarDate=r.useCalendarDate;exports.useCalendarEvents=r.useCalendarEvents;exports.useCalendarFilters=r.useCalendarFilters;exports.useCalendarFromContext=r.useCalendarContext;exports.useCalendarPreferences=r.useCalendarPreferences;exports.useCalendarView=r.useCalendarView;exports.useOptionalCalendar=r.useOptionalCalendarContext;exports.useOptionalCalendarContext=r.useOptionalCalendarContext;exports.DefaultCalendar=i.DefaultCalendar;exports.TailwindCalendar=i.TailwindCalendar;exports.DragDropProvider=a.DragDropProvider;exports.InnoCalendarProvider=a.InnoCalendarProvider;exports.IntegratedCalendarProvider=a.InnoCalendarProvider;exports.PREFERENCES_DEFAULT_SLOT_DURATION=a.DEFAULT_SLOT_DURATION;exports.PREFERENCES_DEFAULT_VISIBLE_HOURS=a.DEFAULT_VISIBLE_HOURS;exports.PREFERENCES_DEFAULT_WORKING_HOURS=a.DEFAULT_WORKING_HOURS;exports.PREFERENCES_STORAGE_KEY=a.PREFERENCES_STORAGE_KEY;exports.SlotSelectionProvider=a.SlotSelectionProvider;exports.useAdvancedPreferences=a.useCalendarPreferences;exports.useDragDrop=a.useDragDrop;exports.useInnoCalendar=a.useInnoCalendar;exports.useInnoCalendarEvents=a.useInnoCalendarEvents;exports.useInnoCalendarFilters=a.useInnoCalendarFilters;exports.useInnoCalendarTimeConfig=a.useInnoCalendarTimeConfig;exports.useInnoCalendarView=a.useInnoCalendarView;exports.useIntegratedCalendar=a.useInnoCalendar;exports.useIntegratedCalendarEvents=a.useInnoCalendarEvents;exports.useIntegratedCalendarFilters=a.useInnoCalendarFilters;exports.useIntegratedCalendarTimeConfig=a.useInnoCalendarTimeConfig;exports.useIntegratedCalendarView=a.useInnoCalendarView;exports.useOptionalDragDrop=a.useOptionalDragDrop;exports.useOptionalInnoCalendar=a.useOptionalInnoCalendar;exports.useOptionalIntegratedCalendar=a.useOptionalInnoCalendar;exports.useOptionalSlotSelection=a.useOptionalSlotSelection;exports.useSlotSelectionContext=a.useSlotSelectionContext;exports.cn=s.cn;exports.useCalendarTimeConfig=o.useCalendarTimeConfig;exports.usePreferences=o.usePreferences;exports.useSlotSelection=o.useSlotSelection;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,223 +1,224 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import { c as Ha } from "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { D as
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
1
|
+
import { A as s, a as t, B as n, C as r, b as o, D as i, E as l, I as E, I as d, S as g, c as u, T as D, U as C, V as S, W as T, Y as v } from "./agenda-widget-DVj4CEZE.js";
|
|
2
|
+
import { A as f, B as p, C as O, D as _, a as y, b as c, c as R, d as m, e as H, f as A, g as h, h as F, i as U, j as P, E as M, k as N, M as V, l as W, m as B, P as L, n as k, o as x, p as w, S as b, q as Y, r as G, s as K, t as j, u as q, v as z, T as X, w as J, x as Q, y as Z, z as $, F as aa, W as ea, G as sa, H as ta } from "./week-view-DY167Wok.js";
|
|
3
|
+
import { C as ra, D as oa, a as ia, b as la, c as Ea, d as da, e as ga, f as ua, g as Da, E as Ca, h as Sa, H as Ta, i as va, M as Ia, j as fa, k as pa, l as Oa, m as _a, n as ya, o as ca, p as Ra, q as ma, r as Ha, s as Aa, t as ha, u as Fa, v as Ua, w as Pa, x as Ma, y as Na, z as Va, A as Wa, B as Ba, F as La, G as ka, I as xa, J as wa, K as ba, L as Ya, N as Ga, O as Ka, P as ja, Q as qa, R as za, S as Xa, T as Ja, U as Qa, V as Za, W as $a, X as ae, Y as ee, Z as se, _ as te, $ as ne, a0 as re, a1 as oe, a2 as ie, a3 as le, a4 as Ee, a5 as de, a6 as ge, a7 as ue, a8 as De, a9 as Ce, aa as Se, ab as Te, ac as ve, ad as Ie, ae as fe, af as pe, ag as Oe, ah as _e, ai as ye, aj as ce, ak as Re, al as me, am as He, an as Ae, ao as he, ap as Fe, aq as Ue, ar as Pe, as as Me, at as Ne, au as Ve, av as We, aw as Be, ax as Le, ay as ke, az as xe, aA as we, aB as be, aC as Ye, aD as Ge, aE as Ke, aF as je, aG as qe, aH as ze, aI as Xe, aJ as Je, aK as Qe, aL as Ze, aM as $e, aN as as, aO as es, aP as ss, aQ as ts, aR as ns, aS as rs, aT as os, aU as is, aV as ls, aW as Es, aX as ds, aY as gs, aZ as us } from "./position-utils-DMVQFywD.js";
|
|
4
|
+
import { C as Cs, u as Ss, a as Ts, b as vs, c as Is, d as fs, a as ps, e as Os, f as _s, g as ys, g as cs } from "./use-calendar-D8XaVe44.js";
|
|
5
|
+
import { D as ms, T as Hs } from "./tailwind-calendar-CNhXkxzW.js";
|
|
6
|
+
import { D as hs, I as Fs, I as Us, a as Ps, b as Ms, c as Ns, P as Vs, S as Ws, u as Bs, d as Ls, e as ks, f as xs, g as ws, h as bs, i as Ys, e as Gs, f as Ks, g as js, h as qs, i as zs, j as Xs, k as Js, k as Qs, l as Zs, m as $s } from "./slot-selection-context-CRstOosL.js";
|
|
7
|
+
import { c as et } from "./index-DtaLkIY8.js";
|
|
8
|
+
import { u as tt, a as nt, b as rt } from "./use-slot-selection-CWRk_17s.js";
|
|
9
9
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
s as AgendaDropdown,
|
|
11
|
+
f as AgendaView,
|
|
12
|
+
t as AgendaWidget,
|
|
13
13
|
n as BadgeVariantSetting,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
p as Button,
|
|
15
|
+
ra as CALENDAR_VIEWS,
|
|
16
16
|
r as Calendar,
|
|
17
17
|
o as CalendarFilterSidebar,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
18
|
+
O as CalendarHeader,
|
|
19
|
+
Cs as CalendarProvider,
|
|
20
|
+
oa as DEFAULT_BUSINESS_HOURS,
|
|
21
|
+
ia as DEFAULT_HEADER_HEIGHT,
|
|
22
|
+
la as DEFAULT_HOUR_HEIGHT,
|
|
23
|
+
Ea as DEFAULT_PREFERENCES,
|
|
24
|
+
da as DEFAULT_RESOURCE_WIDTH,
|
|
25
|
+
ga as DEFAULT_SLOT_HEIGHT,
|
|
26
|
+
ua as DEFAULT_VIEW_CONFIGS,
|
|
27
|
+
Da as DEFAULT_VISIBLE_HOURS,
|
|
28
28
|
i as DEFAULT_WEEK_WORKING_HOURS,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
29
|
+
_ as DateNavigator,
|
|
30
|
+
y as DayEventsExpansion,
|
|
31
|
+
c as DaySlot,
|
|
32
|
+
R as DayView,
|
|
33
|
+
ms as DefaultCalendar,
|
|
34
|
+
m as Dialog,
|
|
35
|
+
H as DialogClose,
|
|
36
|
+
A as DialogContent,
|
|
37
|
+
h as DialogDescription,
|
|
38
|
+
F as DialogHeader,
|
|
39
|
+
U as DialogTitle,
|
|
40
|
+
P as DialogTrigger,
|
|
41
|
+
hs as DragDropProvider,
|
|
42
|
+
Ca as EVENT_COLORS,
|
|
43
|
+
Sa as EVENT_COLOR_CLASSES,
|
|
44
|
+
M as EventBlock,
|
|
45
|
+
N as EventCard,
|
|
46
46
|
l as EventPopover,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Ta as HEX_TO_EVENT_COLOR,
|
|
48
|
+
va as HOURS_IN_DAY,
|
|
49
49
|
E as InnoCalendar,
|
|
50
|
-
|
|
50
|
+
Fs as InnoCalendarProvider,
|
|
51
51
|
d as IntegratedCalendar,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
Us as IntegratedCalendarProvider,
|
|
53
|
+
Ia as MINUTES_IN_HOUR,
|
|
54
|
+
fa as MIN_EVENT_HEIGHT,
|
|
55
|
+
pa as MS_PER_DAY,
|
|
56
|
+
Oa as MS_PER_HOUR,
|
|
57
|
+
_a as MS_PER_MINUTE,
|
|
58
|
+
V as MonthView,
|
|
59
|
+
W as MultiDayBanner,
|
|
60
|
+
B as MultiDayEventBar,
|
|
61
|
+
Ps as PREFERENCES_DEFAULT_SLOT_DURATION,
|
|
62
|
+
Ms as PREFERENCES_DEFAULT_VISIBLE_HOURS,
|
|
63
|
+
Ns as PREFERENCES_DEFAULT_WORKING_HOURS,
|
|
64
|
+
Vs as PREFERENCES_STORAGE_KEY,
|
|
65
|
+
L as Popover,
|
|
66
|
+
k as PopoverAnchor,
|
|
67
|
+
x as PopoverContent,
|
|
68
|
+
w as PopoverTrigger,
|
|
69
69
|
g as ScheduleTypeFilter,
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
b as Sheet,
|
|
71
|
+
Y as SheetClose,
|
|
72
|
+
G as SheetContent,
|
|
73
|
+
K as SheetDescription,
|
|
74
|
+
j as SheetHeader,
|
|
75
|
+
q as SheetTitle,
|
|
76
|
+
z as SheetTrigger,
|
|
77
77
|
u as SlotDurationSetting,
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
Ws as SlotSelectionProvider,
|
|
79
|
+
Hs as TailwindCalendar,
|
|
80
|
+
X as TimeSlot,
|
|
81
81
|
D as TimelineView,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
J as TodayButton,
|
|
83
|
+
Q as Tooltip,
|
|
84
|
+
Z as TooltipContent,
|
|
85
|
+
$ as TooltipProvider,
|
|
86
|
+
aa as TooltipTrigger,
|
|
87
87
|
C as UserFilter,
|
|
88
88
|
S as VisibleHoursSetting,
|
|
89
|
-
|
|
89
|
+
ea as WeekView,
|
|
90
90
|
T as WorkingHoursSetting,
|
|
91
91
|
v as YearView,
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
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
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
92
|
+
ya as addDays,
|
|
93
|
+
ca as addHours,
|
|
94
|
+
Ra as addMinutes,
|
|
95
|
+
ma as addMonths,
|
|
96
|
+
Ha as addWeeks,
|
|
97
|
+
Aa as addYears,
|
|
98
|
+
ha as applyEventFilters,
|
|
99
|
+
sa as buttonVariants,
|
|
100
|
+
Fa as calculateEventPosition,
|
|
101
|
+
Ua as calculateOverlappingPositions,
|
|
102
|
+
Pa as calculateSelectionOverlay,
|
|
103
|
+
et as cn,
|
|
104
|
+
Ma as detectAllDayEvent,
|
|
105
|
+
Na as differenceInDays,
|
|
106
|
+
Va as differenceInHours,
|
|
107
|
+
Wa as differenceInMilliseconds,
|
|
108
|
+
Ba as differenceInMinutes,
|
|
109
|
+
La as eachDayOfInterval,
|
|
110
|
+
ka as eachHourOfInterval,
|
|
111
|
+
xa as endOfDay,
|
|
112
|
+
wa as endOfMonth,
|
|
113
|
+
ba as endOfWeek,
|
|
114
|
+
Ya as endOfYear,
|
|
115
|
+
Ga as eventsOverlap,
|
|
116
|
+
Ka as filterEventsByDateRange,
|
|
117
|
+
ja as filterEventsByResource,
|
|
118
|
+
qa as filterEventsByScheduleType,
|
|
119
|
+
za as filterEventsBySearch,
|
|
120
|
+
Xa as filterOutCanceled,
|
|
121
|
+
Ja as formatDateISO,
|
|
122
|
+
Qa as formatEventTimeDisplay,
|
|
123
|
+
Za as formatHourLabel,
|
|
124
|
+
$a as formatTime,
|
|
125
|
+
ae as generateHourLabels,
|
|
126
|
+
ee as generateMonthCells,
|
|
127
|
+
se as generateMonthGrid,
|
|
128
|
+
te as generateTimeSlots,
|
|
129
|
+
ne as generateWeekCells,
|
|
130
|
+
re as generateYearCells,
|
|
131
|
+
oe as getAllDayEvents,
|
|
132
|
+
ie as getDayOfWeek,
|
|
133
|
+
le as getDaysInMonth,
|
|
134
|
+
Ee as getDecimalHours,
|
|
135
|
+
de as getEventColor,
|
|
136
|
+
ta as getEventColorClasses,
|
|
137
|
+
ge as getEventDurationMinutes,
|
|
138
|
+
ue as getEventsCountInView,
|
|
139
|
+
De as getEventsForDay,
|
|
140
|
+
Ce as getEventsInRange,
|
|
141
|
+
Se as getMonthNames,
|
|
142
|
+
Te as getMultiDayEvents,
|
|
143
|
+
ve as getOverlappingGroups,
|
|
144
|
+
Ie as getRangeText,
|
|
145
|
+
fe as getTimedEvents,
|
|
146
|
+
pe as getViewDateRange,
|
|
147
|
+
Oe as getViewTitle,
|
|
148
|
+
_e as getVisibleHoursArray,
|
|
149
|
+
ye as getWeekDays,
|
|
150
|
+
ce as getWeekNumber,
|
|
151
|
+
Re as getWeekdayHeaders,
|
|
152
|
+
me as getWeekdayNames,
|
|
153
|
+
He as getWorkingHoursForDay,
|
|
154
|
+
Ae as getYearMonths,
|
|
155
|
+
he as groupEventsByDate,
|
|
156
|
+
Fe as groupEventsByResource,
|
|
157
|
+
Ue as groupEventsByScheduleType,
|
|
158
|
+
Pe as isAfter,
|
|
159
|
+
Me as isBefore,
|
|
160
|
+
Ne as isBetween,
|
|
161
|
+
Ve as isMultiDayEvent,
|
|
162
|
+
We as isSameDay,
|
|
163
|
+
Be as isSameMonth,
|
|
164
|
+
Le as isSameWeek,
|
|
165
|
+
ke as isSameYear,
|
|
166
|
+
xe as isToday,
|
|
167
|
+
we as isWeekend,
|
|
168
|
+
be as isWorkingHour,
|
|
169
|
+
Ye as maxDate,
|
|
170
|
+
Ge as minDate,
|
|
171
|
+
Ke as navigateNext,
|
|
172
|
+
je as navigatePrev,
|
|
173
|
+
qe as navigateToday,
|
|
174
|
+
ze as parseISO,
|
|
175
|
+
Xe as reactNodeToText,
|
|
176
|
+
Je as resolveEventColor,
|
|
177
|
+
Qe as separateEventsByDuration,
|
|
178
|
+
Ze as setTime,
|
|
179
|
+
$e as shouldShowEventTime,
|
|
180
|
+
as as sortEventsByDuration,
|
|
181
|
+
es as sortEventsByEnd,
|
|
182
|
+
ss as sortEventsByStart,
|
|
183
|
+
ts as startOfDay,
|
|
184
|
+
ns as startOfMonth,
|
|
185
|
+
rs as startOfWeek,
|
|
186
|
+
os as startOfYear,
|
|
187
|
+
is as subDays,
|
|
188
|
+
ls as subMonths,
|
|
189
|
+
Es as subWeeks,
|
|
190
|
+
ds as subYears,
|
|
191
|
+
gs as timeToY,
|
|
192
|
+
Bs as useAdvancedPreferences,
|
|
193
|
+
Ss as useCalendar,
|
|
194
|
+
Ts as useCalendarContext,
|
|
195
|
+
vs as useCalendarDate,
|
|
196
|
+
Is as useCalendarEvents,
|
|
197
|
+
fs as useCalendarFilters,
|
|
198
|
+
ps as useCalendarFromContext,
|
|
199
|
+
Os as useCalendarPreferences,
|
|
200
|
+
tt as useCalendarTimeConfig,
|
|
201
|
+
_s as useCalendarView,
|
|
202
|
+
Ls as useDragDrop,
|
|
203
|
+
ks as useInnoCalendar,
|
|
204
|
+
xs as useInnoCalendarEvents,
|
|
205
|
+
ws as useInnoCalendarFilters,
|
|
206
|
+
bs as useInnoCalendarTimeConfig,
|
|
207
|
+
Ys as useInnoCalendarView,
|
|
208
|
+
Gs as useIntegratedCalendar,
|
|
209
|
+
Ks as useIntegratedCalendarEvents,
|
|
210
|
+
js as useIntegratedCalendarFilters,
|
|
211
|
+
qs as useIntegratedCalendarTimeConfig,
|
|
212
|
+
zs as useIntegratedCalendarView,
|
|
213
|
+
ys as useOptionalCalendar,
|
|
214
|
+
cs as useOptionalCalendarContext,
|
|
215
|
+
Xs as useOptionalDragDrop,
|
|
216
|
+
Js as useOptionalInnoCalendar,
|
|
217
|
+
Qs as useOptionalIntegratedCalendar,
|
|
218
|
+
Zs as useOptionalSlotSelection,
|
|
219
|
+
nt as usePreferences,
|
|
220
|
+
rt as useSlotSelection,
|
|
221
|
+
$s as useSlotSelectionContext,
|
|
222
|
+
us as yToTime
|
|
222
223
|
};
|
|
223
224
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const ne=require("react");function b(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(b).join("");if(ne.isValidElement(e)){const t=e.props;return b(t.children)}return""}const re=["day","week","month","year","agenda","resource-day","resource-week","timeline-day","timeline-week"],oe={startHour:8,endHour:18,firstDayOfWeek:1,slotDuration:30,showWeekends:!0,timeFormat:"24h",badgeVariant:"colored",showCanceledEvents:!1},ae={startHour:0,endHour:24},se={startHour:8,endHour:18},ue={day:{type:"day",slotMinTime:"00:00",slotMaxTime:"24:00",slotDuration:"00:30:00",scrollTime:"08:00:00",allDaySlot:!0},week:{type:"week",slotMinTime:"00:00",slotMaxTime:"24:00",slotDuration:"00:30:00",scrollTime:"08:00:00",dayMaxEventRows:3,allDaySlot:!0},month:{type:"month",dayMaxEventRows:4,eventMaxStack:3,allDaySlot:!1},year:{type:"year",dayMaxEventRows:2,allDaySlot:!1},agenda:{type:"agenda",allDaySlot:!1},"resource-day":{type:"resource-day",slotMinTime:"00:00",slotMaxTime:"24:00",slotDuration:"00:30:00",scrollTime:"08:00:00",allDaySlot:!0},"resource-week":{type:"resource-week",slotMinTime:"00:00",slotMaxTime:"24:00",slotDuration:"00:30:00",scrollTime:"08:00:00",allDaySlot:!0},"timeline-day":{type:"timeline-day",slotDuration:"01:00:00"},"timeline-3day":{type:"timeline-3day",slotDuration:"01:00:00"},"timeline-week":{type:"timeline-week",slotDuration:"01:00:00"}},ie={blue:"#3b82f6",green:"#22c55e",red:"#ef4444",yellow:"#eab308",purple:"#a855f7",orange:"#f97316",pink:"#ec4899",teal:"#14b8a6",gray:"#6b7280",indigo:"#6366f1"},ce={blue:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300"},green:{bg:"bg-green-100",text:"text-green-800",border:"border-green-300"},red:{bg:"bg-red-100",text:"text-red-800",border:"border-red-300"},yellow:{bg:"bg-yellow-100",text:"text-yellow-800",border:"border-yellow-300"},purple:{bg:"bg-purple-100",text:"text-purple-800",border:"border-purple-300"},orange:{bg:"bg-orange-100",text:"text-orange-800",border:"border-orange-300"},pink:{bg:"bg-pink-100",text:"text-pink-800",border:"border-pink-300"},teal:{bg:"bg-teal-100",text:"text-teal-800",border:"border-teal-300"},gray:{bg:"bg-gray-100",text:"text-gray-800",border:"border-gray-300"},indigo:{bg:"bg-indigo-100",text:"text-indigo-800",border:"border-indigo-300"}},le={"#3b82f6":"blue","#22c55e":"green","#ef4444":"red","#eab308":"yellow","#a855f7":"purple","#f97316":"orange","#ec4899":"pink","#14b8a6":"teal","#6b7280":"gray","#6366f1":"indigo"},fe=24,ge=60,Y=60*1e3,N=60*Y,de=24*N,k=64,De=32,me=56,ye=200,B=20;function g(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function T(e){const t=new Date(e);return t.setHours(23,59,59,999),t}function c(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function he(e,t){return c(e,-t)}function h(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function C(e){return h(e,new Date)}function Ee(e){return e.getDay()}function U(e){const t=e.getDay();return t===0||t===6}function D(e,t=1){const n=new Date(e),r=n.getDay(),o=(r<t?7:0)+r-t;return n.setDate(n.getDate()-o),n.setHours(0,0,0,0),n}function p(e,t=1){const n=D(e,t);return n.setDate(n.getDate()+6),n.setHours(23,59,59,999),n}function I(e,t){return c(e,t*7)}function Te(e,t){return c(e,-t*7)}function pe(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-n);const r=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-r.getTime())/864e5+1)/7)}function Se(e,t,n=1){const r=D(e,n),o=D(t,n);return h(r,o)}function S(e){const t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t}function M(e){const t=new Date(e.getFullYear(),e.getMonth()+1,0);return t.setHours(23,59,59,999),t}function O(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}function Me(e,t){return O(e,-t)}function we(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function v(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function W(e){return new Date(e.getFullYear(),0,1,0,0,0,0)}function V(e){return new Date(e.getFullYear(),11,31,23,59,59,999)}function F(e,t){const n=new Date(e);return n.setFullYear(n.getFullYear()+t),n}function He(e,t){return F(e,-t)}function be(e,t){return e.getFullYear()===t.getFullYear()}function P(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function Ie(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function ke(e,t,n=0,r=0){const o=new Date(e);return o.setHours(t,n,r,0),o}function Oe(e){return e.getHours()+e.getMinutes()/60}function _e(e,t){return e.getTime()<t.getTime()}function ve(e,t){return e.getTime()>t.getTime()}function Fe(e,t,n){const r=e.getTime();return r>=t.getTime()&&r<=n.getTime()}function Re(e){if(e.length!==0)return e.reduce((t,n)=>n<t?n:t)}function Ae(e){if(e.length!==0)return e.reduce((t,n)=>n>t?n:t)}function R(e,t){return e.getTime()-t.getTime()}function xe(e,t){return Math.floor(R(e,t)/6e4)}function Ce(e,t){return Math.floor(R(e,t)/36e5)}function Ue(e,t){const n=g(e),r=g(t);return Math.floor(R(n,r)/864e5)}function H(e,t="24h"){const n=e.getHours(),r=e.getMinutes();if(t==="12h"){const o=n>=12?"PM":"AM";return`${n%12||12}:${r.toString().padStart(2,"0")} ${o}`}return`${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}function We(e){const t=e.getFullYear(),n=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getDate().toString().padStart(2,"0");return`${t}-${n}-${r}`}function $e(e){return new Date(e)}function G(e,t){const n=[];let r=g(e);const o=g(t);for(;r<=o;)n.push(new Date(r)),r=c(r,1);return n}function Le(e,t){const n=[];let r=new Date(e);for(;r<=t;)n.push(new Date(r)),r=P(r,1);return n}function Ye(e="en-US",t="short"){const n=new Intl.DateTimeFormat(e,{weekday:t}),r=[],o=new Date(2024,0,7);for(let a=0;a<7;a++)r.push(n.format(c(o,a)));return r}function Ne(e="en-US",t="long"){const n=new Intl.DateTimeFormat(e,{month:t}),r=[];for(let o=0;o<12;o++)r.push(n.format(new Date(2024,o,1)));return r}function Be(e){const t=[];for(let n=e.startHour;n<=e.endHour;n++)t.push(n);return t}function Ve(e,t="24h"){if(t==="12h"){const n=e>=12?"PM":"AM";return`${e%12||12} ${n}`}return`${String(e).padStart(2,"0")}:00`}function Pe(e,t=1){const n=D(e,t),r=[];for(let o=0;o<7;o++)r.push(c(n,o));return r}function Ge(e,t=1){const n=S(e),r=M(e),o=D(n,t),a=p(r,t),s=e.getMonth();return G(o,a).map(l=>({date:l,isCurrentMonth:l.getMonth()===s,isWeekend:l.getDay()===0||l.getDay()===6}))}function A(e){if(e.isAllDay===!0)return!0;if(e.isAllDay===!1)return!1;const t=e.startDate.getHours(),n=e.startDate.getMinutes(),r=e.endDate.getHours(),o=e.endDate.getMinutes(),a=t===0&&n===0,s=r===0&&o===0||r===23&&o>=59;return!!(a&&s)}function ze(e){const t=[],n=[];for(const r of e)A(r)?n.push(r):h(r.startDate,r.endDate)?t.push(r):n.push(r);return{singleDay:t,multiDay:n}}function Xe(e,t,n){return e.filter(r=>r.startDate<=n&&r.endDate>=t)}function je(e,t,n){if(!n)return!0;const r=e.getDay(),o=n[r];return!o||!(o.enabled!==!1)||o.from===o.to?!1:t>=o.from&&t<o.to}function qe(e,t){const n=e.getDay(),r=t[n];return!r||!(r.enabled!==!1)||r.from===r.to?null:{from:r.from,to:r.to}}function Je(e){const t=[];for(let n=0;n<12;n++)t.push(new Date(e,n,1));return t}function z(e,t,n){const r=g(t),o=T(n);return e.filter(a=>{const s=a.startDate,u=a.endDate;return s<=o&&u>=r})}function X(e,t){return t.length===0?e:e.filter(n=>n.scheduleTypeId!==void 0&&t.includes(n.scheduleTypeId))}function j(e,t){return t.length===0?e:e.filter(n=>n.resourceId!==void 0&&t.includes(n.resourceId))}function q(e,t){if(!t.trim())return e;const n=t.toLowerCase();return e.filter(r=>{const o=b(r.title).toLowerCase().includes(n),a=b(r.description).toLowerCase().includes(n);return o||a})}function J(e){return e.filter(t=>!t.isCanceled)}function Ke(e,t){let n=[...e];return t.dateRange&&(n=z(n,t.dateRange.startDate,t.dateRange.endDate)),t.scheduleTypeIds&&t.scheduleTypeIds.length>0&&(n=X(n,t.scheduleTypeIds)),t.resourceIds&&t.resourceIds.length>0&&(n=j(n,t.resourceIds)),t.search&&(n=q(n,t.search)),t.showCanceled||(n=J(n)),n}function Qe(e){return[...e].sort((t,n)=>t.startDate.getTime()-n.startDate.getTime())}function Ze(e){return[...e].sort((t,n)=>t.endDate.getTime()-n.endDate.getTime())}function et(e){return[...e].sort((t,n)=>{const r=t.endDate.getTime()-t.startDate.getTime();return n.endDate.getTime()-n.startDate.getTime()-r})}function tt(e){const t=new Map;for(const n of e){const r=g(n.startDate).toISOString(),o=t.get(r)??[];o.push(n),t.set(r,o)}return t}function nt(e){const t=new Map;for(const n of e){const r=t.get(n.scheduleTypeId)??[];r.push(n),t.set(n.scheduleTypeId,r)}return t}function rt(e){const t=new Map;for(const n of e){const r=t.get(n.resourceId)??[];r.push(n),t.set(n.resourceId,r)}return t}function ot(e,t){return e.filter(n=>{const r=g(t),o=T(t);return n.startDate<=o&&n.endDate>=r})}function at(e){return e.filter(t=>t.isAllDay)}function st(e){return e.filter(t=>!t.isAllDay)}function ut(e){return e.filter(t=>t.isMultiDay?!0:!h(t.startDate,t.endDate))}function it(e){return e.isMultiDay?!0:!h(e.startDate,e.endDate)}function ct(e){return Math.floor((e.endDate.getTime()-e.startDate.getTime())/6e4)}function lt(e,t="blue"){return e.color??t}function ft(e,t,n="blue"){if(e.color)return e.color;if(e.scheduleTypeId!==void 0&&t){const r=t.get(e.scheduleTypeId);if(r)return r}return n}function gt(e){if(A(e)){if(h(e.startDate,e.endDate))return"All day";const n=e.startDate.toLocaleDateString(void 0,{month:"short",day:"numeric"}),r=e.endDate.toLocaleDateString(void 0,{month:"short",day:"numeric"});return`All day · ${n} – ${r}`}if(!h(e.startDate,e.endDate)){const n=e.startDate.toLocaleDateString(void 0,{month:"short",day:"numeric"}),r=e.endDate.toLocaleDateString(void 0,{month:"short",day:"numeric"});return`${n}, ${H(e.startDate)} – ${r}, ${H(e.endDate)}`}return`${H(e.startDate)} - ${H(e.endDate)}`}function dt(e){return!A(e)}function K(e,t,n=1){switch(t){case"day":case"resource-day":case"timeline-day":return{startDate:g(e),endDate:T(e)};case"week":case"resource-week":case"timeline-week":return{startDate:D(e,n),endDate:p(e,n)};case"month":{const r=S(e),o=M(e);return{startDate:D(r,n),endDate:p(o,n)}}case"timeline-3day":return{startDate:g(e),endDate:T(c(e,2))};case"year":return{startDate:W(e),endDate:V(e)};case"agenda":return{startDate:g(e),endDate:T(c(e,29))};default:return{startDate:g(e),endDate:T(e)}}}function Dt(e,t){switch(t){case"day":case"resource-day":case"timeline-day":return c(e,1);case"timeline-3day":return c(e,3);case"week":case"resource-week":case"timeline-week":return I(e,1);case"month":return O(e,1);case"year":return F(e,1);case"agenda":return I(e,1);default:return c(e,1)}}function mt(e,t){switch(t){case"day":case"resource-day":case"timeline-day":return c(e,-1);case"timeline-3day":return c(e,-3);case"week":case"resource-week":case"timeline-week":return I(e,-1);case"month":return O(e,-1);case"year":return F(e,-1);case"agenda":return I(e,-1);default:return c(e,-1)}}function yt(){return g(new Date)}function ht(e,t=1){const n=S(e),r=M(e),o=D(n,t),a=p(r,t),s=[];let u=o;for(;u<=a;)s.push({date:new Date(u),isToday:C(u),isCurrentMonth:v(u,e),isWeekend:U(u),dayOfWeek:u.getDay()}),u=c(u,1);return s}function Et(e,t=1){const n=D(e,t),r=[];for(let o=0;o<7;o++){const a=c(n,o);r.push({date:a,isToday:C(a),isCurrentMonth:v(a,e),isWeekend:U(a),dayOfWeek:a.getDay()})}return r}function Tt(e){const t=W(e),n=[];for(let r=0;r<12;r++){const o=O(t,r);n.push({date:o,isToday:v(o,new Date),isCurrentMonth:!0,isWeekend:!1,dayOfWeek:o.getDay()})}return n}function pt(e,t,n=30){const r=[],o=60/n;for(let a=e;a<t;a++)for(let s=0;s<o;s++){const u=s*n;r.push({hour:a,minute:u,label:`${a.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}`})}return r}function St(e,t,n="24h"){const r=[];for(let o=e;o<=t;o++){let a;if(n==="12h"){const s=o>=12?"PM":"AM";a=`${o%12||12} ${s}`}else a=`${o.toString().padStart(2,"0")}:00`;r.push({hour:o,label:a})}return r}function Mt(e,t,n="en-US"){const r=new Intl.DateTimeFormat(n,{weekday:"short",month:"short",day:"numeric"}),o=new Intl.DateTimeFormat(n,{month:"short",day:"numeric"});switch(t){case"day":case"resource-day":case"timeline-day":return r.format(e);case"timeline-3day":{const a=g(e),s=c(e,2);return`${o.format(a)} - ${o.format(s)}`}case"week":case"resource-week":case"timeline-week":{const a=D(e,1),s=p(e,1);return`${o.format(a)} - ${o.format(s)}`}case"month":{const a=S(e),s=M(e);return`${o.format(a)} - ${o.format(s)}`}case"year":return`Jan 1 - Dec 31, ${e.getFullYear()}`;case"agenda":{const a=S(e),s=M(e);return`${o.format(a)} - ${o.format(s)}`}default:return""}}function wt(e,t,n,r=1){const o=K(t,n,r);return e.filter(a=>a.startDate<=o.endDate&&a.endDate>=o.startDate).length}function Ht(e,t,n="en-US"){const r=new Intl.DateTimeFormat(n,{month:"long",year:"numeric"}),o=new Intl.DateTimeFormat(n,{weekday:"long",month:"long",day:"numeric",year:"numeric"});switch(t){case"day":case"resource-day":case"timeline-day":return o.format(e);case"week":case"resource-week":case"timeline-week":{const a=D(e,1),s=p(e,1),u=new Intl.DateTimeFormat(n,{month:"short"}).format(a),l=new Intl.DateTimeFormat(n,{month:"short"}).format(s),i=a.getFullYear();return u===l?`${u} ${a.getDate()} - ${s.getDate()}, ${i}`:`${u} ${a.getDate()} - ${l} ${s.getDate()}, ${i}`}case"month":return r.format(e);case"year":return e.getFullYear().toString();case"agenda":return`Agenda - ${r.format(e)}`;default:return r.format(e)}}function bt(e=1,t="short",n="en-US"){const r=new Intl.DateTimeFormat(n,{weekday:t}),o=[],a=new Date(2024,0,7);for(let s=0;s<7;s++){const u=(e+s)%7,l=c(a,u);o.push({dayOfWeek:u,label:r.format(l)})}return o}function Q(e,t,n,r=k){const{startHour:o,endHour:a}=n,s=a-o,u=s*r,l=e.startDate.getHours()+e.startDate.getMinutes()/60,i=e.endDate.getHours()+e.endDate.getMinutes()/60,d=Math.max(l,o),E=Math.min(i,a),m=(d-o)/s*u,y=(E-o)/s*u,f=Math.max(y-m,B);return{top:m,height:f,left:0,width:100,zIndex:1}}function It(e,t,n,r=k){if(e.length===0)return[];const o=[...e].sort((i,d)=>{const E=i.startDate.getTime()-d.startDate.getTime();if(E!==0)return E;const m=i.endDate.getTime()-i.startDate.getTime();return d.endDate.getTime()-d.startDate.getTime()-m}),a=[];let s=[],u=0;for(const i of o)s.length===0||i.startDate.getTime()<u?(s.push(i),u=Math.max(u,i.endDate.getTime())):(a.push(s),s=[i],u=i.endDate.getTime());s.length>0&&a.push(s);const l=[];for(const i of a){const d=[];for(const f of i){const Z=f.startDate.getTime(),ee=f.endDate.getTime();let w=-1;for(let _=0;_<d.length;_++){const x=d[_];if(!x)continue;const L=x[x.length-1];if(L&&L.endTime<=Z){w=_;break}}w===-1&&(w=d.length,d.push([]));const $=d[w];$&&$.push({event:f,endTime:ee});const te=Q(f,t,n,r);l.push({event:f,position:te,column:w,columnSpan:1})}const m=100/d.length,y=new Set(i.map(f=>f.id));for(const f of l)y.has(f.event.id)&&(f.position.left=f.column*m,f.position.width=m*f.columnSpan,f.position.zIndex=f.column+1)}return l}function kt(e,t,n,r=k,o=30){const{startHour:a,endHour:s}=n,u=s-a,l=u*r,i=e/l*u,E=(a+i)*60,m=Math.round(E/o)*o,y=new Date(t);return y.setHours(0,0,0,0),y.setMinutes(m),y}function Ot(e,t,n=k){const{startHour:r,endHour:o}=t,a=o-r,s=a*n,u=e.getHours()+e.getMinutes()/60;return(Math.max(r,Math.min(u,o))-r)/a*s}function _t(e,t){return e.startDate<t.endDate&&e.endDate>t.startDate}function vt(e){if(e.length===0)return[];const t=[...e].sort((a,s)=>a.startDate.getTime()-s.startDate.getTime()),n=[];let r=[],o=0;for(const a of t)r.length===0||a.startDate.getTime()<o?(r.push(a),o=Math.max(o,a.endDate.getTime())):(r.length>0&&n.push(r),r=[a],o=a.endDate.getTime());return r.length>0&&n.push(r),n}function Ft(e,t,n){const r=Math.max(0,Math.min(e,t)),o=Math.min(n,Math.max(e,t));return{top:r,height:o-r}}exports.CALENDAR_VIEWS=re;exports.DEFAULT_BUSINESS_HOURS=se;exports.DEFAULT_HEADER_HEIGHT=me;exports.DEFAULT_HOUR_HEIGHT=k;exports.DEFAULT_PREFERENCES=oe;exports.DEFAULT_RESOURCE_WIDTH=ye;exports.DEFAULT_SLOT_HEIGHT=De;exports.DEFAULT_VIEW_CONFIGS=ue;exports.DEFAULT_VISIBLE_HOURS=ae;exports.EVENT_COLORS=ie;exports.EVENT_COLOR_CLASSES=ce;exports.HEX_TO_EVENT_COLOR=le;exports.HOURS_IN_DAY=fe;exports.MINUTES_IN_HOUR=ge;exports.MIN_EVENT_HEIGHT=B;exports.MS_PER_DAY=de;exports.MS_PER_HOUR=N;exports.MS_PER_MINUTE=Y;exports.addDays=c;exports.addHours=P;exports.addMinutes=Ie;exports.addMonths=O;exports.addWeeks=I;exports.addYears=F;exports.applyEventFilters=Ke;exports.calculateEventPosition=Q;exports.calculateOverlappingPositions=It;exports.calculateSelectionOverlay=Ft;exports.detectAllDayEvent=A;exports.differenceInDays=Ue;exports.differenceInHours=Ce;exports.differenceInMilliseconds=R;exports.differenceInMinutes=xe;exports.eachDayOfInterval=G;exports.eachHourOfInterval=Le;exports.endOfDay=T;exports.endOfMonth=M;exports.endOfWeek=p;exports.endOfYear=V;exports.eventsOverlap=_t;exports.filterEventsByDateRange=z;exports.filterEventsByResource=j;exports.filterEventsByScheduleType=X;exports.filterEventsBySearch=q;exports.filterOutCanceled=J;exports.formatDateISO=We;exports.formatEventTimeDisplay=gt;exports.formatHourLabel=Ve;exports.formatTime=H;exports.generateHourLabels=St;exports.generateMonthCells=ht;exports.generateMonthGrid=Ge;exports.generateTimeSlots=pt;exports.generateWeekCells=Et;exports.generateYearCells=Tt;exports.getAllDayEvents=at;exports.getDayOfWeek=Ee;exports.getDaysInMonth=we;exports.getDecimalHours=Oe;exports.getEventColor=lt;exports.getEventDurationMinutes=ct;exports.getEventsCountInView=wt;exports.getEventsForDay=ot;exports.getEventsInRange=Xe;exports.getMonthNames=Ne;exports.getMultiDayEvents=ut;exports.getOverlappingGroups=vt;exports.getRangeText=Mt;exports.getTimedEvents=st;exports.getViewDateRange=K;exports.getViewTitle=Ht;exports.getVisibleHoursArray=Be;exports.getWeekDays=Pe;exports.getWeekNumber=pe;exports.getWeekdayHeaders=bt;exports.getWeekdayNames=Ye;exports.getWorkingHoursForDay=qe;exports.getYearMonths=Je;exports.groupEventsByDate=tt;exports.groupEventsByResource=rt;exports.groupEventsByScheduleType=nt;exports.isAfter=ve;exports.isBefore=_e;exports.isBetween=Fe;exports.isMultiDayEvent=it;exports.isSameDay=h;exports.isSameMonth=v;exports.isSameWeek=Se;exports.isSameYear=be;exports.isToday=C;exports.isWeekend=U;exports.isWorkingHour=je;exports.maxDate=Ae;exports.minDate=Re;exports.navigateNext=Dt;exports.navigatePrev=mt;exports.navigateToday=yt;exports.parseISO=$e;exports.reactNodeToText=b;exports.resolveEventColor=ft;exports.separateEventsByDuration=ze;exports.setTime=ke;exports.shouldShowEventTime=dt;exports.sortEventsByDuration=et;exports.sortEventsByEnd=Ze;exports.sortEventsByStart=Qe;exports.startOfDay=g;exports.startOfMonth=S;exports.startOfWeek=D;exports.startOfYear=W;exports.subDays=he;exports.subMonths=Me;exports.subWeeks=Te;exports.subYears=He;exports.timeToY=Ot;exports.yToTime=kt;
|
|
2
|
+
//# sourceMappingURL=position-utils-BQpbtF6N.cjs.map
|