@daypilot/daypilot-lite-angular 3.15.0 → 3.16.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 - 2023 Annpoint s.r.o.
131
131
  https://www.daypilot.org/
132
132
  Licensed under Apache Software License 2.0
133
- Version: 2023.2.477-lite
133
+ Version: 2023.3.484-lite
134
134
  */
135
135
  if ("undefined" == typeof DayPilot)
136
136
  var DayPilot = {};
@@ -976,7 +976,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
976
976
  if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
977
977
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
978
978
  var n = this;
979
- this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.477-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.onBeforeEventRender = 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.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, 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; 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.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) {
979
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2023.3.484-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.onBeforeEventRender = 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.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, 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; 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.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) {
980
980
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
981
981
  i = i.parentNode;
982
982
  var a = document.createElement("div");
@@ -1528,20 +1528,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1528
1528
  }
1529
1529
  }
1530
1530
  else if (t.moving) {
1531
- if (t.movingShadow || (t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !n.coords)
1531
+ if (!n.coords)
1532
1532
  return;
1533
- var o = n.cellHeight, r = 1, u = t.moveOffsetY;
1534
- u || (u = o / 2);
1535
- var c = Math.floor((n.coords.y - u - r + o / 2) / o) * o + r;
1533
+ if (!t.movingShadow) {
1534
+ var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
1535
+ if (h <= u)
1536
+ return;
1537
+ t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
1538
+ }
1539
+ var o = n.cellHeight, r = 1, f = t.moveOffsetY;
1540
+ f || (f = o / 2);
1541
+ var c = Math.floor((n.coords.y - f - r + o / 2) / o) * o + r;
1536
1542
  c < r && (c = r);
1537
- var h = n.nav.events, d = n.nav.main.clientHeight, f = parseInt(t.movingShadow.style.height);
1538
- c + f > d && (c = d - f), DayPilot.Util.addClass(t.moving, n.J("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1539
- var m = h.clientWidth / h.rows[0].cells.length, p = Math.floor((n.coords.x - 45) / m);
1540
- p < 0 && (p = 0), p < h.rows[0].cells.length && p >= 0 && t.movingShadow.column !== p && (t.movingShadow.column = p, t.moveShadow(h.rows[0].cells[p]));
1543
+ var m = n.nav.events, d = n.nav.main.clientHeight, p = parseInt(t.movingShadow.style.height);
1544
+ c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, n.J("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
1545
+ var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((n.coords.x - 45) / v);
1546
+ y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
1541
1547
  }
1542
1548
  else if (t.selecting) {
1543
- var a = DayPilot.mc(e), v = n.ya.getCellCoords(), y = t.column, g = n.nav.main.rows[v.y].cells[y];
1544
- a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
1549
+ var a = DayPilot.mc(e), g = n.ya.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
1550
+ a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
1545
1551
  }
1546
1552
  }, n.nav.scrollable.style.display = "";
1547
1553
  }, this.Pa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () {
@@ -1591,10 +1597,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1591
1597
  }, this.events.find = function (e) {
1592
1598
  if (!n.events.list)
1593
1599
  return null;
1594
- for (var t = 0; t < n.events.list.length; t++) {
1595
- var i = n.events.list[t];
1596
- if (i.id === e)
1597
- return new DayPilot.Event(i, n);
1600
+ if ("function" == typeof e) {
1601
+ for (var t = e, i = 0; i < n.events.list.length; i++) {
1602
+ var a = new DayPilot.Event(n.events.list[i], n);
1603
+ if (t(a))
1604
+ return a;
1605
+ }
1606
+ return null;
1607
+ }
1608
+ for (var i = 0; i < n.events.list.length; i++) {
1609
+ var o = n.events.list[i];
1610
+ if (o.id === e)
1611
+ return new DayPilot.Event(o, n);
1598
1612
  }
1599
1613
  return null;
1600
1614
  }, this.events.update = function (e) {
@@ -1838,7 +1852,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1838
1852
  var DayPilot = {};
1839
1853
  if (function () {
1840
1854
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
1841
- this.v = "2023.2.477-lite";
1855
+ this.v = "2023.3.484-lite";
1842
1856
  var t = "navigator_" + (new Date).getTime(), i = this;
1843
1857
  this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1844
1858
  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)
@@ -1888,7 +1902,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1888
1902
  var e = function () { }, t = {};
1889
1903
  t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
1890
1904
  var a = this, n = null;
1891
- this.v = "2023.2.477-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.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1905
+ this.v = "2023.3.484-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.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
1892
1906
  o = o || {};
1893
1907
  var r = null;
1894
1908
  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.ub.submenu = null, null !== t.mouse) {
@@ -2836,7 +2850,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2836
2850
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2837
2851
  var e = {};
2838
2852
  e.Month = function (t, i) {
2839
- this.v = "2023.2.477-lite", this.nav = {};
2853
+ this.v = "2023.3.484-lite", this.nav = {};
2840
2854
  var a = this;
2841
2855
  this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, 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 = 1, 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.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, 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.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), 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) {
2842
2856
  var t = null;
@@ -2851,10 +2865,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2851
2865
  }, this.events.find = function (e) {
2852
2866
  if (!a.events.list)
2853
2867
  return null;
2854
- for (var t = 0; t < a.events.list.length; t++) {
2855
- var i = a.events.list[t];
2856
- if (i.id === e)
2857
- return new DayPilot.Event(i, a);
2868
+ if ("function" == typeof e) {
2869
+ for (var t = e, i = 0; i < a.events.list.length; i++) {
2870
+ var n = new DayPilot.Event(a.events.list[i], a);
2871
+ if (t(n))
2872
+ return n;
2873
+ }
2874
+ return null;
2875
+ }
2876
+ for (var i = 0; i < a.events.list.length; i++) {
2877
+ var o = a.events.list[i];
2878
+ if (o.id === e)
2879
+ return new DayPilot.Event(o, a);
2858
2880
  }
2859
2881
  return null;
2860
2882
  }, this.events.update = function (e) {
@@ -3109,10 +3131,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3109
3131
  return;
3110
3132
  if (i.x === e.movingEvent.coords.x && i.y === e.movingEvent.coords.y)
3111
3133
  return;
3134
+ var c = 3, u = Math.abs(i.x - e.movingEvent.coords.x) + Math.abs(i.y - e.movingEvent.coords.y);
3135
+ if (u <= c)
3136
+ return;
3112
3137
  var n = a.getCellBelowPoint(i.x, i.y);
3113
3138
  a.clearShadow();
3114
- var c = e.movingEvent.event, u = e.movingEvent.offset, o = a.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
3115
- o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, u, c);
3139
+ var h = e.movingEvent.event, f = e.movingEvent.offset, o = a.cellMode ? 1 : DayPilot.DateUtil.daysSpan(h.start(), h.end()) + 1;
3140
+ o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o, f, h);
3116
3141
  }
3117
3142
  else if (e.timeRangeSelecting) {
3118
3143
  var i = DayPilot.mo2(a.nav.top, t);
@@ -3120,10 +3145,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3120
3145
  return;
3121
3146
  var n = a.getCellBelowPoint(i.x, i.y);
3122
3147
  a.clearShadow();
3123
- var r = e.timeRangeSelecting, h = 7 * r.y + r.x, f = 7 * n.y + n.x, o = Math.abs(f - h) + 1;
3148
+ var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * n.y + n.x, o = Math.abs(p - m) + 1;
3124
3149
  o < 1 && (o = 1);
3125
- var m = h < f ? r : n;
3126
- e.timeRangeSelecting.from = { x: m.x, y: m.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(m.x, m.y, 0, o, 0, null);
3150
+ var v = m < p ? r : n;
3151
+ e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
3127
3152
  }
3128
3153
  };
3129
3154
  }, this.ha = function () {
@@ -3165,10 +3190,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3165
3190
  for (var t = 0; t < this.cells[e].length; t++)
3166
3191
  this.cells[e][t].onclick = null;
3167
3192
  this.nav.cells.innerHTML = "";
3168
- }, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
3193
+ }, this.oa = function () {
3194
+ return 2 === a.api;
3195
+ }, this.Nc = function (t, i, o) {
3169
3196
  var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
3170
- if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%",
3171
- l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px", l.className = this.J("_cell"), !this.isWeekend(s)) {
3197
+ if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px", l.className = this.J("_cell"), !this.isWeekend(s)) {
3172
3198
  var d = this.J("_cell_business");
3173
3199
  DayPilot.Util.addClass(l, d);
3174
3200
  }
@@ -3194,7 +3220,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3194
3220
  return t;
3195
3221
  }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.pa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
3196
3222
  var i = e.event;
3197
- if (i.client.clickEnabled())
3223
+ if (i && i.client.clickEnabled())
3198
3224
  if (a.oa()) {
3199
3225
  var n = {};
3200
3226
  if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.qa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
@@ -3423,7 +3449,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3423
3449
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
3424
3450
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
3425
3451
  DayPilot.Navigator = function (e, t) {
3426
- this.v = "2023.2.477-lite";
3452
+ this.v = "2023.3.484-lite";
3427
3453
  var i = this;
3428
3454
  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.eb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "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.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) {
3429
3455
  var a = {};
@@ -3850,7 +3876,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
3850
3876
  }
3851
3877
  }
3852
3878
  }, 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) {
3853
- for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() < i.getTime();)
3879
+ for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
3854
3880
  a[n.toStringSortable()] = 1, n = n.addDays(1);
3855
3881
  return a;
3856
3882
  }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.db = function () {