Skip to content

Latest commit

 

History

History
163 lines (115 loc) · 5.69 KB

CHANGELOG.md

File metadata and controls

163 lines (115 loc) · 5.69 KB

Changelog

All jsCalendar changes are documented in this file.

[1.4.x-beta] - Under development

Added

  • Nothing yet

[1.4.5] - 2023-12-12

Added

  • Added extension add method jsCalendar.ext('example', {init : <function>, create : <function>, update : <function>});
  • Added methods freeze/unfreeze/isFrozen to prevent the calendars from re-rendering the UI PR#56 by [paxperscientiam](https://github.com/paxperscientiam]

Bugs

  • Fixed info.start parameter on onMonthRender (was not the first date)
  • Fixed selected dates not highlighted bug (depending on your timezone) (issue #44)
  • Fixed onDateRender incorrect isCurrentMonth, isPreviousMonth and isNextMonth (issue #45)
  • Fixed fdotw bug #42
  • Improved UX on dates outside min & max limits PR#58 by zangarmarsh
  • Fixed invalid date passed as date object not being detected

Languages

[1.4.4] - 2019-05-05

Added

  • API
    • Render handlers (based on PR #35 by jordanwallwork and Issue #40 by Daniel Rudolf)
      • Option and method onMonthRender
      • Option and method onDayRender
      • Option and method onDateRender
    • Default options were exposed on jsCalendar.options["option-name"]
    • Exposed jsCalendar.tools.getElement method (previously known as jsCalendar.prototype._getElement)

Fixed

  • Bugs
    • Fixed days locale bug of the setLanguage method (Issue #28)
    • Fixed a typo in French language (by Thomas Chapuis)
    • Fixed min-date comparison on previous month navigation (Issue #30)
    • Fixed compatibility with bootstrap (Issue #31)
    • Fixed classic micro theme days of the week width bug
    • Fixed not parsing dataset options on dynamic calendar creation
    • Fixed this not pointing to jsCalendar instance on events handlers (onDateClick and onMonthChange)
  • Languages
    • Fixed French language typo (by amstr4d)

Translations

[1.4.3] - 2018-09-15

Added

  • API
    • Added support for getting the object of an auto-jsCalendar calendar or saving one
      • var myCalendar = jsCalendar.get('#byId');
      • jsCalendar.set('@myCalendar', myCalendar);
      • jsCalendar.del('@myCalendar');
    • Added support for custom date string parser handlers #18
  • Themes
    • Micro Theme added #15

Fixed

Translations

  • Languages
    • Added Portuguese Language (by goodeath)
    • Added Turkish Language (by mgvjet)
    • Added Slovak Language (by greatapo)
    • Added Hungarian Language
    • Added Norwegian Language (by SpellCraft)
    • Added Ukrainian Language (by ashep)

[1.4.2] - 2018-02-03

Fixed

  • Fixed date format bugs and added "day" keyword
    • Before fix
      • javascript jsCalendar.tools.dateToString(new Date(2017, 11, 1), "month day", "en");
      • // returns "1eceDber Fay" (D = 1, m = D, d = F)
    • After fix
      • javascript jsCalendar.tools.dateToString(new Date(2017, 11, 1), "month day", "en");
      • // returns "December Friday"
  • Fixed no zero fill for day 9 with format DD

[1.4.1] - 2018-01-01

Added

  • jsCalendar.tools.*
    • jsCalendar.tools.parseDate(date)
    • jsCalendar.tools.stringToDate alias of JsCalendar.tools.parseDate
    • jsCalendar.tools.dateToString(date, format, lang)

[1.4.0] - 2017-11-04

Added

  • jsCalendar.version
  • calendar.clearSelected() alias of calendar.clearselect()
  • calendar.isSelected(date)
  • calendar.isVisible(date)
  • calendar.isInMonth(date)
  • calendar.getSelected(options)
  • support to get target with selectors
    • ex. target string "#myelement" will get the element with id myelement
  • min(date) // Set a max date for the calendar
  • max(date) // Set a min date for the calendar

Fixed

  • duplicate dates when time changes (ex. 29/10/2017)
  • string dates that do not exist throw error
    • ex. new jsCalendar(document.createElement('div'), "31/2/2017"); now throw error

[1.3.0] - 2017-07-08

Added

  • Support for setting the first day of the week
    • firstDayOfTheWeek : "{day-name}" // Based on the language sellected
    • firstDayOfTheWeek : "{number}" | {number} // 1-7 starting from Sunday
    • alias keyword : "fdotw" (from the initials FistDayOfTheWeek)

[1.2.0] - 2017-03-19

Changed

  • Public release of the library.