@daypilot/daypilot-lite-angular 5.7.0 → 5.8.0-sandbox.830

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.
@@ -259,6 +259,7 @@ var DayPilot;
259
259
  onAfterEventRender;
260
260
  onBeforeEventRender;
261
261
  onBeforeCellRender;
262
+ onBeforeHeaderRender;
262
263
  onCellHeaderClick;
263
264
  onCellHeaderClicked;
264
265
  onEventClick;
@@ -499,7 +500,7 @@ DayPilot Lite
499
500
  Copyright (c) 2005 - 2026 Annpoint s.r.o.
500
501
  https://www.daypilot.org/
501
502
  Licensed under Apache Software License 2.0
502
- Version: 2026.2.825-lite
503
+ Version: 2026.2.830-lite
503
504
  */
504
505
  "use strict";
505
506
  var DayPilot = { Global: {} };
@@ -1128,12 +1129,12 @@ var DayPilot = { Global: {} };
1128
1129
  return a.start.time = s.Ea(s.coords.x, s.coords.y), a.start.columnIndex = s.Fa(s.coords.x), a.start.column = s.Ca[a.start.columnIndex], s.Ga(), s.Ha(), !1;
1129
1130
  }
1130
1131
  } }, this.Ha = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, n = e.start.columnIndex, a = t.start, i = s.getPixels(e.startTime, a), r = s.getPixels(e.endTime, a), o = i.boxTop, l = r.boxBottom; s.snapToGrid || (o = i.top, l = r.top); var d = l - o, c = s.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (s.nav.activeSelection)
