DayPilot Pro for JavaScript 2020.4.4736

Release date: November 1, 2020

Features

  • [Calendar] Built-in XSS protection
  • [Month] Built-in XSS protection
  • [Gantt] Built-in XSS protection

Improvements

  • [Scheduler] DayPilot.Scheduler.getCoords() supports "event" and "eventOffset" in the returned object. (build 4718)
  • [Scheduler] DayPilot.Row.cells.all() returns correct cells for frozen rows (Scheduler). (build 4719)
  • [Scheduler] DayPilot.Scheduler.cells.findXy(x, y, grid) - grid name parameter added (including TypeScript) (build 4719)
  • [Scheduler] DayPilot.Scheduler.resources[].cellsAutoUpdated (boolean) - refreshes cells after event drag and drop and events.add()/update()/remove() (in any row) (build 4722)
  • [Scheduler] DayPilot.Scheduler.onAfterEventEditRender event added (experimental). (build 4729)
  • [Scheduler] DayPilot.Scheduler.onEventEdit/args.newText can be changed (it used to be read-only). (build 4730)
  • [Calendar] DayPilot.Calendar.xssProtection ("Enabled" by default) added (build 4731)
  • [Calendar] DayPilot.Calendar.loadingLabelHtml added (build 4731)
  • [Calendar] DayPilot.Calendar.cornerText added (build 4731)
  • [Calendar] Properties related to XSS protection added to TypeScript (Calendar) (build 4732)
  • [Month] DayPilot.Month.xssProtection added ("Enabled" by default). (build 4732)
  • [Month] DayPilot.Month.loadingLabelHtml added (build 4732)
  • [Gantt] DayPilot.Gantt.xssProtection, loadingLabelHtml, cornerText. (build 4733)

Fixes

  • [Scheduler] Double escaping of event text during inline editing fixed (Scheduler). (build 4702)
  • [Scheduler] Vertical grid lines updated properly in bottom-frozen rows (Scheduler). (build 4717)
  • [Scheduler] DayPilot.Scheduler.links.load() and DayPilot.Util.overlaps() TypeScript definitions fixed. (build 4718)
  • [Scheduler] DayPilot.Scheduler.rows.find() fixed for frozen rows. (build 4720)

API Changes

  • Static DayPilot.Duration initialization methods renamed to avoid confusion: seconds() -> ofSeconds(), minutes() -> ofMinutes(), hours() -> ofHours(), days() -> ofDays(), weeks() -> ofWeeks(). (build 4724)
  • [Calendar] DayPilot.Calendar.message(text, options) escapes the text to be displayed, use options.rawHtml = true to override this behavior. (build 4736)
  • [Month] DayPilot.Month.message(text, options) escapes the text to be displayed, use options.rawHtml = true to override this behavior. (build 4736)
  • [Gantt] DayPilot.Gantt.message(text, options) escapes the text to be displayed, use options.rawHtml = true to override this behavior. (build 4736)
  • XSS protection enabled by default (all components). You can revert the behavior using xssProtection = false (build 4736)