@daypilot/daypilot-lite-angular 3.25.0 → 3.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -130,7 +130,7 @@ DayPilot Lite
130
130
  Copyright (c) 2005 - 2024 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2024.3.543-lite
133
+ Version: 2024.3.547-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -322,7 +322,7 @@ if (function () {
322
322
  a.key = i, a.val = e[i], t.push(a);
323
323
  }
324
324
  return t;
325
- }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
325
+ }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
326
326
  var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
327
327
  n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
328
328
  if (DayPilot.Areas.isVisible(a)) {
@@ -358,13 +358,12 @@ if (function () {
358
358
  DayPilot.Menu && DayPilot.Menu.touchPosition(a);
359
359
  var n = i.contextMenu || i.menu;
360
360
  if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)), n && n.show) {
361
- var o = { "type": "area", "div": e, "e": t, "area": i, "a": d };
361
+ var o = { "type": "area", "div": e, "e": t, "area": i,
362
+ "a": d };
362
363
  n.show(t, { "initiator": o });
363
364
  }
364
365
  }
365
- function s(e) {
366
- return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0;
367
- }
366
+ function s(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
368
367
  var a = a || {}, l = (a.offsetX || 0, a.eventDiv || e), d = document.createElement("div");
369
368
  d.isActiveArea = !0, d.area = i, d.setAttribute("unselectable", "on");
370
369
  var c = i.w || i.width, u = i.h || i.height, h = i.cssClass || i.css || i.className;
@@ -588,8 +587,7 @@ if (function () {
588
587
  }
589
588
  this.k = a, a.s();
590
589
  var r = a.u();
591
- i.j.updateMode(r),
592
- t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
590
+ i.j.updateMode(r), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
593
591
  }, this.z = function (e) {
594
592
  for (var t = 0; t < this.f.length; t++)
595
593
  if (this.f[t].control === e)
@@ -988,14 +986,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
988
986
  if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
989
987
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
990
988
  var n = this;
991
- this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.543-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.N = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.O(); }, this.O = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.N || (e.N = !0, clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.N; }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
989
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.547-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.N = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.O(); }, this.O = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; e.N || (e.N = !0, clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.N; }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
992
990
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
993
991
  i = i.parentNode;
994
992
  var a = document.createElement("div");
995
993
  a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow");
996
994
  var o = document.createElement("div");
997
995
  return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
998
- }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; }, this._.ba = function () {
996
+ }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () {
997
+ return "Disabled" !== n.xssProtection;
998
+ }, this._.ba = function () {
999
999
  if ("Auto" === n.weekStarts) {
1000
1000
  var e = o.locale();
1001
1001
  return e ? e.weekStarts : 0;
@@ -1441,7 +1441,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1441
1441
  var r = a.insertCell(-1);
1442
1442
  r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
1443
1443
  var s = document.createElement("div");
1444
- s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1444
+ s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
1445
1445
  var l = document.createElement("div");
1446
1446
  r.selection = l, r.appendChild(s), r.appendChild(l);
1447
1447
  }
@@ -1508,7 +1508,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1508
1508
  var c = l.insertCell(-1);
1509
1509
  c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", n.rtl || (c.style.textAlign = "left");
1510
1510
  var u = document.createElement("div");
1511
- u.style.marginRight = n.columnMarginRight + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
1511
+ u.style.marginRight = n.columnMarginRight + "px", u.style.marginLeft = n.columnMarginLeft + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
1512
1512
  var h = document.createElement("div");
1513
1513
  h.style.position = "relative", c.selection = h, c.appendChild(u), c.appendChild(h);
1514
1514
  }
@@ -1619,9 +1619,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1619
1619
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1620
1620
  this.headerCreated = !0;
1621
1621
  this.Ra(t);
1622
- }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) {
1623
- this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none";
1624
- }, this.Va = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Wa(); }); var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1622
+ }, this.loadingStart = function () {
1623
+ this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = "");
1624
+ }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Va = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Wa(); }); var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
1625
1625
  var t = null;
1626
1626
  if (e instanceof DayPilot.Event)
1627
1627
  t = e.data;
@@ -1786,10 +1786,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1786
1786
  if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
1787
1787
  var D = new DayPilot.Event(r, n);
1788
1788
  D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
1789
- var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
1790
- if (C === P && (x.cut || w.cut))
1789
+ var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
1790
+ if (C === P && (w.cut || x.cut))
1791
1791
  continue;
1792
- var k = w.boxBottom;
1792
+ var k = x.boxBottom;
1793
1793
  D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