1131
- return s.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = s.M("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), s.nav.events.rows[0].cells[n].selection.appendChild(e), s.elements.selection.push(e), s.nav.activeSelection = e, e; }(); u.className = s.M("_shadow"), u.firstChild.innerHTML = "", u.style.top = o + "px", u.style.height = d + "px", s.nav.events.rows[0].cells[n].selection.appendChild(u); }(); }, this.Ga = function () { var e = DayPilot.Global.selecting; e.end = s.coords, e.end.time = s.Ea(e.start.x, e.end.y), e.end.column = s.Ca[s.Fa(e.end.x)], s.Ia(e); }, this.Ia = function (e) { var t, n, a; s.snapToGrid ? e.end.time < e.start.time ? (t = s.Ja(e.end.time, e.start.column.start), n = s.Ka(e.start.time, e.start.column.start), a = e.endTime) : (t = s.Ja(e.start.time, e.start.column.start), n = s.Ka(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () { if (!s.O)
1132
+ return s.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = s.M("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), s.nav.events.rows[0].cells[n].selection.appendChild(e), s.elements.selection.push(e), s.nav.activeSelection = e, e; }(); u.className = s.M("_shadow"), u.firstChild.innerHTML = "", u.style.top = o + "px", u.style.height = d + "px", s.nav.events.rows[0].cells[n].selection.appendChild(u); }(); }, this.Ga = function () { var e = DayPilot.Global.selecting; e.end = s.coords, e.end.time = s.Ea(e.start.x, e.end.y), e.end.column = s.Ca[s.Fa(e.end.x)], s.Ia(e); }, this.Ia = function (e) { var t, n, a; s.snapToGrid ? (e.start.time === e.end.time && (n = s.Ja(e.start.time, e.start.column.start), t = n.addTime(60 * -l.ga() * 1e3), a = e.endTime), e.end.time < e.start.time ? (t = s.Ka(e.end.time, e.start.column.start), n = s.Ja(e.start.time, e.start.column.start), a = e.endTime) : (t = s.Ka(e.start.time, e.start.column.start), n = s.Ja(e.end.time, e.start.column.start), a = e.startTime)) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, a = e.endTime) : (t = e.start.time, n = e.end.time, a = e.startTime), e.startTime = t, e.endTime = n, e.anchor = a; }, this.getSelection = function () { if (!s.O)
1132
1133
  return null; var e = s.O; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, s); }, this.Fa = function (e) { if (e < 0)
1133
1134
  return 0; s.rtl ? e = s.nav.main.offsetWidth - e : e -= s.hourWidth; for (var t = 0, n = s.nav.events.rows[0].cells, a = 0; a < n.length; a++) {
1134
1135
  if (t += n[a].offsetWidth, e < t)
1135
1136
  return a;
1136
- } return null; }, this.Ea = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Fa(e), a = t / (60 / l.ga()) / s.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), o = this.Ca[n]; return o ? o.start.addTime(r) : null; }, this.Ja = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * l.ga() * 1e3, i = n % a; return e.addTime(-i); }, this.Ka = function (e, t) { var n = this.Ja(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * l.ga() * 1e3); }, this.La = {}, this.La.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !s.coords)
1137
+ } return null; }, this.Ea = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Fa(e), a = t / (60 / l.ga()) / s.cellHeight, i = 60 * a * 60 * 1e3, r = 6e4 * Math.floor(i / 6e4), o = this.Ca[n]; return o ? o.start.addTime(r) : null; }, this.Ka = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var a = 60 * l.ga() * 1e3, i = n % a; return e.addTime(-i); }, this.Ja = function (e, t) { var n = this.Ka(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * l.ga() * 1e3); }, this.La = {}, this.La.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !s.coords)
1137
1138
  return null; e.x = s.Fa(s.coords.x); var t = 0, n = Math.floor((s.coords.y - t) / s.cellHeight); return e.y = n, e.x < 0 ? null : e; }, this.Ma = function (e) { var t = s.ta(); return e < t && (e += 24), (e - t) * (60 / l.ga()) * s.cellHeight; }, this.Na = function (e) { var t = s.ta(); return e / (60 / l.ga()) / s.cellHeight + t; }, this.scrollToHour = function (e) { s.nav.scroll.scrollTop = s.Ma(e); }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e) { var t; if ("number" == typeof e)
1138
1139
  t = s.zoomLevels[e];
1139
1140
  else {
@@ -1324,8 +1325,7 @@ var DayPilot = { Global: {} };
1324
1325
  this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0);
1325
1326
  for (var u = d.length, h = c.insertRow(-1), f = 0; f < u; f++) {
1326
1327
  var v = h.insertCell(-1);
1327
- v.style.padding = "0px", v.style.border = "0px none",
1328
- v.style.height = "0px", v.style.overflow = "visible", s.rtl || (v.style.textAlign = "left");
1328
+ v.style.padding = "0px", v.style.border = "0px none", v.style.height = "0px", v.style.overflow = "visible", s.rtl || (v.style.textAlign = "left");
1329
1329
  var p = document.createElement("div");
1330
1330
  p.style.marginRight = s.columnMarginRight + "px", p.style.marginLeft = s.columnMarginLeft + "px", p.style.position = "relative", p.style.height = "1px", p.style.marginTop = "-1px";
1331
1331
  var m = document.createElement("div");
@@ -1775,15 +1775,20 @@ var DayPilot = { Global: {} };
1775
1775
  var d = DayPilot.abs(l);
1776
1776
  r.x = d.x, r.y = d.y + d.h + 2, a.rtl && (r.x = d.x + d.w);
1777
1777
  }
1778
- } }(), function () { var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, d = 0; if (n - i > A - E && 0 !== A) {
1779
- s = n - (n - i - (A - E) + I);
1780
- }
1781
- else
1782
- s = n; if (a.$b.y = s, l.style.top = s + "px", ("right" === r.align || a.rtl) && (e -= H), e - o > N - H && 0 !== N) {
1783
- d = e - (e - o - (N - H) + I);
1784
- }
1785
- else
1786
- d = e; a.$b.x = d, l.style.left = d + "px"; }(), r.parentLink) {
1778
+ } }(), function () {
1779
+ var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, d = 0;
1780
+ if (n - i > A - E && 0 !== A) {
1781
+ s = n - (n - i - (A - E) + I);
1782
+ }
1783
+ else
1784
+ s = n;
1785
+ if (a.$b.y = s, l.style.top = s + "px", ("right" === r.align || a.rtl) && (e -= H), e - o > N - H && 0 !== N) {
1786
+ d = e - (e - o - (N - H) + I);
1787
+ }
1788
+ else
1789
+ d = e;
1790
+ a.$b.x = d, l.style.left = d + "px";
1791
+ }(), r.parentLink) {
1787
1792
  var R = r.parentLink, z = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), U = P.x + R.offsetWidth;
1788
1793
  a.rtl && (U = P.x - H);
1789
1794
  var L = P.y - z;
@@ -1972,15 +1977,11 @@ var DayPilot = { Global: {} };
1972
1977
  } }, this.Ec = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
