@ilamy/calendar 1.1.1 → 1.2.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 +8 -0
- package/dist/index.js +6 -6
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -272,6 +272,8 @@ interface CellClickInfo {
|
|
|
272
272
|
end: dayjs2.Dayjs;
|
|
273
273
|
/** Resource ID if clicking on a resource calendar cell (optional) */
|
|
274
274
|
resourceId?: string | number;
|
|
275
|
+
/** Whether the clicked cell is an all-day cell (optional) */
|
|
276
|
+
allDay?: boolean;
|
|
275
277
|
}
|
|
276
278
|
interface IlamyCalendarProps {
|
|
277
279
|
/**
|
|
@@ -483,6 +485,12 @@ interface IlamyResourceCalendarProps extends Omit<IlamyCalendarProps, "events">
|
|
|
483
485
|
resources?: Resource[];
|
|
484
486
|
/** Custom render function for resources */
|
|
485
487
|
renderResource?: (resource: Resource) => React.ReactNode;
|
|
488
|
+
/**
|
|
489
|
+
* Orientation of the resource view.
|
|
490
|
+
* - "horizontal": Resources are rows, time is columns (default)
|
|
491
|
+
* - "vertical": Resources are columns, time is rows
|
|
492
|
+
*/
|
|
493
|
+
orientation?: "horizontal" | "vertical";
|
|
486
494
|
}
|
|
487
495
|
/**
|
|
488
496
|
* Resource interface representing a calendar resource (person, room, equipment, etc.)
|