@ilamy/calendar 1.5.2 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Frequency, Weekday } from "rrule";
1
+ import { Weekday } from "rrule";
2
2
  import { RRule } from "rrule";
3
3
  import { Options } from "rrule";
4
4
  import { Dayjs } from "dayjs";
@@ -156,6 +156,12 @@ interface IlamyResourceCalendarProps extends Omit<IlamyCalendarProps, "events">
156
156
  * - "vertical": Resources are columns, time is rows
157
157
  */
158
158
  orientation?: "horizontal" | "vertical";
159
+ /**
160
+ * Granularity of time slots in the week view.
161
+ * - "hourly": Time slots are 1 hour (default)
162
+ * - "daily": Time slots are 1 day
163
+ */
164
+ weekViewGranularity?: "hourly" | "daily";
159
165
  }
160
166
  /**
161
167
  * Resource interface representing a calendar resource (person, room, equipment, etc.)
@@ -207,6 +213,7 @@ interface Translations {
207
213
  startDate: string;
208
214
  endDate: string;
209
215
  startTime: string;
216
+ searchTime: string;
210
217
  endTime: string;
211
218
  color: string;
212
219
  createEvent: string;
@@ -555,8 +562,18 @@ interface IlamyCalendarProps {
555
562
  /**
556
563
  * Days of the week to hide from the week view.
557
564
  * Hidden days won't render as columns, giving remaining days more space.
558
- * Only applies to vertical week views (regular and resource vertical).
559
- * Does not affect month, day, year, or resource horizontal week views.
565
+ *
566
+ * Applies to:
567
+ * - Regular vertical week view (always)
568
+ * - Resource vertical week view in hourly granularity
569
+ *
570
+ * Does NOT apply to:
571
+ * - Resource horizontal week view (layout is days-as-rows)
572
+ * - Resource vertical week view in daily granularity
573
+ * (`weekViewGranularity: 'daily'`) — non-contiguous visible days would
574
+ * break multi-day event positioning
575
+ * - Month, day, and year views
576
+ *
560
577
  * @default []
561
578
  * @example ['saturday', 'sunday'] // Hide weekends
562
579
  */
@@ -610,4 +627,4 @@ interface UseIlamyCalendarContextReturn {
610
627
  */
611
628
  declare function useIlamyCalendarContext(): UseIlamyCalendarContextReturn;
612
629
  declare const defaultTranslations: Translations;
613
- export { useIlamyCalendarContext, isRecurringEvent, generateRecurringEvents, defaultTranslations, Weekday, WeekDays, UseIlamyCalendarContextReturn, TranslatorFunction, Translations, TranslationKey, TimeFormat, Resource, RenderCurrentTimeIndicatorProps, RRuleOptions, RRule, IlamyResourceCalendarProps, IlamyResourceCalendar, IlamyCalendarProps, IlamyCalendar, Frequency, EventFormProps, CellClickInfo, CalendarView, CalendarEvent, BusinessHours };
630
+ export { useIlamyCalendarContext, isRecurringEvent, generateRecurringEvents, defaultTranslations, Weekday, WeekDays, UseIlamyCalendarContextReturn, TranslatorFunction, Translations, TranslationKey, TimeFormat, Resource, RenderCurrentTimeIndicatorProps, RRuleOptions, RRule, IlamyResourceCalendarProps, IlamyResourceCalendar, IlamyCalendarProps, IlamyCalendar, EventFormProps, CellClickInfo, CalendarView, CalendarEvent, BusinessHours };