1794
1794
  var p = D.part.top, v = D.part.top + D.part.height;
1795
1795
  p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.gb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
@@ -1893,7 +1893,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1893
1893
  var DayPilot = {};
1894
1894
  if (function () {
1895
1895
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1896
- this.v = "2024.3.543-lite";
1896
+ this.v = "2024.3.547-lite";
1897
1897
  var t = "navigator_" + (new Date).getTime(), i = this;
1898
1898
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1899
1899
  if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
@@ -1943,7 +1943,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1943
1943
  var e = function () { }, t = {};
1944
1944
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
1945
1945
  var a = this, n = null;
1946
- this.v = "2024.3.543-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.wb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1946
+ this.v = "2024.3.547-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.wb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1947
1947
  o = o || {};
1948
1948
  var r = null;
1949
1949
  if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.wb.submenu = null, null !== t.mouse) {
@@ -2042,13 +2042,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2042
2042
  if (h.icon) {
2043
2043
  var D = document.createElement("span");
2044
2044
  D.className = a.xb("item_icon");
2045
- var x = document.createElement("i");
2046
- x.className = h.icon, D.appendChild(x), p.appendChild(D);
2045
+ var w = document.createElement("i");
2046
+ w.className = h.icon, D.appendChild(w), p.appendChild(D);
2047
2047
  }
2048
2048
  if (h.symbol) {
2049
- var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
2049
+ var x = "http://www.w3.org/2000/svg", C = document.createElementNS(x, "svg");
2050
2050
  C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
2051
- var P = document.createElementNS(w, "use");
2051
+ var P = document.createElementNS(x, "use");
2052
2052
  P.setAttribute("href", h.symbol), C.appendChild(P);
2053
2053
  var k = document.createElement("span");
2054
2054
  k.className = a.xb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
@@ -2098,10 +2098,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2098
2098
  else
2099
2099
  d.style.left = e + "px";
2100
2100
  }(), o.parentLink) {
2101
- var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), O = R.x + N.offsetWidth, z = R.y - I;
2102
- O + T > H && (O = Math.max(0, R.x - T));
2101
+ var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), R = z.x + N.offsetWidth, O = z.y - I;
2102
+ R + T > H && (R = Math.max(0, z.x - T));
2103
2103
  var U = document.body.scrollTop + document.documentElement.scrollTop;
2104
- z + M - U > A && (z = Math.max(0, A - M + U)), d.style.left = O + "px", d.style.top = z + "px";
2104
+ O + M - U > A && (O = Math.max(0, A - M + U)), d.style.left = R + "px", d.style.top = O + "px";
2105
2105
  }
2106
2106
  d.style.display = "", this.addShadow(d), this.wb.div = d, o.submenu || (DayPilot.Menu.active = this);
2107
2107
  }
@@ -2459,8 +2459,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
2459
2459
  g && g.focus();
2460
2460
  }
2461
2461
  else {
2462
- var x = h.firstFocusable();
2463
- o.autoFocus && x ? x.focus() : o.div.focus();
2462
+ var w = h.firstFocusable();
2463
+ o.autoFocus && w ? w.focus() : o.div.focus();
2464
2464
  }
2465
2465
  });
2466
2466
  }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
@@ -2895,7 +2895,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2895
2895
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2896
2896
  var e = {};
2897
2897
  e.Month = function (t, i) {
2898
- this.v = "2024.3.543-lite", this.nav = {};
2898
+ this.v = "2024.3.547-lite", this.nav = {};
2899
2899
  var a = this;
2900
2900
  this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.N = !1, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Jc(), a.da(), "Full" === e.UpdateType && (a.Kc(), a.Lc()), a.ia(), a.show(), a.ja(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
2901
2901
  var t = null;
@@ -2972,7 +2972,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2972
2972
  var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
2973
2973
  r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
2974
2974
  }
2975
- }, this.update = function (e) {
2975
+ }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.ib), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
2976
2976
  if (a.ab(e), this.Aa) {
2977
2977
  if (a.N)
2978
2978
  throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
@@ -3244,8 +3244,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3244
3244
  var a = t + this.getWeekStart();
3245
3245
  a > 6 && (a -= 7), i.className = this.J("_header");
3246
3246
  var o = document.createElement("div");
3247
- o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px",
3248
- o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3247
+ o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
3249
3248
  for (var r = 0; r < this.rows.length; r++)
3250
3249
  this.Oc(t, r, e);
3251
3250
  }
