@ilamy/calendar 1.5.1 → 1.6.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.
- package/dist/index.d.ts +28 -4
- package/dist/index.js +6 -6
- package/package.json +2 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
@@ -469,6 +476,13 @@ interface IlamyCalendarProps {
|
|
|
469
476
|
*/
|
|
470
477
|
eventSpacing?: number;
|
|
471
478
|
/**
|
|
479
|
+
* Height of event bars in horizontal grid views (month view, resource month, resource week horizontal) in pixels.
|
|
480
|
+
* Increase this to show more content per event (e.g., title + time on separate lines).
|
|
481
|
+
* Does not affect day/week views, which use percentage-based heights that scale with event duration.
|
|
482
|
+
* Defaults to 24 pixels if not specified.
|
|
483
|
+
*/
|
|
484
|
+
eventHeight?: number;
|
|
485
|
+
/**
|
|
472
486
|
* Whether to stick the view header to the top of the calendar.
|
|
473
487
|
* Useful for keeping the header visible while scrolling.
|
|
474
488
|
*/
|
|
@@ -548,8 +562,18 @@ interface IlamyCalendarProps {
|
|
|
548
562
|
/**
|
|
549
563
|
* Days of the week to hide from the week view.
|
|
550
564
|
* Hidden days won't render as columns, giving remaining days more space.
|
|
551
|
-
*
|
|
552
|
-
*
|
|
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
|
+
*
|
|
553
577
|
* @default []
|
|
554
578
|
* @example ['saturday', 'sunday'] // Hide weekends
|
|
555
579
|
*/
|
|
@@ -603,4 +627,4 @@ interface UseIlamyCalendarContextReturn {
|
|
|
603
627
|
*/
|
|
604
628
|
declare function useIlamyCalendarContext(): UseIlamyCalendarContextReturn;
|
|
605
629
|
declare const defaultTranslations: Translations;
|
|
606
|
-
export { useIlamyCalendarContext, isRecurringEvent, generateRecurringEvents, defaultTranslations, Weekday, WeekDays, UseIlamyCalendarContextReturn, TranslatorFunction, Translations, TranslationKey, TimeFormat, Resource, RenderCurrentTimeIndicatorProps, RRuleOptions, RRule, IlamyResourceCalendarProps, IlamyResourceCalendar, IlamyCalendarProps, IlamyCalendar,
|
|
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 };
|