1973
1978
  var e = t.Fc.scrollY();
1974
1979
  t.scrollWithPage || (t.div.style.top = e + t.top + "px");
1975
- } }, this.Fc = {}, this.Fc.container = function () { return t.container || document.body; }, this.Fc.scrollY = function () { var e = t.Fc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1976
- e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.lc = function () {
1977
- var e = t.Fc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div");
1978
- i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i);
1979
- var r = document.createElement("div");
1980
- r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.Bc), r.addEventListener("keydown", function (e) { e.stopPropagation(); });
1981
- var o = null;
1982
- this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i;
1983
- }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.Gc || (t.stretch(), t.Gc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.rc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1980
+ } }, this.Fc = {}, this.Fc.container = function () { return t.container || document.body; }, this.Fc.scrollY = function () { var e = t.Fc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) {
1981
+ return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop
1982
+ };
1983
+ }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
1984
+ e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.lc = function () { var e = t.Fc.container(), n = e === document.body, a = n ? "fixed" : "absolute", i = document.createElement("div"); i.id = this.id + "hide", i.style.position = a, i.style.left = "0px", i.style.top = "0px", i.style.right = "0px", i.style.bottom = "0px", i.oncontextmenu = function () { return !1; }, i.onmousedown = function () { return !1; }, e.appendChild(i); var r = document.createElement("div"); r.id = this.id + "popup", r.style.position = a, r.style.left = "50%", r.style.top = "0px", r.style.backgroundColor = "white", r.style.width = "50px", r.style.height = "50px", this.dragDrop && (r.onmousedown = this.Bc), r.addEventListener("keydown", function (e) { e.stopPropagation(); }); var o = null; this.useIframe && (o = document.createElement("iframe"), o.id = this.id + "iframe", o.name = this.id + "iframe", o.frameBorder = "0", o.style.width = "100%", o.style.height = "50px", r.appendChild(o)), e.appendChild(r), this.div = r, this.iframe = o, this.hideDiv = i; }, this.setInnerHTML = function (e, n) { var a = window.frames[e], i = a.contentWindow || a.document || a.contentDocument; i.document && (i = i.document), null == i.body && i.write("<body></body>"), n.nodeType ? i.body.appendChild(n) : i.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.Gc || (t.stretch(), t.Gc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.rc(), n = e.querySelectorAll("input, textarea, select"), a = {}, i = 0; i < n.length; i++) {
1984
1985
  var r = n[i], o = r.name;
1985
1986
  if (o) {
1986
1987
  var s = r.value;
@@ -2220,8 +2221,8 @@ var DayPilot = { Global: {} };
2220
2221
  e.Month = function (n, a) {
2221
2222
  this.v = "${v}", this.nav = {};
2222
2223
  var i = this;
2223
- this.id = n, 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.eventBorderRadius = null, 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",
2224
- 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.R = !1, this.S = {};
2224
+ this.id = n, 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.eventBorderRadius = null, 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",
2225
+ 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.R = !1, this.S = {};
2225
2226
  var r = this.S;
2226
2227
  this.Y = function (e) { var t = JSON.parse(e); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void i.fireAfterRenderDetached(t.CallBackData, !0) : (i.events.list = t.Events, "Full" === t.UpdateType && (i.startDate = t.StartDate, i.timeFormat = t.TimeFormat ? t.TimeFormat : i.timeFormat, "undefined" != typeof t.WeekStarts && (i.weekStarts = t.WeekStarts), i.hashes = t.Hashes), i._(), i.md(), i.ia(), "Full" === t.UpdateType && (i.nd(), i.od()), i.na(), i.show(), i.oa(), void i.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { i.afterRender && i.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
2227
2228
  t = e.data;
@@ -2459,14 +2460,16 @@ var DayPilot = { Global: {} };
2459
2460
  } null === i && (i = this.rows.length - 1); var d = {}; return d.x = a, d.y = i, d.relativeY = o, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
2460
2461
  n.y++, t -= 7; return n.x = t, n; }, this.od = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
2461
2462
  this.cells[t] = [];
2462
- var n = document.createElement("div");
2463
- n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.left = this.getCellWidth() * t + "%", n.style.width = this.getCellWidth() + "%", n.style.top = "0px", n.style.height = this.headerHeight + "px";
2464
- var a = t + this.getWeekStart();
2465
- a > 6 && (a -= 7), n.className = this.M("_header");
2466
- var i = document.createElement("div");
2467
- i.setAttribute("unselectable", "on"), i.innerHTML = r.locale().dayNames[a], n.appendChild(i), i.style.position = "absolute", i.style.top = "0px", i.style.bottom = "0px", i.style.left = "0px", i.style.right = "0px", i.className = this.M("_header_inner"), i.innerHTML = r.locale().dayNames[a], e.appendChild(n);
2468
- for (var o = 0; o < this.rows.length; o++)
2469
- this.rd(t, o, e);
2463
+ var n = t + this.getWeekStart();
2464
+ n > 6 && (n -= 7);
2465
+ var a = {};
2466
+ a.header = { dayOfWeek: n, html: r.locale().dayNames[n], backColor: null, cssClass: null }, "function" == typeof i.onBeforeHeaderRender && i.onBeforeHeaderRender(a);
2467
+ var o = document.createElement("div");
2468
+ o.setAttribute("unselectable", "on"), o.style.position = "absolute", o.style.left = this.getCellWidth() * t + "%", o.style.width = this.getCellWidth() + "%", o.style.top = "0px", o.style.height = this.headerHeight + "px", o.className = this.M("_header");
2469
+ var s = document.createElement("div");
2470
+ s.setAttribute("unselectable", "on"), s.style.position = "absolute", s.style.top = "0px", s.style.bottom = "0px", s.style.left = "0px", s.style.right = "0px", s.className = this.M("_header_inner"), s.innerHTML = a.header.html, o.appendChild(s), a.header.cssClass && DayPilot.Util.addClass(o, a.header.cssClass), a.header.backColor && (s.style.background = a.header.backColor), e.appendChild(o);
2471
+ for (var l = 0; l < this.rows.length; l++)
2472
+ this.rd(t, l, e);
2470
2473
  } }, this.nd = function () { for (var e = 0; e < this.cells.length; e++)
2471
2474
  for (var t = 0; t < this.cells[e].length; t++) {
2472
2475
  var n = i.cells[e][t];
@@ -2476,10 +2479,10 @@ var DayPilot = { Global: {} };
2476
2479
  if (a) {
2477
2480
  i.Ya.Xa && t(n.element) && (i.Ya._a = !0, i.Ya.ab(a), i.Ya._a = !1);
2478
2481
  }
2479
- } }(), e.onclick = null; }, this.va = function () { return 2 === i.api; }, this.rd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.M("_cell"), v.business) {
2482
+ } }(), e.onclick = null; }, this.va = function () { return 2 === i.api; }, this.rd = function (n, a, o) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + n), d = l.getDay(), c = null; c = 1 === d ? r.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !i.isWeekend(l), h = { start: l, end: l.addDays(1), properties: { cssClass: null, headerHtml: c, backColor: null, business: u, html: null } }, f = {}; f.control = i, f.cell = h, "function" == typeof i.onBeforeCellRender && i.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.M("_cell"), v.business) {
2480
2483
  var m = this.M("_cell_business");
2481
2484
  DayPilot.Util.addClass(p, m);
2482
- } var g = document.createElement("div"); g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.left = "0px", g.style.right = "0px", g.style.top = "0px", g.style.bottom = "0px", g.className = this.M("_cell_inner"), v.backColor && (g.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function () { "Disabled" !== i.timeRangeSelectedHandling && (i.clearShadow(), e.timeRangeSelecting = { "root": i, "x": n, "y": a, "from": { x: n, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); i.P(t, n); }; if ("Disabled" !== i.timeRangeSelectedHandling)
2485
+ } v.cssClass && DayPilot.Util.addClass(p, v.cssClass); var g = document.createElement("div"); g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.left = "0px", g.style.right = "0px", g.style.top = "0px", g.style.bottom = "0px", g.className = this.M("_cell_inner"), v.backColor && (g.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function () { "Disabled" !== i.timeRangeSelectedHandling && (i.clearShadow(), e.timeRangeSelecting = { "root": i, "x": n, "y": a, "from": { x: n, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); i.P(t, n); }; if ("Disabled" !== i.timeRangeSelectedHandling)
2483
2486
  return void e(l); }; var y = document.createElement("div"); if (y.setAttribute("unselectable", "on"), y.style.height = this.cellHeaderHeight + "px", y.className = this.M("_cell_header"), y.onclick = function (e) { if ("Enabled" === i.cellHeaderClickHandling) {
2484
2487
  e.stopPropagation();
2485
2488
  var t = {};
@@ -2680,9 +2683,7 @@ var DayPilot = { Global: {} };
2680
2683
  0 === s.indexOf("on") && !function (n) { i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); }; }(s);
2681
2684
  var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"];
2682
2685
  l.call(t, d, function (e) { for (var t in e)
2683
- i[t] = e[t]; i.update(); }, !0), l.call(t, c, function (e) {
2684
- i.events.list = e, i.update();
2685
- }, !0);
2686
+ i[t] = e[t]; i.update(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0);
2686
2687
  } };
2687
2688
  }]);
