@daypilot/daypilot-lite-angular 3.22.2 → 3.24.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 +401 -389
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +477 -447
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +400 -388
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +5 -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.
|
|
133
|
+
Version: 2024.3.539-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -648,27 +648,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
648
648
|
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
649
649
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
650
650
|
var n = this;
|
|
651
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.
|
|
652
|
-
i = i.parentNode; var a = document.createElement("div"); 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"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, 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 () { return "Disabled" !== n.xssProtection; }
|
|
651
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.3.539-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.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) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
652
|
+
i = i.parentNode; var a = document.createElement("div"); 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"); var o = document.createElement("div"); return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a; }, 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 () { return "Disabled" !== n.xssProtection; }, this._.ba = function () { if ("Auto" === n.weekStarts) {
|
|
653
|
+
var e = o.locale();
|
|
654
|
+
return e ? e.weekStarts : 0;
|
|
655
|
+
} return n.weekStarts || 0; };
|
|
653
656
|
var o = this._;
|
|
654
|
-
this.T = function (e, t) {
|
|
655
|
-
if (
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
return
|
|
663
|
-
if ("None" === e.UpdateType)
|
|
664
|
-
return n.loadingStop(), void n.s();
|
|
665
|
-
if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ba()), e.Hashes)
|
|
666
|
-
for (var i in e.Hashes)
|
|
667
|
-
n.hashes[i] = e.Hashes[i];
|
|
668
|
-
n.events.list = e.Events, n.ca(), n.da(), "Full" === e.UpdateType && (n.ea(), n.fa(), n.ga(), n.ha()), n.s(), n.ia(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
|
|
669
|
-
}, this.ja = function () { return this.ka() / 36e5; }, this.la = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.ma = function () { return this.ka() / 18e5; }, this.ka = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.la() : 24, 60 * e * 60 * 1e3; }, this.na = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.oa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.pa = function (e) { var t = this, i = t.event; if (n.oa()) {
|
|
657
|
+
this.T = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
|
|
658
|
+
if (!window.console)
|
|
659
|
+
throw "Error received from the server side: " + e;
|
|
660
|
+
return void console.log("Error received from the server side: " + e);
|
|
661
|
+
} var e = JSON.parse(e); if (e.CallBackRedirect)
|
|
662
|
+
return void (document.location.href = e.CallBackRedirect); if ("None" === e.UpdateType)
|
|
663
|
+
return n.loadingStop(), void n.s(); if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ca()), e.Hashes)
|
|
664
|
+
for (var i in e.Hashes)
|
|
665
|
+
n.hashes[i] = e.Hashes[i]; n.events.list = e.Events, n.da(), n.ea(), "Full" === e.UpdateType && (n.fa(), n.ga(), n.ha(), n.ia()), n.s(), n.ja(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop(); }, this.ka = function () { return this.la() / 36e5; }, this.ma = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.na = function () { return this.la() / 18e5; }, this.la = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.ma() : 24, 60 * e * 60 * 1e3; }, this.oa = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.pa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.qa = function (e) { var t = this, i = t.event; if (n.pa()) {
|
|
670
666
|
var a = {};
|
|
671
|
-
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.
|
|
667
|
+
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.ra.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
672
668
|
return;
|
|
673
669
|
switch (n.eventClickHandling) {
|
|
674
670
|
case "CallBack":
|
|
@@ -681,7 +677,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
681
677
|
var o = i.client.contextMenu();
|
|
682
678
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
683
679
|
}
|
|
684
|
-
"function" == typeof n.onEventClicked && n.
|
|
680
|
+
"function" == typeof n.onEventClicked && n.ra.apply(function () { n.onEventClicked(a); });
|
|
685
681
|
}
|
|
686
682
|
else
|
|
687
683
|
switch (n.eventClickHandling) {
|
|
@@ -692,15 +688,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
692
688
|
n.eventClickCallBack(i);
|
|
693
689
|
break;
|
|
694
690
|
case "JavaScript": n.onEventClick(i);
|
|
695
|
-
} }, this.
|
|
691
|
+
} }, this.sa = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
696
692
|
return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventRightClick && (n.onEventRightClick(i), i.preventDefault.value))
|
|
697
693
|
return !1; switch (n.eventRightClickHandling) {
|
|
698
694
|
case "ContextMenu":
|
|
699
695
|
var a = t.client.contextMenu();
|
|
700
696
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
701
|
-
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.
|
|
697
|
+
} return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.ta = function (e) { if (n.pa()) {
|
|
702
698
|
var t = {};
|
|
703
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
699
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ra.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
704
700
|
return;
|
|
705
701
|
switch (n.eventDeleteHandling) {
|
|
706
702
|
case "CallBack":
|
|
@@ -711,7 +707,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
711
707
|
break;
|
|
712
708
|
case "Update": n.events.remove(e);
|
|
713
709
|
}
|
|
714
|
-
"function" == typeof n.onEventDeleted && n.
|
|
710
|
+
"function" == typeof n.onEventDeleted && n.ra.apply(function () { n.onEventDeleted(t); });
|
|
715
711
|
}
|
|
716
712
|
else
|
|
717
713
|
switch (n.eventDeleteHandling) {
|
|
@@ -727,15 +723,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
727
723
|
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
|
|
728
724
|
throw "newStart is null"; if (!i)
|
|
729
725
|
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.P("EventResize", a, n); }, this.I = function (e, t, i, a) { var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end(); if ("top" === a) {
|
|
730
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
726
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
|
|
731
727
|
r = c.addTime(f + m), s = e.end();
|
|
732
728
|
}
|
|
733
729
|
else if ("bottom" === a) {
|
|
734
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
730
|
+
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.oa() * 60 * 1e3;
|
|
735
731
|
r = l, s = c.addTime(f + m);
|
|
736
|
-
} if (n.
|
|
732
|
+
} if (n.pa()) {
|
|
737
733
|
var p = {};
|
|
738
|
-
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.
|
|
734
|
+
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.ra.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
|
|
739
735
|
return;
|
|
740
736
|
switch (n.eventResizeHandling) {
|
|
741
737
|
case "PostBack":
|
|
@@ -746,7 +742,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
746
742
|
break;
|
|
747
743
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
748
744
|
}
|
|
749
|
-
"function" == typeof n.onEventResized && n.
|
|
745
|
+
"function" == typeof n.onEventResized && n.ra.apply(function () { n.onEventResized(p); });
|
|
750
746
|
}
|
|
751
747
|
else
|
|
752
748
|
switch (n.eventResizeHandling) {
|
|
@@ -761,9 +757,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
761
757
|
throw "newStart is null"; if (!i)
|
|
762
758
|
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.P("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
763
759
|
throw "newStart is null"; if (!i)
|
|
764
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.K = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.
|
|
760
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.K = function (e, t, i, a) { var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date; l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate())); var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.ua[t], m = f.id, p = f.start.getTime(), v = new Date; v.setTime(p + s + u); var y = new DayPilot.Date(v), g = y.addTime(h); if (n.pa()) {
|
|
765
761
|
var b = {};
|
|
766
|
-
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.
|
|
762
|
+
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.ra.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
|
|
767
763
|
return;
|
|
768
764
|
switch (n.eventMoveHandling) {
|
|
769
765
|
case "PostBack":
|
|
@@ -774,7 +770,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
774
770
|
break;
|
|
775
771
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
776
772
|
}
|
|
777
|
-
"function" == typeof n.onEventMoved && n.
|
|
773
|
+
"function" == typeof n.onEventMoved && n.ra.apply(function () { n.onEventMoved(b); });
|
|
778
774
|
}
|
|
779
775
|
else
|
|
780
776
|
switch (n.eventMoveHandling) {
|
|
@@ -785,9 +781,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
785
781
|
n.eventMoveCallBack(e, y, g, f.id);
|
|
786
782
|
break;
|
|
787
783
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
788
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.
|
|
784
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.pa()) {
|
|
789
785
|
var a = {};
|
|
790
|
-
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.
|
|
786
|
+
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ra.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
791
787
|
return;
|
|
792
788
|
switch (n.timeRangeSelectedHandling) {
|
|
793
789
|
case "PostBack":
|
|
@@ -795,7 +791,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
795
791
|
break;
|
|
796
792
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
797
793
|
}
|
|
798
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
794
|
+
"function" == typeof n.onTimeRangeSelected && n.ra.apply(function () { n.onTimeRangeSelected(a); });
|
|
799
795
|
}
|
|
800
796
|
else
|
|
801
797
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -806,26 +802,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
806
802
|
n.timeRangeSelectedCallBack(e, t);
|
|
807
803
|
break;
|
|
808
804
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
809
|
-
} }, this.
|
|
805
|
+
} }, this.va = function (e) { if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
810
806
|
var i = e.which;
|
|
811
807
|
if (1 === i || 0 === i)
|
|
812
|
-
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.
|
|
813
|
-
} }, this.
|
|
808
|
+
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.wa(), !1;
|
|
809
|
+
} }, this.wa = function () { this.getSelection(); !function () { var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () { if (e.data)
|
|
814
810
|
return e.data.x; for (var t = e.parentNode.cells, i = 0; i < t.length; i++)
|
|
815
811
|
if (t[i] === e)
|
|
816
|
-
return i; return -1; }(), o = n.
|
|
812
|
+
return i; return -1; }(), o = n.ua[a]; if (o) {
|
|
817
813
|
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () { if (n.nav.activeSelection)
|
|
818
814
|
return n.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = n.J("_shadow_inner"), e.appendChild(t), n.nav.events.rows[0].cells[a].selection.appendChild(e), n.elements.selection.push(e), n.nav.activeSelection = e, e; }();
|
|
819
815
|
c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
|
|
820
|
-
} }(); }, this.
|
|
816
|
+
} }(); }, this.xa = function (e) { if ("undefined" != typeof t && t.selecting) {
|
|
821
817
|
var i = DayPilot.mc(e);
|
|
822
|
-
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
823
|
-
} }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.
|
|
818
|
+
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.wa());
|
|
819
|
+
} }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.ya = function (e) { if (e < 0)
|
|
824
820
|
return null; for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
825
821
|
if (t += i[a].offsetWidth, e < t)
|
|
826
822
|
return a;
|
|
827
|
-
} return null; }, this.
|
|
828
|
-
return null; e.x = n.
|
|
823
|
+
} return null; }, this.za = {}, this.za.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !n.coords)
|
|
824
|
+
return null; e.x = n.ya(n.coords.x); var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
|
|
829
825
|
throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
830
826
|
i = JSON.parse(o.responseText);
|
|
831
827
|
}
|
|
@@ -836,11 +832,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
836
832
|
var s = {};
|
|
837
833
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
838
834
|
return;
|
|
839
|
-
n.columns.list = i, n.
|
|
840
|
-
} }; n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a }); }, this.
|
|
841
|
-
var i = this.
|
|
842
|
-
this.
|
|
843
|
-
} }, this.
|
|
835
|
+
n.columns.list = i, n.Aa && n.update();
|
|
836
|
+
} }; n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a }); }, this.ca = function () { var e; e = "Resources" !== n.viewType ? this.Ba() : n.columns.list, this.ua = []; for (var t = 0; t < e.length; t++) {
|
|
837
|
+
var i = this.Ca(e[t]);
|
|
838
|
+
this.ua.push(i);
|
|
839
|
+
} }, this.Ca = function (e) { var t = {}; return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
|
|
844
840
|
var i = this.blocks[t];
|
|
845
841
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
846
842
|
return i.events.push(e), i.min = Math.min(i.min, e.part.top), i.max = Math.max(i.max, e.part.top + e.part.height), t;
|
|
@@ -860,28 +856,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
860
856
|
var o = this[n];
|
|
861
857
|
if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
|
|
862
858
|
return !1;
|
|
863
|
-
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.
|
|
859
|
+
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Ba = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
|
|
864
860
|
case "Day":
|
|
865
861
|
i = 1;
|
|
866
862
|
break;
|
|
867
863
|
case "Week":
|
|
868
|
-
i = 7
|
|
864
|
+
i = 7;
|
|
865
|
+
var a = o.ba();
|
|
866
|
+
t = t.firstDayOfWeek(a);
|
|
869
867
|
break;
|
|
870
868
|
case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
|
|
871
|
-
} "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour)); for (var
|
|
872
|
-
var
|
|
873
|
-
|
|
869
|
+
} "BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour)); for (var r = 0; r < i; r++) {
|
|
870
|
+
var s = n.headerDateFormat ? n.headerDateFormat : o.locale().datePattern, l = {};
|
|
871
|
+
l.start = t.addDays(r), l.name = l.start.toString(s, o.locale()), e.push(l);
|
|
874
872
|
} return e; }, this.visibleStart = function () { if ("Resources" === n.viewType) {
|
|
875
|
-
if (0 === n.
|
|
873
|
+
if (0 === n.ua.length)
|
|
876
874
|
return DayPilot.Date.today();
|
|
877
|
-
var e = n.
|
|
875
|
+
var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
878
876
|
return new DayPilot.Date(t);
|
|
879
|
-
} return this.
|
|
880
|
-
if (0 === n.
|
|
877
|
+
} return this.ua[0].start; }, this.visibleEnd = function () { if ("Resources" === n.viewType) {
|
|
878
|
+
if (0 === n.ua.length)
|
|
881
879
|
return DayPilot.Date.today().addDays(1);
|
|
882
|
-
var e = n.
|
|
880
|
+
var e = n.ua.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
883
881
|
return new DayPilot.Date(t).addDays(1);
|
|
884
|
-
} var t = this.
|
|
882
|
+
} var t = this.ua.length - 1; return this.ua[t].start.addDays(1); }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () { if (this.elements.events)
|
|
885
883
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
886
884
|
var t = this.elements.events[e], i = t.event;
|
|
887
885
|
if (i && (i.calendar = null), t.onclick = null, t.onclickSave = null, t.onmouseover = null, t.onmouseout = null, t.onmousemove = null, t.onmousedown = null, t.firstChild && t.firstChild.firstChild && t.firstChild.firstChild.tagName && "IMG" === t.firstChild.firstChild.tagName.toUpperCase()) {
|
|
@@ -889,7 +887,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
889
887
|
a.onmousedown = null, a.onmousemove = null, a.onclick = null;
|
|
890
888
|
}
|
|
891
889
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
892
|
-
} this.elements.events = []; }, this.
|
|
890
|
+
} this.elements.events = []; }, this.Da = function (e) { var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div"); o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), n.showToolTip && e.client.toolTip() && (o.title = e.client.toolTip()), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.qa, DayPilot.re(o, "contextmenu", this.sa), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) { var a = 5; if ("undefined" != typeof t) {
|
|
893
891
|
var r = DayPilot.mo3(o, i);
|
|
894
892
|
if (r && !t.resizing && !t.moving) {
|
|
895
893
|
o.deleteIcon && (o.deleteIcon.style.display = "");
|
|
@@ -900,7 +898,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
900
898
|
if (1 === a && e.client.moveEnabled()) {
|
|
901
899
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
902
900
|
var o = t.moving.helper = {};
|
|
903
|
-
o.oldColumn = n.
|
|
901
|
+
o.oldColumn = n.ua[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
904
902
|
var r = DayPilot.mo3(this, i);
|
|
905
903
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
906
904
|
}
|
|
@@ -913,19 +911,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
913
911
|
u.setAttribute("unselectable", "on"), u.className = this.J("_event_bar_inner"), u.style.top = l + "%", 0 < d && d <= 1 ? u.style.height = "1px" : u.style.height = d + "%", i.barColor && (u.style.backgroundColor = i.barColor), c.appendChild(u), o.appendChild(c);
|
|
914
912
|
} if (e.client.deleteEnabled()) {
|
|
915
913
|
var h = document.createElement("div");
|
|
916
|
-
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.
|
|
914
|
+
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ta(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
|
|
917
915
|
} var f = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
918
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.
|
|
916
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Ea(o);
|
|
919
917
|
} if ("function" == typeof n.onAfterEventRender) {
|
|
920
918
|
var m = {};
|
|
921
919
|
m.e = o.event, m.div = o, n.onAfterEventRender(m);
|
|
922
|
-
} n.elements.events.push(o); }, this.
|
|
920
|
+
} n.elements.events.push(o); }, this.Ea = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
923
921
|
try {
|
|
924
922
|
var a = e.childNodes[i];
|
|
925
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
923
|
+
1 === a.nodeType && (a.unselectable = "on", this.Ea(a));
|
|
926
924
|
}
|
|
927
|
-
catch (e) { } }, this.
|
|
928
|
-
var t = this.
|
|
925
|
+
catch (e) { } }, this.ja = function () { for (var e = 0; e < this.ua.length; e++) {
|
|
926
|
+
var t = this.ua[e];
|
|
929
927
|
if (t.blocks)
|
|
930
928
|
for (var i = 0; i < t.blocks.length; i++)
|
|
931
929
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -933,40 +931,40 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
933
931
|
var s = o[r];
|
|
934
932
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
935
933
|
var l = n === a.lines.length - 1;
|
|
936
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
934
|
+
l || (s.part.width = 1.5 * s.part.width), this.Da(s);
|
|
937
935
|
}
|
|
938
|
-
} }, this.
|
|
936
|
+
} }, this.Fa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Ga() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.Ha(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ia(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.innerHTML = n.Ja(n.loadingLabelText, n.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ha = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ka(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ia = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Ka(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.La()), n.appendChild(this.Ma()), e.appendChild(t), this.nav.zoom = e, e; }, this.La = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.Ma = function () { var e = document.createElement("table"); e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e; for (var t = this.ua, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
939
937
|
var r = a.insertCell(-1);
|
|
940
938
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
941
939
|
var s = document.createElement("div");
|
|
942
940
|
s.style.marginRight = n.columnMarginRight + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
943
941
|
var l = document.createElement("div");
|
|
944
942
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
945
|
-
} return e; }, this.
|
|
946
|
-
this.
|
|
943
|
+
} return e; }, this.Ka = function () { var e = document.createElement("table"); e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; }; for (var t = n.ka(), i = 0; i < t; i++)
|
|
944
|
+
this.Na(e, i); return e; }, this.Na = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.oa()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Ga = function () { switch (this.heightSpec) {
|
|
947
945
|
case "Full": return 48 * this.cellHeight;
|
|
948
946
|
case "BusinessHours":
|
|
949
|
-
var e = this.
|
|
947
|
+
var e = this.ma();
|
|
950
948
|
return e * this.cellHeight * 2;
|
|
951
949
|
case "BusinessHoursNoScroll":
|
|
952
|
-
var e = this.
|
|
950
|
+
var e = this.ma();
|
|
953
951
|
return e * this.cellHeight * 2;
|
|
954
952
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
955
|
-
} }, this.
|
|
953
|
+
} }, this.Oa = function () { var e = n.nav.corner ? n.nav.corner.parentNode : null; if (e) {
|
|
956
954
|
e.innerHTML = "";
|
|
957
|
-
var t = this.
|
|
955
|
+
var t = this.Pa();
|
|
958
956
|
e.appendChild(t), n.nav.corner = t;
|
|
959
|
-
} }, this.
|
|
957
|
+
} }, this.Ha = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.Pa(); a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
|
|
960
958
|
a = i.insertCell(-1), a.unselectable = "on";
|
|
961
959
|
var r = document.createElement("div");
|
|
962
960
|
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.J("_cornerright");
|
|
963
961
|
var s = document.createElement("div");
|
|
964
962
|
s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
965
|
-
} return e.appendChild(t), e; }, this.
|
|
963
|
+
} return e.appendChild(t), e; }, this.Pa = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
|
|
966
964
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
967
965
|
var n = i.cells[a];
|
|
968
966
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
969
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
967
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.ga = function () { var e = this.nav.main, i = 18e5, a = this.na(), o = n.ua; for (e && this.W(); e && e.rows && e.rows.length > 0;)
|
|
970
968
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
971
969
|
this.fasterDispose || DayPilot.pu(s.rows[0]), s.deleteRow(0); for (var r = o.length, l = s.insertRow(-1), d = 0; d < r; d++) {
|
|
972
970
|
var c = l.insertCell(-1);
|
|
@@ -979,11 +977,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
979
977
|
var l = e.insertRow(-1);
|
|
980
978
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
981
979
|
for (var d = 0; d < r; d++) {
|
|
982
|
-
var m = this.
|
|
983
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
980
|
+
var m = this.ua[d], c = l.insertCell(-1);
|
|
981
|
+
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.va, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
984
982
|
var u = document.createElement("div");
|
|
985
983
|
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
|
|
986
|
-
var p = this.
|
|
984
|
+
var p = this.Qa(c.start, c.end), v = { "business": p, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null };
|
|
987
985
|
!function () { if ("function" == typeof n.onBeforeCellRender) {
|
|
988
986
|
var e = {};
|
|
989
987
|
e.cell = { "start": c.start, "end": c.end, "resource": c.resource, "properties": v }, n.onBeforeCellRender(e);
|
|
@@ -1028,14 +1026,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1028
1026
|
y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
|
|
1029
1027
|
}
|
|
1030
1028
|
else if (t.selecting) {
|
|
1031
|
-
var a = DayPilot.mc(e), g = n.
|
|
1032
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1033
|
-
} }, n.nav.scrollable.style.display = ""; }, this.
|
|
1029
|
+
var a = DayPilot.mc(e), g = n.za.getCellCoords(), b = t.column, D = n.nav.main.rows[g.y].cells[b];
|
|
1030
|
+
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.wa();
|
|
1031
|
+
} }, n.nav.scrollable.style.display = ""; }, this.Qa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () { var e = this.nav.header; if (e && e.rows)
|
|
1034
1032
|
for (var t = 0; t < e.rows.length; t++)
|
|
1035
1033
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
1036
1034
|
var n = i.cells[a];
|
|
1037
1035
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1038
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1036
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.Ra = function (e) { function t(t) { var o = a[t], r = e ? i.insertCell(-1) : i.cells[t]; r.data = o, r.style.overflow = "hidden", r.style.padding = "0px", r.style.border = "0px none", r.style.height = n.headerHeight + "px", r.onclick = n.Sa; var s, l = e ? document.createElement("div") : r.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = n.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = n.J("_colheader_inner"), s.unselectable = "on", l.appendChild(s), r.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = n.Ta(o, n), "function" == typeof n.onBeforeHeaderRender && (DayPilot.Util.copyProps(o, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), n.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, o, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), o.toolTip && (s.title = o.toolTip), o.cssClass && DayPilot.Util.addClass(l, o.cssClass), o.backColor && (s.style.background = o.backColor), o.areas && DayPilot.Areas.attach(l, o); var c = o.verticalAlignment; if (c)
|
|
1039
1037
|
switch (s.style.display = "flex", c) {
|
|
1040
1038
|
case "center":
|
|
1041
1039
|
s.style.alignItems = "center";
|
|
@@ -1044,23 +1042,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1044
1042
|
s.style.alignItems = "flex-start";
|
|
1045
1043
|
break;
|
|
1046
1044
|
case "bottom": s.style.alignItems = "flex-end";
|
|
1047
|
-
} l.firstChild.innerHTML = n.
|
|
1048
|
-
t(r); }, this.
|
|
1049
|
-
var t = this.data, i = n.
|
|
1045
|
+
} l.firstChild.innerHTML = n.Ja(o.name, o.html); } for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.ua, o = a.length, r = 0; r < o; r++)
|
|
1046
|
+
t(r); }, this.Sa = function (e) { if ("Disabled" !== n.headerClickHandling) {
|
|
1047
|
+
var t = this.data, i = n.Ta(t), a = {};
|
|
1050
1048
|
a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
|
|
1051
|
-
} }, this.
|
|
1052
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.
|
|
1049
|
+
} }, this.Ta = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ua = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.fa = function () { var e = this.nav.header, t = !0, i = this.ua; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1050
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.Ra(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Va = function () {
|
|
1053
1051
|
var e = this.nav.scroll;
|
|
1054
|
-
e.onscroll || (e.onscroll = function () { n.
|
|
1055
|
-
var t = "undefined" != typeof this.
|
|
1052
|
+
e.onscroll || (e.onscroll = function () { n.Wa(); });
|
|
1053
|
+
var t = "undefined" != typeof this.Xa.scrollpos ? this.Xa.scrollpos : this.initScrollPos;
|
|
1056
1054
|
t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t));
|
|
1057
|
-
}, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.
|
|
1055
|
+
}, 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) { var t = null; if (e instanceof DayPilot.Event)
|
|
1058
1056
|
t = e.data;
|
|
1059
1057
|
else {
|
|
1060
1058
|
if ("object" != typeof e)
|
|
1061
1059
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1062
1060
|
t = e;
|
|
1063
|
-
} n.events.list || (n.events.list = []), n.events.list.push(t), n
|
|
1061
|
+
} n.events.list || (n.events.list = []), n.events.list.push(t), n.$a({ "eventsOnly": !0 }), n.ra.notify(); }, this.events.find = function (e) { if (!n.events.list)
|
|
1064
1062
|
return null; if ("function" == typeof e) {
|
|
1065
1063
|
for (var t = e, i = 0; i < n.events.list.length; i++) {
|
|
1066
1064
|
var a = new DayPilot.Event(n.events.list[i], n);
|
|
@@ -1080,7 +1078,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1080
1078
|
var i = DayPilot.indexOf(n.events.list, t.data);
|
|
1081
1079
|
n.events.list.splice(i, 1, e);
|
|
1082
1080
|
}
|
|
1083
|
-
} n
|
|
1081
|
+
} n.$a({ "eventsOnly": !0 }), n.ra.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1084
1082
|
t = e.data;
|
|
1085
1083
|
else if ("object" == typeof e) {
|
|
1086
1084
|
var i = n.events.find(e.id);
|
|
@@ -1089,7 +1087,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1089
1087
|
else if ("string" == typeof e || "number" == typeof e) {
|
|
1090
1088
|
var i = n.events.find(e);
|
|
1091
1089
|
i && (t = i.data);
|
|
1092
|
-
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n
|
|
1090
|
+
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.$a({ "eventsOnly": !0 }), n.ra.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1093
1091
|
i = JSON.parse(o.responseText);
|
|
1094
1092
|
}
|
|
1095
1093
|
catch (e) {
|
|
@@ -1099,25 +1097,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1099
1097
|
var s = {};
|
|
1100
1098
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1101
1099
|
return;
|
|
1102
|
-
n.events.list = i, n.
|
|
1100
|
+
n.events.list = i, n.Aa && n.$a({ "eventsOnly": !0 });
|
|
1103
1101
|
} }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
1104
1102
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
|
|
1105
1103
|
else {
|
|
1106
1104
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1107
1105
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1108
|
-
} }, this
|
|
1106
|
+
} }, this._a = function () { if (n.nav.top.className !== n.J("_main")) {
|
|
1109
1107
|
n.nav.top.className = n.J("_main");
|
|
1110
1108
|
var e = n.nav.corner;
|
|
1111
1109
|
e.className = n.J("_corner"), e.firstChild.className = n.J("_corner_inner");
|
|
1112
1110
|
var t = n.nav.cornerRight;
|
|
1113
1111
|
t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
|
|
1114
1112
|
} }, this.update = function (e) { if (n.N)
|
|
1115
|
-
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); n.
|
|
1113
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); n.ab(e), n.$a(); }, this.$a = function (e) { if (this.Aa) {
|
|
1116
1114
|
var e = e || {}, t = !e.eventsOnly;
|
|
1117
|
-
n.
|
|
1118
|
-
} }, this.
|
|
1115
|
+
n.bb(), n.V(), n.nav.top.style.cursor = "auto", t && (n.ca(), n.fa(), n.ga(), n.ha(), n.ia(), n.Oa(), n.Ya(), n._a(), n.cb()), n.da(), n.ea(), n.ja(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1116
|
+
} }, this.db = null, this.ab = function (e) { if (e) {
|
|
1119
1117
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
|
|
1120
|
-
this.
|
|
1118
|
+
this.db = t;
|
|
1121
1119
|
for (var i in e)
|
|
1122
1120
|
if (t[i]) {
|
|
1123
1121
|
var a = t[i];
|
|
@@ -1125,21 +1123,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1125
1123
|
}
|
|
1126
1124
|
else
|
|
1127
1125
|
n[i] = e[i];
|
|
1128
|
-
} }, this.
|
|
1126
|
+
} }, this.eb = function () { var e = this.db; for (var t in e) {
|
|
1129
1127
|
var i = e[t];
|
|
1130
1128
|
i.postInit && i.postInit();
|
|
1131
|
-
} }, this.
|
|
1129
|
+
} }, this.fb = function () { if (this.id && this.id.tagName)
|
|
1132
1130
|
this.nav.top = this.id;
|
|
1133
1131
|
else {
|
|
1134
1132
|
if ("string" != typeof this.id)
|
|
1135
1133
|
throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
|
|
1136
1134
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1137
1135
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1138
|
-
} }, this.
|
|
1136
|
+
} }, this.gb = {}, this.gb.events = [], this.hb = function (e) { var t = this.gb.events, i = this.events.list[e], a = {}; for (var o in i)
|
|
1139
1137
|
a[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1140
1138
|
var r = {};
|
|
1141
1139
|
r.control = n, r.data = a, this.onBeforeEventRender(r);
|
|
1142
|
-
} t[e] = a; }, this.
|
|
1140
|
+
} t[e] = a; }, this.da = function () { var e = this.events.list; if (n.gb.events = [], e) {
|
|
1143
1141
|
if (!DayPilot.isArray(e))
|
|
1144
1142
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1145
1143
|
var t = e.length, i = 864e5;
|
|
@@ -1160,11 +1158,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1160
1158
|
}
|
|
1161
1159
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1162
1160
|
for (var o = 0; o < t; o++)
|
|
1163
|
-
this.
|
|
1164
|
-
for (var o = 0; o < this.
|
|
1161
|
+
this.hb(o);
|
|
1162
|
+
for (var o = 0; o < this.ua.length; o++) {
|
|
1165
1163
|
var l = {};
|
|
1166
1164
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1167
|
-
var d = this.
|
|
1165
|
+
var d = this.ua[o];
|
|
1168
1166
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1169
1167
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1170
1168
|
if (!a[m]) {
|
|
@@ -1177,91 +1175,91 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1177
1175
|
var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
|
|
1178
1176
|
if (C === P && (x.cut || w.cut))
|
|
1179
1177
|
continue;
|
|
1180
|
-
var
|
|
1181
|
-
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(
|
|
1178
|
+
var k = w.boxBottom;
|
|
1179
|
+
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);
|
|
1182
1180
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1183
|
-
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.
|
|
1181
|
+
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);
|
|
1184
1182
|
}
|
|
1185
1183
|
}
|
|
1186
1184
|
}
|
|
1187
1185
|
}
|
|
1188
|
-
for (var o = 0; o < this.
|
|
1189
|
-
var d = this.
|
|
1190
|
-
d.events.sort(this.
|
|
1186
|
+
for (var o = 0; o < this.ua.length; o++) {
|
|
1187
|
+
var d = this.ua[o];
|
|
1188
|
+
d.events.sort(this.ib);
|
|
1191
1189
|
for (var m = 0; m < d.events.length; m++) {
|
|
1192
1190
|
var r = d.events[m];
|
|
1193
1191
|
d.putIntoBlock(r);
|
|
1194
1192
|
}
|
|
1195
1193
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1196
|
-
var
|
|
1197
|
-
|
|
1198
|
-
for (var S = 0; S <
|
|
1199
|
-
var r =
|
|
1200
|
-
|
|
1194
|
+
var _ = d.blocks[m];
|
|
1195
|
+
_.events.sort(this.ib);
|
|
1196
|
+
for (var S = 0; S < _.events.length; S++) {
|
|
1197
|
+
var r = _.events[S];
|
|
1198
|
+
_.putIntoLine(r);
|
|
1201
1199
|
}
|
|
1202
1200
|
}
|
|
1203
1201
|
}
|
|
1204
|
-
} }, this.
|
|
1202
|
+
} }, this.ib = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1205
1203
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = this.cache.pixels[a + "_" + i]; if (n)
|
|
1206
|
-
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.
|
|
1204
|
+
return n; i = t.getTime(); var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o; 0 === s && (d = l); var c = {}; return c.cut = !1, c.top = this.jb(r), c.boxTop = this.jb(l), c.boxBottom = this.jb(d), this.cache.pixels[a + "_" + i] = c, c; }, this.jb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.bb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ea = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ia = function () { var e = this.Ga(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { n.ra.scope && n.ra.scope["$apply"](); }, this.ra.apply = function (e) { e(); }, this.Wa = function () { if (n.nav.scroll) {
|
|
1207
1205
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1208
|
-
n.
|
|
1209
|
-
} }, this.
|
|
1206
|
+
n.Xa.scrollHour = t;
|
|
1207
|
+
} }, this.cb = function () { var e = 0; "number" == typeof n.Xa.scrollHour ? e = 2 * n.cellHeight * n.Xa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.kb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = "", this.Ya(); }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.lb = function () { this.bb(), this.ca(), this.Fa(), this.fa(), this.ga(), this.Ya(), this.Va(), this.Za(), t.register(this), this.mb(), this.R("Init"); }, this.Xa = {}, this.nb = function () { this.Xa.themes = [], this.Xa.themes.push(this.theme || this.cssClassPrefix); }, this.ob = function () { for (var e = this.Xa.themes, t = 0; t < e.length; t++) {
|
|
1210
1208
|
var i = e[t];
|
|
1211
1209
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1212
|
-
} this.
|
|
1210
|
+
} this.Xa.themes = []; }, this.pb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1213
1211
|
var e = {};
|
|
1214
1212
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1215
|
-
} }, this.
|
|
1216
|
-
this.
|
|
1213
|
+
} }, this.qb = function () { if ("function" == typeof this.onInit && !this.rb) {
|
|
1214
|
+
this.rb = !0;
|
|
1217
1215
|
var e = {};
|
|
1218
1216
|
this.onInit(e);
|
|
1219
|
-
} }, this.
|
|
1217
|
+
} }, this.sb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.mb = function () { var e = n.sb; e() || (n.U = setInterval(function () { e() && (n.Va(), n.Ya(), clearInterval(n.U)); }, 100)); }, this.Ja = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.ab, this.internal.xssTextHtml = n.Ja, this.init = function () { this.fb(); var e = this.kb(); return this.nb(), e ? void this.lb() : (this.bb(), this.ca(), this.da(), this.Fa(), this.fa(), this.ga(), this.s(), this.Ya(), this.Va(), this.Za(), t.register(this), this.events && (this.ea(), this.ja()), this.pb(), this.qb(), this.mb(), this.Aa = !0, this); }, this.Init = this.init, this.ab(i);
|
|
1220
1218
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
1221
1219
|
var i = new DayPilot.Calendar(this.id);
|
|
1222
1220
|
this.daypilot = i;
|
|
1223
1221
|
for (name in e)
|
|
1224
1222
|
i[name] = e[name];
|
|
1225
1223
|
i.init(), t || (t = i);
|
|
1226
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.
|
|
1224
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.ra.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
1227
1225
|
(0, e(r).assign)(t, n);
|
|
1228
1226
|
} for (var s in a)
|
|
1229
1227
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
1230
|
-
n[t] = e[t]; n.update(), n.
|
|
1228
|
+
n[t] = e[t]; n.update(), n.qb(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
|
|
1231
1229
|
}
|
|
1232
1230
|
}(), "undefined" == typeof DayPilot)
|
|
1233
1231
|
var DayPilot = {};
|
|
1234
|
-
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.
|
|
1232
|
+
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.3.539-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
|
|
1235
1233
|
for (var t in e)
|
|
1236
|
-
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.
|
|
1234
|
+
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.tb(); this.resetTarget && !e ? this.ub(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.tb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.sb && (this.sb = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.ub(this.date); }, this.tb = function () { var e = this.B(); if (!e)
|
|
1237
1235
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
1238
1236
|
return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
|
|
1239
1237
|
if (a)
|
|
1240
1238
|
return a;
|
|
1241
1239
|
a = DayPilot.Date.parse(t, i.patterns[n]);
|
|
1242
|
-
} return a; }, this.
|
|
1240
|
+
} return a; }, this.ub = function (e) { var t = this.B(); if (t) {
|
|
1243
1241
|
var a = e.toString(i.pattern, i.locale);
|
|
1244
1242
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1245
|
-
} }, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.
|
|
1243
|
+
} }, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.sb; } }), this.show = function () { if (!this.sb) {
|
|
1246
1244
|
var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1247
|
-
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.
|
|
1245
|
+
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.vb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.ub(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1248
1246
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
1249
1247
|
s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
|
|
1250
1248
|
var l = document.createElement("div");
|
|
1251
1249
|
l.id = t, s.appendChild(l), s.addEventListener("mousedown", function (e) { var e = e || window.event; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }), document.body.appendChild(s), this.div = s;
|
|
1252
|
-
var d = i.
|
|
1253
|
-
if (a.startDate = d, a.
|
|
1250
|
+
var d = i.tb() || (new DayPilot.Date).getDatePart();
|
|
1251
|
+
if (a.startDate = d, a.vb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
|
|
1254
1252
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1255
1253
|
s.style.left = c + "px";
|
|
1256
1254
|
}
|
|
1257
|
-
this.
|
|
1255
|
+
this.sb = !0, this.onShow && this.onShow();
|
|
1258
1256
|
} }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
|
|
1259
1257
|
var DayPilot = {};
|
|
1260
1258
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1261
1259
|
"use strict";
|
|
1262
1260
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1263
1261
|
var e = function () { }, t = {};
|
|
1264
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.
|
|
1262
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.3.539-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) { o = o || {}; var r = null; 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) {
|
|
1265
1263
|
a.cssOnly || (a.cssOnly = !0);
|
|
1266
1264
|
var s = null;
|
|
1267
1265
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1270,15 +1268,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1270
1268
|
return;
|
|
1271
1269
|
}
|
|
1272
1270
|
var d = document.createElement("div");
|
|
1273
|
-
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.
|
|
1271
|
+
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.xb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1274
1272
|
throw "No menu items defined.";
|
|
1275
1273
|
if (this.showMenuTitle) {
|
|
1276
1274
|
var c = document.createElement("div");
|
|
1277
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1275
|
+
c.innerHTML = this.menuTitle, c.className = this.xb("title"), d.appendChild(c);
|
|
1278
1276
|
}
|
|
1279
1277
|
for (var u = 0; u < this.items.length; u++) {
|
|
1280
1278
|
var h = this.items[u], f = document.createElement("div");
|
|
1281
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1279
|
+
if (DayPilot.Util.addClass(f, this.xb("item")), h.items && (DayPilot.Util.addClass(f, this.xb("item_haschildren")), DayPilot.Util.addClass(d, this.xb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1282
1280
|
if ("-" === h.text) {
|
|
1283
1281
|
var m = document.createElement("div");
|
|
1284
1282
|
m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
|
|
@@ -1286,7 +1284,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1286
1284
|
else {
|
|
1287
1285
|
var p = document.createElement("a");
|
|
1288
1286
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1289
|
-
DayPilot.Util.addClass(p, a.
|
|
1287
|
+
DayPilot.Util.addClass(p, a.xb("item_disabled"));
|
|
1290
1288
|
else {
|
|
1291
1289
|
if (h.onclick || h.onClick) {
|
|
1292
1290
|
p.item = h, p.onclick = function (e, t) { return function (i) { if ("function" == typeof e.onClick) {
|
|
@@ -1302,7 +1300,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1302
1300
|
DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(p, "touchend", v(h, p));
|
|
1303
1301
|
}
|
|
1304
1302
|
if (h.items && !h.disabled) {
|
|
1305
|
-
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.
|
|
1303
|
+
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.yb(e, t); }; };
|
|
1306
1304
|
p.ontouchend = y(h, p);
|
|
1307
1305
|
}
|
|
1308
1306
|
if (h.onclick)
|
|
@@ -1325,13 +1323,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1325
1323
|
}
|
|
1326
1324
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
|
|
1327
1325
|
var g = document.createElement("span");
|
|
1328
|
-
if (g.className = a.
|
|
1326
|
+
if (g.className = a.xb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
|
|
1329
1327
|
var b = document.createElement("img");
|
|
1330
1328
|
b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
|
|
1331
1329
|
}
|
|
1332
1330
|
if (h.icon) {
|
|
1333
1331
|
var D = document.createElement("span");
|
|
1334
|
-
D.className = a.
|
|
1332
|
+
D.className = a.xb("item_icon");
|
|
1335
1333
|
var x = document.createElement("i");
|
|
1336
1334
|
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
1337
1335
|
}
|
|
@@ -1340,21 +1338,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1340
1338
|
C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
|
|
1341
1339
|
var P = document.createElementNS(w, "use");
|
|
1342
1340
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
1343
|
-
var
|
|
1344
|
-
|
|
1341
|
+
var k = document.createElement("span");
|
|
1342
|
+
k.className = a.xb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
|
|
1345
1343
|
}
|
|
1346
|
-
var
|
|
1344
|
+
var _ = function (e, i) { return function () { var n = (i.source, e), o = t.waitingSubmenu; if (o) {
|
|
1347
1345
|
if (o.parent === n)
|
|
1348
1346
|
return;
|
|
1349
1347
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
1350
|
-
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.
|
|
1351
|
-
p.onmouseover =
|
|
1348
|
+
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.yb(n, i); }, 300)); }; };
|
|
1349
|
+
p.onmouseover = _(h, p), f.appendChild(p);
|
|
1352
1350
|
}
|
|
1353
1351
|
d.appendChild(f);
|
|
1354
1352
|
}
|
|
1355
1353
|
}
|
|
1356
1354
|
var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1357
|
-
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.
|
|
1355
|
+
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.wb.visible = !0, a.wb.source = i, d.style.display = "";
|
|
1358
1356
|
var M = d.offsetHeight, T = d.offsetWidth;
|
|
1359
1357
|
d.style.display = "none";
|
|
1360
1358
|
var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
@@ -1375,32 +1373,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1375
1373
|
}
|
|
1376
1374
|
else
|
|
1377
1375
|
d.style.left = e + "px"; }(), o.parentLink) {
|
|
1378
|
-
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")),
|
|
1379
|
-
O + T > H && (O = Math.max(0,
|
|
1376
|
+
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), O = R.x + N.offsetWidth, z = R.y - I;
|
|
1377
|
+
O + T > H && (O = Math.max(0, R.x - T));
|
|
1380
1378
|
var U = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1381
|
-
|
|
1379
|
+
z + M - U > A && (z = Math.max(0, A - M + U)), d.style.left = O + "px", d.style.top = z + "px";
|
|
1382
1380
|
}
|
|
1383
|
-
d.style.display = "", this.addShadow(d), this.
|
|
1384
|
-
} }, this.
|
|
1381
|
+
d.style.display = "", this.addShadow(d), this.wb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
1382
|
+
} }, this.yb = function (e, t) { var i = e, n = t.source; if ((!a.wb.submenu || a.wb.submenu.item !== e) && (a.wb.submenu && a.wb.submenu.item !== e && (DayPilot.Util.removeClass(a.wb.submenu.link.parentNode, a.xb("item_haschildren_active")), a.wb.submenu.menu.hide(), a.wb.submenu = null), e.items)) {
|
|
1385
1383
|
var o = a.cloneOptions();
|
|
1386
|
-
o.items = e.items, a.
|
|
1387
|
-
} }, this.
|
|
1384
|
+
o.items = e.items, a.wb.submenu = {}, a.wb.submenu.menu = new DayPilot.Menu(o), a.wb.submenu.menu.zb = a, a.wb.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.wb.submenu.item = e, a.wb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.xb("item_haschildren_active"));
|
|
1385
|
+
} }, this.xb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.wb.submenu && this.wb.submenu.menu.hide(); var i = t.waitingSubmenu; if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.wb.div && this.wb.div.parentNode === document.body && document.body.removeChild(this.wb.div), n && (DayPilot.de(n), n = null), a.wb.visible = !1, a.wb.source = null, a.zb && e.hideParent && a.zb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
1388
1386
|
var o = {};
|
|
1389
1387
|
this.onHide(o);
|
|
1390
1388
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
|
|
1391
1389
|
for (var r in o)
|
|
1392
|
-
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
1393
|
-
this[a] = t[a]; this.
|
|
1394
|
-
i.
|
|
1390
|
+
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Aa = !1; for (var a in t)
|
|
1391
|
+
this[a] = t[a]; this.Ab = function (e) { return this.theme + "_" + e; }, this.s = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Ab("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Ab("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (i.active && i.active.item === e)
|
|
1392
|
+
i.Bb();
|
|
1395
1393
|
else if (e.children)
|
|
1396
|
-
return void i.
|
|
1394
|
+
return void i.Cb(a); if ("function" == typeof e.onClick) {
|
|
1397
1395
|
var n = {};
|
|
1398
1396
|
n.item = e, n.originalEvent = t, e.onClick(n);
|
|
1399
|
-
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.
|
|
1400
|
-
i.
|
|
1397
|
+
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Cb(a); }, t.appendChild(a), i.elements.items.push(a); }); }, this.Bb = function () { var e = i.Ab("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Db = function (e) { return !!i.active && i.active.item === e.data; }, this.Cb = function (e) { if (!i.Db(e)) {
|
|
1398
|
+
i.Bb();
|
|
1401
1399
|
var t = e.data, a = i.active = {};
|
|
1402
1400
|
a.item = t, a.div = e;
|
|
1403
|
-
var n = i.
|
|
1401
|
+
var n = i.Ab("item_active");
|
|
1404
1402
|
DayPilot.Util.addClass(e, n);
|
|
1405
1403
|
var o = DayPilot.abs(e);
|
|
1406
1404
|
if (t.children) {
|
|
@@ -1409,11 +1407,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1409
1407
|
"right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
|
|
1410
1408
|
}
|
|
1411
1409
|
DayPilot.MenuBar.active = i;
|
|
1412
|
-
} }, this.init = function () { return this.s(), this.
|
|
1410
|
+
} }, this.init = function () { return this.s(), this.Aa = !0, this; }, this.dispose = function () { this.Aa && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Bb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) { if (!e || !e.touches)
|
|
1413
1411
|
return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
|
|
1414
1412
|
var i = DayPilot.Menu.active;
|
|
1415
1413
|
if (i) {
|
|
1416
|
-
var a = i.
|
|
1414
|
+
var a = i.wb.source;
|
|
1417
1415
|
a && a.calendar === e.calendar && t.menuClean();
|
|
1418
1416
|
}
|
|
1419
1417
|
}
|
|
@@ -1458,23 +1456,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1458
1456
|
t.sheet.addRule(e, a, n);
|
|
1459
1457
|
} }, e; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
|
|
1460
1458
|
n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"),
|
|
1461
|
-
"undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.
|
|
1462
|
-
throw "This modal dialog is already displayed."; if (this.div || this.
|
|
1459
|
+
"undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Eb = !1, this.Fb = null, this.Gb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1460
|
+
throw "This modal dialog is already displayed."; if (this.div || this.Hb(), this.$a(), this.useIframe) {
|
|
1463
1461
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
1464
1462
|
window.setTimeout(t(this, e), 0);
|
|
1465
1463
|
}
|
|
1466
1464
|
else
|
|
1467
|
-
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this
|
|
1465
|
+
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.$a(), this.Ib(), this.Jb(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1468
1466
|
throw "This modal dialog is already displayed."; if (this.useIframe) {
|
|
1469
|
-
this.div || this.
|
|
1467
|
+
this.div || this.Hb();
|
|
1470
1468
|
var i = this.loadingHtml;
|
|
1471
|
-
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.
|
|
1469
|
+
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.Kb), this.iframe.src = e, this.$a(), this.Ib(), this.Jb();
|
|
1472
1470
|
}
|
|
1473
1471
|
else
|
|
1474
|
-
t.
|
|
1472
|
+
t.Lb({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.Jb = function () { if ("function" == typeof t.onShow) {
|
|
1475
1473
|
var e = {};
|
|
1476
|
-
e.root = t.
|
|
1477
|
-
} }, this.
|
|
1474
|
+
e.root = t.Mb(), e.modal = t, t.onShow(e);
|
|
1475
|
+
} }, this.Mb = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.Lb = function (e) { var t = new XMLHttpRequest; if (t) {
|
|
1478
1476
|
var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
|
|
1479
1477
|
t.open(i, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
1480
1478
|
if (200 === t.status || 304 === t.status) {
|
|
@@ -1487,45 +1485,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1487
1485
|
}
|
|
1488
1486
|
else
|
|
1489
1487
|
window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
1490
|
-
} }, this
|
|
1491
|
-
for (var a = i() - 40, n = this.width; n < a && this.
|
|
1488
|
+
} }, this.$a = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.Ob(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.Kb = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.Nb().y; }, i = function () { return t.Nb().x; }; if (this.useIframe) {
|
|
1489
|
+
for (var a = i() - 40, n = this.width; n < a && this.Pb(); n += 10)
|
|
1492
1490
|
this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
|
|
1493
|
-
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.
|
|
1491
|
+
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.Qb(); r += 10)
|
|
1494
1492
|
this.iframe.style.height = r + "px", this.div.style.height = r + "px";
|
|
1495
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
1493
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.Kb);
|
|
1496
1494
|
}
|
|
1497
1495
|
else
|
|
1498
|
-
this.div.style.height = ""; }, this.
|
|
1496
|
+
this.div.style.height = ""; }, this.Pb = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
|
|
1499
1497
|
var o = a[n].offsetLeft + a[n].offsetWidth;
|
|
1500
1498
|
i = Math.max(i, o);
|
|
1501
|
-
} return i > t.clientWidth; }, this.
|
|
1499
|
+
} return i > t.clientWidth; }, this.Qb = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
|
|
1502
1500
|
var o = a[n].offsetTop + a[n].offsetHeight;
|
|
1503
1501
|
i = Math.max(i, o);
|
|
1504
|
-
} return i > t.clientHeight; }, this.
|
|
1502
|
+
} return i > t.clientHeight; }, this.Nb = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1505
1503
|
var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
|
|
1506
1504
|
return { x: t, y: i };
|
|
1507
|
-
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.
|
|
1508
|
-
var e = e || window.event, i = t.mc(e), a = i.x - t.
|
|
1509
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.
|
|
1510
|
-
} }, this.
|
|
1505
|
+
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.Ib = function () { this.Eb || (this.re(window, "resize", this.Rb), this.re(window, "scroll", this.Sb), this.dragDrop && (this.re(document, "mousemove", this.Tb), this.re(document, "mouseup", this.Ub)), this.Eb = !0); }, this.Vb = function () { this.ue(window, "resize", this.Rb), this.ue(window, "scroll", this.Sb), this.dragDrop && (this.ue(document, "mousemove", this.Tb), this.ue(document, "mouseup", this.Ub)), this.Eb = !1; }, this.Wb = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.Xb(), t.Gb = t.mc(e || window.event), t.Fb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.Tb = function (e) { if (t.Gb) {
|
|
1506
|
+
var e = e || window.event, i = t.mc(e), a = i.x - t.Gb.x, n = i.y - t.Gb.y;
|
|
1507
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.Fb.y + n + "px", t.div.style.left = t.Fb.x + a + "px";
|
|
1508
|
+
} }, this.Ub = function (e) { t.Gb && (t.Yb(), t.div.style.cursor = null, t.Gb = null); }, this.Xb = function () { if (this.useIframe) {
|
|
1511
1509
|
var e = document.createElement("div");
|
|
1512
1510
|
e.style.backgroundColor = "#ffffff", e.style.filter = "alpha(opacity=80)", e.style.opacity = "0.80", e.style.width = "100%", e.style.height = this.height + "px", e.style.position = "absolute", e.style.left = "0px", e.style.top = "0px", this.div.appendChild(e), this.mask = e;
|
|
1513
|
-
} }, this.
|
|
1511
|
+
} }, this.Yb = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.Rb = function () { t.Zb(), t.Ob(); }, this.Sb = function () { t.Zb(); }, this.Ob = function () { if (!t.left && t.div) {
|
|
1514
1512
|
var e = t.div.offsetWidth;
|
|
1515
1513
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
1516
|
-
} }, this.
|
|
1517
|
-
var e = t.
|
|
1514
|
+
} }, this.Zb = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1515
|
+
var e = t.$b.scrollY();
|
|
1518
1516
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1519
|
-
} }, this
|
|
1520
|
-
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.
|
|
1517
|
+
} }, this.$b = {}, this.$b.container = function () { return t.container || document.body; }, this.$b.scrollY = function () { var e = t.$b.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1518
|
+
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.Hb = function () { var e = t.$b.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.Wb), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t._b || (t.stretch(), t._b = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.Mb(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
|
|
1521
1519
|
var o = i[n], r = o.name;
|
|
1522
1520
|
if (r) {
|
|
1523
1521
|
var s = o.value;
|
|
1524
1522
|
a[r] = s;
|
|
1525
1523
|
}
|
|
1526
|
-
} t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.
|
|
1524
|
+
} t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.Vb(), t.bc(t.div), t.bc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.bc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.cc = function () { if (e)
|
|
1527
1525
|
for (var t in e)
|
|
1528
|
-
this[t] = e[t]; }, this.
|
|
1526
|
+
this[t] = e[t]; }, this.cc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
|
|
1529
1527
|
case 13:
|
|
1530
1528
|
s.close(this.value);
|
|
1531
1529
|
break;
|
|
@@ -1579,24 +1577,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1579
1577
|
o.autoFocus && x ? x.focus() : o.div.focus();
|
|
1580
1578
|
} }); }, DayPilot.Modal.close = function (e) { var t = DayPilot.Modal.opener(); t && t.close(e); }, DayPilot.Modal.stretch = function (e) { var t = DayPilot.Modal.opener(); if (!t)
|
|
1581
1579
|
throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
|
|
1582
|
-
var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.
|
|
1580
|
+
var r = function (e) { this.form = [], this.data = {}, this.theme = "form_default", this.zIndex = 99999, this.locale = "en-us", this.plugins = {}, this.onKey = null, this.dc = [], this.ec = null, this.canceling = !1, this.fc = [], this.f = [], this.gc = null, e = e || {}; for (var t in e)
|
|
1583
1581
|
this[t] = e[t]; };
|
|
1584
|
-
r.prototype.create = function () { return this.load(), this.render(), this.
|
|
1582
|
+
r.prototype.create = function () { return this.load(), this.render(), this.gc; }, r.prototype.render = function () { var e = this; this.gc = document.createElement("div"), this.dc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, i = this, a = document.createElement("div"); if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
|
|
1585
1583
|
var n = document.createElement("div");
|
|
1586
1584
|
n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
|
|
1587
|
-
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.
|
|
1585
|
+
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, i.hc(o, { "debounce": !e.immediate }), "function" == typeof i.onChange) {
|
|
1588
1586
|
var t = {};
|
|
1589
1587
|
t.result = i.serialize(), i.onChange(t);
|
|
1590
|
-
} }, o.onBlur = function () { i.canceling || i.
|
|
1588
|
+
} }, o.onBlur = function () { i.canceling || i.hc(o); }, o.apply(e), o.gc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.gc.appendChild(a); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.hc(i); t = t && a; }), t; }, r.prototype.hc = function (e, t) { function i() { e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.ic = t, e.gc.appendChild(t); } t = t || {}; var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l; if (d) {
|
|
1591
1589
|
var c = {};
|
|
1592
1590
|
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
1593
1591
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
1594
1592
|
if (c.valid)
|
|
1595
|
-
clearTimeout(this.
|
|
1593
|
+
clearTimeout(this.fc[o.field]), e.ic && (e.ic.remove(), e.ic = null), e.gc.classList.remove(u);
|
|
1596
1594
|
else if (!n)
|
|
1597
1595
|
if (a) {
|
|
1598
1596
|
var f = 1e3;
|
|
1599
|
-
clearTimeout(this.
|
|
1597
|
+
clearTimeout(this.fc[o.field]), this.fc[o.field] = setTimeout(function () { i(); }, f);
|
|
1600
1598
|
}
|
|
1601
1599
|
else
|
|
1602
1600
|
i();
|
|
@@ -1608,32 +1606,32 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1608
1606
|
catch (e) {
|
|
1609
1607
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
1610
1608
|
} for (var n in i)
|
|
1611
|
-
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.
|
|
1609
|
+
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.dc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.ec ? this.ec : this.dc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
|
|
1612
1610
|
if (e.name) {
|
|
1613
1611
|
var o = new s;
|
|
1614
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.
|
|
1612
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.dc.push(o), n.push(o);
|
|
1615
1613
|
}
|
|
1616
|
-
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.
|
|
1614
|
+
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.dc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
|
|
1617
1615
|
}
|
|
1618
1616
|
else if ("title" === a) {
|
|
1619
1617
|
var o = new s;
|
|
1620
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.
|
|
1618
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.dc.push(o), n.push(o);
|
|
1621
1619
|
}
|
|
1622
1620
|
else if ("image" === a) {
|
|
1623
1621
|
var o = new s;
|
|
1624
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1622
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
|
|
1625
1623
|
}
|
|
1626
1624
|
else if ("html" === a) {
|
|
1627
1625
|
var o = new s;
|
|
1628
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1626
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
|
|
1629
1627
|
}
|
|
1630
1628
|
else if ("scrollable" === a) {
|
|
1631
1629
|
var o = new s;
|
|
1632
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1630
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.dc.push(o), n.push(o);
|
|
1633
1631
|
}
|
|
1634
1632
|
else {
|
|
1635
1633
|
var o = new s;
|
|
1636
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.
|
|
1634
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.dc.push(o), n.push(o);
|
|
1637
1635
|
} return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
|
|
1638
1636
|
var t = { key: e };
|
|
1639
1637
|
this.onKey(t);
|
|
@@ -1665,13 +1663,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1665
1663
|
n.close(), i = !0;
|
|
1666
1664
|
break;
|
|
1667
1665
|
default: i = !0;
|
|
1668
|
-
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "time": function () { return t.
|
|
1669
|
-
return {}; var t = n.
|
|
1666
|
+
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "time": function () { return t.jc(e); }, "datetime": function () { return t.kc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.lc = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.lc && (t = a.lc); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "radio", n.name = e.field, n.lc = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
|
|
1667
|
+
return {}; var t = n.lc, i = {}; return i[e.field] = t, i; }, i; }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.lc = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } };
|
|
1670
1668
|
return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type]();
|
|
1671
|
-
}, r.prototype.
|
|
1669
|
+
}, r.prototype.jc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
|
|
1672
1670
|
var h = c.addMinutes(n * u), f = {};
|
|
1673
1671
|
f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), a.push(f);
|
|
1674
|
-
} var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create(); return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i; }, r.prototype.
|
|
1672
|
+
} var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create(); return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i; }, r.prototype.kc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
|
|
1675
1673
|
var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
|
|
1676
1674
|
r.locale = s, r.pattern = l.datePattern;
|
|
1677
1675
|
} o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
@@ -1688,11 +1686,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1688
1686
|
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
1689
1687
|
var u = l.addMinutes(n * c), h = {};
|
|
1690
1688
|
h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
|
|
1691
|
-
} var f = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i; }, r.prototype.findRowsByField = function (e) { return this.
|
|
1689
|
+
} var f = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i; }, r.prototype.findRowsByField = function (e) { return this.dc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var i = this.ec ? this.ec : this.dc, a = i.indexOf(e); return this.ec = i.map(function (i) { if (i !== e)
|
|
1692
1690
|
return i; if (e.propsEqual(t))
|
|
1693
1691
|
return e; var a = e.clone(); for (var n in t)
|
|
1694
|
-
a[n] = t[n]; return a; }), this.
|
|
1695
|
-
this.
|
|
1692
|
+
a[n] = t[n]; return a; }), this.ec[a]; }, r.prototype.updateInteractive = function (e) { var t = this.ec.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.ec) {
|
|
1693
|
+
this.ec.filter(function (t, i) { return e.dc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.dc = this.ec, this.ec = null;
|
|
1696
1694
|
} }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () { var e = {}; return this.f.forEach(function (t) { var i = t.save(); for (var a in i)
|
|
1697
1695
|
e[a] = i[a]; }), e; };
|
|
1698
1696
|
var s = function () { this.id = this.guid(), this.field = null, this.data = null, this.type = null, this.level = 0, this.enabled = !0, this.value = null, this.text = null, this.interactive = !0, this.isValue = !1, this.checked = !1, this.resolved = null; };
|
|
@@ -1700,45 +1698,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1700
1698
|
"id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
|
|
1701
1699
|
if (this[t] !== e[t])
|
|
1702
1700
|
return !1; return !0; }, s.prototype.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, s.prototype.applyValue = function (e, t) { this.field === e && (this.value = t, this.isValue && t === this.resolved && (this.checked = !0)); };
|
|
1703
|
-
var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) { this.data = [], this.name = null, this.theme = "searchable_default", this.
|
|
1701
|
+
var l = function () { this.element = null, this.canFocus = function () { return !1; }, this.apply = function (e) { }, this.focus = function () { }, this.save = function () { return {}; }; }, d = function (e) { this.data = [], this.name = null, this.theme = "searchable_default", this.nc = !1, this.listZIndex = 1e5, this.onSelect = null, this.oc = null, this.pc = null, this.qc = !1, this.rc = null, this.sc = null, this.o = [], this.tc = null, e = e || {}; var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.oc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.oc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.nc; }, set: function (e) { this.nc = e, this.rc && (this.rc.disabled = e, e && this.uc()); } }); for (var a in e)
|
|
1704
1702
|
i[a] || (this[a] = e[a]); for (var a in e)
|
|
1705
1703
|
i[a] && i[a].post(e[a]); };
|
|
1706
|
-
d.prototype.select = function (e) { return this.
|
|
1704
|
+
d.prototype.select = function (e) { return this.oc = this.data.find(function (t) { return t.id === e; }), this.vc(!1), this; }, d.prototype.create = function () { function e(e) { var i = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.pc = null, l.o = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
|
|
1707
1705
|
if (o.toLowerCase().indexOf(m.value.toLowerCase()) === -1)
|
|
1708
1706
|
return;
|
|
1709
1707
|
}
|
|
1710
1708
|
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
|
|
1711
|
-
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.
|
|
1709
|
+
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.oc && (l.pc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.pc !== r && (l.pc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.o.push(r); }), l.pc || (l.pc = n), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.pc && (l.pc.className += " " + l.theme + "_list_item_highlight", t && !i(l.pc, h) && l.pc.scrollIntoView()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.oc = t, l.vc(!0), o(), r(); } function n() { l.uc(); } function o() { l.p(); } function r() { l.qc = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.qc = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.qc ? (l.focus(), s()) : (n(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.tc = f; var m = document.createElement("input"); return m.type = "text", m.className = this.theme + "_input", m.disabled = this.nc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) { if (l.qc) {
|
|
1712
1710
|
if ("Enter" === e.key)
|
|
1713
1711
|
return;
|
|
1714
1712
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
1715
1713
|
return;
|
|
1716
1714
|
s();
|
|
1717
1715
|
} if ("ArrowDown" === e.key) {
|
|
1718
|
-
var i = d.o.indexOf(d.
|
|
1719
|
-
i + 1 < d.o.length && (d.
|
|
1716
|
+
var i = d.o.indexOf(d.pc);
|
|
1717
|
+
i + 1 < d.o.length && (d.pc = d.o[i + 1]), t();
|
|
1720
1718
|
}
|
|
1721
1719
|
else if ("ArrowUp" === e.key) {
|
|
1722
|
-
var i = d.o.indexOf(d.
|
|
1723
|
-
i - 1 >= 0 && (d.
|
|
1720
|
+
var i = d.o.indexOf(d.pc);
|
|
1721
|
+
i - 1 >= 0 && (d.pc = d.o[i - 1]), t();
|
|
1724
1722
|
}
|
|
1725
1723
|
else
|
|
1726
|
-
"Enter" === e.key ? l.
|
|
1724
|
+
"Enter" === e.key ? l.pc ? (e.stopPropagation(), a(l.pc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), this.rc = m, this.sc = h, this.oc || (this.oc = this.data[0], this.oc && (m.value = this.oc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.uc = function () { this.p(), this.oc ? this.rc.value = this.oc.name : (this.rc.value = "", this.vc(!0)); }, d.prototype.focus = function () { this.qc = !0, this.rc.setAttribute("readonly", "readonly"), this.rc.focus(), this.uc(); }, d.prototype.p = function () { this.sc.style.display = "none"; }, d.prototype.vc = function (e) { if (this.tc.value = this.selected ? this.selected.id : null, this.oc ? this.rc.value = this.oc.name : this.rc.value = "", "function" == typeof this.onSelect) {
|
|
1727
1725
|
var t = { control: this, ui: e };
|
|
1728
1726
|
this.onSelect(t);
|
|
1729
1727
|
} };
|
|
1730
|
-
var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.
|
|
1728
|
+
var c = function (e) { this.form = null, this.item = null, this.data = null, this.name = null, this.theme = "edit_table_default", this.onInput = null, this.nav = {}, this.wc = null, this.dc = [], e = e || {}; for (var t in e)
|
|
1731
1729
|
this[t] = e[t]; };
|
|
1732
|
-
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.
|
|
1730
|
+
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.xc(); a.appendChild(n); var o = e.yc({}); o.spacer = !0; var r = this.zc(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
|
|
1733
1731
|
var i = e.item.onNewRow, a = {};
|
|
1734
1732
|
if ("function" == typeof i) {
|
|
1735
1733
|
var n = {};
|
|
1736
1734
|
n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
|
|
1737
1735
|
}
|
|
1738
|
-
var o = e.
|
|
1739
|
-
e.
|
|
1740
|
-
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.
|
|
1741
|
-
throw new Error("Array expected"); this.data = e, this.
|
|
1736
|
+
var o = e.yc(a);
|
|
1737
|
+
e.dc.push(o), e.Ac(), e.Bc();
|
|
1738
|
+
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.xc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Cc = function () { var e = this.item.max || 0; return !!(e && this.dc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.dc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
1739
|
+
throw new Error("Array expected"); this.data = e, this.Dc(), this.Ac(); }, c.prototype.Ec = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Cc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Dc = function () { var e = this; this.dc = [], this.data.forEach(function (t) { var i = e.yc(t); e.dc.push(i); }); }, c.prototype.Fc = function (e) { var t = this, i = t.dc.indexOf(e); t.dc.splice(i, 1); }, c.prototype.yc = function (e) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Gc(a); if ("undefined" == typeof o)
|
|
1742
1740
|
if ("text" === r)
|
|
1743
1741
|
o = "";
|
|
1744
1742
|
else if ("number" === r)
|
|
@@ -1746,23 +1744,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1746
1744
|
else if ("select" === r) {
|
|
1747
1745
|
var s = a.options;
|
|
1748
1746
|
o = s && s[0].id;
|
|
1749
|
-
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.
|
|
1750
|
-
var t = e.
|
|
1747
|
+
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Gc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Ac = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.dc.forEach(function (t) { var i = e.zc(t); e.nav.body.appendChild(i); }), 0 === this.dc.length) {
|
|
1748
|
+
var t = e.Hc();
|
|
1751
1749
|
e.nav.after.appendChild(t);
|
|
1752
|
-
} this.
|
|
1750
|
+
} this.Ec(); }, c.prototype.Hc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.zc = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.Ic(a); if (e.spacer) {
|
|
1753
1751
|
var r = document.createElement("div");
|
|
1754
1752
|
r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
|
|
1755
1753
|
}
|
|
1756
1754
|
else
|
|
1757
|
-
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.
|
|
1755
|
+
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Fc(e), t.Ac(), t.Bc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i; }, c.prototype.Bc = function () { var e = this; if ("function" == typeof e.onInput) {
|
|
1758
1756
|
var t = {};
|
|
1759
1757
|
e.onInput(t);
|
|
1760
|
-
} }, c.prototype.
|
|
1758
|
+
} }, c.prototype.Ic = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
|
|
1761
1759
|
var a = document.createElement("input");
|
|
1762
|
-
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.
|
|
1760
|
+
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Bc(); }), a;
|
|
1763
1761
|
} if ("select" === i) {
|
|
1764
1762
|
var n = document.createElement("select");
|
|
1765
|
-
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.
|
|
1763
|
+
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.lc = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.lc && (e.value = a.lc), t.Bc(); }), n;
|
|
1766
1764
|
} throw new Error("Unsupported item type: " + i); }, c.prototype.focus = function () { };
|
|
1767
1765
|
}
|
|
1768
1766
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
@@ -1771,15 +1769,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1771
1769
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1772
1770
|
var e = {};
|
|
1773
1771
|
e.Month = function (t, i) {
|
|
1774
|
-
this.v = "2024.
|
|
1772
|
+
this.v = "2024.3.539-lite", this.nav = {};
|
|
1775
1773
|
var a = this;
|
|
1776
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts =
|
|
1774
|
+
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) { var t = null; if (e instanceof DayPilot.Event)
|
|
1777
1775
|
t = e.data;
|
|
1778
1776
|
else {
|
|
1779
1777
|
if ("object" != typeof e)
|
|
1780
1778
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
1781
1779
|
t = e;
|
|
1782
|
-
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
1780
|
+
} a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.ra.notify(); }, this.events.find = function (e) { if (!a.events.list)
|
|
1783
1781
|
return null; if ("function" == typeof e) {
|
|
1784
1782
|
for (var t = e, i = 0; i < a.events.list.length; i++) {
|
|
1785
1783
|
var n = new DayPilot.Event(a.events.list[i], a);
|
|
@@ -1799,7 +1797,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1799
1797
|
var i = DayPilot.indexOf(a.events.list, t.data);
|
|
1800
1798
|
a.events.list.splice(i, 1, e);
|
|
1801
1799
|
}
|
|
1802
|
-
} a.update(), a.
|
|
1800
|
+
} a.update(), a.ra.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1801
|
+
t = e.data;
|
|
1802
|
+
else if ("object" == typeof e) {
|
|
1803
|
+
var i = a.events.find(e.id);
|
|
1804
|
+
i && (t = i.data);
|
|
1805
|
+
}
|
|
1806
|
+
else if ("string" == typeof e || "number" == typeof e) {
|
|
1807
|
+
var i = a.events.find(e);
|
|
1808
|
+
i && (t = i.data);
|
|
1809
|
+
} var n = DayPilot.indexOf(a.events.list, t); a.events.list.splice(n, 1), a.update(), a.ra.notify(); }, this.events.load = function (e, t, i) { var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1803
1810
|
i = JSON.parse(o.responseText);
|
|
1804
1811
|
}
|
|
1805
1812
|
catch (e) {
|
|
@@ -1809,21 +1816,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1809
1816
|
var s = {};
|
|
1810
1817
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1811
1818
|
return;
|
|
1812
|
-
a.events.list = i, a.
|
|
1819
|
+
a.events.list = i, a.Aa && a.update();
|
|
1813
1820
|
} }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
1814
1821
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": n });
|
|
1815
1822
|
else {
|
|
1816
1823
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
1817
1824
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
1818
|
-
} }, this.update = function (e) { if (a.
|
|
1825
|
+
} }, this.update = function (e) { if (a.ab(e), this.Aa) {
|
|
1819
1826
|
if (a.N)
|
|
1820
1827
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
1821
1828
|
if (this.cells) {
|
|
1822
|
-
a.V(), a.
|
|
1829
|
+
a.V(), a.Jc(), a.da(), a.Kc(), a.Lc(), a.ia(), a.s(), a.ja(), this.visible ? this.show() : this.hide();
|
|
1823
1830
|
}
|
|
1824
|
-
} }, this.
|
|
1831
|
+
} }, this.db = null, this.ab = function (e) { if (e) {
|
|
1825
1832
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
1826
|
-
this.
|
|
1833
|
+
this.db = t;
|
|
1827
1834
|
for (var i in e)
|
|
1828
1835
|
if (t[i]) {
|
|
1829
1836
|
var n = t[i];
|
|
@@ -1831,19 +1838,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1831
1838
|
}
|
|
1832
1839
|
else
|
|
1833
1840
|
a[i] = e[i];
|
|
1834
|
-
} }, this.
|
|
1841
|
+
} }, this.eb = function () { var e = this.db; for (var t in e) {
|
|
1835
1842
|
var i = e[t];
|
|
1836
1843
|
i.postInit && i.postInit();
|
|
1837
|
-
} }, this.
|
|
1844
|
+
} }, this.gb = {}, this.gb.events = [], this.hb = function (e) { var t = this.gb.events, i = this.events.list[e], n = {}; for (var o in i)
|
|
1838
1845
|
n[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1839
1846
|
var r = {};
|
|
1840
1847
|
r.control = a, r.data = n, this.onBeforeEventRender(r);
|
|
1841
|
-
} t[e] = n; }, this.
|
|
1848
|
+
} t[e] = n; }, this.da = function () { var e = this.events.list; if (e) {
|
|
1842
1849
|
if (!DayPilot.isArray(e))
|
|
1843
1850
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
1844
1851
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1845
1852
|
for (var t = 0; t < e.length; t++)
|
|
1846
|
-
this.
|
|
1853
|
+
this.hb(t);
|
|
1847
1854
|
for (var i = 0; i < e.length; i++) {
|
|
1848
1855
|
var a = e[i];
|
|
1849
1856
|
if ("object" != typeof a)
|
|
@@ -1856,12 +1863,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1856
1863
|
if (!(n.getTime() > o.getTime()))
|
|
1857
1864
|
for (var t = 0; t < this.rows.length; t++) {
|
|
1858
1865
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
1859
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
1866
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.gb.events[i]));
|
|
1860
1867
|
}
|
|
1861
1868
|
}
|
|
1862
1869
|
for (var l = 0; l < this.rows.length; l++) {
|
|
1863
1870
|
var r = this.rows[l];
|
|
1864
|
-
r.events.sort(this.
|
|
1871
|
+
r.events.sort(this.ib);
|
|
1865
1872
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
1866
1873
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
1867
1874
|
r.putIntoLine(c, u, h, l);
|
|
@@ -1870,10 +1877,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1870
1877
|
} }, this.V = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
1871
1878
|
var t = this.elements.events[e];
|
|
1872
1879
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
1873
|
-
} this.elements.events = []; }, this.
|
|
1880
|
+
} this.elements.events = []; }, this.ja = function () { this.Mc(); }, this.Mc = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
1874
1881
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
1875
1882
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
1876
|
-
this.
|
|
1883
|
+
this.Da(a[n]); }, this.ib = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1877
1884
|
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, n, o, r, s) { r || (r = 0); var l = o; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o; var d = 7 * i + t - r; d < 0 && (l += d, t = 0, i = 0); for (var c = r; c >= 7;)
|
|
1878
1885
|
i--, c -= 7; if (c > t) {
|
|
1879
1886
|
c > t + (7 - this.getColCount()) ? (i--, t = t + 7 - c) : (l = l - c + t, t = 0);
|
|
@@ -1889,7 +1896,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1889
1896
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
1890
1897
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1891
1898
|
} }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
1892
|
-
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
1899
|
+
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Da = function (t) { var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div"); u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.qa, u.oncontextmenu = a.Nc, u.onmousedown = function (i) { i = i || window.event; var l = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
1893
1900
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
1894
1901
|
var d = {};
|
|
1895
1902
|
d.start = {}, d.start.x = r, d.start.y = n, d.event = u.event, d.width = DayPilot.DateUtil.daysSpan(d.event.start(), d.event.end()) + 1, d.direction = this.style.cursor, e.resizingEvent = d;
|
|
@@ -1917,11 +1924,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1917
1924
|
m.setAttribute("unselectable", "on"), m.className = this.J("_event_bar_inner"), m.style.top = "0%", m.style.height = "100%", i.barColor && (m.style.backgroundColor = i.barColor), f.appendChild(m), u.appendChild(f);
|
|
1918
1925
|
} if (t.client.deleteEnabled()) {
|
|
1919
1926
|
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
1920
|
-
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.
|
|
1927
|
+
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.ta(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
1921
1928
|
} var y = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(u, t, { "areas": y }), "function" == typeof a.onAfterEventRender) {
|
|
1922
1929
|
var g = {};
|
|
1923
1930
|
g.e = u.event, g.div = u, a.onAfterEventRender(g);
|
|
1924
|
-
} this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.
|
|
1931
|
+
} this.elements.events.push(u), this.nav.events.appendChild(u); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Jc = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var n = 0; n < e; n++) {
|
|
1925
1932
|
var o = {};
|
|
1926
1933
|
o.start = this.firstDate.addDays(7 * n), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = n, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
|
|
1927
1934
|
var r = this.lines[o];
|
|
@@ -1929,9 +1936,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1929
1936
|
return r.addEvent(e, t, i, a, o), o;
|
|
1930
1937
|
} var r = []; return r.isFree = function (e, t) { for (var i = !0, a = 0; a < this.length; a++)
|
|
1931
1938
|
e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < a.rows.length && t < this.index; t++)
|
|
1932
|
-
e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(o);
|
|
1939
|
+
e += a.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * a.lineHeight() + a.cellHeaderHeight + a.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
|
|
1933
1940
|
} this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return a.firstDate; }, this.visibleEnd = function () { return a.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
1934
|
-
e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
1941
|
+
e += this.rows[t].getHeight(); return e; }, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Fa = function () { var t = this.nav.top; t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.J("_main"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var n = document.createElement("div"); this.nav.events = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n), t.onmousemove = function (t) { if (e.resizingEvent) {
|
|
1935
1942
|
var i = DayPilot.mo3(a.nav.top, t);
|
|
1936
1943
|
if (!i)
|
|
1937
1944
|
return;
|
|
@@ -1974,7 +1981,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1974
1981
|
o < 1 && (o = 1);
|
|
1975
1982
|
var v = m < p ? r : n;
|
|
1976
1983
|
e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(v.x, v.y, 0, o, 0, null);
|
|
1977
|
-
} }; }, this.
|
|
1984
|
+
} }; }, this.ia = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
|
|
1978
1985
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
1979
1986
|
this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
|
|
1980
1987
|
var l = o;
|
|
@@ -1983,22 +1990,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1983
1990
|
break;
|
|
1984
1991
|
}
|
|
1985
1992
|
} null === n && (n = this.rows.length - 1); var d = {}; return d.x = a, d.y = n, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
|
|
1986
|
-
i.y++, t -= 7; return i.x = t, i; }, this.
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
for (var
|
|
1999
|
-
this.
|
|
2000
|
-
|
|
2001
|
-
}, this.
|
|
1993
|
+
i.y++, t -= 7; return i.x = t, i; }, this.Lc = function () {
|
|
1994
|
+
var e = document.createElement("div");
|
|
1995
|
+
e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = [];
|
|
1996
|
+
for (var t = 0; t < this.getColCount(); t++) {
|
|
1997
|
+
this.cells[t] = [];
|
|
1998
|
+
var i = document.createElement("div");
|
|
1999
|
+
i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
|
|
2000
|
+
var a = t + this.getWeekStart();
|
|
2001
|
+
a > 6 && (a -= 7), i.className = this.J("_header");
|
|
2002
|
+
var o = document.createElement("div");
|
|
2003
|
+
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",
|
|
2004
|
+
o.style.left = "0px", o.style.right = "0px", o.className = this.J("_header_inner"), o.innerHTML = n.locale().dayNames[a], e.appendChild(i);
|
|
2005
|
+
for (var r = 0; r < this.rows.length; r++)
|
|
2006
|
+
this.Oc(t, r, e);
|
|
2007
|
+
}
|
|
2008
|
+
}, this.Kc = function () { for (var e = 0; e < this.cells.length; e++)
|
|
2009
|
+
for (var t = 0; t < this.cells[e].length; t++)
|
|
2010
|
+
this.cells[e][t].onclick = null; this.nav.cells.innerHTML = ""; }, this.pa = function () { return 2 === a.api; }, this.Oc = function (t, i, o) { var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = s.getDay(), d = null; d = 1 === l ? n.locale().monthNames[s.getMonth()] + " " + l : "" + l; var c = !a.isWeekend(s), u = {}; u.control = a, u.cell = {}, u.cell.start = s, u.cell.end = s.addDays(1), u.cell.properties = { "headerHtml": d, "backColor": null, "business": c, "html": null }, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(u); var h = u.cell.properties, f = document.createElement("div"); if (f.setAttribute("unselectable", "on"), f.style.position = "absolute", f.style.cursor = "default", f.style.left = this.getCellWidth() * t + "%", f.style.width = this.getCellWidth() + "%", f.style.top = this.getRowTop(i) + "px", f.style.height = r.getHeight() + "px", f.className = this.J("_cell"), h.business) {
|
|
2002
2011
|
var c = this.J("_cell_business");
|
|
2003
2012
|
DayPilot.Util.addClass(f, c);
|
|
2004
2013
|
} var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); m.setAttribute("unselectable", "on"), f.appendChild(m), m.style.position = "absolute", m.style.left = "0px", m.style.right = "0px", m.style.top = "0px", m.style.bottom = "0px", m.className = this.J("_cell_inner"), h.backColor && (m.style.backgroundColor = u.cell.properties.backColor), f.onmousedown = function (n) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": t, "y": i, "from": { x: t, y: i }, "width": 1 }); }, f.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); a.L(t, i); }; if ("Disabled" !== a.timeRangeSelectedHandling)
|
|
@@ -2009,11 +2018,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2009
2018
|
} }, p.innerHTML = h.headerHtml, m.appendChild(p), h.html) {
|
|
2010
2019
|
var v = document.createElement("div");
|
|
2011
2020
|
v.style.height = r.getHeight() - this.cellHeaderHeight + "px", v.style.overflow = "hidden", v.innerHTML = h.html, m.appendChild(v);
|
|
2012
|
-
} this.cells[t][i] = f, o.appendChild(f); }, this.getWeekStart = function () {
|
|
2013
|
-
|
|
2014
|
-
|
|
2021
|
+
} this.cells[t][i] = f, o.appendChild(f); }, this.getWeekStart = function () { if ("Auto" === a.weekStarts) {
|
|
2022
|
+
var e = n.locale();
|
|
2023
|
+
return e ? e.weekStarts : 0;
|
|
2024
|
+
} return a.weekStarts || 0; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
2025
|
+
t += this.rows[i].getHeight(); return t; }, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.qa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i && i.client.clickEnabled())
|
|
2026
|
+
if (a.pa()) {
|
|
2015
2027
|
var n = {};
|
|
2016
|
-
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.
|
|
2028
|
+
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.ra.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
|
|
2017
2029
|
return;
|
|
2018
2030
|
switch (a.eventClickHandling) {
|
|
2019
2031
|
case "CallBack":
|
|
@@ -2023,7 +2035,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2023
2035
|
var o = i.client.contextMenu();
|
|
2024
2036
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
2025
2037
|
}
|
|
2026
|
-
"function" == typeof a.onEventClicked && a.
|
|
2038
|
+
"function" == typeof a.onEventClicked && a.ra.apply(function () { a.onEventClicked(n); });
|
|
2027
2039
|
}
|
|
2028
2040
|
else
|
|
2029
2041
|
switch (a.eventClickHandling) {
|
|
@@ -2031,7 +2043,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2031
2043
|
a.eventClickCallBack(i);
|
|
2032
2044
|
break;
|
|
2033
2045
|
case "JavaScript": a.onEventClick(i);
|
|
2034
|
-
} }, this.
|
|
2046
|
+
} }, this.Nc = function () { var e = this; return a.sa(e.event), !1; }, this.sa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
2035
2047
|
return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof a.onEventRightClick || (a.onEventRightClick(t), !t.preventDefault.value)) {
|
|
2036
2048
|
switch (a.eventRightClickHandling) {
|
|
2037
2049
|
case "ContextMenu":
|
|
@@ -2039,9 +2051,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2039
2051
|
i ? i.show(e) : a.contextMenu && a.contextMenu.show(this.event);
|
|
2040
2052
|
}
|
|
2041
2053
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
2042
|
-
} }, this.
|
|
2054
|
+
} }, this.ta = function (e) { if (a.pa()) {
|
|
2043
2055
|
var t = {};
|
|
2044
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
2056
|
+
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.ra.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
|
|
2045
2057
|
return;
|
|
2046
2058
|
switch (a.eventDeleteHandling) {
|
|
2047
2059
|
case "CallBack":
|
|
@@ -2052,7 +2064,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2052
2064
|
break;
|
|
2053
2065
|
case "Update": a.events.remove(e);
|
|
2054
2066
|
}
|
|
2055
|
-
"function" == typeof a.onEventDeleted && a.
|
|
2067
|
+
"function" == typeof a.onEventDeleted && a.ra.apply(function () { a.onEventDeleted(t); });
|
|
2056
2068
|
}
|
|
2057
2069
|
else
|
|
2058
2070
|
switch (a.eventDeleteHandling) {
|
|
@@ -2065,9 +2077,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2065
2077
|
case "JavaScript": a.onEventDelete(e);
|
|
2066
2078
|
} }, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
2067
2079
|
throw "newStart is null"; if (!i)
|
|
2068
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o); }, this.K = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.
|
|
2080
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.R("EventMove", a, o); }, this.K = function (e, t, i, n, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-n); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (a.pa()) {
|
|
2069
2081
|
var p = {};
|
|
2070
|
-
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.
|
|
2082
|
+
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.ra.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
|
|
2071
2083
|
return;
|
|
2072
2084
|
switch (a.eventMoveHandling) {
|
|
2073
2085
|
case "CallBack":
|
|
@@ -2075,7 +2087,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2075
2087
|
break;
|
|
2076
2088
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
2077
2089
|
}
|
|
2078
|
-
"function" == typeof a.onEventMoved && a.
|
|
2090
|
+
"function" == typeof a.onEventMoved && a.ra.apply(function () { a.onEventMoved(p); });
|
|
2079
2091
|
}
|
|
2080
2092
|
else
|
|
2081
2093
|
switch (a.eventMoveHandling) {
|
|
@@ -2085,9 +2097,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2085
2097
|
case "JavaScript": a.onEventMove(e, f, m);
|
|
2086
2098
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
2087
2099
|
throw "newStart is null"; if (!i)
|
|
2088
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.I = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r); if (a.
|
|
2100
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.I = function (e, t, i) { var n = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r); if (a.pa()) {
|
|
2089
2101
|
var u = {};
|
|
2090
|
-
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.
|
|
2102
|
+
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.ra.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
|
|
2091
2103
|
return;
|
|
2092
2104
|
switch (a.eventResizeHandling) {
|
|
2093
2105
|
case "CallBack":
|
|
@@ -2095,7 +2107,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2095
2107
|
break;
|
|
2096
2108
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
2097
2109
|
}
|
|
2098
|
-
"function" == typeof a.onEventResized && a.
|
|
2110
|
+
"function" == typeof a.onEventResized && a.ra.apply(function () { a.onEventResized(u); });
|
|
2099
2111
|
}
|
|
2100
2112
|
else
|
|
2101
2113
|
switch (a.eventResizeHandling) {
|
|
@@ -2103,14 +2115,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2103
2115
|
a.eventResizeCallBack(e, d, c);
|
|
2104
2116
|
break;
|
|
2105
2117
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
2106
|
-
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) { if (this.
|
|
2118
|
+
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) { if (this.pa()) {
|
|
2107
2119
|
var i = {};
|
|
2108
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
2120
|
+
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.ra.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
2109
2121
|
return;
|
|
2110
2122
|
switch (a.timeRangeSelectedHandling) {
|
|
2111
2123
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
2112
2124
|
}
|
|
2113
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
2125
|
+
"function" == typeof a.onTimeRangeSelected && a.ra.apply(function () { a.onTimeRangeSelected(i); });
|
|
2114
2126
|
}
|
|
2115
2127
|
else
|
|
2116
2128
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -2118,16 +2130,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2118
2130
|
a.timeRangeSelectedCallBack(e, t);
|
|
2119
2131
|
break;
|
|
2120
2132
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
2121
|
-
} }, this.
|
|
2133
|
+
} }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { a.ra.scope && a.ra.scope["$apply"](); }, this.ra.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
|
|
2122
2134
|
var n = this._;
|
|
2123
|
-
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.N || (e.N = !0, e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.N; }, this.
|
|
2135
|
+
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.N || (e.N = !0, e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.N; }, this.Za = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.fb = function () { if (this.id && this.id.tagName)
|
|
2124
2136
|
this.nav.top = this.id;
|
|
2125
2137
|
else {
|
|
2126
2138
|
if ("string" != typeof this.id)
|
|
2127
2139
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2128
2140
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2129
2141
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2130
|
-
} }, this.
|
|
2142
|
+
} }, this.lb = function () { this.Jc(), this.Fa(), this.Lc(), this.Za(), this.R("Init"); }, this.Ja = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.ab, this.internal.xssTextHtml = a.Ja, this.init = function () { return this.fb(), this.loadFromServer() ? void this.lb() : (this.Jc(), this.da(), this.Fa(), this.Lc(), this.s(), this.ja(), this.Za(), this.fireAfterRenderDetached(null, !1), this.Aa = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.ab(i);
|
|
2131
2143
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2132
2144
|
var i = e.movingEvent;
|
|
2133
2145
|
if (!i.event)
|
|
@@ -2166,7 +2178,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2166
2178
|
for (name in e)
|
|
2167
2179
|
i[name] = e[name];
|
|
2168
2180
|
i.Init(), t || (t = i);
|
|
2169
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.
|
|
2181
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.ra.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2170
2182
|
(0, e(r).assign)(t, n);
|
|
2171
2183
|
} for (var s in a)
|
|
2172
2184
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
@@ -2177,69 +2189,69 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2177
2189
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2178
2190
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2179
2191
|
DayPilot.Navigator = function (e, t) {
|
|
2180
|
-
this.v = "2024.
|
|
2192
|
+
this.v = "2024.3.539-lite";
|
|
2181
2193
|
var i = this;
|
|
2182
|
-
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.
|
|
2194
|
+
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.Qc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Qc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.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.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Sc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Lc = function (e, t) { var a = {}; a.cells = [], a.days = [], a.weeks = []; 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; a.rowCount = h; var f = (new DayPilot.Date).getDatePart(), m = 7 * o.cellWidth() + this.Qc(); a.width = m; var p = this.cellHeight * h + this.titleHeight + this.dayHeaderHeight; a.height = p; var v = document.createElement("div"); if (v.style.width = m + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
2183
2195
|
v.style.position = "absolute", v.style.left = m * e + "px", v.style.top = "0px", a.top = 0, a.left = m * e;
|
|
2184
2196
|
else {
|
|
2185
2197
|
v.style.position = "relative";
|
|
2186
2198
|
var y = e > 0 ? i.months[e - 1].top + i.months[e - 1].height : 0;
|
|
2187
2199
|
a.top = y, a.left = 0;
|
|
2188
|
-
} 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); var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", 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.
|
|
2200
|
+
} 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); var g = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = o.cellWidth() + "px", 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.Tc), v.appendChild(b), this.tl = b; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = o.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * o.cellWidth() + this.Qc() + "px", 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; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = 6 * o.cellWidth() + this.Qc() + "px", x.style.right = 6 * o.cellWidth() + this.Qc() + "px", x.style.top = "0px", x.style.width = o.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.J("_titleright"), t.right && (x.style.cursor = "pointer", x.innerHTML = "<span>></span>", x.onclick = this.Uc), v.appendChild(x), this.tr = x; var w = this.Qc(); if (this.showWeekNumbers)
|
|
2189
2201
|
for (var C = 0; C < h; C++) {
|
|
2190
|
-
var P = d.addDays(7 * C),
|
|
2202
|
+
var P = d.addDays(7 * C), k = null;
|
|
2191
2203
|
switch (this.weekNumberAlgorithm) {
|
|
2192
2204
|
case "Auto":
|
|
2193
|
-
|
|
2205
|
+
k = 1 === o.weekStarts() ? P.weekNumberISO() : P.weekNumber();
|
|
2194
2206
|
break;
|
|
2195
2207
|
case "US":
|
|
2196
|
-
|
|
2208
|
+
k = P.weekNumber();
|
|
2197
2209
|
break;
|
|
2198
2210
|
case "ISO8601":
|
|
2199
|
-
|
|
2211
|
+
k = P.weekNumberISO();
|
|
2200
2212
|
break;
|
|
2201
2213
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2202
2214
|
}
|
|
2203
|
-
var
|
|
2204
|
-
|
|
2215
|
+
var _ = document.createElement("div");
|
|
2216
|
+
_.style.position = "absolute", _.style.left = "0px", _.style.right = "0px", _.style.top = C * this.cellHeight + g + "px", _.style.width = o.cellWidth() + "px", _.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(_);
|
|
2205
2217
|
} for (var S = 0; S < 7; S++) {
|
|
2206
2218
|
a.cells[S] = [];
|
|
2207
|
-
var
|
|
2208
|
-
|
|
2219
|
+
var _ = document.createElement("div");
|
|
2220
|
+
_.style.position = "absolute", _.style.left = S * o.cellWidth() + w + "px", _.style.right = S * o.cellWidth() + w + "px", _.style.top = this.titleHeight + "px", _.style.width = o.cellWidth() + "px", _.style.height = this.dayHeaderHeight + "px", _.style.lineHeight = this.dayHeaderHeight + "px", _.setAttribute("unselectable", "on"), _.className = this.J("_dayheader"), _.innerHTML = "<span>" + this.Vc(S) + "</span>", v.appendChild(_), a.days.push(_);
|
|
2209
2221
|
for (var C = 0; C < h; C++) {
|
|
2210
|
-
var P = d.addDays(7 * C + S), M = this.
|
|
2211
|
-
if ("month" === this.
|
|
2222
|
+
var P = d.addDays(7 * C + S), M = this.Wc(P) && "none" !== this.Xc(), T = P.firstDayOfMonth() === n, A = P < n, H = P >= n.addMonths(1);
|
|
2223
|
+
if ("month" === this.Xc())
|
|
2212
2224
|
M = M && T;
|
|
2213
|
-
else if ("day" === this.
|
|
2225
|
+
else if ("day" === this.Xc())
|
|
2214
2226
|
M = M && (T || r && A || s && H);
|
|
2215
|
-
else if ("week" === this.
|
|
2227
|
+
else if ("week" === this.Xc()) {
|
|
2216
2228
|
var E = P.firstDayOfMonth() === n;
|
|
2217
2229
|
M = M && (E || r && A || s && H);
|
|
2218
2230
|
}
|
|
2219
2231
|
var N = document.createElement("div");
|
|
2220
2232
|
a.cells[S][C] = N;
|
|
2221
|
-
var I = i.
|
|
2222
|
-
N.day = P, N.x = S, N.y = C, N.left =
|
|
2223
|
-
var
|
|
2224
|
-
|
|
2233
|
+
var I = i.Yc(S, C), R = I.x, O = I.y;
|
|
2234
|
+
N.day = P, N.x = S, N.y = C, N.left = R, N.top = O, N.isCurrentMonth = T, N.isNextMonth = H, N.isPrevMonth = A, N.showBefore = r, N.showAfter = s, N.className = this.J(T ? "_day" : "_dayother"), i.Rc(N, "cell"), P.getTime() === f.getTime() && T && this.Rc(N, "today"), 0 !== P.dayOfWeek() && 6 !== P.dayOfWeek() || this.Rc(N, "weekend"), N.style.position = "absolute", N.style.left = R + "px", N.style.right = R + "px", N.style.top = O + "px", N.style.width = o.cellWidth() + "px", N.style.height = this.cellHeight + "px", N.style.lineHeight = this.cellHeight + "px";
|
|
2235
|
+
var z = document.createElement("div");
|
|
2236
|
+
z.style.position = "absolute", z.className = P.getTime() === f.getTime() && T ? this.J("_todaybox") : this.J("_daybox"), i.Rc(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", N.appendChild(z);
|
|
2225
2237
|
var U = null;
|
|
2226
2238
|
if (this.cells && this.cells[P.toStringSortable()] && (U = this.cells[P.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
2227
|
-
var
|
|
2228
|
-
|
|
2239
|
+
var B = {};
|
|
2240
|
+
B.cell = U || {}, 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(), U ? (B.cell.html = U.html || P.getDay(), B.cell.cssClass = U.css) : (B.cell.html = P.getDay(), B.cell.cssClass = null), i.onBeforeCellRender(B), U = B.cell;
|
|
2229
2241
|
}
|
|
2230
2242
|
if (U && DayPilot.Util.addClass(N, U.cssClass || U.css), T || r && A || s && H) {
|
|
2231
|
-
var
|
|
2232
|
-
|
|
2243
|
+
var L = document.createElement("div");
|
|
2244
|
+
L.innerHTML = P.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.Rc(L, "cell_text"), N.isClickable = !0, U && U.html && (L.innerHTML = U.html), N.appendChild(L);
|
|
2233
2245
|
}
|
|
2234
|
-
N.setAttribute("unselectable", "on"), N.onclick = this.
|
|
2246
|
+
N.setAttribute("unselectable", "on"), N.onclick = this.Zc, v.appendChild(N), M && (i.$c(v, S, C), this.selected.push(N));
|
|
2235
2247
|
}
|
|
2236
|
-
} var j = document.createElement("div"); j.style.position = "absolute", j.style.left = "0px", j.style.top = g - 2 + "px", j.style.width = 7 * o.cellWidth() + this.
|
|
2248
|
+
} var j = document.createElement("div"); j.style.position = "absolute", j.style.left = "0px", j.style.top = g - 2 + "px", j.style.width = 7 * o.cellWidth() + this.Qc() + "px", j.style.height = "1px", j.style.fontSize = "1px", j.style.lineHeight = "1px", j.className = this.J("_line"), v.appendChild(j), this.months.push(a); }, this.Yc = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, a = this.Qc(); return { "x": e * o.cellWidth() + a, "y": t * this.cellHeight + i }; }, this.$c = function (e, t, a) { var n = e.month.cells[t][a]; i.Rc(n, "select"); }, this._c = function (e, t, a) { var n = e.month.cells[t][a]; i.Sc(n, "select"); }, this.Qc = function () { return this.showWeekNumbers ? o.cellWidth() : 0; }, this.ad = function () { if (this.items)
|
|
2237
2249
|
for (var e = 0; e < this.showMonths; e++)
|
|
2238
2250
|
for (var t = 0; t < 7; t++)
|
|
2239
2251
|
for (var i = 0; i < 6; i++) {
|
|
2240
2252
|
var a = this.months[e].cells[t][i];
|
|
2241
|
-
a && (1 === this.items[a.day.toStringSortable()] ? (this.
|
|
2242
|
-
} }, this.
|
|
2253
|
+
a && (1 === this.items[a.day.toStringSortable()] ? (this.Rc(a, "busy"), this.Sc(a, "free")) : (this.Sc(a, "busy"), this.Rc(a, "free")));
|
|
2254
|
+
} }, this.bd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Xc = function () { return (this.selectMode || "").toLowerCase(); }, this.cd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Xc()) {
|
|
2243
2255
|
case "day":
|
|
2244
2256
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
2245
2257
|
break;
|
|
@@ -2253,19 +2265,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2253
2265
|
this.selectionEnd = e;
|
|
2254
2266
|
break;
|
|
2255
2267
|
default: throw "Unknown selectMode value.";
|
|
2256
|
-
} }, this.
|
|
2257
|
-
return void (this.
|
|
2268
|
+
} }, this.dd = null, this.select = function (e, t, a) { 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; if (!this.Aa)
|
|
2269
|
+
return void (this.dd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
|
|
2258
2270
|
var m = this.startDate;
|
|
2259
|
-
(this.selectionStart < this.
|
|
2260
|
-
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.
|
|
2271
|
+
(this.selectionStart < this.ed() || this.selectionStart >= this.fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
2272
|
+
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.cd(), this.Kc(), this.Pc(), this.gd(), this.ad(), this.bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.hd(); }, this.update = function (e) { if (i.ab(e), this.Aa) {
|
|
2261
2273
|
if (i.N)
|
|
2262
2274
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2263
|
-
i.
|
|
2275
|
+
i.jd();
|
|
2264
2276
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2265
|
-
i
|
|
2266
|
-
} }, this
|
|
2277
|
+
i.$a(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
2278
|
+
} }, this.$a = function () { this.Kc(), this.Pc(), this.cd(), this.gd(), this.da(), this.ad(), this.bd(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.gb = {}; }, this.db = null, this.ab = function (e) { if (e) {
|
|
2267
2279
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
2268
|
-
this.
|
|
2280
|
+
this.db = t;
|
|
2269
2281
|
for (var a in e)
|
|
2270
2282
|
if (t[a]) {
|
|
2271
2283
|
var n = t[a];
|
|
@@ -2273,15 +2285,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2273
2285
|
}
|
|
2274
2286
|
else
|
|
2275
2287
|
i[a] = e[a];
|
|
2276
|
-
} }, this.
|
|
2288
|
+
} }, this.eb = function () { var e = this.db; for (var t in e) {
|
|
2277
2289
|
var i = e[t];
|
|
2278
2290
|
i.postInit && i.postInit();
|
|
2279
|
-
} }, 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.
|
|
2291
|
+
} }, 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.kd) : WebForm_DoCallback(this.uniqueID, n, this.T, null, this.callbackError, !0); }, this.kd = function (e) { if ("function" == typeof i.onAjaxError) {
|
|
2280
2292
|
var t = {};
|
|
2281
2293
|
t.request = e, i.onAjaxError(t);
|
|
2282
2294
|
}
|
|
2283
2295
|
else
|
|
2284
|
-
"function" == typeof i.ajaxError && i.ajaxError(e); }, 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.
|
|
2296
|
+
"function" == typeof i.ajaxError && i.ajaxError(e); }, 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.ld = function (e, t) { "refresh" === e && this.hd(); }, this.Vc = function (e) { var t = e + o.weekStarts(); return t > 6 && (t -= 7), o.locale().dayNamesShort[t]; }, this.Wc = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.md = function (e) { for (var t = 0; t < i.months.length; t++) {
|
|
2285
2297
|
var a = i.months[t];
|
|
2286
2298
|
if (!a)
|
|
2287
2299
|
return null;
|
|
@@ -2290,18 +2302,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2290
2302
|
i.months[t].height;
|
|
2291
2303
|
if (a.top <= e.y && e.y < a.top + a.height)
|
|
2292
2304
|
return t;
|
|
2293
|
-
} return null; }, this.
|
|
2305
|
+
} return null; }, this.nd = function (e) { var t = DayPilot.mo3(i.nav.top, e), a = i.md(t); if (null === a)
|
|
2294
2306
|
return null; var n = i.months[a], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
|
|
2295
2307
|
return { "month": a, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
|
|
2296
2308
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
2297
2309
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
2298
2310
|
if (c <= t.x && t.x < c + i.cellWidth && d <= t.y && t.y < d + i.cellHeight)
|
|
2299
2311
|
return { "month": a, "x": r, "y": s, "coords": t };
|
|
2300
|
-
} return null; }, this.
|
|
2301
|
-
var t = i.
|
|
2312
|
+
} return null; }, this.od = function (e) { if (i.freeHandSelectionEnabled) {
|
|
2313
|
+
var t = i.nd(e);
|
|
2302
2314
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
2303
|
-
} }, this.
|
|
2304
|
-
var t = i.
|
|
2315
|
+
} }, this.pd = function (e) { if (a.start) {
|
|
2316
|
+
var t = i.nd(e);
|
|
2305
2317
|
if (a.end)
|
|
2306
2318
|
a.end = t;
|
|
2307
2319
|
else if (t) {
|
|
@@ -2309,9 +2321,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2309
2321
|
o > n && (a.end = t);
|
|
2310
2322
|
}
|
|
2311
2323
|
a.end && (a.clear(), a.draw());
|
|
2312
|
-
} }, this.
|
|
2313
|
-
var a = this.
|
|
2314
|
-
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.
|
|
2324
|
+
} }, this.qd = {};
|
|
2325
|
+
var a = this.qd;
|
|
2326
|
+
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Yc(e.x, e.y), o = t.top + n.y, r = t.left + n.x, s = document.createElement("div"); s.style.position = "absolute", s.style.left = r + "px", s.style.top = o + "px", s.style.height = i.cellHeight + "px", s.style.width = i.cellWidth + "px", s.style.backgroundColor = "#ccc", s.style.opacity = .5, s.style.cursor = "default", i.nav.preselection.appendChild(s), a.cells.push(s); }, a.clear = function () { if (a.cells) {
|
|
2315
2327
|
for (var e = 0; e < a.cells.length; e++)
|
|
2316
2328
|
i.nav.preselection.removeChild(a.cells[e]);
|
|
2317
2329
|
a.cells = [];
|
|
@@ -2353,49 +2365,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2353
2365
|
return null;
|
|
2354
2366
|
e = new n(t);
|
|
2355
2367
|
} return e; }, 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(); }; };
|
|
2356
|
-
this.
|
|
2368
|
+
this.Zc = function (e) { var t = this.parentNode, a = this.parentNode.month, n = this.x, o = this.y, r = a.cells[n][o].day; if (a.cells[n][o].isClickable) {
|
|
2357
2369
|
i.clearSelection(), i.selectionDay = r;
|
|
2358
2370
|
var r = i.selectionDay;
|
|
2359
|
-
switch (i.
|
|
2371
|
+
switch (i.Xc()) {
|
|
2360
2372
|
case "none":
|
|
2361
2373
|
i.selectionStart = r, i.selectionEnd = r;
|
|
2362
2374
|
break;
|
|
2363
2375
|
case "day":
|
|
2364
2376
|
if (i.autoFocusOnClick) {
|
|
2365
2377
|
var s = r;
|
|
2366
|
-
if (r < i.
|
|
2378
|
+
if (r < i.ed() || r >= i.fd())
|
|
2367
2379
|
return void i.select(r);
|
|
2368
2380
|
}
|
|
2369
2381
|
var l = a.cells[n][o];
|
|
2370
|
-
i
|
|
2382
|
+
i.$c(t, n, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
|
|
2371
2383
|
break;
|
|
2372
2384
|
case "week":
|
|
2373
2385
|
if (i.autoFocusOnClick) {
|
|
2374
2386
|
var s = a.cells[0][o].day, d = a.cells[6][o].day;
|
|
2375
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.
|
|
2387
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.ed() || d >= i.fd()))
|
|
2376
2388
|
return void i.select(r);
|
|
2377
2389
|
}
|
|
2378
2390
|
for (var c = 0; c < 7; c++)
|
|
2379
|
-
i
|
|
2391
|
+
i.$c(t, c, o), i.selected.push(a.cells[c][o]);
|
|
2380
2392
|
i.selectionStart = a.cells[0][o].day, i.selectionEnd = a.cells[6][o].day;
|
|
2381
2393
|
break;
|
|
2382
2394
|
case "month":
|
|
2383
2395
|
if (i.autoFocusOnClick) {
|
|
2384
2396
|
var s = r;
|
|
2385
|
-
if (r < i.
|
|
2397
|
+
if (r < i.ed() || r >= i.fd())
|
|
2386
2398
|
return void i.select(r);
|
|
2387
2399
|
}
|
|
2388
2400
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
2389
2401
|
for (var n = 0; n < 7; n++) {
|
|
2390
2402
|
var l = a.cells[n][o];
|
|
2391
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i
|
|
2403
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.$c(t, n, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
2392
2404
|
}
|
|
2393
2405
|
i.selectionStart = s, i.selectionEnd = d;
|
|
2394
2406
|
break;
|
|
2395
2407
|
default: throw "unknown selectMode";
|
|
2396
2408
|
}
|
|
2397
|
-
i.
|
|
2398
|
-
} }, this.L = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.
|
|
2409
|
+
i.bd(), i.L();
|
|
2410
|
+
} }, this.L = function (e) { var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay; if (e = e || {}, i.pa()) {
|
|
2399
2411
|
var r = {};
|
|
2400
2412
|
if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
|
|
2401
2413
|
return;
|
|
@@ -2424,7 +2436,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2424
2436
|
break;
|
|
2425
2437
|
case "None": break;
|
|
2426
2438
|
case "PostBack": i.timeRangeSelectedPostBack(t, a, o);
|
|
2427
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.
|
|
2439
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Uc = function (e) { i.rd(i.skipMonths); }, this.Tc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Kc(), this.Pc(), this.gd(), this.bd(), this.hd(), this.ad(); }, this.ed = function () { return i.startDate.firstDayOfMonth(); }, this.fd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.hd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.pa()) {
|
|
2428
2440
|
var a = {};
|
|
2429
2441
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
2430
2442
|
return;
|
|
@@ -2451,80 +2463,80 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2451
2463
|
this.onVisibleRangeChanged(e, t);
|
|
2452
2464
|
break;
|
|
2453
2465
|
case "Disabled":
|
|
2454
|
-
} }, 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.
|
|
2455
|
-
var
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
if ("Horizontal" === this.orientation) {
|
|
2459
|
-
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
2460
|
-
var i = this.months[t];
|
|
2461
|
-
i.height > e && (e = i.height);
|
|
2462
|
-
}
|
|
2463
|
-
return e;
|
|
2466
|
+
} }, 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.ad(); }, this.gd = function () {
|
|
2467
|
+
for (var e = 0; e < this.showMonths; e++) {
|
|
2468
|
+
var t = this.sd(e);
|
|
2469
|
+
this.Lc(e, t);
|
|
2464
2470
|
}
|
|
2465
|
-
|
|
2471
|
+
this.root.style.height = this.td() + "px", this.nav.preselection = document.createElement("div"),
|
|
2472
|
+
this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection);
|
|
2473
|
+
}, this.td = function () { if ("Horizontal" === this.orientation) {
|
|
2474
|
+
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
2466
2475
|
var i = this.months[t];
|
|
2467
|
-
|
|
2476
|
+
i.height > e && (e = i.height);
|
|
2468
2477
|
}
|
|
2469
|
-
return
|
|
2470
|
-
},
|
|
2471
|
-
|
|
2478
|
+
return e;
|
|
2479
|
+
} for (var a = 0, t = 0; t < this.months.length; t++) {
|
|
2480
|
+
var i = this.months[t];
|
|
2481
|
+
a += i.height;
|
|
2482
|
+
} return a; }, this.sd = function (e) { if (this.internal.showLinks)
|
|
2483
|
+
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.ra = {}, this.ra.scope = null, this.ra.notify = function () { i.ra.scope && i.ra.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.ab, this.internal.initialized = function () { return i.Aa; }, this._ = {};
|
|
2472
2484
|
var o = this._;
|
|
2473
2485
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () { if ("Auto" === i.weekStarts) {
|
|
2474
2486
|
var e = o.locale();
|
|
2475
2487
|
return e ? e.weekStarts : 0;
|
|
2476
|
-
} return i.weekStarts; }, o.cellWidth = function () { if (i.
|
|
2477
|
-
return i.
|
|
2488
|
+
} return i.weekStarts; }, o.cellWidth = function () { if (i.gb.cellWidth)
|
|
2489
|
+
return i.gb.cellWidth; var e = i.ud("_cell_dimensions").width; return e || (e = i.cellWidth), i.gb.cellWidth = e, e; }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2478
2490
|
var t = this.selected[e];
|
|
2479
|
-
i
|
|
2480
|
-
} this.selected = []; }, this.
|
|
2491
|
+
i._c(t.parentNode, t.x, t.y);
|
|
2492
|
+
} this.selected = []; }, this.vd = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.da = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2481
2493
|
this.items = {};
|
|
2482
2494
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2483
2495
|
var t = this.events.list[e];
|
|
2484
2496
|
if (!t.hidden) {
|
|
2485
|
-
var i = this.
|
|
2497
|
+
var i = this.wd(t);
|
|
2486
2498
|
for (var a in i)
|
|
2487
2499
|
this.items[a] = 1;
|
|
2488
2500
|
}
|
|
2489
2501
|
}
|
|
2490
|
-
} }, this.
|
|
2491
|
-
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
2502
|
+
} }, this.ud = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.J(e); var a = i.root || document.body; a.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; a.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.wd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
2503
|
+
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.fb = function () { if (this.id && this.id.tagName)
|
|
2492
2504
|
this.nav.top = this.id;
|
|
2493
2505
|
else {
|
|
2494
2506
|
if ("string" != typeof this.id)
|
|
2495
2507
|
throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
|
|
2496
2508
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2497
2509
|
throw "DayPilot.Navigator: The placeholder element not found: '" + e + "'.";
|
|
2498
|
-
} this.root = this.nav.top; }, this.init = function () { if (this.
|
|
2499
|
-
this.
|
|
2500
|
-
if (this.
|
|
2501
|
-
var e = this.
|
|
2502
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
2510
|
+
} this.root = this.nav.top; }, this.init = function () { if (this.fb(), !this.root.dp) {
|
|
2511
|
+
this.cd(), this.Pc(), this.gd(), this.da(), this.ad(), this.Y(), this.xd(), this.Za();
|
|
2512
|
+
if (this.vd() && this.hd(), this.Aa = !0, this.eb(), this.dd) {
|
|
2513
|
+
var e = this.dd;
|
|
2514
|
+
this.select(e.date1, e.date2, e.options), this.dd = null;
|
|
2503
2515
|
}
|
|
2504
2516
|
return this;
|
|
2505
|
-
} }, this.
|
|
2517
|
+
} }, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Za = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) { if (a.start && a.end) {
|
|
2506
2518
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
2507
2519
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
2508
2520
|
return a.start = null, void a.clear();
|
|
2509
2521
|
a.clear();
|
|
2510
2522
|
var o = a.ordered();
|
|
2511
|
-
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.
|
|
2523
|
+
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.gd(), i.ad(), i.bd();
|
|
2512
2524
|
i.L({ "mode": "FreeHand" });
|
|
2513
|
-
} a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.N = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.
|
|
2525
|
+
} a.start = null, a.end = null; }, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.N = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ab(t);
|
|
2514
2526
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
2515
2527
|
var i = new DayPilot.Navigator(this.id);
|
|
2516
2528
|
this.daypilot = i;
|
|
2517
2529
|
for (var a in e)
|
|
2518
2530
|
i[a] = e[a];
|
|
2519
2531
|
i.Init(), t || (t = i);
|
|
2520
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.
|
|
2532
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.ra.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2521
2533
|
(0, e(r).assign)(t, n);
|
|
2522
2534
|
} for (var s in a)
|
|
2523
2535
|
if (0 === s.indexOf("on")) {
|
|
2524
2536
|
var l = DayPilot.Util.shouldApply(s);
|
|
2525
2537
|
l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
|
|
2526
2538
|
} var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
|
|
2527
|
-
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
2539
|
+
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.da(), n.ad(); }, !0); }; } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
2528
2540
|
}
|
|
2529
2541
|
}();
|
|
2530
2542
|
|