@daypilot/daypilot-lite-angular 3.14.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.
- package/esm2020/lib/core/daypilot-core.mjs +115 -94
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +101 -68
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +114 -93
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +13 -0
- package/package.json +1 -1
|
@@ -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.
|
|
133
|
+
Version: 2023.3.484-lite
|
|
134
134
|
*/
|
|
135
135
|
if ("undefined" == typeof DayPilot)
|
|
136
136
|
var DayPilot = {};
|
|
@@ -976,17 +976,16 @@ 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.
|
|
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");
|
|
983
983
|
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");
|
|
984
984
|
var o = document.createElement("div");
|
|
985
985
|
return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
|
|
986
|
-
}, this._ = {}, this._.locale = function () {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
}, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
986
|
+
}, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () {
|
|
987
|
+
return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat;
|
|
988
|
+
}, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
990
989
|
var o = this._;
|
|
991
990
|
this.T = function (e, t) {
|
|
992
991
|
if (e && 0 === e.indexOf("$$$")) {
|
|
@@ -1392,6 +1391,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1392
1391
|
if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
1393
1392
|
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
|
|
1394
1393
|
}
|
|
1394
|
+
if ("function" == typeof n.onAfterEventRender) {
|
|
1395
|
+
var m = {};
|
|
1396
|
+
m.e = o.event, m.div = o, n.onAfterEventRender(m);
|
|
1397
|
+
}
|
|
1395
1398
|
n.elements.events.push(o);
|
|
1396
1399
|
}, this.Da = function (e) {
|
|
1397
1400
|
for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
@@ -1413,7 +1416,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1413
1416
|
l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
|
|
1414
1417
|
}
|
|
1415
1418
|
}
|
|
1416
|
-
}, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.
|
|
1419
|
+
}, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ia(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ja(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ja(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.Ka()), n.appendChild(this.La()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ka = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.La = function () {
|
|
1417
1420
|
var e = document.createElement("table");
|
|
1418
1421
|
e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
|
|
1419
1422
|
for (var t = this.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
@@ -1425,13 +1428,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1425
1428
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
1426
1429
|
}
|
|
1427
1430
|
return e;
|
|
1428
|
-
}, this.
|
|
1431
|
+
}, this.Ja = function () {
|
|
1429
1432
|
var e = document.createElement("table");
|
|
1430
1433
|
e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
|
|
1431
1434
|
for (var t = n.ja(), i = 0; i < t; i++)
|
|
1432
|
-
this.
|
|
1435
|
+
this.Ma(e, i);
|
|
1433
1436
|
return e;
|
|
1434
|
-
}, this.
|
|
1437
|
+
}, this.Ma = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.na()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Fa = function () {
|
|
1435
1438
|
switch (this.heightSpec) {
|
|
1436
1439
|
case "Full": return 48 * this.cellHeight;
|
|
1437
1440
|
case "BusinessHours":
|
|
@@ -1442,11 +1445,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1442
1445
|
return e * this.cellHeight * 2;
|
|
1443
1446
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
1444
1447
|
}
|
|
1445
|
-
}, this.
|
|
1448
|
+
}, this.Na = function () {
|
|
1446
1449
|
var e = n.nav.corner ? n.nav.corner.parentNode : null;
|
|
1447
1450
|
if (e) {
|
|
1448
1451
|
e.innerHTML = "";
|
|
1449
|
-
var t = this.
|
|
1452
|
+
var t = this.Oa();
|
|
1450
1453
|
e.appendChild(t), n.nav.corner = t;
|
|
1451
1454
|
}
|
|
1452
1455
|
}, this.Ga = function () {
|
|
@@ -1456,7 +1459,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1456
1459
|
t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
|
|
1457
1460
|
var i = t.insertRow(-1), a = i.insertCell(-1);
|
|
1458
1461
|
a.style.padding = "0px", a.style.border = "0px none";
|
|
1459
|
-
var n = this.
|
|
1462
|
+
var n = this.Oa();
|
|
1460
1463
|
a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
|
|
1461
1464
|
var o = "hidden" !== this.nav.scroll.style.overflow;
|
|
1462
1465
|
if (a.appendChild(this.nav.header), o) {
|
|
@@ -1467,7 +1470,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1467
1470
|
s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
1468
1471
|
}
|
|
1469
1472
|
return e.appendChild(t), e;
|
|
1470
|
-
}, this.
|
|
1473
|
+
}, this.Oa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () {
|
|
1471
1474
|
var e = this.nav.main;
|
|
1472
1475
|
e.root = null, e.onmouseup = null;
|
|
1473
1476
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1499,7 +1502,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1499
1502
|
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.ua, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
1500
1503
|
var u = document.createElement("div");
|
|
1501
1504
|
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
|
|
1502
|
-
this.
|
|
1505
|
+
this.Pa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
|
|
1503
1506
|
var p = document.createElement("div");
|
|
1504
1507
|
p.setAttribute("unselectable", "on"), p.className = this.J("_cell_inner"), u.appendChild(p), c.appendChild(u), c.appendChild(u);
|
|
1505
1508
|
}
|
|
@@ -1525,23 +1528,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1525
1528
|
}
|
|
1526
1529
|
}
|
|
1527
1530
|
else if (t.moving) {
|
|
1528
|
-
if (
|
|
1531
|
+
if (!n.coords)
|
|
1529
1532
|
return;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
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;
|
|
1533
1542
|
c < r && (c = r);
|
|
1534
|
-
var
|
|
1535
|
-
c +
|
|
1536
|
-
var
|
|
1537
|
-
|
|
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]));
|
|
1538
1547
|
}
|
|
1539
1548
|
else if (t.selecting) {
|
|
1540
|
-
var a = DayPilot.mc(e),
|
|
1541
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(
|
|
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();
|
|
1542
1551
|
}
|
|
1543
1552
|
}, n.nav.scrollable.style.display = "";
|
|
1544
|
-
}, this.
|
|
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 () {
|
|
1545
1554
|
var e = this.nav.header;
|
|
1546
1555
|
if (e && e.rows)
|
|
1547
1556
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1550,10 +1559,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1550
1559
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1551
1560
|
}
|
|
1552
1561
|
this.fasterDispose || DayPilot.pu(e);
|
|
1553
|
-
}, this.
|
|
1562
|
+
}, this.Qa = function (e) {
|
|
1554
1563
|
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.ta, a = i.length, o = 0; o < a; o++) {
|
|
1555
1564
|
var r = i[o], s = e ? t.insertCell(-1) : t.cells[o];
|
|
1556
|
-
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.
|
|
1565
|
+
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.Ra;
|
|
1557
1566
|
var l = e ? document.createElement("div") : s.firstChild;
|
|
1558
1567
|
if (e) {
|
|
1559
1568
|
l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = this.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap");
|
|
@@ -1562,9 +1571,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1562
1571
|
}
|
|
1563
1572
|
r.toolTip && (d.title = r.toolTip);
|
|
1564
1573
|
var d = l.firstChild;
|
|
1565
|
-
d.innerHTML = n.
|
|
1574
|
+
d.innerHTML = n.Ia(r.name, r.html);
|
|
1566
1575
|
}
|
|
1567
|
-
}, this.
|
|
1576
|
+
}, this.Ra = function (e) {
|
|
1568
1577
|
if ("Disabled" !== n.headerClickHandling) {
|
|
1569
1578
|
var t = this.data, i = n.Sa(t), a = {};
|
|
1570
1579
|
a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
|
|
@@ -1574,7 +1583,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1574
1583
|
for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1575
1584
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1576
1585
|
this.headerCreated = !0;
|
|
1577
|
-
this.
|
|
1586
|
+
this.Qa(t);
|
|
1578
1587
|
}, 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) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.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.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = 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) {
|
|
1579
1588
|
var t = null;
|
|
1580
1589
|
if (e instanceof DayPilot.Event)
|
|
@@ -1588,10 +1597,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1588
1597
|
}, this.events.find = function (e) {
|
|
1589
1598
|
if (!n.events.list)
|
|
1590
1599
|
return null;
|
|
1591
|
-
|
|
1592
|
-
var i = n.events.list
|
|
1593
|
-
|
|
1594
|
-
|
|
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);
|
|
1595
1612
|
}
|
|
1596
1613
|
return null;
|
|
1597
1614
|
}, this.events.update = function (e) {
|
|
@@ -1653,7 +1670,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1653
1670
|
}, this.update = function (e) {
|
|
1654
1671
|
if (n.$a(e), this.za) {
|
|
1655
1672
|
n._a(), n.V(), n.nav.top.style.cursor = "auto";
|
|
1656
|
-
n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.
|
|
1673
|
+
n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Na(), n.Za(), n.ab(), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1657
1674
|
}
|
|
1658
1675
|
}, this.bb = null, this.$a = function (e) {
|
|
1659
1676
|
if (e) {
|
|
@@ -1793,7 +1810,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1793
1810
|
var e = {};
|
|
1794
1811
|
this.onInit(e);
|
|
1795
1812
|
}
|
|
1796
|
-
}, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.
|
|
1813
|
+
}, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ia = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.$a, this.internal.xssTextHtml = n.Ia, this.init = function () { this.db(); var e = this.ib(); return this.lb(), e ? void this.jb() : (this._a(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.nb(), this.ob(), this.kb(), this.za = !0, this); }, this.Init = this.init, this.$a(i);
|
|
1797
1814
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
|
|
1798
1815
|
e.fn.daypilotCalendar = function (e) {
|
|
1799
1816
|
var t = null, i = this.each(function () {
|
|
@@ -1835,7 +1852,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1835
1852
|
var DayPilot = {};
|
|
1836
1853
|
if (function () {
|
|
1837
1854
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1838
|
-
this.v = "2023.
|
|
1855
|
+
this.v = "2023.3.484-lite";
|
|
1839
1856
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1840
1857
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1841
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)
|
|
@@ -1885,7 +1902,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1885
1902
|
var e = function () { }, t = {};
|
|
1886
1903
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
1887
1904
|
var a = this, n = null;
|
|
1888
|
-
this.v = "2023.
|
|
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) {
|
|
1889
1906
|
o = o || {};
|
|
1890
1907
|
var r = null;
|
|
1891
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) {
|
|
@@ -2015,7 +2032,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2015
2032
|
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.ub.visible = !0, a.ub.source = i, d.style.display = "";
|
|
2016
2033
|
var M = d.offsetHeight, T = d.offsetWidth;
|
|
2017
2034
|
d.style.display = "none";
|
|
2018
|
-
var A = document.documentElement.clientHeight,
|
|
2035
|
+
var A = document.documentElement.clientHeight, E = window.innerWidth, H = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
2019
2036
|
if (function () {
|
|
2020
2037
|
var e = o.initiator;
|
|
2021
2038
|
if (e) {
|
|
@@ -2028,20 +2045,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2028
2045
|
}(), function () {
|
|
2029
2046
|
var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, n = document.body.scrollLeft || document.documentElement.scrollLeft;
|
|
2030
2047
|
if (i - a > A - M && 0 !== A) {
|
|
2031
|
-
var r = i - a - (A - M) +
|
|
2048
|
+
var r = i - a - (A - M) + H;
|
|
2032
2049
|
d.style.top = i - r + "px";
|
|
2033
2050
|
}
|
|
2034
2051
|
else
|
|
2035
2052
|
d.style.top = i + "px";
|
|
2036
|
-
if ("right" === o.align && (e -= T), e - n >
|
|
2037
|
-
var s = e - n - (
|
|
2053
|
+
if ("right" === o.align && (e -= T), e - n > E - T && 0 !== E) {
|
|
2054
|
+
var s = e - n - (E - T) + H;
|
|
2038
2055
|
d.style.left = e - s + "px";
|
|
2039
2056
|
}
|
|
2040
2057
|
else
|
|
2041
2058
|
d.style.left = e + "px";
|
|
2042
2059
|
}(), o.parentLink) {
|
|
2043
2060
|
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), O = z.x + N.offsetWidth, U = z.y - I;
|
|
2044
|
-
O + T >
|
|
2061
|
+
O + T > E && (O = Math.max(0, z.x - T));
|
|
2045
2062
|
var R = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2046
2063
|
U + M - R > A && (U = Math.max(0, A - M + R)), d.style.left = O + "px", d.style.top = U + "px";
|
|
2047
2064
|
}
|
|
@@ -2833,7 +2850,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2833
2850
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2834
2851
|
var e = {};
|
|
2835
2852
|
e.Month = function (t, i) {
|
|
2836
|
-
this.v = "2023.
|
|
2853
|
+
this.v = "2023.3.484-lite", this.nav = {};
|
|
2837
2854
|
var a = this;
|
|
2838
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) {
|
|
2839
2856
|
var t = null;
|
|
@@ -2848,10 +2865,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2848
2865
|
}, this.events.find = function (e) {
|
|
2849
2866
|
if (!a.events.list)
|
|
2850
2867
|
return null;
|
|
2851
|
-
|
|
2852
|
-
var i = a.events.list
|
|
2853
|
-
|
|
2854
|
-
|
|
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);
|
|
2855
2880
|
}
|
|
2856
2881
|
return null;
|
|
2857
2882
|
}, this.events.update = function (e) {
|
|
@@ -3041,7 +3066,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3041
3066
|
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.sa(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
3042
3067
|
}
|
|
3043
3068
|
var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
3044
|
-
DayPilot.Areas.attach(u, t, { "areas": y }),
|
|
3069
|
+
if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
|
|
3070
|
+
var g = {};
|
|
3071
|
+
g.e = u.event, g.div = u, a.onAfterEventRender(g);
|
|
3072
|
+
}
|
|
3073
|
+
this.elements.events.push(u), this.nav.events.appendChild(u);
|
|
3045
3074
|
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Ic = function () {
|
|
3046
3075
|
"string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
|
|
3047
3076
|
var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
|
|
@@ -3102,10 +3131,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3102
3131
|
return;
|
|
3103
3132
|
if (i.x === e.movingEvent.coords.x && i.y === e.movingEvent.coords.y)
|
|
3104
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;
|
|
3105
3137
|
var n = a.getCellBelowPoint(i.x, i.y);
|
|
3106
3138
|
a.clearShadow();
|
|
3107
|
-
var
|
|
3108
|
-
o < 1 && (o = 1), a.drawShadow(n.x, n.y, 0, o,
|
|
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);
|
|
3109
3141
|
}
|
|
3110
3142
|
else if (e.timeRangeSelecting) {
|
|
3111
3143
|
var i = DayPilot.mo2(a.nav.top, t);
|
|
@@ -3113,10 +3145,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3113
3145
|
return;
|
|
3114
3146
|
var n = a.getCellBelowPoint(i.x, i.y);
|
|
3115
3147
|
a.clearShadow();
|
|
3116
|
-
var r = e.timeRangeSelecting,
|
|
3148
|
+
var r = e.timeRangeSelecting, m = 7 * r.y + r.x, p = 7 * n.y + n.x, o = Math.abs(p - m) + 1;
|
|
3117
3149
|
o < 1 && (o = 1);
|
|
3118
|
-
var
|
|
3119
|
-
e.timeRangeSelecting.from = { x:
|
|
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);
|
|
3120
3152
|
}
|
|
3121
3153
|
};
|
|
3122
3154
|
}, this.ha = function () {
|
|
@@ -3158,10 +3190,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3158
3190
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
3159
3191
|
this.cells[e][t].onclick = null;
|
|
3160
3192
|
this.nav.cells.innerHTML = "";
|
|
3161
|
-
}, this.oa = function () {
|
|
3193
|
+
}, this.oa = function () {
|
|
3194
|
+
return 2 === a.api;
|
|
3195
|
+
}, this.Nc = function (t, i, o) {
|
|
3162
3196
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
|
|
3163
|
-
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",
|
|
3164
|
-
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)) {
|
|
3165
3198
|
var d = this.J("_cell_business");
|
|
3166
3199
|
DayPilot.Util.addClass(l, d);
|
|
3167
3200
|
}
|
|
@@ -3187,7 +3220,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3187
3220
|
return t;
|
|
3188
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) {
|
|
3189
3222
|
var i = e.event;
|
|
3190
|
-
if (i.client.clickEnabled())
|
|
3223
|
+
if (i && i.client.clickEnabled())
|
|
3191
3224
|
if (a.oa()) {
|
|
3192
3225
|
var n = {};
|
|
3193
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))
|
|
@@ -3337,7 +3370,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3337
3370
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3338
3371
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
3339
3372
|
}
|
|
3340
|
-
}, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.
|
|
3373
|
+
}, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ia = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.$a, this.internal.xssTextHtml = a.Ia, this.init = function () { return this.db(), this.loadFromServer() ? void this.jb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.$a(i);
|
|
3341
3374
|
}, e.gMouseUp = function (t) {
|
|
3342
3375
|
if (e.movingEvent) {
|
|
3343
3376
|
var i = e.movingEvent;
|
|
@@ -3416,7 +3449,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3416
3449
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3417
3450
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
3418
3451
|
DayPilot.Navigator = function (e, t) {
|
|
3419
|
-
this.v = "2023.
|
|
3452
|
+
this.v = "2023.3.484-lite";
|
|
3420
3453
|
var i = this;
|
|
3421
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) {
|
|
3422
3455
|
var a = {};
|
|
@@ -3466,19 +3499,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3466
3499
|
var k = document.createElement("div");
|
|
3467
3500
|
k.style.position = "absolute", k.style.left = S * o.cellWidth() + w + "px", k.style.right = S * o.cellWidth() + w + "px", k.style.top = this.titleHeight + "px", k.style.width = o.cellWidth() + "px", k.style.height = this.dayHeaderHeight + "px", k.style.lineHeight = this.dayHeaderHeight + "px", k.setAttribute("unselectable", "on"), k.className = this.J("_dayheader"), k.innerHTML = "<span>" + this.Uc(S) + "</span>", v.appendChild(k), a.days.push(k);
|
|
3468
3501
|
for (var C = 0; C < h; C++) {
|
|
3469
|
-
var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n,
|
|
3502
|
+
var P = d.addDays(7 * C + S), M = this.Vc(P) && "none" !== this.Wc(), T = P.firstDayOfMonth() === n, A = P < n, E = P >= n.addMonths(1);
|
|
3470
3503
|
if ("month" === this.Wc())
|
|
3471
3504
|
M = M && T;
|
|
3472
3505
|
else if ("day" === this.Wc())
|
|
3473
|
-
M = M && (T || r && A || s &&
|
|
3506
|
+
M = M && (T || r && A || s && E);
|
|
3474
3507
|
else if ("week" === this.Wc()) {
|
|
3475
|
-
var
|
|
3476
|
-
M = M && (
|
|
3508
|
+
var H = P.firstDayOfMonth() === n;
|
|
3509
|
+
M = M && (H || r && A || s && E);
|
|
3477
3510
|
}
|
|
3478
3511
|
var N = document.createElement("div");
|
|
3479
3512
|
a.cells[S][C] = N;
|
|
3480
3513
|
var I = i.Xc(S, C), z = I.x, O = I.y;
|
|
3481
|
-
N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth =
|
|
3514
|
+
N.day = P, N.x = S, N.y = C, N.left = z, N.top = O, N.isCurrentMonth = T, N.isNextMonth = E, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Qc(N, "cell"), P.getTime() === f.getTime() && T && this.Qc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Qc(N, "weekend"), N.style.position = "absolute", N.style.left = z + "px", N.style.right = z + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
3482
3515
|
var U = document.createElement("div");
|
|
3483
3516
|
U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Qc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
|
|
3484
3517
|
var R = null;
|
|
@@ -3486,7 +3519,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3486
3519
|
var L = {};
|
|
3487
3520
|
L.cell = R || {}, L.cell.day = P, L.cell.isCurrentMonth = T, L.cell.isToday = P.getTime() === f.getTime() && T, L.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), R ? (L.cell.html = R.html || P.getDay(), L.cell.cssClass = R.css) : (L.cell.html = P.getDay(), L.cell.cssClass = null), i.onBeforeCellRender(L), R = L.cell;
|
|
3488
3521
|
}
|
|
3489
|
-
if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s &&
|
|
3522
|
+
if (R && DayPilot.Util.addClass(N, R.cssClass || R.css), T || r && A || s && E) {
|
|
3490
3523
|
var j = document.createElement("div");
|
|
3491
3524
|
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.Qc(j, "cell_text"), N.isClickable = !0, R && R.html && (j.innerHTML = R.html), N.appendChild(j);
|
|
3492
3525
|
}
|
|
@@ -3843,7 +3876,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3843
3876
|
}
|
|
3844
3877
|
}
|
|
3845
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) {
|
|
3846
|
-
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime()
|
|
3879
|
+
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
3847
3880
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
3848
3881
|
return a;
|
|
3849
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 () {
|