goilluminate/elm-fancy-daterangepicker/5.0.0

NOTE: the latest version is 7.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/goilluminate/elm-fancy-daterangepicker is gone (deleted or private); Software Heritage has not archived the repo; no fork with tag 5.0.0 found (2 same-name repos checked); no cached copy. Use another version.

Details

DateRangePicker.Common

A common library between DatePicker and DateRangePicker

type alias DateRange =
{ start : Date
, end : Date
}

A type representing a date range with a start date and end date.

mkDateRange : Date -> Date -> DateRange

A function that creates a DateRange by taking in two dates (start and end).

This function assumes that start <= end

inRange : Date -> DateRange -> Bool

A function to check if a given date is within a given dateRange.

yearsInRange : DateRange -> Int

A function that returns the number of years as a whole number in the daterange

monthsInRange : DateRange -> Int

A function that returns the number of months as a whole number in the daterange

weeksInRange : DateRange -> Int

A function that returns the number of weeks as a whole number in the daterange

daysInRange : DateRange -> Int

A function that returns the number of days as a whole number in the daterange

Settings

= FullCalendar
| ThreeMonths
| TwoMonths
| OneMonth

A type representing how the calendar will be displayed

  • FullCalendar = the datepicker displays all 12 months when open
  • ThreeMonths = the datepicker displays 3 months at a time
  • TwoMonths = the datepicker displays 2 months at a time
  • OneMonth = the datepicker displays 1 month at a time
= Off
| ToPresent
| FromPresent
| Past
| Future
| Between Date Date
| To Date
| From Date

A type representing a restricted range for the datepicker. All dates not within the restricted date range will be disabled.

  • Off = no restrictions, any date to any date can be chosen.
  • ToPresent = from any date in the past up to today (including today)
  • FromPresent = from today to any date in the future
  • Past = from any date in the past up to yesterday (excluding today)
  • Future = from tomorrow up to any date in the future
  • Between date date = only between the two given dates [start - end] (inclusive)
  • To date = from any date in the past up to the given date (inclusive)
  • From date = from the given date up to any date in the future (inclusive)

A function that gets the class string for the CalendarDisplay

A function that gets the display string for the CalendarDisplay