@ilamy/calendar 1.3.3 → 1.4.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 +18 -13
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -535,6 +535,15 @@ interface IlamyCalendarProps {
|
|
|
535
535
|
* ```
|
|
536
536
|
*/
|
|
537
537
|
renderCurrentTimeIndicator?: (props: RenderCurrentTimeIndicatorProps) => React3.ReactNode;
|
|
538
|
+
/**
|
|
539
|
+
* Days of the week to hide from the week view.
|
|
540
|
+
* Hidden days won't render as columns, giving remaining days more space.
|
|
541
|
+
* Only applies to vertical week views (regular and resource vertical).
|
|
542
|
+
* Does not affect month, day, year, or resource horizontal week views.
|
|
543
|
+
* @default []
|
|
544
|
+
* @example ['saturday', 'sunday'] // Hide weekends
|
|
545
|
+
*/
|
|
546
|
+
hiddenDays?: WeekDays[];
|
|
538
547
|
}
|
|
539
548
|
declare const IlamyCalendar: React4.FC<IlamyCalendarProps>;
|
|
540
549
|
declare const isRecurringEvent: (event: CalendarEvent) => boolean;
|
|
@@ -545,9 +554,10 @@ interface GenerateRecurringEventsProps {
|
|
|
545
554
|
endDate: dayjs2.Dayjs;
|
|
546
555
|
}
|
|
547
556
|
declare const generateRecurringEvents: ({ event, currentEvents, startDate, endDate }: GenerateRecurringEventsProps) => CalendarEvent[];
|
|
557
|
+
import React5 from "react";
|
|
558
|
+
declare const IlamyResourceCalendar: React5.FC<IlamyResourceCalendarProps>;
|
|
548
559
|
/**
|
|
549
|
-
*
|
|
550
|
-
* Contains only the most commonly used calendar operations
|
|
560
|
+
* Publicly exposed calendar context properties.
|
|
551
561
|
*/
|
|
552
562
|
interface UseIlamyCalendarContextReturn {
|
|
553
563
|
readonly currentDate: dayjs2.Dayjs;
|
|
@@ -557,6 +567,7 @@ interface UseIlamyCalendarContextReturn {
|
|
|
557
567
|
readonly selectedEvent: CalendarEvent | null;
|
|
558
568
|
readonly selectedDate: dayjs2.Dayjs | null;
|
|
559
569
|
readonly firstDayOfWeek: number;
|
|
570
|
+
readonly resources: Resource[];
|
|
560
571
|
readonly setCurrentDate: (date: dayjs2.Dayjs) => void;
|
|
561
572
|
readonly selectDate: (date: dayjs2.Dayjs) => void;
|
|
562
573
|
readonly setView: (view: CalendarView) => void;
|
|
@@ -568,19 +579,13 @@ interface UseIlamyCalendarContextReturn {
|
|
|
568
579
|
readonly deleteEvent: (eventId: string | number) => void;
|
|
569
580
|
readonly openEventForm: (eventData?: Partial<CalendarEvent>) => void;
|
|
570
581
|
readonly closeEventForm: () => void;
|
|
582
|
+
readonly getEventsForResource: (resourceId: string | number) => CalendarEvent[];
|
|
571
583
|
readonly businessHours?: BusinessHours | BusinessHours[];
|
|
572
584
|
}
|
|
573
|
-
declare const useIlamyCalendarContext: () => UseIlamyCalendarContextReturn;
|
|
574
|
-
import React5 from "react";
|
|
575
|
-
declare const IlamyResourceCalendar: React5.FC<IlamyResourceCalendarProps>;
|
|
576
585
|
/**
|
|
577
|
-
*
|
|
586
|
+
* Public hook exported for library users.
|
|
587
|
+
* Returns a limited set of commonly used properties and methods.
|
|
578
588
|
*/
|
|
579
|
-
|
|
580
|
-
readonly events: CalendarEvent[];
|
|
581
|
-
readonly resources: Resource[];
|
|
582
|
-
readonly getEventsForResource: (resourceId: string | number) => CalendarEvent[];
|
|
583
|
-
}
|
|
584
|
-
declare const useIlamyResourceCalendarContext: () => UseIlamyResourceCalendarContextReturn;
|
|
589
|
+
declare function useIlamyCalendarContext(): UseIlamyCalendarContextReturn;
|
|
585
590
|
declare const defaultTranslations: Translations;
|
|
586
|
-
export {
|
|
591
|
+
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 };
|