An open-source Angular scheduler and event calendar, MIT-licensed like all of Needless UI: month, week, day and agenda views, and a timeline with a row for each room, person or machine. Resource views and timelines are often a paid extra; here they’re free, for any project, commercial ones too.
Events are plain data with ISO times. Overlapping ones share the width, events across midnight show in both days, and all-day events run across the top as bars. Give events a resource and pass resources: the timeline shows a day by its hours, or a week or a month by its days, and the day and the week split into a column per resource.
Recurring events follow iCalendar repeat rules (RFC 5545), such as FREQ=WEEKLY;BYDAY=MO,WE or the last Friday of each month, with exceptions in exdate. nuiSchedulerToIcs() and nuiSchedulerFromIcs() write and read .ics files, which Google Calendar, Outlook and Apple Calendar import and export.
It never changes your events itself. Drag an event, its end, or across empty time, and eventChange or slotSelect reports what happened; allow turns down what your rules don’t, such as a room booked twice. rangeChange tells you which days are shown, so you can load their events. The room booking guide puts it together, step by step.
Show only working hours, shade the time outside them, leave out the weekend, number the weeks, and draw events and resources with templates. Everything a pointer does, the keyboard does too: the grid is one tab stop, the arrow keys move through days, times and resources, and Alt with the arrows moves an event.
The scheduler is a React component too: NuiScheduler, from @needless-ui/react/scheduler. The examples here are in Angular; see its React API and the React guide.
A week to plan
With editable and selectable, drag events to move them, drag their bottom edge to resize them, and drag across empty time to add one. The example updates its events from the outputs.
Rooms on a timeline
With resources and view="timeline", each room gets a row of the day, from dayStart to dayEnd. Drag a booking to another room or time, or drag across a room to book it: allow keeps a room from being booked twice. The day view puts the rooms side by side.
A month of the team
timelineSpan="month" lays out the month’s days for each person, drawn with an avatar by nuiSchedulerResource. Plans drag from one person to another and stretch from their end, and the weekend is shaded. The toolbar is the example’s own, on previous(), next() and title.
Recurring events
Each routine repeats by its rrule: a standup on weekdays, a 1:1 every other week, the gym twelve times, a retro on the last Friday of the month, and payday on its last day. Dragging an occurrence moves that day’s only, and the button downloads them all as an .ics file.
A work week
weekends="false" leaves out the weekend, dayStart and dayEnd show 7:00 to 19:00, and businessHours shade the time outside work, around lunch and after a short Friday. Events have colors of their own and move by 15 minutes, with snapMinutes.
A month and an agenda
Events across days run as bars; a busy day shows how many more there are. views offers only the month and the agenda of the next agendaDays.