@daypilot/daypilot-lite-angular 5.0.0-sandbox.760 → 5.0.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.
|
@@ -74,6 +74,8 @@ var DayPilot;
|
|
|
74
74
|
weekStarts;
|
|
75
75
|
width;
|
|
76
76
|
xssProtection;
|
|
77
|
+
zoomLevels;
|
|
78
|
+
zoomPosition;
|
|
77
79
|
onAfterUpdate;
|
|
78
80
|
onBeforeCellRender;
|
|
79
81
|
onBeforeEventRender;
|
|
@@ -103,12 +105,14 @@ var DayPilot;
|
|
|
103
105
|
DayPilot.SchedulerPropsAndEvents = SchedulerPropsAndEvents;
|
|
104
106
|
class SchedulerConfig extends SchedulerPropsAndEvents {
|
|
105
107
|
events;
|
|
108
|
+
zoom;
|
|
106
109
|
}
|
|
107
110
|
DayPilot.SchedulerConfig = SchedulerConfig;
|
|
108
111
|
class Scheduler extends SchedulerPropsAndEvents {
|
|
109
112
|
v;
|
|
110
113
|
events;
|
|
111
114
|
rows;
|
|
115
|
+
zoom;
|
|
112
116
|
}
|
|
113
117
|
DayPilot.Scheduler = Scheduler;
|
|
114
118
|
class Row {
|
|
@@ -475,7 +479,7 @@ DayPilot Lite
|
|
|
475
479
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
476
480
|
https://www.daypilot.org/
|
|
477
481
|
Licensed under Apache Software License 2.0
|
|
478
|
-
Version: 2025.4.
|
|
482
|
+
Version: 2025.4.766-lite
|
|
479
483
|
*/
|
|
480
484
|
"use strict";
|
|
481
485
|
var DayPilot = { Global: {} };
|
|
@@ -1626,21 +1630,22 @@ var DayPilot = { Global: {} };
|
|
|
1626
1630
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, a = null; this.v = "${v}", 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; var r = DayPilot.isArray(n) ? null : n; if (this.Qb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, r) { r = r || {}; var o = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? o = n.id : "function" == typeof n.id ? o = n.id() : "function" == typeof n.value && (o = n.value()) : o = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), r.submenu || t.menuClean(), this.Qb.submenu = null, null !== t.mouse) {
|
|
1627
1631
|
i.cssOnly || (i.cssOnly = !0);
|
|
1628
1632
|
var s = null;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1633
|
+
n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n;
|
|
1634
|
+
var l = document.createElement("div");
|
|
1635
|
+
if ("function" == typeof i.onShow) {
|
|
1636
|
+
var d = {};
|
|
1637
|
+
if (d.source = s, d.menu = i, d.div = l, d.preventDefault = function () { d.preventDefault.value = !0; }, i.onShow(d), d.preventDefault.value)
|
|
1632
1638
|
return;
|
|
1633
1639
|
}
|
|
1634
|
-
|
|
1635
|
-
if (d.style.position = "absolute", d.style.top = "0px", d.style.left = "0px", d.style.display = "none", d.style.overflow = "hidden", d.style.zIndex = this.zIndex + 1, d.className = this.Rb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function () { clearTimeout(t.hideTimeout); }, d.onmouseleave = function () { i.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1640
|
+
if (l.style.position = "absolute", l.style.top = "0px", l.style.left = "0px", l.style.display = "none", l.style.overflow = "hidden", l.style.zIndex = this.zIndex + 1, l.className = this.Rb("main"), l.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (l.onmousemove = function () { clearTimeout(t.hideTimeout); }, l.onmouseleave = function () { i.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1636
1641
|
throw "No menu items defined.";
|
|
1637
1642
|
if (this.showMenuTitle) {
|
|
1638
1643
|
var c = document.createElement("div");
|
|
1639
|
-
c.innerHTML = this.menuTitle, c.className = this.Rb("title"),
|
|
1644
|
+
c.innerHTML = this.menuTitle, c.className = this.Rb("title"), l.appendChild(c);
|
|
1640
1645
|
}
|
|
1641
1646
|
for (var u = 0; u < this.items.length; u++) {
|
|
1642
1647
|
var h = this.items[u], f = document.createElement("div");
|
|
1643
|
-
if (DayPilot.Util.addClass(f, this.Rb("item")), h.items && (DayPilot.Util.addClass(f, this.Rb("item_haschildren")), DayPilot.Util.addClass(
|
|
1648
|
+
if (DayPilot.Util.addClass(f, this.Rb("item")), h.items && (DayPilot.Util.addClass(f, this.Rb("item_haschildren")), DayPilot.Util.addClass(l, this.Rb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1644
1649
|
if ("-" === h.text) {
|
|
1645
1650
|
var v = document.createElement("div");
|
|
1646
1651
|
v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
|
|
@@ -1720,13 +1725,13 @@ var DayPilot = { Global: {} };
|
|
|
1720
1725
|
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = a, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, i.Sb(a, n); }, 300)); }; };
|
|
1721
1726
|
p.onmouseover = M(h, p), f.appendChild(p);
|
|
1722
1727
|
}
|
|
1723
|
-
|
|
1728
|
+
l.appendChild(f);
|
|
1724
1729
|
}
|
|
1725
1730
|
}
|
|
1726
1731
|
var T = function () { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1727
|
-
|
|
1728
|
-
var A =
|
|
1729
|
-
|
|
1732
|
+
l.onclick = T, l.ontouchend = T, l.onmousedown = function (e) { e.stopPropagation(); }, l.oncontextmenu = function () { return !1; }, document.body.appendChild(l), i.Qb.visible = !0, i.Qb.source = n, l.style.display = "";
|
|
1733
|
+
var A = l.offsetHeight, E = l.offsetWidth;
|
|
1734
|
+
l.style.display = "none";
|
|
1730
1735
|
var H = document.documentElement.clientHeight, R = window.innerWidth, N = "number" == typeof r.windowMargin ? r.windowMargin : 5;
|
|
1731
1736
|
if (function () { var e = r.initiator; if (e) {
|
|
1732
1737
|
var t = e.div, n = e.e, i = e.area, o = i.visibility || i.v || "Visible", s = e.a;
|
|
@@ -1734,21 +1739,21 @@ var DayPilot = { Global: {} };
|
|
|
1734
1739
|
var l = DayPilot.abs(s);
|
|
1735
1740
|
r.x = l.x, r.y = l.y + l.h + 2;
|
|
1736
1741
|
}
|
|
1737
|
-
} }(), function () { var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0,
|
|
1742
|
+
} }(), function () { var e = "number" == typeof r.x ? r.x : t.mouse.x + 1, n = "number" == typeof r.y ? r.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, d = 0; if (n - a > H - A && 0 !== H) {
|
|
1738
1743
|
s = n - (n - a - (H - A) + N);
|
|
1739
1744
|
}
|
|
1740
1745
|
else
|
|
1741
|
-
s = n; if (i.Qb.y = s,
|
|
1742
|
-
|
|
1746
|
+
s = n; if (i.Qb.y = s, l.style.top = s + "px", "right" === r.align && (e -= E), e - o > R - E && 0 !== R) {
|
|
1747
|
+
d = e - (e - o - (R - E) + N);
|
|
1743
1748
|
}
|
|
1744
1749
|
else
|
|
1745
|
-
|
|
1746
|
-
var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(
|
|
1747
|
-
|
|
1750
|
+
d = e; i.Qb.x = d, l.style.left = d + "px"; }(), r.parentLink) {
|
|
1751
|
+
var I = r.parentLink, L = parseInt(new DayPilot.StyleReader(l).get("border-top-width")), P = DayPilot.abs(r.parentLink.parentNode), z = P.x + I.offsetWidth, U = P.y - L;
|
|
1752
|
+
z + E > R && (z = Math.max(0, P.x - E));
|
|
1748
1753
|
var B = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1749
|
-
|
|
1754
|
+
U + A - B > H && (U = Math.max(0, H - A + B)), l.style.left = z + "px", l.style.top = U + "px";
|
|
1750
1755
|
}
|
|
1751
|
-
|
|
1756
|
+
l.style.display = "", this.addShadow(l), this.Qb.div = l, r.submenu || (DayPilot.Menu.active = this);
|
|
1752
1757
|
} }, this.update = function () { if (i.Qb.visible) {
|
|
1753
1758
|
var e = i.Qb.source;
|
|
1754
1759
|
i.hide(), i.show(e, { "x": i.Qb.x, "y": i.Qb.y });
|
|
@@ -1760,8 +1765,8 @@ var DayPilot = { Global: {} };
|
|
|
1760
1765
|
this.onHide(r);
|
|
1761
1766
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { i.hide(e); }, i.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function () { }, this.removeShadow = function () { }, r)
|
|
1762
1767
|
for (var o in r)
|
|
1763
|
-
this[o] = r[o]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items =
|
|
1764
|
-
this[i] = t[i]; this.Ub = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Ub("main"),
|
|
1768
|
+
this[o] = r[o]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = [], this.l = null, this.La = !1; for (var i in t)
|
|
1769
|
+
this[i] = t[i]; this.Ub = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Ub("main"), (n.items || []).forEach(function (e) { var i = document.createElement("span"); i.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), i.className = n.Ub("item"), e.cssClass && i.classList.add(e.cssClass), i.data = e, i.onclick = function (t) { if (n.active && n.active.item === e)
|
|
1765
1770
|
n.Vb();
|
|
1766
1771
|
else if (e.children)
|
|
1767
1772
|
return void n.Wb(i); if ("function" == typeof e.onClick) {
|
|
@@ -3020,7 +3025,7 @@ var DayPilot = { Global: {} };
|
|
|
3020
3025
|
DayPilot.Scheduler = function (i, o) {
|
|
3021
3026
|
this.v = "${v}";
|
|
3022
3027
|
var s = this;
|
|
3023
|
-
this.isScheduler = !0, this.id = i, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.ce = -1, this.ee = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.xb = {}, this.xb.cells = [], this.xb.linesVertical = {}, this.xb.linesHorizontal = {}, this.xb.timeHeaderGroups = [], this.xb.timeHeader = {}, this.xb.events = [], this.nav = {}, this.R = {};
|
|
3028
|
+
this.isScheduler = !0, this.id = i, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventPadding = null, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !DayPilot.browser.ios, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = DayPilot.browser.ios ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.zoomLevels = [], this.zoomPosition = "left", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.ce = -1, this.ee = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.xb = {}, this.xb.cells = [], this.xb.linesVertical = {}, this.xb.linesHorizontal = {}, this.xb.timeHeaderGroups = [], this.xb.timeHeader = {}, this.xb.events = [], this.nav = {}, this.R = {};
|
|
3024
3029
|
var l = this.R;
|
|
3025
3030
|
this.fe = {};
|
|
3026
3031
|
var d = s.fe;
|
|
@@ -3699,10 +3704,10 @@ var DayPilot = { Global: {} };
|
|
|
3699
3704
|
}
|
|
3700
3705
|
}
|
|
3701
3706
|
else
|
|
3702
|
-
E.innerHTML = e.client.innerHTML(); }(); var
|
|
3707
|
+
E.innerHTML = e.client.innerHTML(); }(); var z = []; return function () { if ("Disabled" !== s.eventDeleteHandling && !S.deleteDisabled) {
|
|
3703
3708
|
var e = s.durationBarVisible ? s.durationBarHeight : 0;
|
|
3704
|
-
|
|
3705
|
-
} }(), S.areas && (
|
|
3709
|
+
z.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: s.L("_event_delete"), onClick: function (e) { s.ya(e.source); } });
|
|
3710
|
+
} }(), S.areas && (z = z.concat(S.areas)), DayPilot.Areas.attach(A, e, { areas: z }), this.elements.events.push(A), o.appendChild(A), e.rendered = !0, !0; }, this.$a = function (e, t) { return s.R.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Gh = function (e, t, n) { DayPilot.Util.isNullOrUndefined(n) ? null !== t && void 0 !== t && (s.R.da() ? e.innerText = t : e.innerHTML = t) : e.innerHTML = n; }, this.tf = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
3706
3711
|
var t = this.elements.events[e], n = t.event, i = n.part.dayIndex, a = s.rowlist[i], r = a.top, o = r + n.part.top, l = a.height, d = s.eventHeight;
|
|
3707
3712
|
n.part.top + d > l && (d = Math.max(0, l - n.part.top)), t.style.top = o + "px", t.style.height = d + "px";
|
|
3708
3713
|
} }, this.Hh = function (e) { if (!e)
|
|
@@ -3903,60 +3908,78 @@ var DayPilot = { Global: {} };
|
|
|
3903
3908
|
var a = s.snapToGrid, o = s.rowlist;
|
|
3904
3909
|
n(e);
|
|
3905
3910
|
} }, this.di = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.getCoords = function () { if (!s.coords)
|
|
3906
|
-
return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Lf(e.y, e.grid).element; return e.row = s.Eg(t), e.time = s.getDate(e.x, !0), e; }, this.
|
|
3911
|
+
return null; var e = {}; e.x = s.coords.x, e.y = s.coords.y; var t = s.Lf(e.y, e.grid).element; return e.row = s.Eg(t), e.time = s.getDate(e.x, !0), e; }, this.zoom = {}, this.zoom.active = -1, this.zoom.setActive = function (e, t, n) { var i; if ("number" == typeof e)
|
|
3912
|
+
i = s.zoomLevels[e];
|
|
3913
|
+
else {
|
|
3914
|
+
if ("string" != typeof e)
|
|
3915
|
+
throw new DayPilot.Exception("Unexpected parameter type (string or number required): " + typeof e);
|
|
3916
|
+
var a = s.zoom.ei(e);
|
|
3917
|
+
i = s.zoomLevels[a];
|
|
3918
|
+
} if (!i)
|
|
3919
|
+
throw new DayPilot.Exception("Zoom level not found: " + e + " (" + typeof e + ")"); (e !== s.zoom.active || n) && (n || (n = s.zoom.Qd(t)), n && (s.startDate = n), s.zoom.fi(e, n), s.La && s.update(), n && s.scrollTo(n, null, t || s.zoomPosition)); }, this.zoom.ei = function (e) { return (s.zoomLevels || []).findIndex(function (t) { return t.id === e; }); }, this.zoom.Qd = function (e) { e = e || s.zoomPosition || "left"; var t = null; if (!s.nav.scroll)
|
|
3920
|
+
return null; var n = s.getViewport(); switch (e) {
|
|
3921
|
+
case "left":
|
|
3922
|
+
t = n.start;
|
|
3923
|
+
break;
|
|
3924
|
+
case "middle":
|
|
3925
|
+
t = n.start && n.start.addTime((s.getViewport().end.getTime() - s.getViewport().start.getTime()) / 2);
|
|
3926
|
+
break;
|
|
3927
|
+
case "right": t = n.end;
|
|
3928
|
+
} return t; }, this.zoom.fi = function (e, t) { var n = s.zoomLevels.length - 1; e > n && (e = n), e < 0 && (e = 0), s.zoom.active = e; var i = s.zoomLevels[e], a = {}; return a.date = t || new DayPilot.Date(s.startDate), a.level = i, DayPilot.Util.ownPropsAsArray(i.properties).forEach(function (e) { if (0 !== e.key.indexOf("on"))
|
|
3929
|
+
return "function" == typeof e.val ? void (s[e.key] = e.val(a)) : void (s[e.key] = e.val); }), a; }, this.Mf = {}, this.Mf.na = null, this.Mf.drawCells = null, this.Mf.drawRows = null, this.Mf.click = null, this.Mf.resClick = [], this.Mf.updateFloats = null, this.jf = function () { if (!s.Q) {
|
|
3907
3930
|
s.hf();
|
|
3908
3931
|
var e = s.nav.scroll;
|
|
3909
3932
|
if (s.nh = e.scrollLeft, s.oh = e.scrollTop, s.ph = e.clientWidth, s.divTimeScroll && (s.divTimeScroll.scrollLeft = s.nh), DayPilot.browser.ios && t.$g ? n() : s.divResScroll.scrollTop = s.oh, s.progressiveRowRendering && (s.Mf.drawRows && (clearTimeout(s.Mf.drawRows), s.Mf.drawRows = null), s.scrollDelayRows > 0 ? s.Mf.drawRows = setTimeout(function () { s.zg(); }, s.scrollDelayRows) : s.zg()), s.Mf.drawCells && (clearTimeout(s.Mf.drawCells), s.Mf.drawCells = null), s.scrollDelayCells > 0)
|
|
3910
|
-
s.Mf.drawCells = setTimeout(s.
|
|
3933
|
+
s.Mf.drawCells = setTimeout(s.gi(), s.scrollDelayCells);
|
|
3911
3934
|
else {
|
|
3912
|
-
s.
|
|
3935
|
+
s.gi()();
|
|
3913
3936
|
}
|
|
3914
|
-
s.Mf.na && (clearTimeout(s.Mf.na), s.Mf.na = null), s.scrollDelayEvents > 0 ? s.Mf.na = setTimeout(s.
|
|
3915
|
-
} }, this.
|
|
3937
|
+
s.Mf.na && (clearTimeout(s.Mf.na), s.Mf.na = null), s.scrollDelayEvents > 0 ? s.Mf.na = setTimeout(s.hi(), s.scrollDelayEvents) : s.na(), s.Mf.updateFloats && (clearTimeout(s.Mf.updateFloats), s.Mf.updateFloats = null), s.scrollDelayFloats > 0 ? s.Mf.updateFloats = setTimeout(function () { s.se(); }, s.scrollDelayFloats) : s.se(), s.onScrollCalled = !0;
|
|
3938
|
+
} }, this.gi = function () { return function () { s && s.if(); }; }, this.hi = function () { return function () { s && (s.xh() ? setTimeout(function () { s.uh(), setTimeout(function () { s.na(!0); }, 50); }, 50) : s.te()); }; }, this.hf = function () { s.xb.drawArea = null; }, this.show = function () { s.visible = !0, s.ee = !0, s.nav.top.style.display = "", s.u(), s.dh(), s.jf(); }, this.hide = function () { s.visible = !1, s.ee = !1, s.nav.top.style.display = "none"; }, this._f = function (e) { if (!s.events.list)
|
|
3916
3939
|
return null; for (var t = 0; t < this.events.list.length; t++) {
|
|
3917
3940
|
var n = this.events.list[t];
|
|
3918
3941
|
if (s.Uf(n, e)) {
|
|
3919
3942
|
var i = {};
|
|
3920
3943
|
return i.ex = n, i.index = t, i;
|
|
3921
3944
|
}
|
|
3922
|
-
} return null; }, this.
|
|
3945
|
+
} return null; }, this.ii = function () { var e = this.ne(), t = e.xStart, n = e.xEnd - e.xStart, i = e.yStart, a = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var r = 0; r <= n; r++) {
|
|
3923
3946
|
for (var o = t + r, s = 0; s < a; s++) {
|
|
3924
3947
|
var l = i + s;
|
|
3925
3948
|
this.gd(o, l);
|
|
3926
3949
|
}
|
|
3927
|
-
this.
|
|
3950
|
+
this.ji(o);
|
|
3928
3951
|
} for (var d = this.ug(), l = d.start; l < d.end; l++)
|
|
3929
|
-
this.
|
|
3952
|
+
this.ki(l); }, this.if = function () { if (!s.Q) {
|
|
3930
3953
|
var e = s.rowlist;
|
|
3931
3954
|
if (e && e.length > 0) {
|
|
3932
3955
|
if (this.cellSweeping) {
|
|
3933
3956
|
var t = this.cellSweepingCacheSize;
|
|
3934
3957
|
this.wh(t);
|
|
3935
3958
|
}
|
|
3936
|
-
this.
|
|
3959
|
+
this.ii();
|
|
3937
3960
|
}
|
|
3938
3961
|
this.qf = !1;
|
|
3939
3962
|
} }, this.ne = function () { if (s.xb.drawArea)
|
|
3940
3963
|
return s.xb.drawArea; if (!this.nav.scroll)
|
|
3941
|
-
return null; var e = s.oh, t = {}, n = l.zh(), i = l.rh(), a = s.nh - n, r = a + s.ph + 2 * n, o = 0, d = 0; o = s.Ne(a).x, d = s.Ne(r, !0).x; var c = this.Ff(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - i, h = e + this.nav.scroll.offsetHeight + 2 * i, f = this.Lf(u).i, v = this.Lf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t; }, this.Fe = function () { return s.Ff() * s.cellWidth; }, this.
|
|
3964
|
+
return null; var e = s.oh, t = {}, n = l.zh(), i = l.rh(), a = s.nh - n, r = a + s.ph + 2 * n, o = 0, d = 0; o = s.Ne(a).x, d = s.Ne(r, !0).x; var c = this.Ff(); d = Math.min(d, c - 1), o = DayPilot.Util.atLeast(o, 0); var u = e - i, h = e + this.nav.scroll.offsetHeight + 2 * i, f = this.Lf(u).i, v = this.Lf(h).i; v < this.rowlist.length && v++, t.xStart = o, t.xEnd = d, t.yStart = f, t.yEnd = v; var p = s.nav.scroll; return 0 === p.clientWidth && (p = s.divTimeScroll), t.pixels = {}, t.pixels.left = p.scrollLeft, t.pixels.right = p.scrollLeft + p.clientWidth, t.pixels.top = p.scrollTop, t.pixels.bottom = p.scrollTop + p.clientHeight, t.pixels.width = p.scrollWidth, t.sw = DayPilot.sw(s.nav.scroll), s.xb.drawArea = t, t; }, this.Fe = function () { return s.Ff() * s.cellWidth; }, this.ki = function (e) { var t = s.rowlist, n = s.divLines, i = "y_" + e; if (!this.xb.linesHorizontal[i]) {
|
|
3942
3965
|
var a = t[e], o = a.height, l = a.top + o - 1, d = this.Fe(), c = r();
|
|
3943
3966
|
c.style.left = "0px", c.style.top = l + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.xb.linesHorizontal[i] = c;
|
|
3944
|
-
} }, this.
|
|
3967
|
+
} }, this.ji = function (e) { var t = s.Oe(e); if (t) {
|
|
3945
3968
|
var n = s.divLines, i = s.ce, a = "x_" + e;
|
|
3946
3969
|
if (!this.xb.linesVertical[a]) {
|
|
3947
3970
|
var o = t.left + t.width - 1, l = r();
|
|
3948
3971
|
l.style.left = o + "px", l.style.top = "0px", l.style.width = "1px", l.style.height = i + "px", l.style.fontSize = "1px", l.style.lineHeight = "1px", l.style.overflow = "hidden", l.style.position = "absolute", l.className = this.L("_matrix_vertical_line"), n.appendChild(l), this.elements.linesVertical.push(l), this.xb.linesVertical[a] = l;
|
|
3949
3972
|
}
|
|
3950
|
-
} }, this.af = function () { s.ce = s.
|
|
3973
|
+
} }, this.af = function () { s.ce = s.li(s.rowlist); }, this.li = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
|
|
3951
3974
|
var i = e[n];
|
|
3952
3975
|
i.top = t, t += i.height;
|
|
3953
|
-
} return t; }, this.ff = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.
|
|
3976
|
+
} return t; }, this.ff = function () { s.elements.cells = [], s.xb.cells = [], s.divCells.innerHTML = "", s.mi(); }, this.mi = function () { s.divLines.innerHTML = "", s.xb.linesVertical = {}, s.xb.linesHorizontal = {}, s.elements.linesVertical = []; }, this.uf = function (e) { var t = []; for (var n in s.xb.cells)
|
|
3954
3977
|
t.push(s.xb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { s.fb(e); }); }, this.gd = function (e, t) { if (this.La) {
|
|
3955
3978
|
var n = s.Oe(e);
|
|
3956
3979
|
if (n) {
|
|
3957
3980
|
var i = s.rowlist, a = s.divCells, o = e + "_" + t;
|
|
3958
3981
|
if (!this.xb.cells[o]) {
|
|
3959
|
-
var l = this.
|
|
3982
|
+
var l = this.ni(e, t), d = s.oi(e, t), c = r();
|
|
3960
3983
|
if (c.style.left = n.left + "px", c.style.top = i[t].top + "px", c.style.width = n.width + "px", c.style.height = i[t].height + "px", c.style.position = "absolute", l && l.backColor && (c.style.backgroundColor = l.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, l) {
|
|
3961
3984
|
if (l.cssClass && DayPilot.Util.addClass(c, l.cssClass), c.innerHTML = s.$a(l.text, l.html), l.backImage && (c.style.backgroundImage = 'url("' + l.backImage + '")'), l.backRepeat && (c.style.backgroundRepeat = l.backRepeat), l.business && s.cellsMarkBusiness && DayPilot.Util.addClass(c, s.L("_cell_business")), l.disabled && DayPilot.Util.addClass(c, s.L("_cell_disabled")), l.backColor && (c.style.backgroundColor = l.backColor), l.fontColor && (c.style.color = l.fontColor), l.horizontalAlignment || l.verticalAlignment) {
|
|
3962
3985
|
switch (c.style.display = "flex", l.horizontalAlignment) {
|
|
@@ -4005,22 +4028,28 @@ var DayPilot = { Global: {} };
|
|
|
4005
4028
|
} }(), a.appendChild(c), this.elements.cells.push(c), this.xb.cells[o] = c;
|
|
4006
4029
|
}
|
|
4007
4030
|
}
|
|
4008
|
-
} }, this.
|
|
4009
|
-
return null; var i = s.rowlist[t], a = i.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: a, row: s.Eg(i), properties: s.
|
|
4031
|
+
} }, this.oi = function (e, t) { var n = s.Oe(e); if (!n)
|
|
4032
|
+
return null; var i = s.rowlist[t], a = i.id, r = n.start, o = n.end, l = {}; if (l.cell = { x: e, y: t, start: r, end: o, resource: a, row: s.Eg(i), properties: s.ni(e, t) }, l.control = s, "function" == typeof this.onBeforeCellRender) {
|
|
4010
4033
|
var d = e + "_" + t;
|
|
4011
4034
|
if (s.beforeCellRenderCaching && s.gf[d])
|
|
4012
4035
|
return l;
|
|
4013
4036
|
s.gf[d] = !0, this.onBeforeCellRender(l);
|
|
4014
|
-
} return l; }, this.clearSelection = function () { this.
|
|
4015
|
-
|
|
4016
|
-
|
|
4037
|
+
} return l; }, this.clearSelection = function () { this.pi(); }, this.qi = function (e, t, n) {
|
|
4038
|
+
e = new DayPilot.Date(e), t = new DayPilot.Date(t);
|
|
4039
|
+
var i = s.le(n), a = s.Qe(e);
|
|
4040
|
+
if (!a.current)
|
|
4041
|
+
throw new DayPilot.Exception("Time range selection 'start' out of timeline");
|
|
4042
|
+
var r = s.Qe(new DayPilot.Date(t).addMilliseconds(-1));
|
|
4043
|
+
if (!r.current)
|
|
4044
|
+
throw new DayPilot.Exception("Time range selection 'end' out of timeline");
|
|
4045
|
+
var o = {};
|
|
4046
|
+
return o.start = { y: i.index, x: a.i, "time": e }, o.end = { x: r.i, "time": t }, o.calendar = this, o;
|
|
4047
|
+
}, this.selectTimeRange = function (e, t, n, i) { var a = s.qi(e, t, n); s.Ef(a), i || setTimeout(function () { s.Af(a); }, 0); }, this.yf = function () { var e = t.sg && t.sg.source; e && DayPilot.Util.removeClass(e, s.L("_event_moving_source")), DayPilot.de(t.sg), t.sg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.pi = function () { s.divShadow && (s.divShadow.innerHTML = ""), s.elements.range = [], s.elements.range2 = null, s.Df = null, s.ri = null; }, l.Ld = function () { delete s.xb.headerHeight; }, l.da = function () { return "Disabled" !== s.xssProtection; }, l.Le = function () { return DayPilot.Locale.find(s.locale); }, l.Vh = function () { return "Auto" !== s.timeFormat ? s.timeFormat : l.Le().timeFormat; }, l.ea = function () { if ("Auto" === s.weekStarts) {
|
|
4017
4048
|
var e = l.Le();
|
|
4018
4049
|
return e ? e.weekStarts : 0;
|
|
4019
|
-
} return s.weekStarts || 0; }, l.Bg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.ig = function (e) {
|
|
4020
|
-
return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Re() * 1e3;
|
|
4021
|
-
}, l.zh = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
|
|
4050
|
+
} return s.weekStarts || 0; }, l.Bg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, l.ig = function (e) { return "Always" === s.useEventBoxes || "Never" !== s.useEventBoxes && e < 60 * s.Re() * 1e3; }, l.zh = function () { var e = s.dynamicEventRenderingMarginX; if ("number" == typeof e)
|
|
4022
4051
|
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, l.rh = function () { var e = s.dynamicEventRenderingMarginY; if ("number" == typeof e)
|
|
4023
|
-
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.
|
|
4052
|
+
return e; var t = s.dynamicEventRenderingMargin; return "number" == typeof t ? t : 0; }, this.ni = function (e, t) { var n = e + "_" + t, i = s.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
|
|
4024
4053
|
return this.cellProperties[n]; if (!this.cellProperties[n]) {
|
|
4025
4054
|
var a = i[t], r = a.id, o = s.Oe(e), l = o.start, d = o.end, c = {};
|
|
4026
4055
|
c.start = l, c.end = d, c.resource = r;
|
|
@@ -4041,7 +4070,7 @@ var DayPilot = { Global: {} };
|
|
|
4041
4070
|
return !0;
|
|
4042
4071
|
if (r >= l)
|
|
4043
4072
|
return !1;
|
|
4044
|
-
} return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.
|
|
4073
|
+
} return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.si = function (e) { this.heightSpec = "Fixed", this.height = e - (this.He() + 2), this.ma(); }, this.setHeight = this.si, this.le = function (e) { return s.Ig(e)[0]; }, this.wb = function () { if (this.id && this.id.tagName)
|
|
4045
4074
|
this.nav.top = this.id;
|
|
4046
4075
|
else {
|
|
4047
4076
|
if ("string" != typeof this.id)
|
|
@@ -4053,8 +4082,11 @@ var DayPilot = { Global: {} };
|
|
|
4053
4082
|
if (this.nav.top.dp === s)
|
|
4054
4083
|
return s;
|
|
4055
4084
|
throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
|
|
4056
|
-
} return this.
|
|
4057
|
-
var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.he(this.data); } }, "scrollX": { "postInit": function () { this.data && s.ke(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ge(this.data); } }
|
|
4085
|
+
} return this.vi(), this.ch(), this; }, this.vi = function () { this.Qg(), this.pb(), this.ba(), this.mh(), s.zoomLevels && s.zoomLevels[s.zoom.active] && s.zoom.setActive(s.zoom.active), this.qb(); var angular = s.Ee.enabled; s.scrollToDate ? s.scrollTo(s.scrollToDate) : s.scrollX || s.scrollY ? s.setScroll(s.scrollX, s.scrollY) : angular || s.jf(), s.scrollToResourceId && (s.scrollToResource(s.scrollToResourceId), s.scrollToResourceId = null); var e = function () { s.scrollY && s.setScroll(s.scrollX, s.scrollY); }; setTimeout(e, 200), this.hf(), this.vb(), this.La = !0; var t = s.ie; t ? s.scrollTo(t) : s.jf(); }, this.ub = null, this.sb = function (e) { if (e) {
|
|
4086
|
+
var t = { "resources": { "preInit": function () { var e = this.data; e && (s.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && s.he(this.data); } }, "scrollX": { "postInit": function () { this.data && s.ke(this.data); } }, "scrollY": { "postInit": function () { this.data && s.Ge(this.data); } }, "zoom": { "preInit": function () { var e = this.data; if ("string" == typeof e) {
|
|
4087
|
+
var t = e;
|
|
4088
|
+
e = s.zoom.ei(t);
|
|
4089
|
+
} var n = e !== s.zoom.active, i = s.zoom.Qd(); s.zoom.fi(e, i), n ? this.date = i : this.date = null; }, "postInit": function () { this.date && s.he(this.date, !1, s.zoomPosition); } } };
|
|
4058
4090
|
s.ub = t, s.Ee.scrollToRequested && (t.scrollTo.data = s.Ee.scrollToRequested, s.Ee.scrollToRequested = null), s.Ee.scrollXRequested && (t.scrollX.data = s.Ee.scrollXRequested, s.Ee.scrollXRequested = null), s.Ee.scrollYRequested && (t.scrollY.data = s.Ee.scrollYRequested, s.Ee.scrollYRequested = null);
|
|
4059
4091
|
for (var n in e)
|
|
4060
4092
|
t[n] || (s[n] = e[n]);
|
|
@@ -4085,8 +4117,8 @@ var DayPilot = { Global: {} };
|
|
|
4085
4117
|
} }, this.Ra.Ta = function (e) { var t = s.Ra.Qa; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = s.vf, this.internal.adjustEndNormalize = s.wf, this.internal.xssTextHtml = s.$a, this.internal.touch = s.fe, this.internal.skipUpdate = s.Ee.skipUpdate, this.internal.skipped = s.Ee.skipped, this.internal.loadOptions = s.sb, this.internal.postInit = s.vb, this.internal.enableAngular2 = function () { s.Ee.enabled = !0; }, this.internal.eventsFromAttr = function () { s.Ee.Zf = !0; }, this.internal.resourcesFromAttr = function () { s.Ee.gg = !0; }, this.internal.evImmediateRefresh = function () { s.events.zf(); }, this.internal.upd = function (e) { s.update(e); }, this.internal.enableReact = function (e, t) { s.zd.react = e, s.zd.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(s.zd, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { s.Ra.Qa = e; }, this.internal.vueRef = function () { return s.Ra.Qa; }, this.internal.vueRendering = function () { return s.Ra.Sa; }, this.sb(o);
|
|
4086
4118
|
}, i = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
|
|
4087
4119
|
throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
|
|
4088
|
-
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.
|
|
4089
|
-
e.push(i.
|
|
4120
|
+
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.wi = {}; var n = this.wi; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var i = this; i.isRow = !0, i.menuType = "resource", i.name = e.name, i.id = e.id, i.tags = e.tags, i.index = e.index, i.calendar = t, i.data = e.resource, i.xi = e, i.$ = {}, i.$.row = e, i.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, i.events = {}, i.events.all = function () { for (var e = [], t = 0; t < i.xi.events.length; t++)
|
|
4121
|
+
e.push(i.xi.events[t]); return e; }, i.events.isEmpty = function () { return 0 === i.xi.events.length; }, i.events.forRange = function (e, t) { return i.xi.events.forRange(e, t); }, i.events.totalDuration = function () { var e = 0; return i.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, i.remove = function () { t.rows.remove(i); }, i.addClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.addClass(a, e), i.$.row.cssClass = DayPilot.Util.addClassToString(i.$.row.cssClass, e), i.data.cssClass = e; }, i.removeClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.removeClass(a, e), i.$.row.cssClass = DayPilot.Util.removeClassFromString(i.$.row.cssClass, e), i.data.cssClass = DayPilot.Util.removeClassFromString(i.data.cssClass, e); }; }, t.Ue = null, t.rg = null, t.Jh = null, t.kg = null, t.og = null, t.Te = !1, t.jh = !1, t._h = null, t.yi = null, t.pc = function () { DayPilot.ue(document, "mouseup", t.be), DayPilot.ue(document, "touchmove", t.kh), DayPilot.ue(document, "touchend", t.lh), t.jh = !1; }, t.kh = function (e) { if (t.kg) {
|
|
4090
4122
|
var n = t.kg.event.calendar;
|
|
4091
4123
|
n.coords = n.fe.Nh(e), n.fe.Sh(), e.preventDefault();
|
|
4092
4124
|
} if (t.Ue) {
|
|
@@ -4094,7 +4126,7 @@ var DayPilot = { Global: {} };
|
|
|
4094
4126
|
var n = t.rg.calendar;
|
|
4095
4127
|
n.coords = n.fe.Nh(e), n.fe.Th();
|
|
4096
4128
|
} }, t.lh = function (e) { t.$g = !1, t.be(e); }, t.be = function (e) { if (t.kg) {
|
|
4097
|
-
var i = function () { var e = t.og, n = e.calendar; a().style.cursor = "", t.kg = null, t.og = null, DayPilot.de(t.ng), t.ng = null, n && (n.
|
|
4129
|
+
var i = function () { var e = t.og, n = e.calendar; a().style.cursor = "", t.kg = null, t.og = null, DayPilot.de(t.ng), t.ng = null, n && (n.zi = null); };
|
|
4098
4130
|
if (setTimeout(function () { t.Te = !1; }), !t.ng)
|
|
4099
4131
|
return void i();
|
|
4100
4132
|
var r = t.og, o = r.calendar, s = t.ng.start, l = t.ng.end, d = "left" === t.kg.dpBorder ? "start" : "end";
|
|
@@ -4114,7 +4146,7 @@ var DayPilot = { Global: {} };
|
|
|
4114
4146
|
}
|
|
4115
4147
|
else if (t.Qh) {
|
|
4116
4148
|
var u = DayPilot.Util.mouseButton(e), h = t.Qh, f = h.calendar, i = function () { };
|
|
4117
|
-
if (f.
|
|
4149
|
+
if (f.ri = null, t._h)
|
|
4118
4150
|
return clearTimeout(t._h), t._h = null, void i();
|
|
4119
4151
|
f.Df = h, t.Qh = null;
|
|
4120
4152
|
var v = function (e) { return function () { t._h = null, f.Af(e), "Hold" !== f.timeRangeSelectedHandling && "HoldForever" !== f.timeRangeSelectedHandling ? n() : f.Df = e; }; }, p = f.di(h);
|