Skip to content

v0.3.0

Choose a tag to compare

@AsmitNepali AsmitNepali released this 30 Jul 05:25

Added

  • reservedDates() marks days that are already taken rather than closed. They block selection like unavailable dates, but keep the day's own background and carry a corner icon, a hairline ring in the primary color, and a Reserved tooltip — so "booked by someone else" no longer looks identical to "closed by a rule".
  • reservedIcon() sets the marker icon. Accepts a Filament ScalableIcon — every Heroicon enum case is one — or a plain icon name. Defaults to Heroicon::Bookmark.
  • reservedTooltip() overrides the tooltip text on reserved days, which also feeds the icon's aria-label. Pass an empty string to drop the tooltip and keep the icon.
  • calendarColumns() accepts a column count per breakpoint, e.g. ['sm' => 2, 'lg' => 3, 'xl' => 4]. Keys are default, sm, md, lg, xl and 2xl (xxl and xs work as aliases), matching Tailwind's widths. Each value holds until a wider breakpoint overrides it, and counts are still clamped to months().
  • --fi-fila-calendar-reserved-color CSS variable for theming the reserved ring and marker.
  • Server-side validation on CalendarInput rejecting a submission that lands on a reserved day, including one covered by a range, so a crafted Livewire payload cannot double-book. unavailableDates() and weekEndDays() stay UI-only, so records already sitting on those dates keep saving.

Fixed

  • disabledDates() and unavailableDates() silently produced no blocked days when given Carbon instances or datetime strings, such as a date column plucked off a model. Values are now normalized to Y-m-d on both the PHP and JavaScript sides, and unparseable entries are dropped instead of reaching the browser as NaN.

Changed

  • The title tooltip removed in 0.2.0 returns for reserved days only.

Full changelog: v0.2.0...v0.3.0