@daypilot/daypilot-lite-angular 5.8.0-sandbox.830 → 5.8.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.
|
@@ -500,7 +500,7 @@ DayPilot Lite
|
|
|
500
500
|
Copyright (c) 2005 - 2026 Annpoint s.r.o.
|
|
501
501
|
https://www.daypilot.org/
|
|
502
502
|
Licensed under Apache Software License 2.0
|
|
503
|
-
Version: 2026.2.
|
|
503
|
+
Version: 2026.2.833-lite
|
|
504
504
|
*/
|
|
505
505
|
"use strict";
|
|
506
506
|
var DayPilot = { Global: {} };
|
|
@@ -1129,7 +1129,7 @@ var DayPilot = { Global: {} };
|
|
|
1129
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;
|
|
1130
1130
|
}
|
|
1131
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)
|
|
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 ?
|
|
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)
|
|
1133
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)
|
|
1134
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++) {
|
|
1135
1135
|
if (t += n[a].offsetWidth, e < t)
|
|
@@ -1775,20 +1775,15 @@ 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 () {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
}
|
|
1788
|
-
else
|
|
1789
|
-
d = e;
|
|
1790
|
-
a.$b.x = d, l.style.left = d + "px";
|
|
1791
|
-
}(), r.parentLink) {
|
|
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) {
|
|
1792
1787
|
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;
|
|
1793
1788
|
a.rtl && (U = P.x - H);
|
|
1794
1789
|
var L = P.y - z;
|
|
@@ -1977,11 +1972,15 @@ var DayPilot = { Global: {} };
|
|
|
1977
1972
|
} }, this.Ec = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1978
1973
|
var e = t.Fc.scrollY();
|
|
1979
1974
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
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
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
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++) {
|
|
1985
1984
|
var r = n[i], o = r.name;
|
|
1986
1985
|
if (o) {
|
|
1987
1986
|
var s = r.value;
|
|
@@ -2221,8 +2220,8 @@ var DayPilot = { Global: {} };
|
|
|
2221
2220
|
e.Month = function (n, a) {
|
|
2222
2221
|
this.v = "${v}", this.nav = {};
|
|
2223
2222
|
var i = this;
|
|
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.
|
|
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 = {};
|
|
2226
2225
|
var r = this.S;
|
|
2227
2226
|
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)
|
|
2228
2227
|
t = e.data;
|
|
@@ -2680,7 +2679,9 @@ var DayPilot = { Global: {} };
|
|
|
2680
2679
|
(0, e(o).assign)(t, i);
|
|
2681
2680
|
}
|
|
2682
2681
|
for (var s in a)
|
|
2683
|
-
0 === s.indexOf("on") && !function (n) {
|
|
2682
|
+
0 === s.indexOf("on") && !function (n) {
|
|
2683
|
+
i[n] = function (i) { var r = e(a[n]); t["$apply"](function () { r(t, { "args": i }); }); };
|
|
2684
|
+
}(s);
|
|
2684
2685
|
var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"];
|
|
2685
2686
|
l.call(t, d, function (e) { for (var t in e)
|
|
2686
2687
|
i[t] = e[t]; i.update(); }, !0), l.call(t, c, function (e) { i.events.list = e, i.update(); }, !0);
|
|
@@ -3554,16 +3555,16 @@ var DayPilot = { Global: {} };
|
|
|
3554
3555
|
u && a && (u.cache = this.Ib.events[i]);
|
|
3555
3556
|
}
|
|
3556
3557
|
}
|
|
3557
|
-
} s.rowlist.forEach(function (e) { s.Rg(e); }), s.ng(); }, c.rowcache = {}, c.prepareRows = function (e) {
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
var
|
|
3561
|
-
|
|
3562
|
-
var i = typeof a.id + "_" + a.id;
|
|
3563
|
-
c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
|
|
3564
|
-
}
|
|
3558
|
+
} 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++) {
|
|
3559
|
+
var a = t[n];
|
|
3560
|
+
if (e && a.resetEvents(), s._f(a.index), a.id) {
|
|
3561
|
+
var i = typeof a.id + "_" + a.id;
|
|
3562
|
+
c.rowcache[i] || (c.rowcache[i] = []), c.rowcache[i].push(a);
|
|
3565
3563
|
}
|
|
3566
|
-
}
|
|
3564
|
+
} }, this.Qg = function (e) {
|
|
3565
|
+
var t = typeof e + "_" + e;
|
|
3566
|
+
return c.rowcache[t] || [];
|
|
3567
|
+
}, this.dg = function () { for (var e = {}, t = 0; t < s.rowlist.length; t++) {
|
|
3567
3568
|
var n = s.rowlist[t], a = n.id;
|
|
3568
3569
|
if (e[a])
|
|
3569
3570
|
return !0;
|
|
@@ -3926,30 +3927,36 @@ var DayPilot = { Global: {} };
|
|
|
3926
3927
|
var e = this.nav.corner;
|
|
3927
3928
|
if (e) {
|
|
3928
3929
|
var t = this.divCorner;
|
|
3929
|
-
e.className = this.M("_corner"),
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
t.style.
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3930
|
+
e.className = this.M("_corner"), t.className = this.M("_corner_inner"), function () {
|
|
3931
|
+
var e = {};
|
|
3932
|
+
e.control = s, e.backColor = null, e.html = s.cornerHtml, e.text = s.cornerText, e.verticalAlignment = null, e.horizontalAlignment = null,
|
|
3933
|
+
e.areas = null, "function" == typeof s.onBeforeCornerRender && s.onBeforeCornerRender(e);
|
|
3934
|
+
var t = s.divCorner;
|
|
3935
|
+
if (t) {
|
|
3936
|
+
var n = s.jb(e.text, e.html), a = e.horizontalAlignment, i = e.verticalAlignment;
|
|
3937
|
+
if (t.innerHTML = n || "", e.backColor && (t.style.background = e.backColor), a || i) {
|
|
3938
|
+
switch (t.style.display = "flex", a) {
|
|
3939
|
+
case "right":
|
|
3940
|
+
t.style.justifyContent = "flex-end";
|
|
3941
|
+
break;
|
|
3942
|
+
case "left":
|
|
3943
|
+
t.style.justifyContent = "flex-start";
|
|
3944
|
+
break;
|
|
3945
|
+
case "center": t.style.justifyContent = "center";
|
|
3946
|
+
}
|
|
3947
|
+
switch (i) {
|
|
3948
|
+
case "center":
|
|
3949
|
+
t.style.alignItems = "center";
|
|
3950
|
+
break;
|
|
3951
|
+
case "top":
|
|
3952
|
+
t.style.alignItems = "flex-start";
|
|
3953
|
+
break;
|
|
3954
|
+
case "bottom": t.style.alignItems = "flex-end";
|
|
3955
|
+
}
|
|
3950
3956
|
}
|
|
3951
3957
|
}
|
|
3952
|
-
|
|
3958
|
+
e.areas && DayPilot.Areas.attach(s.nav.corner, {}, { "areas": e.areas });
|
|
3959
|
+
}();
|
|
3953
3960
|
}
|
|
3954
3961
|
}, 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) {
|
|
3955
3962
|
var n = e.index;
|