@daypilot/daypilot-lite-angular 5.8.0-sandbox.828 → 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,12 +1129,12 @@ 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 ? e.end.time < e.start.time ? (t = s.
|
|
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)
|
|
1136
1136
|
return a;
|
|
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.
|
|
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)
|
|
1138
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)
|
|
1139
1139
|
t = s.zoomLevels[e];
|
|
1140
1140
|
else {
|
|
@@ -1325,8 +1325,7 @@ var DayPilot = { Global: {} };
|
|
|
1325
1325
|
this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0);
|
|
1326
1326
|
for (var u = d.length, h = c.insertRow(-1), f = 0; f < u; f++) {
|
|
1327
1327
|
var v = h.insertCell(-1);
|
|
1328
|
-
v.style.padding = "0px", v.style.border = "0px none",
|
|
1329
|
-
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");
|
|
1330
1329
|
var p = document.createElement("div");
|
|
1331
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";
|
|
1332
1331
|
var m = document.createElement("div");
|