2688
2689
  }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
@@ -3087,34 +3088,30 @@ var DayPilot = { Global: {} };
3087
3088
  var d = s.ne;
3088
3089
  this.oe = {};
3089
3090
  var c = this.oe, u = {};
3090
- this.scrollTo = function (e) { s.pe(e); }, this.pe = function (e) { if (e) {
3091
- if (!s.Ra)
3092
- return void (s.qe = e);
3093
- var t;
3094
- if (e instanceof DayPilot.Date)
3095
- t = this.getPixels(e).left;
3096
- else if ("string" == typeof e)
3097
- t = this.getPixels(new DayPilot.Date(e)).left;
3098
- else {
3099
- if ("number" != typeof e)
3100
- throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
3101
- t = e;
3102
- }
3103
- var n = s.se.clientWidth, a = s.nav.scroll.clientWidth;
3104
- t < 0 && (t = 0), t > n - a && (t = n - a), s.te(t);
3105
- } }, this.scrollToResource = function (e) {
3106
- DayPilot.complete(function () {
3091
+ this.scrollTo = function (e) { s.pe(e); }, this.pe = function (e) {
3092
+ if (e) {
3093
+ if (!s.Ra)
3094
+ return void (s.qe = e);
3107
3095
  var t;
3108
- if ("string" == typeof e || "number" == typeof e)
3109
- t = s.ve(e);
3096
+ if (e instanceof DayPilot.Date)
3097
+ t = this.getPixels(e).left;
3098
+ else if ("string" == typeof e)
3099
+ t = this.getPixels(new DayPilot.Date(e)).left;
3110
3100
  else {
3111
- if (!(e instanceof DayPilot.Row))
3112
- throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
3113
- t = s.ve(e.id);
3101
+ if ("number" != typeof e)
3102
+ throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
3103
+ t = e;
3114
3104
  }
3115
- t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100);
3116
- });
3117
- }, this.we = function () { if (this.floatingTimeHeaders && this.timeHeader) {
3105
+ var n = s.se.clientWidth, a = s.nav.scroll.clientWidth;
3106
+ t < 0 && (t = 0), t > n - a && (t = n - a), s.te(t);
3107
+ }
3108
+ }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
3109
+ t = s.ve(e);
3110
+ else {
3111
+ if (!(e instanceof DayPilot.Row))
3112
+ throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
3113
+ t = s.ve(e.id);
3114
+ } t && setTimeout(function () { var e = t.top; s.nav.scroll.scrollTop = e; }, 100); }); }, this.we = function () { if (this.floatingTimeHeaders && this.timeHeader) {
3118
3115
  var e = s.xe();
3119
3116
  if (e) {
3120
3117
  s.ye();
@@ -3557,21 +3554,21 @@ var DayPilot = { Global: {} };
3557
3554
  u && a && (u.cache = this.Ib.events[i]);
3558
3555
  }
3559
3556
  }
3560
- } s.rowlist.forEach(function (e) { s.Rg(e); }), s.ng(); }, c.rowcache = {}, c.prepareRows = function (e) { c.rowcache = {}; for (var t = s.rowlist, n = 0; n < t.length; n++) {
3561
- var a = t[n];
3562
- if (e && a.resetEvents(), s._f(a.index), a.id) {
3563
- var i = typeof a.id + "_" + a.id;
3564
- c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3565
- }
3566
- } }, this.Qg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.dg = function () {
3567
- for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3568
- var n = s.rowlist[t], a = n.id;
3569
- if (e[a])
3570
- return !0;
3571
- e[a] = !0;
3557
+ } s.rowlist.forEach(function (e) { s.Rg(e); }), s.ng(); }, c.rowcache = {}, c.prepareRows = function (e) {
3558
+ c.rowcache = {};
3559
+ for (var t = s.rowlist, n = 0; n < t.length; n++) {
3560
+ var a = t[n];
3561
+ if (e && a.resetEvents(), s._f(a.index), a.id) {
3562
+ var i = typeof a.id + "_" + a.id;
3563
+ c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
3564
+ }
3572
3565
  }
3573
- return !1;
3574
- }, this.Jb = function (e) { var t = this.Ib.events, n = this.events.list[e], a = {}; n instanceof DayPilot.Event && (n = n.data); for (var i in n)
3566
+ }, this.Qg = function (e) { var t = typeof e + "_" + e; return c.rowcache[t] || []; }, this.dg = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
3567
+ var n = s.rowlist[t], a = n.id;
3568
+ if (e[a])
3569
+ return !0;
3570
+ e[a] = !0;
3571
+ } return !1; }, this.Jb = function (e) { var t = this.Ib.events, n = this.events.list[e], a = {}; n instanceof DayPilot.Event && (n = n.data); for (var i in n)
3575
3572
  a[i] = n[i]; if ("string" == typeof a.start && (a.start = new DayPilot.Date(a.start)), "string" == typeof a.end && (a.end = new DayPilot.Date(a.end)), "function" == typeof this.onBeforeEventRender) {
3576
3573
  var r = {};
3577
3574
  r.e = a, r.data = a, this.onBeforeEventRender(r);
@@ -3929,35 +3926,30 @@ var DayPilot = { Global: {} };
3929
3926
  var e = this.nav.corner;
3930
3927
  if (e) {
3931
3928
  var t = this.divCorner;
3932
- e.className = this.M("_corner"), t.className = this.M("_corner_inner"), function () {
3933
- var e = {};
3934
- e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null, e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e);
3935
- var t = s.divCorner;
3936
- if (t) {
3937
- var n = s.jb(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
3938
- if (t.innerHTML = n || "", e.backColor && (t.style.background = e.backColor), a || i) {
3939
- switch (t.style.display = "flex", a) {
3940
- case "right":
3941
- t.style.justifyContent = "flex-end";
3942
- break;
3943
- case "left":
3944
- t.style.justifyContent = "flex-start";
3945
- break;
3946
- case "center": t.style.justifyContent = "center";
3947
- }
3948
- switch (i) {
3949
- case "center":
3950
- t.style.alignItems = "center";
3951
- break;
3952
- case "top":
3953
- t.style.alignItems = "flex-start";
3954
- break;
3955
- case "bottom": t.style.alignItems = "flex-end";
3956
- }
3929
+ e.className = this.M("_corner"),
3930
+ t.className = this.M("_corner_inner"), function () { var e = {}; e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null, e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e); var t = s.divCorner; if (t) {
3931
+ var n = s.jb(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
3932
+ if (t.innerHTML = n || "", e.backColor && (t.style.background = e.backColor), a || i) {
3933
+ switch (t.style.display = "flex", a) {
3934
+ case "right":
3935
+ t.style.justifyContent = "flex-end";
3936
+ break;
3937
+ case "left":
3938
+ t.style.justifyContent = "flex-start";
3939
+ break;
3940
+ case "center": t.style.justifyContent = "center";
3941
+ }
3942
+ switch (i) {
3943
+ case "center":
3944
+ t.style.alignItems = "center";
3945
+ break;
3946
+ case "top":
3947
+ t.style.alignItems = "flex-start";
3948
+ break;
3949
+ case "bottom": t.style.alignItems = "flex-end";
3957
3950
  }
3958
3951
  }
3959
- e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas });
3960
- }();
3952
+ } e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas }); }();
3961
3953
  }
3962
3954
  }, this.ng = function () { s.rowlist.forEach(function (e) { var t = e.getHeight() + s.rowMarginTop + s.rowMarginBottom; e.height !== t && (s.yf = !0), e.height = t; }), s.yf && (s.Ib.drawArea = null); }, this.lf = function () { s.rowlist.forEach(function (e) { var t = s.divHeader; if (t) {
3963
3955
  var n = e.index;