@daypilot/daypilot-lite-angular 3.24.0 → 3.26.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 +129 -123
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +149 -130
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +128 -122
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +3 -2
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2024 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2024.3.
|
|
133
|
+
Version: 2024.3.547-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -322,7 +322,7 @@ if (function () {
|
|
|
322
322
|
a.key = i, a.val = e[i], t.push(a);
|
|
323
323
|
}
|
|
324
324
|
return t;
|
|
325
|
-
}, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
|
|
325
|
+
}, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) {
|
|
326
326
|
var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0;
|
|
327
327
|
n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) {
|
|
328
328
|
if (DayPilot.Areas.isVisible(a)) {
|
|
@@ -358,13 +358,12 @@ if (function () {
|
|
|
358
358
|
DayPilot.Menu && DayPilot.Menu.touchPosition(a);
|
|
359
359
|
var n = i.contextMenu || i.menu;
|
|
360
360
|
if (n instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? n = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (n = t.calendar.contextMenu)), n && n.show) {
|
|
361
|
-
var o = { "type": "area", "div": e, "e": t, "area": i,
|
|
361
|
+
var o = { "type": "area", "div": e, "e": t, "area": i,
|
|
362
|
+
"a": d };
|
|
362
363
|
n.show(t, { "initiator": o });
|
|
363
364
|
}
|
|
364
365
|
}
|
|
365
|
-
function s(e) {
|
|
366
|
-
return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0;
|
|
367
|
-
}
|
|
366
|
+
function s(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
|
|
368
367
|
var a = a || {}, l = (a.offsetX || 0, a.eventDiv || e), d = document.createElement("div");
|
|
369
368
|
d.isActiveArea = !0, d.area = i, d.setAttribute("unselectable", "on");
|
|
370
369
|
var c = i.w || i.width, u = i.h || i.height, h = i.cssClass || i.css || i.className;
|
|
@@ -588,8 +587,7 @@ if (function () {
|
|
|
588
587
|
}
|
|
589
588
|
this.k = a, a.s();
|
|
590
589
|
var r = a.u();
|
|
591
|
-
i.j.updateMode(r),
|
|
592
|
-
t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
|
|
590
|
+
i.j.updateMode(r), t(i.j.control.selectionStart, i.j.control.selectionEnd.addDays(1), i.j.control.selectionDay);
|
|
593
591
|
}, this.z = function (e) {
|
|
594
592
|
for (var t = 0; t < this.f.length; t++)
|
|
595
593
|
if (this.f[t].control === e)
|
|
@@ -988,14 +986,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
988
986
|
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
989
987
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
990
988
|
var n = this;
|
|
991
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.
|
|
989
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.547-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.columnMarginLeft = 0, 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.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = 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.N = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.O(); }, this.O = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, 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; e.N || (e.N = !0, 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.disposed = function () { return this.N; }, 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) {
|
|
992
990
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
993
991
|
i = i.parentNode;
|
|
994
992
|
var a = document.createElement("div");
|
|
995
993
|
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");
|
|
996
994
|
var o = document.createElement("div");
|
|
997
995
|
return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
|
|
998
|
-
}, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () {
|
|
996
|
+
}, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () {
|
|
997
|
+
return "Disabled" !== n.xssProtection;
|
|
998
|
+
}, this._.ba = function () {
|
|
999
999
|
if ("Auto" === n.weekStarts) {
|
|
1000
1000
|
var e = o.locale();
|
|
1001
1001
|
return e ? e.weekStarts : 0;
|
|
@@ -1441,7 +1441,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1441
1441
|
var r = a.insertCell(-1);
|
|
1442
1442
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
1443
1443
|
var s = document.createElement("div");
|
|
1444
|
-
s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
1444
|
+
s.style.marginRight = n.columnMarginRight + "px", s.style.marginLeft = n.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
1445
1445
|
var l = document.createElement("div");
|
|
1446
1446
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
1447
1447
|
}
|
|
@@ -1508,7 +1508,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1508
1508
|
var c = l.insertCell(-1);
|
|
1509
1509
|
c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", n.rtl || (c.style.textAlign = "left");
|
|
1510
1510
|
var u = document.createElement("div");
|
|
1511
|
-
u.style.marginRight = n.columnMarginRight + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
|
|
1511
|
+
u.style.marginRight = n.columnMarginRight + "px", u.style.marginLeft = n.columnMarginLeft + "px", u.style.position = "relative", u.style.height = "1px", u.style.marginTop = "-1px";
|
|
1512
1512
|
var h = document.createElement("div");
|
|
1513
1513
|
h.style.position = "relative", c.selection = h, c.appendChild(u), c.appendChild(h);
|
|
1514
1514
|
}
|
|
@@ -1619,12 +1619,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1619
1619
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1620
1620
|
this.headerCreated = !0;
|
|
1621
1621
|
this.Ra(t);
|
|
1622
|
-
}, this.loadingStart = function () {
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.scrollpos : this.initScrollPos;
|
|
1626
|
-
t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t));
|
|
1627
|
-
}, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = 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) {
|
|
1622
|
+
}, this.loadingStart = function () {
|
|
1623
|
+
this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = "");
|
|
1624
|
+
}, 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.Va = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Wa(); }); var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.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.Ya = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Za = 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) {
|
|
1628
1625
|
var t = null;
|
|
1629
1626
|
if (e instanceof DayPilot.Event)
|
|
1630
1627
|
t = e.data;
|
|
@@ -1789,10 +1786,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1789
1786
|
if ("Resources" === n.viewType && (b = b && d.id === r.resource), b) {
|
|
1790
1787
|
var D = new DayPilot.Event(r, n);
|
|
1791
1788
|
D.part.dayIndex = o, D.part.start = u < y ? r.start : c, D.part.end = f > g ? r.end : h;
|
|
1792
|
-
var
|
|
1793
|
-
if (C === P && (
|
|
1789
|
+
var w = this.getPixels(D.part.start, d.start), x = this.getPixels(D.part.end, d.start), C = w.top, P = x.top;
|
|
1790
|
+
if (C === P && (w.cut || x.cut))
|
|
1794
1791
|
continue;
|
|
1795
|
-
var k =
|
|
1792
|
+
var k = x.boxBottom;
|
|
1796
1793
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1797
1794
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1798
1795
|
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.gb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
@@ -1896,7 +1893,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1896
1893
|
var DayPilot = {};
|
|
1897
1894
|
if (function () {
|
|
1898
1895
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1899
|
-
this.v = "2024.3.
|
|
1896
|
+
this.v = "2024.3.547-lite";
|
|
1900
1897
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1901
1898
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1902
1899
|
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)
|
|
@@ -1946,7 +1943,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1946
1943
|
var e = function () { }, t = {};
|
|
1947
1944
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
1948
1945
|
var a = this, n = null;
|
|
1949
|
-
this.v = "2024.3.
|
|
1946
|
+
this.v = "2024.3.547-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.wb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
1950
1947
|
o = o || {};
|
|
1951
1948
|
var r = null;
|
|
1952
1949
|
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.wb.submenu = null, null !== t.mouse) {
|
|
@@ -2045,13 +2042,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2045
2042
|
if (h.icon) {
|
|
2046
2043
|
var D = document.createElement("span");
|
|
2047
2044
|
D.className = a.xb("item_icon");
|
|
2048
|
-
var
|
|
2049
|
-
|
|
2045
|
+
var w = document.createElement("i");
|
|
2046
|
+
w.className = h.icon, D.appendChild(w), p.appendChild(D);
|
|
2050
2047
|
}
|
|
2051
2048
|
if (h.symbol) {
|
|
2052
|
-
var
|
|
2049
|
+
var x = "http://www.w3.org/2000/svg", C = document.createElementNS(x, "svg");
|
|
2053
2050
|
C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
|
|
2054
|
-
var P = document.createElementNS(
|
|
2051
|
+
var P = document.createElementNS(x, "use");
|
|
2055
2052
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
2056
2053
|
var k = document.createElement("span");
|
|
2057
2054
|
k.className = a.xb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
|
|
@@ -2101,10 +2098,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2101
2098
|
else
|
|
2102
2099
|
d.style.left = e + "px";
|
|
2103
2100
|
}(), o.parentLink) {
|
|
2104
|
-
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")),
|
|
2105
|
-
|
|
2101
|
+
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), z = DayPilot.abs(o.parentLink.parentNode), R = z.x + N.offsetWidth, O = z.y - I;
|
|
2102
|
+
R + T > H && (R = Math.max(0, z.x - T));
|
|
2106
2103
|
var U = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2107
|
-
|
|
2104
|
+
O + M - U > A && (O = Math.max(0, A - M + U)), d.style.left = R + "px", d.style.top = O + "px";
|
|
2108
2105
|
}
|
|
2109
2106
|
d.style.display = "", this.addShadow(d), this.wb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
2110
2107
|
}
|
|
@@ -2462,8 +2459,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2462
2459
|
g && g.focus();
|
|
2463
2460
|
}
|
|
2464
2461
|
else {
|
|
2465
|
-
var
|
|
2466
|
-
o.autoFocus &&
|
|
2462
|
+
var w = h.firstFocusable();
|
|
2463
|
+
o.autoFocus && w ? w.focus() : o.div.focus();
|
|
2467
2464
|
}
|
|
2468
2465
|
});
|
|
2469
2466
|
}, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) {
|
|
@@ -2898,7 +2895,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2898
2895
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2899
2896
|
var e = {};
|
|
2900
2897
|
e.Month = function (t, i) {
|
|
2901
|
-
this.v = "2024.3.
|
|
2898
|
+
this.v = "2024.3.547-lite", this.nav = {};
|
|
2902
2899
|
var a = this;
|
|
2903
2900
|
this.id = t, 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.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", 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.N = !1, 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.Jc(), a.da(), "Full" === e.UpdateType && (a.Kc(), a.Lc()), a.ia(), a.show(), a.ja(), 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) {
|
|
2904
2901
|
var t = null;
|
|
@@ -2975,7 +2972,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2975
2972
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
2976
2973
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
2977
2974
|
}
|
|
2978
|
-
}, this.update = function (e) {
|
|
2975
|
+
}, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(a.ib), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
|
|
2979
2976
|
if (a.ab(e), this.Aa) {
|
|
2980
2977
|
if (a.N)
|
|
2981
2978
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
@@ -3247,8 +3244,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3247
3244
|
var a = t + this.getWeekStart();
|
|
3248
3245
|
a > 6 && (a -= 7), i.className = this.J("_header");
|
|
3249
3246
|
var o = document.createElement("div");
|
|
3250
|
-
o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px",
|
|
3251
|
-
o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
|
|
3247
|
+
o.setAttribute("unselectable", "on"), o.innerHTML = n.locale().dayNames[a], i.appendChild(o), o.style.position = "absolute", o.style.top = "0px", o.style.bottom = "0px", o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
|
|
3252
3248
|
for (var r = 0; r < this.rows.length; r++)
|
|
3253
3249
|
this.Oc(t, r, e);
|
|
3254
3250
|
}
|
|
@@ -3523,36 +3519,42 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3523
3519
|
}
|
|
3524
3520
|
}(), "undefined" == typeof DayPilot)
|
|
3525
3521
|
var DayPilot = {};
|
|
3526
|
-
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3527
|
-
|
|
3522
|
+
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
3523
|
+
"use strict";
|
|
3524
|
+
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3528
3525
|
DayPilot.Navigator = function (e, t) {
|
|
3529
|
-
this.v = "2024.3.
|
|
3526
|
+
this.v = "2024.3.547-lite";
|
|
3530
3527
|
var i = this;
|
|
3531
|
-
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.gb = {}, this.Pc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.
|
|
3528
|
+
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.gb = {}, this.Pc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (o.Qc() || (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Rc()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : o.Qc() || (this.root.style.width = 7 * o.cellWidth() + this.Rc() + "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.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.pa = function () { return 2 === i.api; }, this.Kc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Tc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Uc = function () {
|
|
3529
|
+
if (!o.Qc())
|
|
3530
|
+
return null;
|
|
3531
|
+
var e = 7;
|
|
3532
|
+
return this.showWeekNumbers && e++, 100 / e;
|
|
3533
|
+
}, this.Vc = function () { return o.Qc() ? null : o.cellWidth(); }, this.Wc = function (e) { return "number" != typeof e && (e = 1), o.Qc() ? this.Uc() * e : this.Vc() * e; }, this.Xc = function (e) { var t = o.Qc() ? "%" : "px"; return this.Wc(e) + t; }, this.Lc = function (e, t) {
|
|
3532
3534
|
var a = {};
|
|
3533
3535
|
a.cells = [], a.days = [], a.weeks = [];
|
|
3534
3536
|
var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
|
|
3535
3537
|
a.rowCount = h;
|
|
3536
|
-
var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.
|
|
3538
|
+
var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Rc();
|
|
3537
3539
|
a.width = m;
|
|
3538
3540
|
var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight;
|
|
3539
3541
|
a.height = p;
|
|
3540
3542
|
var v = document.createElement("div");
|
|
3541
|
-
if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
3542
|
-
v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
3543
|
+
if (o.Qc() ? "Horizontal" === this.orientation && (v.style.width = 100 / i.showMonths + "%") : v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
3544
|
+
v.style.position = "absolute", o.Qc() ? (v.style.left = 100 / i.showMonths * e + "%", a.leftPct = 100 / i.showMonths * e) : v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
3543
3545
|
else {
|
|
3544
3546
|
v.style.position = "relative";
|
|
3545
3547
|
var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
|
|
3546
|
-
a.top = y, a.left = 0;
|
|
3548
|
+
a.top = y, a.left = 0, a.leftPct = 0;
|
|
3547
3549
|
}
|
|
3548
|
-
v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, this.root.appendChild(v);
|
|
3550
|
+
v.className = this.J("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = a, a.div = v, this.root.appendChild(v);
|
|
3549
3551
|
var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div");
|
|
3550
|
-
b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width =
|
|
3552
|
+
b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = i.Xc(), b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.J("_titleleft"), t.left && (b.style.cursor = "pointer", b.innerHTML = "<span><</span>", b.onclick = this.Yc), v.appendChild(b), this.tl = b;
|
|
3551
3553
|
var D = document.createElement("div");
|
|
3552
|
-
D.style.position = "absolute", D.style.left =
|
|
3553
|
-
var
|
|
3554
|
-
|
|
3555
|
-
var
|
|
3554
|
+
D.style.position = "absolute", D.style.left = i.Xc(), D.style.top = "0px", D.style.width = i.Xc(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.J("_title"), D.innerHTML = o.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D;
|
|
3555
|
+
var w = document.createElement("div");
|
|
3556
|
+
w.style.position = "absolute", w.style.left = i.Xc(i.showWeekNumbers ? 7 : 6), w.style.right = i.Xc(i.showWeekNumbers ? 7 : 6), w.style.top = "0px", w.style.width = i.Xc(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.J("_titleright"), t.right && (w.style.cursor = "pointer", w.innerHTML = "<span>></span>", w.onclick = this.Zc), v.appendChild(w), this.tr = w;
|
|
3557
|
+
var x = (this.Rc(), i.showWeekNumbers ? 1 : 0);
|
|
3556
3558
|
if (this.showWeekNumbers)
|
|
3557
3559
|
for (var C = 0; C < h; C++) {
|
|
3558
3560
|
var P = d.addDays(7 * C), k = null;
|
|
@@ -3569,53 +3571,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3569
3571
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
3570
3572
|
}
|
|
3571
3573
|
var _ = document.createElement("div");
|
|
3572
|
-
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width =
|
|
3574
|
+
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = i.Xc(), _.style.height = this.cellHeight + "px", _.style.lineHeight = this.cellHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_weeknumber"), _.innerHTML = "<span>" + k + "</span>", v.appendChild(_), a.weeks.push(_);
|
|
3573
3575
|
}
|
|
3574
3576
|
for (var S = 0; S < 7; S++) {
|
|
3575
3577
|
a.cells[S] = [];
|
|
3576
3578
|
var _ = document.createElement("div");
|
|
3577
|
-
_.style.position = "absolute", _.style.left =
|
|
3579
|
+
_.style.position = "absolute", _.style.left = i.Xc(S + x), _.style.right = i.Xc(S + x), _.style.top = this.titleHeight + "px", _.style.width = i.Xc(), _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.$c(S) + "</span>", v.appendChild(_), a.days.push(_);
|
|
3578
3580
|
for (var C = 0; C < h; C++) {
|
|
3579
|
-
var P = d.addDays(7 * C + S), M = this.
|
|
3580
|
-
if ("month" === this.
|
|
3581
|
+
var P = d.addDays(7 * C + S), M = this._c(P) && "none" !== this.ad(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
|
|
3582
|
+
if ("month" === this.ad())
|
|
3581
3583
|
M = M && T;
|
|
3582
|
-
else if ("day" === this.
|
|
3584
|
+
else if ("day" === this.ad())
|
|
3583
3585
|
M = M && (T || r && A || s && H);
|
|
3584
|
-
else if ("week" === this.
|
|
3586
|
+
else if ("week" === this.ad()) {
|
|
3585
3587
|
var E = P.firstDayOfMonth() === n;
|
|
3586
3588
|
M = M && (E || r && A || s && H);
|
|
3587
3589
|
}
|
|
3588
3590
|
var N = document.createElement("div");
|
|
3589
3591
|
a.cells[S][C] = N;
|
|
3590
|
-
var I = i.
|
|
3591
|
-
N.day = P, N.x = S, N.y = C, N.left =
|
|
3592
|
-
var
|
|
3593
|
-
|
|
3594
|
-
var
|
|
3595
|
-
if (this.cells && this.cells[P.toStringSortable()] && (
|
|
3592
|
+
var I = i.bd(S, C), z = I.x, R = I.y, O = o.Qc() ? "%" : "px";
|
|
3593
|
+
N.day = P, N.x = S, N.y = C, N.left = z, N.top = R, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Sc(N, "cell"), P.getTime() === f.getTime() && T && this.Sc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Sc(N, "weekend"), N.style.position = "absolute", N.style.left = z + O, N.style.right = z + O, N.style.top = R + "px", N.style.width = i.Xc(), N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
3594
|
+
var U = document.createElement("div");
|
|
3595
|
+
U.style.position = "absolute", U.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Sc(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", N.appendChild(U);
|
|
3596
|
+
var L = null;
|
|
3597
|
+
if (this.cells && this.cells[P.toStringSortable()] && (L = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
3596
3598
|
var B = {};
|
|
3597
|
-
B.cell =
|
|
3599
|
+
B.cell = L || {}, B.cell.day = P, B.cell.isCurrentMonth = T, B.cell.isToday = P.getTime() === f.getTime() && T, B.cell.isWeekend = 0 === P.dayOfWeek() || 6 === P.dayOfWeek(), L ? (B.cell.html = L.html || P.getDay(), B.cell.cssClass = L.css) : (B.cell.html = P.getDay(), B.cell.cssClass = null), i.onBeforeCellRender(B), L = B.cell;
|
|
3598
3600
|
}
|
|
3599
|
-
if (
|
|
3600
|
-
var
|
|
3601
|
-
|
|
3601
|
+
if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || r && A || s && H) {
|
|
3602
|
+
var j = document.createElement("div");
|
|
3603
|
+
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.Sc(j, "cell_text"), N.isClickable = !0, L && L.html && (j.innerHTML = L.html), N.appendChild(j);
|
|
3602
3604
|
}
|
|
3603
|
-
N.setAttribute("unselectable", "on"), N.onclick = this.
|
|
3605
|
+
N.setAttribute("unselectable", "on"), N.onclick = this.cd, v.appendChild(N), M && (i.dd(v, S, C), this.selected.push(N));
|
|
3604
3606
|
}
|
|
3605
3607
|
}
|
|
3606
|
-
var
|
|
3607
|
-
|
|
3608
|
-
}, this.
|
|
3608
|
+
var W = document.createElement("div");
|
|
3609
|
+
W.style.position = "absolute", W.style.left = "0px", W.style.top = g - 2 + "px", W.style.width = i.Xc(7 + x), W.style.height = "1px", W.style.fontSize = "1px", W.style.lineHeight = "1px", W.className = this.J("_line"), v.appendChild(W), this.months.push(a);
|
|
3610
|
+
}, this.bd = function (e, t) { var a = this.titleHeight + this.dayHeaderHeight, n = (this.Rc(), this.showWeekNumbers ? 1 : 0); return { "x": i.Wc(e + n), "y": t * this.cellHeight + a }; }, this.dd = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.ed = function (e, t, a) { var n = e.month.cells[t][a]; i.Tc(n, "select"); }, this.Rc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.fd = function () {
|
|
3609
3611
|
if (this.items)
|
|
3610
3612
|
for (var e = 0; e < this.showMonths; e++)
|
|
3611
3613
|
for (var t = 0; t < 7; t++)
|
|
3612
3614
|
for (var i = 0; i < 6; i++) {
|
|
3613
3615
|
var a = this.months[e].cells[t][i];
|
|
3614
|
-
a && (1 === this.items[a.day.toStringSortable()] ? (this.
|
|
3616
|
+
a && (1 === this.items[a.day.toStringSortable()] ? (this.Sc(a, "busy"), this.Tc(a, "free")) : (this.Tc(a, "busy"), this.Sc(a, "free")));
|
|
3615
3617
|
}
|
|
3616
|
-
}, this.
|
|
3618
|
+
}, this.gd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.ad = function () { return (this.selectMode || "").toLowerCase(); }, this.hd = function () {
|
|
3617
3619
|
var e = this.selectionDay || this.selectionStart;
|
|
3618
|
-
switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.
|
|
3620
|
+
switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.ad()) {
|
|
3619
3621
|
case "day":
|
|
3620
3622
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
3621
3623
|
break;
|
|
@@ -3630,10 +3632,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3630
3632
|
break;
|
|
3631
3633
|
default: throw "Unknown selectMode value.";
|
|
3632
3634
|
}
|
|
3633
|
-
}, this.
|
|
3635
|
+
}, this.jd = null, this.select = function (e, t, a) {
|
|
3634
3636
|
var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
|
|
3635
3637
|
if (!this.Aa)
|
|
3636
|
-
return void (this.
|
|
3638
|
+
return void (this.jd = { "date1": r, "date2": s, "options": l });
|
|
3637
3639
|
var d = !0, c = !0;
|
|
3638
3640
|
l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
|
|
3639
3641
|
var u = this.selectionStart, h = this.selectionEnd;
|
|
@@ -3641,20 +3643,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3641
3643
|
var f = !1;
|
|
3642
3644
|
if (d) {
|
|
3643
3645
|
var m = this.startDate;
|
|
3644
|
-
(this.selectionStart < this.
|
|
3646
|
+
(this.selectionStart < this.kd() || this.selectionStart >= this.ld()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
3645
3647
|
}
|
|
3646
|
-
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.
|
|
3648
|
+
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.hd(), this.Kc(), this.Pc(), this.md(), this.fd(), this.gd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.nd();
|
|
3647
3649
|
}, this.update = function (e) {
|
|
3648
3650
|
if (i.ab(e), this.Aa) {
|
|
3649
3651
|
if (i.N)
|
|
3650
3652
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
3651
|
-
i.
|
|
3653
|
+
i.od();
|
|
3652
3654
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
3653
|
-
i.$a(), t.start === i.selectionStart && t.end
|
|
3655
|
+
i.$a(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
3654
3656
|
}
|
|
3655
|
-
}, this.$a = function () { this.Kc(), this.Pc(), this.
|
|
3657
|
+
}, this.$a = function () { this.Kc(), this.Pc(), this.hd(), this.md(), this.da(), this.fd(), this.gd(), this.visible ? this.show() : this.hide(); }, this.od = function () { i.gb = {}; }, this.db = null, this.ab = function (e) {
|
|
3656
3658
|
if (e) {
|
|
3657
|
-
var t = { "events": { "preInit": function () { var e = this.data
|
|
3659
|
+
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
|
|
3658
3660
|
this.db = t;
|
|
3659
3661
|
for (var a in e)
|
|
3660
3662
|
if (t[a]) {
|
|
@@ -3670,27 +3672,35 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3670
3672
|
var i = e[t];
|
|
3671
3673
|
i.postInit && i.postInit();
|
|
3672
3674
|
}
|
|
3673
|
-
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.
|
|
3675
|
+
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, n, this.pd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.pd = function (e) {
|
|
3674
3676
|
if ("function" == typeof i.onAjaxError) {
|
|
3675
3677
|
var t = {};
|
|
3676
3678
|
t.request = e, i.onAjaxError(t);
|
|
3677
3679
|
}
|
|
3678
3680
|
else
|
|
3679
3681
|
"function" == typeof i.ajaxError && i.ajaxError(e);
|
|
3680
|
-
}, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.
|
|
3682
|
+
}, this.S = function (e) { i.T(e.responseText); }, this.P = function (e, t, a) { var n = {}; n.action = e, n.parameters = a, n.data = t, n.header = this.Q(); var o = "JSON" + JSON.stringify(n); __doPostBack(i.uniqueID, o); }, this.Q = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.qd = function (e, t) { "refresh" === e && this.nd(); }, this.$c = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this._c = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.rd = function (e) {
|
|
3681
3683
|
for (var t = 0; t < i.months.length; t++) {
|
|
3682
3684
|
var a = i.months[t];
|
|
3683
3685
|
if (!a)
|
|
3684
3686
|
return null;
|
|
3685
|
-
if (e.x < a.left
|
|
3687
|
+
if (e.x < a.left)
|
|
3686
3688
|
return null;
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3689
|
+
if (!(a.left + a.width < e.x)) {
|
|
3690
|
+
i.months[t].height;
|
|
3691
|
+
if (a.top <= e.y && e.y < a.top + a.height)
|
|
3692
|
+
return t;
|
|
3693
|
+
}
|
|
3690
3694
|
}
|
|
3691
3695
|
return null;
|
|
3692
|
-
}, this.
|
|
3693
|
-
|
|
3696
|
+
}, this.sd = function (e) { }, this.td = function () {
|
|
3697
|
+
if (!o.Qc())
|
|
3698
|
+
return void (i.ud = i.cellWidth);
|
|
3699
|
+
var e = i.months[0].cells[0][0], t = e.clientWidth;
|
|
3700
|
+
i.ud = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); });
|
|
3701
|
+
}, this.vd = function (e) {
|
|
3702
|
+
i.td();
|
|
3703
|
+
var t = DayPilot.mo3(i.nav.top, e), a = i.rd(t);
|
|
3694
3704
|
if (null === a)
|
|
3695
3705
|
return null;
|
|
3696
3706
|
var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight;
|
|
@@ -3699,18 +3709,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3699
3709
|
for (var r = 0; r < n.cells.length; r++)
|
|
3700
3710
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
3701
3711
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
3702
|
-
if (c <= t.x && t.x < c + i.
|
|
3712
|
+
if (c <= t.x && t.x < c + i.ud && d <= t.y && t.y < d + i.cellHeight)
|
|
3703
3713
|
return { "month": a, "x": r, "y": s, "coords": t };
|
|
3704
3714
|
}
|
|
3705
3715
|
return null;
|
|
3706
|
-
}, this.
|
|
3716
|
+
}, this.wd = function (e) {
|
|
3707
3717
|
if (i.freeHandSelectionEnabled) {
|
|
3708
|
-
var t = i.
|
|
3718
|
+
var t = i.vd(e);
|
|
3709
3719
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
3710
3720
|
}
|
|
3711
|
-
}, this.
|
|
3721
|
+
}, this.xd = function (e) {
|
|
3712
3722
|
if (a.start) {
|
|
3713
|
-
var t = i.
|
|
3723
|
+
var t = i.vd(e);
|
|
3714
3724
|
if (a.end)
|
|
3715
3725
|
a.end = t;
|
|
3716
3726
|
else if (t) {
|
|
@@ -3719,9 +3729,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3719
3729
|
}
|
|
3720
3730
|
a.end && (a.clear(), a.draw());
|
|
3721
3731
|
}
|
|
3722
|
-
}, this.
|
|
3723
|
-
var a = this.
|
|
3724
|
-
a.start = null, a.drawCell = function (e) {
|
|
3732
|
+
}, this.yd = {};
|
|
3733
|
+
var a = this.yd;
|
|
3734
|
+
a.start = null, a.drawCell = function (e) {
|
|
3735
|
+
var t = i.months[e.month], n = i.bd(e.x, e.y), r = t.top + n.y, s = t.left + n.x, l = "px", d = i.Xc();
|
|
3736
|
+
if (o.Qc()) {
|
|
3737
|
+
var c = "Horizontal" === i.orientation ? i.showMonths : 1;
|
|
3738
|
+
s = t.leftPct + n.x / c, l = "%", d = i.Xc(1 / c);
|
|
3739
|
+
}
|
|
3740
|
+
var u = document.createElement("div");
|
|
3741
|
+
u.style.position = "absolute", u.style.left = s + l, u.style.top = r + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u);
|
|
3742
|
+
}, a.clear = function () {
|
|
3725
3743
|
if (a.cells) {
|
|
3726
3744
|
for (var e = 0; e < a.cells.length; e++)
|
|
3727
3745
|
i.nav.preselection.removeChild(a.cells[e]);
|
|
@@ -3736,13 +3754,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3736
3754
|
o.x = 6, o.y = r.rowCount - 1;
|
|
3737
3755
|
}
|
|
3738
3756
|
for (a.cells = []; !t.is(o);) {
|
|
3739
|
-
a.drawCell(t);
|
|
3757
|
+
t.visible() && a.drawCell(t);
|
|
3740
3758
|
var s = new n(t).next();
|
|
3741
3759
|
if (!s)
|
|
3742
3760
|
return;
|
|
3743
3761
|
t.month = s.month, t.x = s.x, t.y = s.y;
|
|
3744
3762
|
}
|
|
3745
|
-
a.drawCell(t);
|
|
3763
|
+
t.visible() && a.drawCell(t);
|
|
3746
3764
|
}
|
|
3747
3765
|
}, a.ordered = function () { var e = a.start, t = a.end, i = {}; return !t || new n(e).before(t) ? (i.start = e, i.end = t) : (i.start = t, i.end = e), i; };
|
|
3748
3766
|
var n = function (e, t, a) {
|
|
@@ -3790,50 +3808,50 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3790
3808
|
return e;
|
|
3791
3809
|
}, this.cell = function () { return i.months[this.month].cells[this.x][this.y]; }, this.date = function () { return this.cell().day; }, this.before = function (e) { return this.date() < new n(e).date(); };
|
|
3792
3810
|
};
|
|
3793
|
-
this.
|
|
3811
|
+
this.cd = function (e) {
|
|
3794
3812
|
var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day;
|
|
3795
3813
|
if (a.cells[n][o].isClickable) {
|
|
3796
3814
|
i.clearSelection(), i.selectionDay = r;
|
|
3797
3815
|
var r = i.selectionDay;
|
|
3798
|
-
switch (i.
|
|
3816
|
+
switch (i.ad()) {
|
|
3799
3817
|
case "none":
|
|
3800
3818
|
i.selectionStart = r, i.selectionEnd = r;
|
|
3801
3819
|
break;
|
|
3802
3820
|
case "day":
|
|
3803
3821
|
if (i.autoFocusOnClick) {
|
|
3804
3822
|
var s = r;
|
|
3805
|
-
if (r < i.
|
|
3823
|
+
if (r < i.kd() || r >= i.ld())
|
|
3806
3824
|
return void i.select(r);
|
|
3807
3825
|
}
|
|
3808
3826
|
var l = a.cells[n][o];
|
|
3809
|
-
i
|
|
3827
|
+
i.dd(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
|
|
3810
3828
|
break;
|
|
3811
3829
|
case "week":
|
|
3812
3830
|
if (i.autoFocusOnClick) {
|
|
3813
3831
|
var s = a.cells[0][o].day, d = a.cells[6][o].day;
|
|
3814
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.
|
|
3832
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.kd() || d >= i.ld()))
|
|
3815
3833
|
return void i.select(r);
|
|
3816
3834
|
}
|
|
3817
3835
|
for (var c = 0; c < 7; c++)
|
|
3818
|
-
i
|
|
3836
|
+
i.dd(t, c, o), i.selected.push(a.cells[c][o]);
|
|
3819
3837
|
i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
|
|
3820
3838
|
break;
|
|
3821
3839
|
case "month":
|
|
3822
3840
|
if (i.autoFocusOnClick) {
|
|
3823
3841
|
var s = r;
|
|
3824
|
-
if (r < i.
|
|
3842
|
+
if (r < i.kd() || r >= i.ld())
|
|
3825
3843
|
return void i.select(r);
|
|
3826
3844
|
}
|
|
3827
3845
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
3828
3846
|
for (var n = 0; n < 7; n++) {
|
|
3829
3847
|
var l = a.cells[n][o];
|
|
3830
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i
|
|
3848
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.dd(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
3831
3849
|
}
|
|
3832
3850
|
i.selectionStart = s, i.selectionEnd = d;
|
|
3833
3851
|
break;
|
|
3834
3852
|
default: throw "unknown selectMode";
|
|
3835
3853
|
}
|
|
3836
|
-
i.
|
|
3854
|
+
i.gd(), i.L();
|
|
3837
3855
|
}
|
|
3838
3856
|
}, this.L = function (e) {
|
|
3839
3857
|
var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
|
|
@@ -3867,7 +3885,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3867
3885
|
case "None": break;
|
|
3868
3886
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
3869
3887
|
}
|
|
3870
|
-
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.
|
|
3888
|
+
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Zc = function (e) { i.zd(i.skipMonths); }, this.Yc = function (e) { i.zd(-i.skipMonths); }, this.zd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.md(), this.gd(), this.nd(), this.fd(); }, this.kd = function () { return i.startDate.firstDayOfMonth(); }, this.ld = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () {
|
|
3889
|
+
return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42);
|
|
3890
|
+
}, this.nd = function () {
|
|
3871
3891
|
var e = this.visibleStart(), t = this.visibleEnd();
|
|
3872
3892
|
if (i.pa()) {
|
|
3873
3893
|
var a = {};
|
|
@@ -3897,14 +3917,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3897
3917
|
break;
|
|
3898
3918
|
case "Disabled":
|
|
3899
3919
|
}
|
|
3900
|
-
}, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.
|
|
3920
|
+
}, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.P("Visible", e, t); }, this.T = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.fd(); }, this.md = function () {
|
|
3901
3921
|
for (var e = 0; e < this.showMonths; e++) {
|
|
3902
|
-
var t = this.
|
|
3922
|
+
var t = this.Ad(e);
|
|
3903
3923
|
this.Lc(e, t);
|
|
3904
3924
|
}
|
|
3905
|
-
this.root.style.height = this.
|
|
3906
|
-
|
|
3907
|
-
}, this.td = function () {
|
|
3925
|
+
this.root.style.height = this.Bd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
|
|
3926
|
+
}, this.Bd = function () {
|
|
3908
3927
|
if ("Horizontal" === this.orientation) {
|
|
3909
3928
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
3910
3929
|
var i = this.months[t];
|
|
@@ -3917,7 +3936,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3917
3936
|
a += i.height;
|
|
3918
3937
|
}
|
|
3919
3938
|
return a;
|
|
3920
|
-
}, this.
|
|
3939
|
+
}, this.Ad = function (e) {
|
|
3921
3940
|
if (this.internal.showLinks)
|
|
3922
3941
|
return this.internal.showLinks;
|
|
3923
3942
|
var t = {};
|
|
@@ -3933,27 +3952,27 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3933
3952
|
}, o.cellWidth = function () {
|
|
3934
3953
|
if (i.gb.cellWidth)
|
|
3935
3954
|
return i.gb.cellWidth;
|
|
3936
|
-
var e = i.
|
|
3955
|
+
var e = i.Cd("_cell_dimensions").width;
|
|
3937
3956
|
return e || (e = i.cellWidth), i.gb.cellWidth = e, e;
|
|
3938
|
-
}, this.clearSelection = function () {
|
|
3957
|
+
}, o.Qc = function () { return "Auto" === i._.cellWidth(); }, this.clearSelection = function () {
|
|
3939
3958
|
for (var e = 0; e < this.selected.length; e++) {
|
|
3940
3959
|
var t = this.selected[e];
|
|
3941
|
-
i.
|
|
3960
|
+
i.ed(t.parentNode, t.x, t.y);
|
|
3942
3961
|
}
|
|
3943
3962
|
this.selected = [];
|
|
3944
|
-
}, this.
|
|
3963
|
+
}, this.Dd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () {
|
|
3945
3964
|
if (DayPilot.isArray(this.events.list)) {
|
|
3946
3965
|
this.items = {};
|
|
3947
3966
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
3948
3967
|
var t = this.events.list[e];
|
|
3949
3968
|
if (!t.hidden) {
|
|
3950
|
-
var i = this.
|
|
3969
|
+
var i = this.Ed(t);
|
|
3951
3970
|
for (var a in i)
|
|
3952
3971
|
this.items[a] = 1;
|
|
3953
3972
|
}
|
|
3954
3973
|
}
|
|
3955
3974
|
}
|
|
3956
|
-
}, this.
|
|
3975
|
+
}, this.Cd = 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.Ed = function (e) {
|
|
3957
3976
|
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
3958
3977
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
3959
3978
|
return a;
|
|
@@ -3969,21 +3988,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3969
3988
|
this.root = this.nav.top;
|
|
3970
3989
|
}, this.init = function () {
|
|
3971
3990
|
if (this.fb(), !this.root.dp) {
|
|
3972
|
-
this.
|
|
3973
|
-
if (this.
|
|
3974
|
-
var e = this.
|
|
3975
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
3991
|
+
this.hd(), this.Pc(), this.md(), this.da(), this.fd(), this.Y(), this.Fd(), this.Za();
|
|
3992
|
+
if (this.Dd() && this.nd(), this.Aa = !0, this.eb(), this.jd) {
|
|
3993
|
+
var e = this.jd;
|
|
3994
|
+
this.select(e.date1, e.date2, e.options), this.jd = null;
|
|
3976
3995
|
}
|
|
3977
3996
|
return this;
|
|
3978
3997
|
}
|
|
3979
|
-
}, this.
|
|
3998
|
+
}, this.Fd = function () { i.nav.top.onmousedown = this.wd, i.nav.top.onmousemove = this.xd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.Gd); }, this.Gd = function (e) {
|
|
3980
3999
|
if (a.start && a.end) {
|
|
3981
4000
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
3982
4001
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
3983
4002
|
return a.start = null, void a.clear();
|
|
3984
4003
|
a.clear();
|
|
3985
4004
|
var o = a.ordered();
|
|
3986
|
-
o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Kc(), i.Pc(), i.
|
|
4005
|
+
o.start = new n(o.start).nextVisible(), o.end = new n(o.end).previousVisible(), i.selectionDay = new n(o.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new n(o.end).date(), a.start = null, a.end = null, i.Kc(), i.Pc(), i.md(), i.fd(), i.gd();
|
|
3987
4006
|
i.L({ "mode": "FreeHand" });
|
|
3988
4007
|
}
|
|
3989
4008
|
a.start = null, a.end = null;
|
|
@@ -4024,13 +4043,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
4024
4043
|
for (var i in e)
|
|
4025
4044
|
n[i] = e[i];
|
|
4026
4045
|
n.update();
|
|
4027
|
-
}, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.
|
|
4046
|
+
}, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.fd(); }, !0);
|
|
4028
4047
|
};
|
|
4029
4048
|
} };
|
|
4030
4049
|
}]);
|
|
4031
|
-
}(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
4050
|
+
}(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
4032
4051
|
}
|
|
4033
|
-
}();
|
|
4052
|
+
}(DayPilot);
|
|
4034
4053
|
|
|
4035
4054
|
function rand() {
|
|
4036
4055
|
return ((1 + Math.random()) * 0x10000) | 0;
|