@@ -3520,36 +3519,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3520
3519
  }
3521
3520
  }(), "undefined" == typeof DayPilot)
3522
3521
  var DayPilot = {};
3523
- "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
3524
- if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
3522
+ "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
3523
+ "use strict";
3524
+ if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
3525
3525
  DayPilot.Navigator = function (e, t) {
3526
- this.v = "2024.3.543-lite";
3526
+ this.v = "2024.3.547-lite";
3527
3527
  var i = this;
3528
- this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.gb = {}, this.Pc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Qc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Qc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.pa = function () { return 2 === i.api; }, this.Kc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Lc = function (e, t) {
3528
+ this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.gb = {}, this.Pc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (o.Qc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Rc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Qc() || (this.root.style.width = 7 * o.cellWidth() + this.Rc() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.pa = function () { return 2 === i.api; }, this.Kc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Tc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Uc = function () {
3529
+ if (!o.Qc())
3530
+ return null;
3531
+ var e = 7;
3532
+ return this.showWeekNumbers && e++, 100 / e;
3533
+ }, this.Vc = function () { return o.Qc() ? null : o.cellWidth(); }, this.Wc = function (e) { return "number" != typeof e && (e = 1), o.Qc() ? this.Uc() * e : this.Vc() * e; }, this.Xc = function (e) { var t = o.Qc() ? "%" : "px"; return this.Wc(e) + t; }, this.Lc = function (e, t) {
3529
3534
  var a = {};
3530
3535
  a.cells = [], a.days = [], a.weeks = [];
3531
3536
  var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
3532
3537
  a.rowCount = h;
3533
- var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Qc();
3538
+ var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Rc();
3534
3539
  a.width = m;
3535
3540
  var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
3536
3541
  a.height = p;
3537
3542
  var v = document.createElement("div");
3538
- if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
3539
- v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
3543
+ if (o.Qc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
3544
+ v.style.position = "absolute", o.Qc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
3540
3545
  else {
3541
3546
  v.style.position = "relative";
3542
3547
  var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
3543
- a.top = y, a.left = 0;
3548
+ a.top = y, a.left = 0, a.leftPct = 0;
3544
3549
  }
3545
- v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, this.root.appendChild(v);
3550
+ v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v);
3546
3551
  var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
3547
- b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Tc), v.appendChild(b), this.tl = b;
3552
+ b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Xc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span>&lt;</span>", b.onclick = this.Yc), v.appendChild(b), this.tl = b;
3548
3553
  var D = document.createElement("div");
3549
- D.style.position = "absolute", D.style.left = o.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * o.cellWidth() + this.Qc() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3550
- var x = document.createElement("div");
3551
- x.style.position = "absolute", x.style.left = 6 * o.cellWidth() + this.Qc() + "px", x.style.right = 6 * o.cellWidth() + this.Qc() + "px", x.style.top = "0px", x.style.width = o.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.J("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.Uc), v.appendChild(x), this.tr = x;
3552
- var w = this.Qc();
3554
+ D.style.position = "absolute", D.style.left = i.Xc(), D.style.top = "0px", D.style.width = i.Xc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
3555
+ var w = document.createElement("div");
3556
+ w.style.position = "absolute", w.style.left = i.Xc(i.showWeekNumbers ? 7 : 6), w.style.right = i.Xc(i.showWeekNumbers ? 7 : 6), w.style.top = "0px", w.style.width = i.Xc(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.J("_titleright"), t.right && (w.style.cursor = "pointer", w.innerHTML = "<span>&gt;</span>", w.onclick = this.Zc), v.appendChild(w), this.tr = w;
3557
+ var x = (this.Rc(), i.showWeekNumbers ? 1 : 0);
3553
3558
  if (this.showWeekNumbers)
3554
3559
  for (var C = 0; C < h; C++) {
3555
3560
  var P = d.addDays(7 * C), k = null;
@@ -3566,53 +3571,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3566
3571
  default: throw "Unknown weekNumberAlgorithm value.";
3567
3572
  }
3568
3573
  var _ = document.createElement("div");
3569
- _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3574
+ _.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Xc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
3570
3575
  }
3571
3576
  for (var S = 0; S < 7; S++) {
3572
3577
  a.cells[S] = [];
3573
3578
  var _ = document.createElement("div");
3574
- _.style.position = "absolute", _.style.left = S * o.cellWidth() + w + "px", _.style.right = S * o.cellWidth() + w + "px", _.style.top = this.titleHeight + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.Vc(S) + "</span>", v.appendChild(_), a.days.push(_);
3579
+ _.style.position = "absolute", _.style.left = i.Xc(S + x), _.style.right = i.Xc(S + x), _.style.top = this.titleHeight + "px", _.style.width = i.Xc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.$c(S) + "</span>", v.appendChild(_), a.days.push(_);
3575
3580
  for (var C = 0; C < h; C++) {
3576
- var P = d.addDays(7 * C + S), M = this.Wc(P) && "none" !== this.Xc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3577
- if ("month" === this.Xc())
3581
+ var P = d.addDays(7 * C + S), M = this._c(P) && "none" !== this.ad(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
3582
+ if ("month" === this.ad())
3578
3583
  M = M && T;
3579
- else if ("day" === this.Xc())
3584
+ else if ("day" === this.ad())
3580
3585
  M = M && (T || r && A || s && H);
3581
- else if ("week" === this.Xc()) {
3586
+ else if ("week" === this.ad()) {
3582
3587
  var E = P.firstDayOfMonth() === n;
3583
3588
  M = M && (E || r && A || s && H);
3584
3589
  }
3585
3590
  var N = document.createElement("div");
3586
3591
  a.cells[S][C] = N;
3587
- var I = i.Yc(S, C), R = I.x, O = I.y;
3588
- N.day = P, N.x = S, N.y = C, N.left = R, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Rc(N, "cell"), P.getTime() === f.getTime() && T && this.Rc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Rc(N, "weekend"), N.style.position = "absolute", N.style.left = R + "px", N.style.right = R + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3589
- var z = document.createElement("div");
3590
- z.style.position = "absolute", z.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Rc(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", N.appendChild(z);
3591
- var U = null;
3592
- if (this.cells && this.cells[P.toStringSortable()] && (U = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3592
+ var I = i.bd(S, C), z = I.x, R = I.y, O = o.Qc() ? "%" : "px";
3593
+ N.day = P, N.x = S, N.y = C, N.left = z, N.top = R, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Sc(N, "cell"), P.getTime() === f.getTime() && T && this.Sc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Sc(N, "weekend"), N.style.position = "absolute", N.style.left = z + O, N.style.right = z + O, N.style.top = R + "px", N.style.width = i.Xc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
3594
+ var U = document.createElement("div");
3595
+ U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Sc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
3596
+ var L = null;
3597
+ if (this.cells && this.cells[P.toStringSortable()] && (L = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
3593
3598
  var B = {};
3594
- B.cell = U || {}, B.cell.day = P, B.cell.isCurrentMonth = T, B.cell.isToday = P.getTime() === f.getTime() && T, B.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), U ? (B.cell.html = U.html || P.getDay(), B.cell.cssClass = U.css) : (B.cell.html = P.getDay(), B.cell.cssClass = null), i.onBeforeCellRender(B), U = B.cell;
3599
+ B.cell = L || {}, B.cell.day = P, B.cell.isCurrentMonth = T, B.cell.isToday = P.getTime() === f.getTime() && T, B.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), L ? (B.cell.html = L.html || P.getDay(), B.cell.cssClass = L.css) : (B.cell.html = P.getDay(), B.cell.cssClass = null), i.onBeforeCellRender(B), L = B.cell;
3595
3600
  }
3596
- if (U && DayPilot.Util.addClass(N, U.cssClass || U.css), T || r && A || s && H) {
3597
- var L = document.createElement("div");
3598
- L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Rc(L, "cell_text"), N.isClickable = !0, U && U.html && (L.innerHTML = U.html), N.appendChild(L);
3601
+ if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || r && A || s && H) {
3602
+ var j = document.createElement("div");
3603
+ j.innerHTML = P.getDay(), j.style.position = "absolute", j.style.left = "0px", j.style.top = "0px", j.style.right = "0px", j.style.bottom = "0px", i.Sc(j, "cell_text"), N.isClickable = !0, L && L.html && (j.innerHTML = L.html), N.appendChild(j);
3599
3604
  }
3600
- N.setAttribute("unselectable", "on"), N.onclick = this.Zc, v.appendChild(N), M && (i.$c(v, S, C), this.selected.push(N));
3605
+ N.setAttribute("unselectable", "on"), N.onclick = this.cd, v.appendChild(N), M && (i.dd(v, S, C), this.selected.push(N));
3601
3606
  }
3602
3607
  }
3603
- var j = document.createElement("div");
3604
- j.style.position = "absolute", j.style.left = "0px", j.style.top = g - 2 + "px", j.style.width = 7 * o.cellWidth() + this.Qc() + "px", j.style.height = "1px", j.style.fontSize = "1px", j.style.lineHeight = "1px", j.className = this.J("_line"), v.appendChild(j), this.months.push(a);
3605
- }, this.Yc = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, a = this.Qc(); return { "x": e * o.cellWidth() + a, "y": t * this.cellHeight + i }; }, this.$c = function (e, t, a) { var n = e.month.cells[t][a]; i.Rc(n, "select"); }, this._c = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.Qc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.ad = function () {
3608
+ var W = document.createElement("div");
3609
+ W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Xc(7 + x), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.J("_line"), v.appendChild(W), this.months.push(a);
3610
+ }, this.bd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Rc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Wc(e + n), "y": t * this.cellHeight + a }; }, this.dd = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.Rc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.fd = function () {
3606
3611
  if (this.items)
3607
3612
  for (var e = 0; e < this.showMonths; e++)
3608
3613
  for (var t = 0; t < 7; t++)
3609
3614
  for (var i = 0; i < 6; i++) {
3610
3615
  var a = this.months[e].cells[t][i];
3611
- a && (1 === this.items[a.day.toStringSortable()] ? (this.Rc(a, "busy"), this.Sc(a, "free")) : (this.Sc(a, "busy"), this.Rc(a, "free")));
3616
+ a && (1 === this.items[a.day.toStringSortable()] ? (this.Sc(a, "busy"), this.Tc(a, "free")) : (this.Tc(a, "busy"), this.Sc(a, "free")));
3612
3617
  }
3613
- }, this.bd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Xc = function () { return (this.selectMode || "").toLowerCase(); }, this.cd = function () {
3618
+ }, this.gd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.ad = function () { return (this.selectMode || "").toLowerCase(); }, this.hd = function () {
3614
3619
  var e = this.selectionDay || this.selectionStart;
3615
- switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Xc()) {
3620
+ switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.ad()) {
3616
3621
  case "day":
3617
3622
  this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
3618
3623
  break;
@@ -3627,10 +3632,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3627
3632
  break;
3628
3633
  default: throw "Unknown selectMode value.";
3629
3634
  }
3630
- }, this.dd = null, this.select = function (e, t, a) {
3635
+ }, this.jd = null, this.select = function (e, t, a) {
3631
3636
  var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
3632
3637
  if (!this.Aa)
3633
- return void (this.dd = { "date1": r, "date2": s, "options": l });
3638
+ return void (this.jd = { "date1": r, "date2": s, "options": l });
3634
3639
  var d = !0, c = !0;
3635
3640
  l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
3636
3641
  var u = this.selectionStart, h = this.selectionEnd;
@@ -3638,20 +3643,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3638
3643
  var f = !1;
3639
3644
  if (d) {
3640
3645
  var m = this.startDate;
3641
- (this.selectionStart < this.ed() || this.selectionStart >= this.fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3646
+ (this.selectionStart < this.kd() || this.selectionStart >= this.ld()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
3642
3647
  }
3643
- s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.cd(), this.Kc(), this.Pc(), this.gd(), this.ad(), this.bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.hd();
3648
+ s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.hd(), this.Kc(), this.Pc(), this.md(), this.fd(), this.gd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.nd();
3644
3649
  }, this.update = function (e) {
3645
3650
  if (i.ab(e), this.Aa) {
3646
3651
  if (i.N)
3647
3652
  throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
3648
- i.jd();
3653
+ i.od();
3649
3654
  var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
3650
- i.$a(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
3655
+ i.$a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.L();
3651
3656
  }
3652
- }, this.$a = function () { this.Kc(), this.Pc(), this.cd(), this.gd(), this.da(), this.ad(), this.bd(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.gb = {}; }, this.db = null, this.ab = function (e) {
3657
+ }, this.$a = function () { this.Kc(), this.Pc(), this.hd(), this.md(), this.da(), this.fd(), this.gd(), this.visible ? this.show() : this.hide(); }, this.od = function () { i.gb = {}; }, this.db = null, this.ab = function (e) {
3653
3658
  if (e) {
3654
- var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
3659
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
3655
3660
  this.db = t;
3656
3661
  for (var a in e)
3657
3662
  if (t[a]) {
@@ -3667,27 +3672,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3667
3672
  var i = e[t];
3668
3673
  i.postInit && i.postInit();
3669
3674
  }
3670
- }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.kd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.kd = function (e) {
3675
+ }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.pd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.pd = function (e) {
3671
3676
  if ("function" == typeof i.onAjaxError) {
3672
3677
  var t = {};
3673
3678
  t.request = e, i.onAjaxError(t);
3674
3679
  }
3675
3680
  else
3676
3681
  "function" == typeof i.ajaxError && i.ajaxError(e);
3677
- }, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.ld = function (e, t) { "refresh" === e && this.hd(); }, this.Vc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Wc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.md = function (e) {
3682
+ }, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.qd = function (e, t) { "refresh" === e && this.nd(); }, this.$c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this._c = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.rd = function (e) {
3678
3683
  for (var t = 0; t < i.months.length; t++) {
3679
3684
  var a = i.months[t];
3680
3685
  if (!a)
3681
3686
  return null;
3682
- if (e.x < a.left || a.width < e.x)
3687
+ if (e.x < a.left)
3683
3688
  return null;
3684
- i.months[t].height;
3685
- if (a.top <= e.y && e.y < a.top + a.height)
3686
- return t;
3689
+ if (!(a.left + a.width < e.x)) {
3690
+ i.months[t].height;
3691
+ if (a.top <= e.y && e.y < a.top + a.height)
3692
+ return t;
3693
+ }
3687
3694
  }
3688
3695
  return null;
3689
- }, this.nd = function (e) {
3690
- var t = DayPilot.mo3(i.nav.top, e), a = i.md(t);
3696
+ }, this.sd = function (e) { }, this.td = function () {
3697
+ if (!o.Qc())
3698
+ return void (i.ud = i.cellWidth);
3699
+ var e = i.months[0].cells[0][0], t = e.clientWidth;
3700
+ i.ud = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
3701
+ }, this.vd = function (e) {
3702
+ i.td();
3703
+ var t = DayPilot.mo3(i.nav.top, e), a = i.rd(t);
3691
3704
  if (null === a)
3692
3705
  return null;
3693
3706
  var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
@@ -3696,18 +3709,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3696
3709
  for (var r = 0; r < n.cells.length; r++)
3697
3710
  for (var s = 0; s < n.cells[r].length; s++) {
3698
3711
  var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
3699
- if (c <= t.x && t.x < c + i.cellWidth && d <= t.y && t.y < d + i.cellHeight)
3712
+ if (c <= t.x && t.x < c + i.ud && d <= t.y && t.y < d + i.cellHeight)
3700
3713
  return { "month": a, "x": r, "y": s, "coords": t };
3701
3714
  }
3702
3715
  return null;
3703
- }, this.od = function (e) {
3716
+ }, this.wd = function (e) {
3704
3717
  if (i.freeHandSelectionEnabled) {
3705
- var t = i.nd(e);
3718
+ var t = i.vd(e);
3706
3719
  t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
3707
3720
  }
3708
- }, this.pd = function (e) {
3721
+ }, this.xd = function (e) {
3709
3722
  if (a.start) {
3710
- var t = i.nd(e);
3723
+ var t = i.vd(e);
3711
3724
  if (a.end)
3712
3725
  a.end = t;
3713
3726
  else if (t) {
@@ -3716,9 +3729,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3716
3729
  }
3717
3730
  a.end && (a.clear(), a.draw());
3718
3731
  }
3719
- }, this.qd = {};
3720
- var a = this.qd;
3721
- a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Yc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () {
3732
+ }, this.yd = {};
3733
+ var a = this.yd;
3734
+ a.start = null, a.drawCell = function (e) {
3735
+ var t = i.months[e.month], n = i.bd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Xc();
3736
+ if (o.Qc()) {
3737
+ var c = "Horizontal" === i.orientation ? i.showMonths : 1;
3738
+ s = t.leftPct + n.x / c, l = "%", d = i.Xc(1 / c);
3739
+ }
3740
+ var u = document.createElement("div");
3741
+ u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u);
3742
+ }, a.clear = function () {
3722
3743
  if (a.cells) {
3723
3744
  for (var e = 0; e < a.cells.length; e++)
3724
3745
  i.nav.preselection.removeChild(a.cells[e]);
@@ -3733,13 +3754,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3733
3754
  o.x = 6, o.y = r.rowCount - 1;
3734
3755
  }
3735
3756
  for (a.cells = []; !t.is(o);) {
3736
- a.drawCell(t);
3757
+ t.visible() && a.drawCell(t);
3737
3758
  var s = new n(t).next();
3738
3759
  if (!s)
3739
3760
  return;
3740
3761
  t.month = s.month, t.x = s.x, t.y = s.y;
3741
3762
  }
3742
- a.drawCell(t);
3763
+ t.visible() && a.drawCell(t);
3743
3764
  }
3744
3765
  }, a.ordered = function () { var e = a.start, t = a.end, i = {}; return !t || new n(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
3745
3766
  var n = function (e, t, a) {
@@ -3787,50 +3808,50 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3787
3808
  return e;
3788
3809
  }, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); };
3789
3810
  };
3790
- this.Zc = function (e) {
3811
+ this.cd = function (e) {
3791
3812
  var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
3792
3813
  if (a.cells[n][o].isClickable) {
3793
3814
  i.clearSelection(), i.selectionDay = r;
3794
3815
  var r = i.selectionDay;
3795
- switch (i.Xc()) {
3816
+ switch (i.ad()) {
3796
3817
  case "none":
3797
3818
  i.selectionStart = r, i.selectionEnd = r;
3798
3819
  break;
3799
3820
  case "day":
3800
3821
  if (i.autoFocusOnClick) {
3801
3822
  var s = r;
3802
- if (r < i.ed() || r >= i.fd())
3823
+ if (r < i.kd() || r >= i.ld())
3803
3824
  return void i.select(r);
3804
3825
  }
3805
3826
  var l = a.cells[n][o];
3806
- i.$c(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
3827
+ i.dd(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
3807
3828
  break;
3808
3829
  case "week":
3809
3830
  if (i.autoFocusOnClick) {
3810
3831
  var s = a.cells[0][o].day, d = a.cells[6][o].day;
3811
- if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ed() || d >= i.fd()))
3832
+ if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.kd() || d >= i.ld()))
3812
3833
  return void i.select(r);
3813
3834
  }
3814
3835
  for (var c = 0; c < 7; c++)
3815
- i.$c(t, c, o), i.selected.push(a.cells[c][o]);
3836
+ i.dd(t, c, o), i.selected.push(a.cells[c][o]);
3816
3837
  i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
3817
3838
  break;
3818
3839
  case "month":
3819
3840
  if (i.autoFocusOnClick) {
3820
3841
  var s = r;
3821
- if (r < i.ed() || r >= i.fd())
3842
+ if (r < i.kd() || r >= i.ld())
3822
3843
  return void i.select(r);
3823
3844
  }
3824
3845
  for (var s = null, d = null, o = 0; o < 6; o++)
3825
3846
  for (var n = 0; n < 7; n++) {
3826
3847
  var l = a.cells[n][o];
3827
- l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.$c(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
3848
+ l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.dd(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
3828
3849
  }
3829
3850
  i.selectionStart = s, i.selectionEnd = d;
3830
3851
  break;
3831
3852
  default: throw "unknown selectMode";
3832
3853
  }
3833
- i.bd(), i.L();
3854
+ i.gd(), i.L();
3834
3855
  }
3835
3856
  }, this.L = function (e) {
3836
3857
  var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
@@ -3864,7 +3885,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3864
3885
  case "None": break;
3865
3886
  case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
3866
3887
  }
3867
- }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Uc = function (e) { i.rd(i.skipMonths); }, this.Tc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.gd(), this.bd(), this.hd(), this.ad(); }, this.ed = function () { return i.startDate.firstDayOfMonth(); }, this.fd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.hd = function () {
3888
+ }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Zc = function (e) { i.zd(i.skipMonths); }, this.Yc = function (e) { i.zd(-i.skipMonths); }, this.zd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.md(), this.gd(), this.nd(), this.fd(); }, this.kd = function () { return i.startDate.firstDayOfMonth(); }, this.ld = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () {
3889
+ return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
3890
+ }, this.nd = function () {
3868
3891
  var e = this.visibleStart(), t = this.visibleEnd();
3869
3892
  if (i.pa()) {
3870
3893
  var a = {};
@@ -3894,13 +3917,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3894
3917
  break;
3895
3918
  case "Disabled":
3896
3919
  }
3897
- }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.ad(); }, this.gd = function () {
3920
+ }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.fd(); }, this.md = function () {
3898
3921
  for (var e = 0; e < this.showMonths; e++) {
3899
- var t = this.sd(e);
3922
+ var t = this.Ad(e);
3900
3923
  this.Lc(e, t);
3901
3924
  }
3902
- this.root.style.height = this.td() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3903
- }, this.td = function () {
3925
+ this.root.style.height = this.Bd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
3926
+ }, this.Bd = function () {
3904
3927
  if ("Horizontal" === this.orientation) {
3905
3928
  for (var e = 0, t = 0; t < this.months.length; t++) {
3906
3929
  var i = this.months[t];
@@ -3913,7 +3936,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3913
3936
  a += i.height;
3914
3937
  }
3915
3938
  return a;
3916
- }, this.sd = function (e) {
3939
+ }, this.Ad = function (e) {
3917
3940
  if (this.internal.showLinks)
3918
3941
  return this.internal.showLinks;
3919
3942
  var t = {};
@@ -3929,27 +3952,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3929
3952
  }, o.cellWidth = function () {
3930
3953
  if (i.gb.cellWidth)
3931
3954
  return i.gb.cellWidth;
3932
- var e = i.ud("_cell_dimensions").width;
3955
+ var e = i.Cd("_cell_dimensions").width;
3933
3956
  return e || (e = i.cellWidth), i.gb.cellWidth = e, e;
3934
- }, this.clearSelection = function () {
3957
+ }, o.Qc = function () { return "Auto" === i._.cellWidth(); }, this.clearSelection = function () {
3935
3958
  for (var e = 0; e < this.selected.length; e++) {
3936
3959
  var t = this.selected[e];
3937
- i._c(t.parentNode, t.x, t.y);
3960
+ i.ed(t.parentNode, t.x, t.y);
3938
3961
  }
3939
3962
  this.selected = [];
3940
- }, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () {
3963
+ }, this.Dd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () {
3941
3964
  if (DayPilot.isArray(this.events.list)) {
3942
3965
  this.items = {};
3943
3966
  for (var e = 0; e < this.events.list.length; e++) {
3944
3967
  var t = this.events.list[e];
3945
3968
  if (!t.hidden) {
3946
- var i = this.wd(t);
3969
+ var i = this.Ed(t);
3947
3970
  for (var a in i)
3948
3971
  this.items[a] = 1;
3949
3972
  }
3950
3973
  }
3951
3974
  }
3952
- }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) {
3975
+ }, this.Cd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Ed = function (e) {
3953
3976
  for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
3954
3977
  a[n.toStringSortable()] = 1, n = n.addDays(1);
3955
3978
  return a;
@@ -3965,21 +3988,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3965
3988
  this.root = this.nav.top;
3966
3989
  }, this.init = function () {
3967
3990
  if (this.fb(), !this.root.dp) {
3968
- this.cd(), this.Pc(), this.gd(), this.da(), this.ad(), this.Y(), this.xd(), this.Za();
3969
- if (this.vd() && this.hd(), this.Aa = !0, this.eb(), this.dd) {
3970
- var e = this.dd;
3971
- this.select(e.date1, e.date2, e.options), this.dd = null;
3991
+ this.hd(), this.Pc(), this.md(), this.da(), this.fd(), this.Y(), this.Fd(), this.Za();
3992
+ if (this.Dd() && this.nd(), this.Aa = !0, this.eb(), this.jd) {
3993
+ var e = this.jd;
3994
+ this.select(e.date1, e.date2, e.options), this.jd = null;
3972
3995
  }
3973
3996
  return this;
3974
3997
  }
3975
- }, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) {
3998
+ }, this.Fd = function () { i.nav.top.onmousedown = this.wd, i.nav.top.onmousemove = this.xd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.Gd); }, this.Gd = function (e) {
3976
3999
  if (a.start && a.end) {
3977
4000
  var t = DayPilot.mo3(i.nav.top, e);
3978
4001
  if (t.x === a.start.coords.x && t.y === a.start.coords.y)
3979
4002
  return a.start = null, void a.clear();
3980
4003
  a.clear();
3981
4004
  var o = a.ordered();
3982
- o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Kc(), i.Pc(), i.gd(), i.ad(), i.bd();
4005
+ o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Kc(), i.Pc(), i.md(), i.fd(), i.gd();
3983
4006
  i.L({ "mode": "FreeHand" });
3984
4007
  }
3985
4008
  a.start = null, a.end = null;
@@ -4020,13 +4043,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
4020
4043
  for (var i in e)
4021
4044
  n[i] = e[i];
4022
4045
  n.update();
4023
- }, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.ad(); }, !0);
4046
+ }, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.fd(); }, !0);
4024
4047
  };
4025
4048
  } };
4026
4049
  }]);
4027
- }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
4050
+ }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
4028
4051
  }
4029
- }();
4052
+ }(DayPilot);
4030
4053
 
4031
4054
  function rand() {
4032
4055
  return ((1 + Math.random()) * 0x10000) | 0;