@daypilot/daypilot-lite-angular 4.2.1-sandbox.687 → 4.2.1
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 +770 -771
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +972 -974
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +765 -766
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -144,7 +144,7 @@ DayPilot Lite
|
|
|
144
144
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
145
145
|
https://www.daypilot.org/
|
|
146
146
|
Licensed under Apache Software License 2.0
|
|
147
|
-
Version: 2025.3.
|
|
147
|
+
Version: 2025.3.691-lite
|
|
148
148
|
*/
|
|
149
149
|
var DayPilot = {};
|
|
150
150
|
if ("undefined" == typeof DayPilot)
|
|
@@ -654,7 +654,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
654
654
|
} }, t.gMouseUp = function (n) { if (t.resizing) {
|
|
655
655
|
if (!t.resizingShadow)
|
|
656
656
|
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
|
|
657
|
-
var i = t.resizing.event, a = t.resizingShadow.clientHeight
|
|
657
|
+
var i = t.resizing.event, a = t.resizingShadow.clientHeight, o = t.resizingShadow.offsetTop, r = t.resizing.dpBorder;
|
|
658
658
|
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", i.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, i.calendar.K(i, a, o, r);
|
|
659
659
|
}
|
|
660
660
|
else if (t.moving) {
|
|
@@ -679,7 +679,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
679
679
|
if (this instanceof t.Calendar && !this.P && (o = !0, this.P = !0), !o)
|
|
680
680
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
681
681
|
var r = this;
|
|
682
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.
|
|
682
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.691-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.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, 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.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.Q = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.R(); }, this.R = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.S = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); __doPostBack(r.uniqueID, a); }, this.U = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.W, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.Q || (e.Q = !0, clearInterval(e.X), e.Y(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Z(), e._(), 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.Q; }, this.aa = function () { this.nav.top.dispose = this.dispose; }, this.V = function (e) { r.W(e.responseText); }, this.T = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this.ba = function (e, t) { for (var n = e.parentNode; n && "TD" !== n.tagName;)
|
|
683
683
|
n = n.parentNode; var i = r.eventBorderRadius; "number" == typeof i && (i += "px"); 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 = r.L("_shadow"); var o = document.createElement("div"); return o.className = r.L("_shadow_inner"), i && (o.style.borderRadius = i, a.style.borderRadius = i), a.appendChild(o), n.firstChild.appendChild(a), a; }, this.ca = {}, this.ca.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.ca.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.ca.da = function () { return "Disabled" !== r.xssProtection; }, this.ca.ea = function () { if ("Auto" === r.weekStarts) {
|
|
684
684
|
var e = s.locale();
|
|
685
685
|
return e ? e.weekStarts : 0;
|
|
@@ -759,48 +759,37 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
759
759
|
throw "newStart is null"; if (!n)
|
|
760
760
|
throw "newEnd is null"; var a = {}; a.e = e, a.newStart = t, a.newEnd = n, this.U("EventResize", i, a); }, this.eventResizePostBack = function (e, t, n, i) { if (!t)
|
|
761
761
|
throw "newStart is null"; if (!n)
|
|
762
|
-
throw "newEnd is null"; var a = {}; a.e = e, a.newStart = t, a.newEnd = n, this.S("EventResize", i, a); }, this.K = function (e, t, n, i) { var a =
|
|
763
|
-
var
|
|
764
|
-
r.
|
|
765
|
-
var f = h * s.fa(), v = 60 * f * 1e3, p = 60 * r.sa() * 60 * 1e3;
|
|
766
|
-
o = u.addTime(v + p), l = e.end();
|
|
767
|
-
}
|
|
768
|
-
else if ("bottom" === i) {
|
|
769
|
-
var u = c.getDatePart(), h = Math.floor((n + t - a) / r.cellHeight);
|
|
770
|
-
r.snapToGrid || (h = (n + t - a) / r.cellHeight);
|
|
771
|
-
var f = h * s.fa(), v = 60 * f * 1e3, p = 60 * r.sa() * 60 * 1e3;
|
|
772
|
-
o = d, l = u.addTime(v + p);
|
|
773
|
-
} if (r.ta()) {
|
|
774
|
-
var m = {};
|
|
775
|
-
if (m.e = e, m.control = r, m.newStart = o, m.newEnd = l, m.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.wa.apply(function () { r.onEventResize(m); }), m.preventDefault.value))
|
|
762
|
+
throw "newEnd is null"; var a = {}; a.e = e, a.newStart = t, a.newEnd = n, this.S("EventResize", i, a); }, this.K = function (e, t, n, i) { var a = 0, o = new Date, s = new Date; if ("top" === i ? (o = r.za(e, n - a), s = e.end()) : "bottom" === i && (o = e.start(), s = r.Aa(e, n + t - a)), r.ta()) {
|
|
763
|
+
var l = {};
|
|
764
|
+
if (l.e = e, l.control = r, l.newStart = o, l.newEnd = s, l.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.wa.apply(function () { r.onEventResize(l); }), l.preventDefault.value))
|
|
776
765
|
return;
|
|
777
766
|
switch (r.eventResizeHandling) {
|
|
778
767
|
case "PostBack":
|
|
779
|
-
r.eventResizePostBack(e, o,
|
|
768
|
+
r.eventResizePostBack(e, o, s);
|
|
780
769
|
break;
|
|
781
770
|
case "CallBack":
|
|
782
|
-
r.eventResizeCallBack(e, o,
|
|
771
|
+
r.eventResizeCallBack(e, o, s);
|
|
783
772
|
break;
|
|
784
|
-
case "Update": e.start(o), e.end(
|
|
773
|
+
case "Update": e.start(o), e.end(s), r.events.update(e);
|
|
785
774
|
}
|
|
786
|
-
"function" == typeof r.onEventResized && r.wa.apply(function () { r.onEventResized(
|
|
775
|
+
"function" == typeof r.onEventResized && r.wa.apply(function () { r.onEventResized(l); });
|
|
787
776
|
}
|
|
788
777
|
else
|
|
789
778
|
switch (r.eventResizeHandling) {
|
|
790
779
|
case "PostBack":
|
|
791
|
-
r.eventResizePostBack(e, o,
|
|
780
|
+
r.eventResizePostBack(e, o, s);
|
|
792
781
|
break;
|
|
793
782
|
case "CallBack":
|
|
794
|
-
r.eventResizeCallBack(e, o,
|
|
783
|
+
r.eventResizeCallBack(e, o, s);
|
|
795
784
|
break;
|
|
796
|
-
case "JavaScript": r.onEventResize(e, o,
|
|
797
|
-
} }, this.eventMovePostBack = function (e, t, n, i, a) { if (!t)
|
|
785
|
+
case "JavaScript": r.onEventResize(e, o, s);
|
|
786
|
+
} }, this.za = function (e, t) { var n = r.Ba[e.part.dayIndex].start, i = Math.floor(t / r.cellHeight); r.snapToGrid || (i = t / r.cellHeight); var a = Math.floor(i * s.fa()), o = 60 * a * 1e3, l = 60 * r.sa() * 60 * 1e3; return n.addTime(o + l); }, this.Aa = function (e, t) { var n = Math.floor(t / r.cellHeight); r.snapToGrid || (n = t / r.cellHeight); var i = Math.floor(n * s.fa()), a = 60 * i * 1e3, o = 60 * r.sa() * 60 * 1e3; return r.Ba[e.part.dayIndex].start.addTime(a + o); }, this.eventMovePostBack = function (e, t, n, i, a) { if (!t)
|
|
798
787
|
throw "newStart is null"; if (!n)
|
|
799
788
|
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = n, this.S("EventMove", a, o); }, this.eventMoveCallBack = function (e, t, n, i, a) { if (!t)
|
|
800
789
|
throw "newStart is null"; if (!n)
|
|
801
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = n, this.U("EventMove", a, o); }, this.M = function (e, t, n, i) { var a =
|
|
802
|
-
var
|
|
803
|
-
if (
|
|
790
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = n, this.U("EventMove", a, o); }, this.M = function (e, t, n, i) { var a = 0, o = Math.floor((n - a) / r.cellHeight); r.snapToGrid || (o = (n - a) / r.cellHeight); var l = s.fa(), d = o * l * 60 * 1e3, c = e.start(), u = e.end(), h = new Date; c instanceof DayPilot.Date && (c = c.toDate()), h.setTime(Date.UTC(c.getUTCFullYear(), c.getUTCMonth(), c.getUTCDate())); var f = c.getTime() - (h.getTime() + 3600 * c.getUTCHours() * 1e3 + Math.floor(c.getUTCMinutes() / l) * l * 60 * 1e3); "Never" === r.useEventBoxes && (f = 0); var v = u.getTime() - c.getTime(), p = this.Ba[t], m = p.id; r.snapToGrid || (f = 0); var g = p.start.getTime(), y = new Date; y.setTime(g + d + f); var b = new DayPilot.Date(y), w = b.addTime(v); if (r.ta()) {
|
|
791
|
+
var D = {};
|
|
792
|
+
if (D.e = e, D.newStart = b, D.newEnd = w, D.newResource = m, D.ctrl = i.ctrlKey, D.shift = i.shiftKey, D.control = r, D.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.wa.apply(function () { r.onEventMove(D); }), D.preventDefault.value))
|
|
804
793
|
return;
|
|
805
794
|
switch (r.eventMoveHandling) {
|
|
806
795
|
case "PostBack":
|
|
@@ -811,7 +800,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
811
800
|
break;
|
|
812
801
|
case "Update": e.start(b), e.end(w), e.resource(m), r.events.update(e);
|
|
813
802
|
}
|
|
814
|
-
"function" == typeof r.onEventMoved && r.wa.apply(function () { r.onEventMoved(
|
|
803
|
+
"function" == typeof r.onEventMoved && r.wa.apply(function () { r.onEventMoved(D); });
|
|
815
804
|
}
|
|
816
805
|
else
|
|
817
806
|
switch (r.eventMoveHandling) {
|
|
@@ -843,21 +832,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
843
832
|
r.timeRangeSelectedCallBack(e, t);
|
|
844
833
|
break;
|
|
845
834
|
case "JavaScript": r.onTimeRangeSelected(e, t);
|
|
846
|
-
} }, this.
|
|
835
|
+
} }, this.Ca = function (e) { if (!DayPilot.Global.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
|
|
847
836
|
var t = e.which;
|
|
848
837
|
if (1 === t || 0 === t) {
|
|
849
838
|
DayPilot.Global.selecting = { calendar: r, start: r.coords };
|
|
850
839
|
var n = DayPilot.Global.selecting;
|
|
851
|
-
return n.start.time = r.
|
|
840
|
+
return n.start.time = r.Da(r.coords.x, r.coords.y), n.start.columnIndex = r.Ea(r.coords.x), n.start.column = r.Ba[n.start.columnIndex], r.Fa(), r.Ga(), !1;
|
|
852
841
|
}
|
|
853
|
-
} }, this.
|
|
854
|
-
return r.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 = r.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[n].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }(); u.className = r.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px"; }(); }, this.
|
|
855
|
-
return null; var e = r.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.
|
|
842
|
+
} }, this.Ga = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, n = e.start.columnIndex, i = t.start, a = r.getPixels(e.startTime, i), o = r.getPixels(e.endTime, i), s = a.boxTop, l = o.boxBottom; r.snapToGrid || (s = a.top, l = o.top); var d = l - s, c = r.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (r.nav.activeSelection)
|
|
843
|
+
return r.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 = r.L("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[n].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }(); u.className = r.L("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px"; }(); }, this.Fa = function () { var e = DayPilot.Global.selecting; e.end = r.coords, e.end.time = r.Da(e.start.x, e.end.y), e.end.column = r.Ba[r.Ea(e.end.x)], r.Ha && (e.end.time = r.Da(e.end.x, e.end.y)), r.Ia(e); }, this.Ia = function (e) { var t, n, i; r.snapToGrid ? e.end.time < e.start.time ? (t = r.Ja(e.end.time, e.start.column.start), n = r.Ka(e.start.time, e.start.column.start), i = e.endTime) : (t = r.Ja(e.start.time, e.start.column.start), n = r.Ka(e.end.time, e.start.column.start), i = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, n = e.start.time, i = e.endTime) : (t = e.start.time, n = e.end.time, i = e.startTime), e.startTime = t, e.endTime = n, e.anchor = i; }, this.getSelection = function () { if (!r.N)
|
|
844
|
+
return null; var e = r.N; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.Ea = function (e) { if (e -= r.hourWidth, e < 0)
|
|
856
845
|
return null; for (var t = 0, n = r.nav.events.rows[0].cells, i = 0; i < n.length; i++) {
|
|
857
846
|
if (t += n[i].offsetWidth, e < t)
|
|
858
847
|
return i;
|
|
859
|
-
} return null; }, this.
|
|
860
|
-
return null; e.x = r.
|
|
848
|
+
} return null; }, this.Da = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ea(e), i = t / (60 / s.fa()) / r.cellHeight, a = 60 * i * 60 * 1e3, o = 6e4 * Math.floor(a / 6e4), l = this.Ba[n]; return l ? l.start.addTime(o) : null; }, this.Ja = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var i = 60 * s.fa() * 1e3, a = n % i; return e.addTime(-a); }, this.Ka = function (e, t) { var n = this.Ja(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.La = {}, this.La.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !r.coords)
|
|
849
|
+
return null; e.x = r.Ea(r.coords.x); var t = 0, n = Math.floor((r.coords.y - t) / r.cellHeight); return e.y = n, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, n) { if (!e)
|
|
861
850
|
throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
|
|
862
851
|
n = JSON.parse(a.responseText);
|
|
863
852
|
}
|
|
@@ -868,11 +857,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
868
857
|
var s = {};
|
|
869
858
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
|
|
870
859
|
return;
|
|
871
|
-
r.columns.list = n, r.
|
|
872
|
-
} }; r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": i }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": i }); }, this.ga = function () { var e; e = "Resources" !== r.viewType ? this.
|
|
873
|
-
var n = this.
|
|
874
|
-
this.
|
|
875
|
-
} }, this.
|
|
860
|
+
r.columns.list = n, r.Ma && r.update();
|
|
861
|
+
} }; r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": i }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": i }); }, this.ga = function () { var e; e = "Resources" !== r.viewType ? this.Na() : r.columns.list, this.Ba = []; for (var t = 0; t < e.length; t++) {
|
|
862
|
+
var n = this.Oa(e[t]);
|
|
863
|
+
this.Ba.push(n);
|
|
864
|
+
} }, this.Oa = function (e) { var t = {}; if (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(r.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
|
|
876
865
|
var n = t.start.getDatePart();
|
|
877
866
|
t.start = n.addHours(this.businessBeginsHour);
|
|
878
867
|
} return t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
|
|
@@ -895,7 +884,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
895
884
|
var o = this[a];
|
|
896
885
|
if (!(n < o.part.top || e > o.part.top + o.part.height - 1))
|
|
897
886
|
return !1;
|
|
898
|
-
} return !0; }, n.push(e), this.lines.push(n), this.lines.length - 1; }, t; }, this.
|
|
887
|
+
} return !0; }, n.push(e), this.lines.push(n), this.lines.length - 1; }, t; }, this.Na = function () { var e = [], t = this.startDate.getDatePart(), n = this.days; switch (this.viewType) {
|
|
899
888
|
case "Day":
|
|
900
889
|
n = 1;
|
|
901
890
|
break;
|
|
@@ -909,28 +898,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
909
898
|
var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
|
|
910
899
|
l.start = t.addDays(a), l.name = l.start.toString(o, s.locale()), e.push(l);
|
|
911
900
|
} return e; }, this.visibleStart = function () { if ("Resources" === r.viewType) {
|
|
912
|
-
if (0 === r.
|
|
901
|
+
if (0 === r.Ba.length)
|
|
913
902
|
return DayPilot.Date.today();
|
|
914
|
-
var e = r.
|
|
903
|
+
var e = r.Ba.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
915
904
|
return new DayPilot.Date(t);
|
|
916
|
-
} return this.
|
|
917
|
-
if (0 === r.
|
|
905
|
+
} return this.Ba[0].start; }, this.visibleEnd = function () { if ("Resources" === r.viewType) {
|
|
906
|
+
if (0 === r.Ba.length)
|
|
918
907
|
return DayPilot.Date.today().addDays(1);
|
|
919
|
-
var e = r.
|
|
908
|
+
var e = r.Ba.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
920
909
|
return new DayPilot.Date(t).addDays(1);
|
|
921
|
-
} var t = this.
|
|
910
|
+
} var t = this.Ba.length - 1; return this.Ba[t].start.addDays(1); }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Y = function () { if (this.elements.events)
|
|
922
911
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
923
912
|
var t = this.elements.events[e];
|
|
924
|
-
r.
|
|
925
|
-
} this.elements.events = []; }, this.
|
|
926
|
-
var i = t && t.
|
|
913
|
+
r.Pa(t);
|
|
914
|
+
} this.elements.events = []; }, this.Pa = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
|
|
915
|
+
var i = t && t.Qa;
|
|
927
916
|
if (i) {
|
|
928
|
-
r.
|
|
917
|
+
r.Sa.Ra && n(t.element) && (r.Sa.Ta = !0, r.Sa.Ua(i), r.Sa.Ta = !1);
|
|
929
918
|
}
|
|
930
919
|
} }(); var t = e.event; if (t && (t.calendar = null), e.onclick = null, e.onclickSave = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.firstChild && e.firstChild.firstChild && e.firstChild.firstChild.tagName && "IMG" === e.firstChild.firstChild.tagName.toUpperCase()) {
|
|
931
920
|
var i = e.firstChild.firstChild;
|
|
932
921
|
i.onmousedown = null, i.onmousemove = null, i.onclick = null;
|
|
933
|
-
} e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.
|
|
922
|
+
} e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Va = function (e) { var i = e.cache || e.data, a = this.nav.events, o = i.borderRadius || r.eventBorderRadius; "number" == typeof o && (o += "px"); var s = document.createElement("div"); s.style.position = "absolute", s.style.left = e.part.left + "%", s.style.top = e.part.top + "px", s.style.width = e.part.width + "%", s.style.height = Math.max(e.part.height, 2) + "px", s.style.overflow = "hidden", s.data = e, s.event = e, s.unselectable = "on", s.style.MozUserSelect = "none", s.style.KhtmlUserSelect = "none", s.className = this.L("_event"), i.cssClass && DayPilot.Util.addClass(s, i.cssClass), r.showToolTip && e.client.toolTip() && (s.title = e.client.toolTip()), s.isFirst = e.part.start.getTime() === e.start().getTime(), s.isLast = e.part.end.getTime() === e.end().getTime(), s.onclick = this.va, DayPilot.re(s, "contextmenu", this.xa), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (n) { var i = 5; if ("undefined" != typeof t) {
|
|
934
923
|
var a = DayPilot.mo3(s, n);
|
|
935
924
|
if (a && !t.resizing && !t.moving) {
|
|
936
925
|
s.deleteIcon && (s.deleteIcon.style.display = "");
|
|
@@ -941,7 +930,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
941
930
|
if (1 === i && e.client.moveEnabled()) {
|
|
942
931
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
943
932
|
var a = t.moving.helper = {};
|
|
944
|
-
a.oldColumn = r.
|
|
933
|
+
a.oldColumn = r.Ba[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(n), t.originalTop = this.offsetTop;
|
|
945
934
|
var o = DayPilot.mo3(this, n);
|
|
946
935
|
o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
|
|
947
936
|
}
|
|
@@ -961,11 +950,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
961
950
|
} if (function () { var t = {}; if (t.control = r, t.e = e, t.element = null, s.domArgs = t, "function" == typeof r.onBeforeEventDomAdd && r.onBeforeEventDomAdd(t), t.element) {
|
|
962
951
|
var i = l;
|
|
963
952
|
if (i) {
|
|
964
|
-
t.
|
|
953
|
+
t.Qa = i;
|
|
965
954
|
if (n(t.element)) {
|
|
966
|
-
if (!r.
|
|
955
|
+
if (!r.Sa.Ra)
|
|
967
956
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
968
|
-
r.
|
|
957
|
+
r.Sa.Ta = !0, r.Sa.Wa(t.element, i), r.Sa.Ta = !1;
|
|
969
958
|
}
|
|
970
959
|
else
|
|
971
960
|
i.appendChild(t.element);
|
|
@@ -973,14 +962,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
973
962
|
}
|
|
974
963
|
else
|
|
975
964
|
l.innerHTML = e.client.innerHTML(); }(), a.rows[0].cells[e.part.dayIndex]) {
|
|
976
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.
|
|
977
|
-
} r.elements.events.push(s); }, this.
|
|
965
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Xa(s);
|
|
966
|
+
} r.elements.events.push(s); }, this.Xa = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, n = 0; n < t; n++)
|
|
978
967
|
try {
|
|
979
968
|
var i = e.childNodes[n];
|
|
980
|
-
1 === i.nodeType && (i.unselectable = "on", this.
|
|
969
|
+
1 === i.nodeType && (i.unselectable = "on", this.Xa(i));
|
|
981
970
|
}
|
|
982
|
-
catch (e) { } }, this.na = function () { for (var e = 0; e < this.
|
|
983
|
-
var t = this.
|
|
971
|
+
catch (e) { } }, this.na = function () { for (var e = 0; e < this.Ba.length; e++) {
|
|
972
|
+
var t = this.Ba[e];
|
|
984
973
|
if (t.blocks)
|
|
985
974
|
for (var n = 0; n < t.blocks.length; n++)
|
|
986
975
|
for (var i = t.blocks[n], a = 0; a < i.lines.length; a++)
|
|
@@ -988,17 +977,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
988
977
|
var s = o[r];
|
|
989
978
|
s.part.width = 100 / i.lines.length, s.part.left = s.part.width * a;
|
|
990
979
|
var l = a === i.lines.length - 1;
|
|
991
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
980
|
+
l || (s.part.width = 1.5 * s.part.width), this.Va(s);
|
|
992
981
|
}
|
|
993
|
-
} }, this.
|
|
982
|
+
} }, this.Ya = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_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.Za() + "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.$a(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this._a(); 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 = r.ab(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.la = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.bb(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this._a = 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 n, i = t.insertRow(-1); n = i.insertCell(-1), n.valign = "top", n.style.padding = "0px", n.style.border = "0px none", this.nav.hourTable = this.bb(), n.appendChild(this.nav.hourTable), n = i.insertCell(-1), n.valign = "top", n.width = "100%", n.style.padding = "0px", n.style.border = "0px none"; var a = document.createElement("div"); return a.style.position = "relative", n.appendChild(a), a.appendChild(this.cb()), a.appendChild(this.db()), e.appendChild(t), this.nav.zoom = e, e; }, this.cb = 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.db = 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.Ba, n = t.length, i = e.insertRow(-1), a = 0; a < n; a++) {
|
|
994
983
|
var o = i.insertCell(-1);
|
|
995
984
|
o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
|
|
996
985
|
var s = document.createElement("div");
|
|
997
986
|
s.style.marginRight = r.columnMarginRight + "px", s.style.marginLeft = r.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
998
987
|
var l = document.createElement("div");
|
|
999
988
|
o.selection = l, o.appendChild(s), o.appendChild(l);
|
|
1000
|
-
} return e; }, this.
|
|
1001
|
-
this.
|
|
989
|
+
} return e; }, this.bb = 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 = r.oa(), n = 0; n < t; n++)
|
|
990
|
+
this.eb(e, n); return e; }, this.eb = function (e, t) { var n = 60 * r.cellHeight / s.fa(), i = e.insertRow(-1); i.style.height = n + "px"; var a = i.insertCell(-1); a.valign = "bottom", a.unselectable = "on", a.style.cursor = "default", a.style.padding = "0px", a.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.L("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = n + "px", o.style.overflow = "hidden", o.unselectable = "on"; var l = document.createElement("div"); l.className = this.L("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(r.sa()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var v = document.createElement("span"); v.unselectable = "on", v.className = this.L("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", v.innerHTML = p, d.appendChild(v), l.appendChild(d), o.appendChild(l), a.appendChild(o); }, this.Za = function () { var e = s.fa(), t = 60 / e; switch (this.heightSpec) {
|
|
1002
991
|
case "Full": return 24 * t * this.cellHeight;
|
|
1003
992
|
case "BusinessHours":
|
|
1004
993
|
var n = this.qa();
|
|
@@ -1007,26 +996,26 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1007
996
|
var n = this.qa();
|
|
1008
997
|
return n * this.cellHeight * t;
|
|
1009
998
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
1010
|
-
} }, this.
|
|
999
|
+
} }, this.fb = function () { var e = r.nav.corner ? r.nav.corner.parentNode : null; if (e) {
|
|
1011
1000
|
e.innerHTML = "";
|
|
1012
|
-
var t = this.
|
|
1001
|
+
var t = this.gb();
|
|
1013
1002
|
e.appendChild(t), r.nav.corner = t;
|
|
1014
|
-
} }, this
|
|
1003
|
+
} }, this.$a = 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 n = t.insertRow(-1), i = n.insertCell(-1); i.style.padding = "0px", i.style.border = "0px none"; var a = this.gb(); i.appendChild(a), this.nav.corner = a, i = n.insertCell(-1), i.style.width = "100%", i.valign = "top", i.style.position = "relative", i.style.padding = "0px", i.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 (i.appendChild(this.nav.header), o) {
|
|
1015
1004
|
i = n.insertCell(-1), i.unselectable = "on";
|
|
1016
1005
|
var r = document.createElement("div");
|
|
1017
1006
|
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.L("_cornerright");
|
|
1018
1007
|
var s = document.createElement("div");
|
|
1019
1008
|
s.className = this.L("_cornerright_inner"), r.appendChild(s), i.appendChild(r), this.nav.cornerRight = r;
|
|
1020
|
-
} return e.appendChild(t), e; }, this.
|
|
1009
|
+
} return e.appendChild(t), e; }, this.gb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.L("_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.L("_corner_inner"), e.appendChild(t), e; }, this.Z = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
|
|
1021
1010
|
for (var n = e.rows[t], i = 0; i < n.cells.length; i++) {
|
|
1022
1011
|
var a = n.cells[i];
|
|
1023
|
-
r.
|
|
1024
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1025
|
-
var a = i && i.
|
|
1012
|
+
r.hb(a);
|
|
1013
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.hb = function (e) { e && (!function () { var t = e, i = t.domArgs; if (t.domArgs = null, i && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(i), i && "function" == typeof r.onBeforeCellDomAdd) {
|
|
1014
|
+
var a = i && i.Qa;
|
|
1026
1015
|
if (a) {
|
|
1027
|
-
r.
|
|
1016
|
+
r.Sa.Ra && n(i.element) && (r.Sa.Ta = !0, r.Sa.Ua(a), r.Sa.Ta = !1);
|
|
1028
1017
|
}
|
|
1029
|
-
} }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ka = function () { var e = s.fa(), i = this.nav.main, a = 60 * e * 1e3, o = this.ra(), l = r.
|
|
1018
|
+
} }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ka = function () { var e = s.fa(), i = this.nav.main, a = 60 * e * 1e3, o = this.ra(), l = r.Ba; for (i && this.Z(); i && i.rows && i.rows.length > 0;)
|
|
1030
1019
|
this.fasterDispose || DayPilot.pu(i.rows[0]), i.deleteRow(0); this.tableCreated = !0; for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
|
|
1031
1020
|
this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0); for (var d = l.length, u = c.insertRow(-1), h = 0; h < d; h++) {
|
|
1032
1021
|
var f = u.insertCell(-1);
|
|
@@ -1039,28 +1028,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1039
1028
|
var u = i.insertRow(-1);
|
|
1040
1029
|
u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
|
|
1041
1030
|
for (var h = 0; h < d; h++) {
|
|
1042
|
-
var g = this.
|
|
1043
|
-
f.start = g.start.addTime(m * a), f.end = f.start.addTime(a), f.resource = g.id, f.onmousedown = this.
|
|
1031
|
+
var g = this.Ba[h], f = u.insertCell(-1);
|
|
1032
|
+
f.start = g.start.addTime(m * a), f.end = f.start.addTime(a), f.resource = g.id, f.onmousedown = this.Ca, f.onmouseup = function () { return !1; }, f.onclick = function () { return !1; }, f.root = this, f.style.padding = "0px", f.style.border = "0px none", f.style.verticalAlign = "top", f.style.height = r.cellHeight + "px", f.style.overflow = "hidden", f.unselectable = "on";
|
|
1044
1033
|
var v = document.createElement("div");
|
|
1045
1034
|
v.unselectable = "on", v.style.height = r.cellHeight + "px", v.style.position = "relative", v.className = this.L("_cell");
|
|
1046
|
-
var y = this.
|
|
1035
|
+
var y = this.ib(f.start, f.end), b = { "business": y, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, w = { "start": f.start, "end": f.end, "resource": f.resource, "properties": b, "x": h, "y": m };
|
|
1047
1036
|
!function () { if ("function" == typeof r.onBeforeCellRender) {
|
|
1048
1037
|
var e = {};
|
|
1049
1038
|
e.cell = w, r.onBeforeCellRender(e);
|
|
1050
1039
|
} }(), b.business && DayPilot.Util.addClass(v, r.L("_cell_business")), b.cssClass && DayPilot.Util.addClass(v, b.cssClass);
|
|
1051
|
-
var
|
|
1052
|
-
|
|
1053
|
-
var
|
|
1054
|
-
|
|
1040
|
+
var D = document.createElement("div");
|
|
1041
|
+
D.setAttribute("unselectable", "on"), D.className = this.L("_cell_inner");
|
|
1042
|
+
var x = DayPilot.Util.escapeTextHtml(b.text, b.html);
|
|
1043
|
+
x && (D.innerHTML = x), b.backColor && (D.style.backgroundColor = b.backColor), b.backImage && (D.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (D.style.backgroundRepeat = b.backRepeat), b.fontColor && (D.style.color = b.fontColor), v.appendChild(D), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
|
|
1055
1044
|
var e = {};
|
|
1056
1045
|
if (e.control = r, e.cell = w, e.element = null, f.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
|
|
1057
|
-
var t =
|
|
1046
|
+
var t = D;
|
|
1058
1047
|
if (t) {
|
|
1059
|
-
e.
|
|
1048
|
+
e.Qa = t;
|
|
1060
1049
|
if (n(e.element)) {
|
|
1061
|
-
if (!r.
|
|
1050
|
+
if (!r.Sa.Ra)
|
|
1062
1051
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
1063
|
-
r.
|
|
1052
|
+
r.Sa.Ta = !0, r.Sa.Wa(e.element, t), r.Sa.Ta = !1;
|
|
1064
1053
|
}
|
|
1065
1054
|
else
|
|
1066
1055
|
t.appendChild(e.element);
|
|
@@ -1070,7 +1059,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1070
1059
|
}
|
|
1071
1060
|
} i.root = this, r.nav.scrollable.onmousemove = function (e) { var n = r.nav.scrollable; r.coords = DayPilot.mo3(n, e); var i = DayPilot.mc(e); if (t.resizing) {
|
|
1072
1061
|
t.resizingShadow || (t.resizingShadow = r.ba(t.resizing, !1, r.shadow));
|
|
1073
|
-
var a = r.cellHeight, o =
|
|
1062
|
+
var a = r.cellHeight, o = 0, s = i.y - t.originalMouse.y;
|
|
1074
1063
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1075
1064
|
var l = t.originalHeight + s;
|
|
1076
1065
|
r.snapToGrid && (l = Math.floor((t.originalHeight + t.originalTop + s + a / 2) / a) * a - t.originalTop + o), l < a && (l = a);
|
|
@@ -1093,7 +1082,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1093
1082
|
return;
|
|
1094
1083
|
t.movingShadow = r.ba(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
|
|
1095
1084
|
}
|
|
1096
|
-
var a = r.cellHeight, o =
|
|
1085
|
+
var a = r.cellHeight, o = 0, f = t.moveOffsetY;
|
|
1097
1086
|
f || (f = a / 2);
|
|
1098
1087
|
var c = r.coords.y - f;
|
|
1099
1088
|
r.snapToGrid && (c = Math.floor((r.coords.y - f - o + a / 2) / a) * a + o), c < o && (c = o);
|
|
@@ -1103,12 +1092,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1103
1092
|
g < 0 && (g = 0), g < v.rows[0].cells.length && g >= 0 && t.movingShadow.column !== g && (t.movingShadow.column = g, t.moveShadow(v.rows[0].cells[g]));
|
|
1104
1093
|
}
|
|
1105
1094
|
else
|
|
1106
|
-
DayPilot.Global.selecting && (r.
|
|
1095
|
+
DayPilot.Global.selecting && (r.Fa(), r.Ga()); }, r.nav.scrollable.style.display = ""; }, this.ib = 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._ = function () { var e = this.nav.header; if (e && e.rows)
|
|
1107
1096
|
for (var t = 0; t < e.rows.length; t++)
|
|
1108
1097
|
for (var n = e.rows[t], i = 0; i < n.cells.length; i++) {
|
|
1109
1098
|
var a = n.cells[i];
|
|
1110
1099
|
a.onclick = null, a.onmousemove = null, a.onmouseout = null;
|
|
1111
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1100
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.jb = function (e) { function t(t) { var a = i[t], o = e ? n.insertCell(-1) : n.cells[t]; o.data = a, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r.kb; var s, l = e ? document.createElement("div") : o.firstChild; e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.L("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild; var d = {}; d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.lb(a, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(a, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, a, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), a.toolTip && (s.title = a.toolTip), a.cssClass && DayPilot.Util.addClass(l, a.cssClass), a.backColor && (s.style.background = a.backColor), a.areas && DayPilot.Areas.attach(l, a); var c = a.verticalAlignment; if (c)
|
|
1112
1101
|
switch (s.style.display = "flex", c) {
|
|
1113
1102
|
case "center":
|
|
1114
1103
|
s.style.alignItems = "center";
|
|
@@ -1126,21 +1115,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1126
1115
|
s.style.justifyContent = "flex-start";
|
|
1127
1116
|
break;
|
|
1128
1117
|
case "right": s.style.justifyContent = "flex-end";
|
|
1129
|
-
} l.firstChild.innerHTML = r
|
|
1130
|
-
t(o); }, this.
|
|
1131
|
-
var t = this.data, n = r.
|
|
1118
|
+
} l.firstChild.innerHTML = r.ab(a.name, a.html); } for (var n = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.Ba, a = i.length, o = 0; o < a; o++)
|
|
1119
|
+
t(o); }, this.kb = function (e) { if ("Disabled" !== r.headerClickHandling) {
|
|
1120
|
+
var t = this.data, n = r.lb(t), i = {};
|
|
1132
1121
|
i.header = {}, i.header.id = t.id, i.header.name = t.name, i.header.start = t.start, i.column = n, i.originalEvent = e, i.shift = e.shiftKey, i.ctrl = e.ctrlKey, i.meta = e.metaKey, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onHeaderClick && (r.onHeaderClick(i), i.preventDefault.value) || "function" == typeof r.onHeaderClicked && r.onHeaderClicked(i);
|
|
1133
|
-
} }, this.
|
|
1134
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.
|
|
1122
|
+
} }, this.lb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.mb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ja = function () { var e = this.nav.header, t = !0, n = this.Ba; for (n.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1123
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.jb(t); }, this.loadingStart = function () {
|
|
1135
1124
|
this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText,
|
|
1136
1125
|
this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = "");
|
|
1137
|
-
}, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.U("Command", t, n); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.
|
|
1126
|
+
}, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.U("Command", t, n); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.nb = function () { var e = this.nav.scroll; e.root = this, r.ob(), e.onscroll || (e.onscroll = function () { r.pb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.qb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.rb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
1138
1127
|
t = e.data;
|
|
1139
1128
|
else {
|
|
1140
1129
|
if ("object" != typeof e)
|
|
1141
1130
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1142
1131
|
t = e;
|
|
1143
|
-
} r.events.list || (r.events.list = []), r.events.list.push(t), r.
|
|
1132
|
+
} r.events.list || (r.events.list = []), r.events.list.push(t), r.sb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.find = function (e) { if (!r.events.list)
|
|
1144
1133
|
return null; if ("function" == typeof e) {
|
|
1145
1134
|
for (var t = e, n = 0; n < r.events.list.length; n++) {
|
|
1146
1135
|
var i = new DayPilot.Event(r.events.list[n], r);
|
|
@@ -1160,7 +1149,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1160
1149
|
var n = DayPilot.indexOf(r.events.list, t.data);
|
|
1161
1150
|
r.events.list.splice(n, 1, e);
|
|
1162
1151
|
}
|
|
1163
|
-
} r.
|
|
1152
|
+
} r.sb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1164
1153
|
t = e.data;
|
|
1165
1154
|
else if ("object" == typeof e) {
|
|
1166
1155
|
var n = r.events.find(e.id);
|
|
@@ -1169,7 +1158,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1169
1158
|
else if ("string" == typeof e || "number" == typeof e) {
|
|
1170
1159
|
var n = r.events.find(e);
|
|
1171
1160
|
n && (t = n.data);
|
|
1172
|
-
} var i = DayPilot.indexOf(r.events.list, t); r.events.list.splice(i, 1), r.
|
|
1161
|
+
} var i = DayPilot.indexOf(r.events.list, t); r.events.list.splice(i, 1), r.sb({ "eventsOnly": !0 }), r.wa.notify(); }, this.events.load = function (e, t, n) { var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
|
|
1173
1162
|
n = JSON.parse(a.responseText);
|
|
1174
1163
|
}
|
|
1175
1164
|
catch (e) {
|
|
@@ -1179,25 +1168,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1179
1168
|
var s = {};
|
|
1180
1169
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1181
1170
|
return;
|
|
1182
|
-
r.events.list = n, r.
|
|
1171
|
+
r.events.list = n, r.Ma && r.sb({ "eventsOnly": !0 });
|
|
1183
1172
|
} }; if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
|
|
1184
1173
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": r.visibleStart().toString(), "end": r.visibleEnd().toString() }, "url": e, "success": a, "error": i });
|
|
1185
1174
|
else {
|
|
1186
1175
|
var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
|
|
1187
1176
|
o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": a, "error": i });
|
|
1188
|
-
} }, this.
|
|
1177
|
+
} }, this.tb = function () { if (r.nav.top.className !== r.L("_main")) {
|
|
1189
1178
|
r.nav.top.className = r.L("_main");
|
|
1190
1179
|
var e = r.nav.corner;
|
|
1191
1180
|
e.className = r.L("_corner"), e.firstChild.className = r.L("_corner_inner");
|
|
1192
1181
|
var t = r.nav.cornerRight;
|
|
1193
1182
|
t && (t.className = r.L("_cornerright"), t.firstChild.className = r.L("_cornerright_inner"));
|
|
1194
1183
|
} }, this.update = function (e) { if (r.Q)
|
|
1195
|
-
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.
|
|
1184
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.ub(e), r.sb(); }, this.sb = function (e) { if (this.Ma) {
|
|
1196
1185
|
var e = e || {}, t = !e.eventsOnly;
|
|
1197
|
-
r.
|
|
1198
|
-
} }, this.
|
|
1186
|
+
r.vb(), r.Y(), r.nav.top.style.cursor = "auto", t && (r.ga(), r.ja(), r.ka(), r.la(), r.ma(), r.fb(), r.qb(), r.tb(), r.ob()), r.ha(), r.ia(), r.na(), r.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1187
|
+
} }, this.wb = null, this.ub = function (e) { if (e) {
|
|
1199
1188
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? r.events.list = e.list : r.events.list = e; } }, "columns": { "preInit": function () { r.columns.list = this.data; } } };
|
|
1200
|
-
this.
|
|
1189
|
+
this.wb = t;
|
|
1201
1190
|
for (var n in e)
|
|
1202
1191
|
if (t[n]) {
|
|
1203
1192
|
var i = t[n];
|
|
@@ -1205,21 +1194,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1205
1194
|
}
|
|
1206
1195
|
else
|
|
1207
1196
|
r[n] = e[n];
|
|
1208
|
-
} }, this.
|
|
1197
|
+
} }, this.xb = function () { var e = this.wb; for (var t in e) {
|
|
1209
1198
|
var n = e[t];
|
|
1210
1199
|
n.postInit && n.postInit();
|
|
1211
|
-
} }, this.
|
|
1200
|
+
} }, this.yb = function () { if (this.id && this.id.tagName)
|
|
1212
1201
|
this.nav.top = this.id;
|
|
1213
1202
|
else {
|
|
1214
1203
|
if ("string" != typeof this.id)
|
|
1215
1204
|
throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
|
|
1216
1205
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1217
1206
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1218
|
-
} }, this.
|
|
1207
|
+
} }, this.zb = {}, this.zb.events = [], this.Ab = function (e) { var t = this.zb.events, n = this.events.list[e], i = {}; for (var a in n)
|
|
1219
1208
|
i[a] = n[a]; if (i.start = new DayPilot.Date(n.start), i.end = new DayPilot.Date(n.end), "function" == typeof this.onBeforeEventRender) {
|
|
1220
1209
|
var o = {};
|
|
1221
1210
|
o.control = r, o.data = i, this.onBeforeEventRender(o);
|
|
1222
|
-
} t[e] = i; }, this.ha = function () { var e = this.events.list; if (r.
|
|
1211
|
+
} t[e] = i; }, this.ha = function () { var e = this.events.list; if (r.zb.events = [], e) {
|
|
1223
1212
|
if (!DayPilot.isArray(e))
|
|
1224
1213
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1225
1214
|
var t = e.length, n = 864e5;
|
|
@@ -1239,11 +1228,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1239
1228
|
}
|
|
1240
1229
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1241
1230
|
for (var a = 0; a < t; a++)
|
|
1242
|
-
this.
|
|
1243
|
-
for (var a = 0; a < this.
|
|
1231
|
+
this.Ab(a);
|
|
1232
|
+
for (var a = 0; a < this.Ba.length; a++) {
|
|
1244
1233
|
var l = {};
|
|
1245
1234
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1246
|
-
var d = this.
|
|
1235
|
+
var d = this.Ba[a];
|
|
1247
1236
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1248
1237
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(n), f = h.getTime(), v = 0; v < t; v++)
|
|
1249
1238
|
if (!i[v]) {
|
|
@@ -1253,55 +1242,55 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1253
1242
|
if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
|
|
1254
1243
|
var w = new DayPilot.Event(o, r);
|
|
1255
1244
|
w.part.dayIndex = a, w.part.start = u < g ? p : c, w.part.end = f > y ? m : h;
|
|
1256
|
-
var
|
|
1257
|
-
if (_ === C && (
|
|
1245
|
+
var D = this.getPixels(w.part.start, d.start), x = this.getPixels(w.part.end, d.start), _ = D.top, C = x.top;
|
|
1246
|
+
if (_ === C && (D.cut || x.cut))
|
|
1258
1247
|
continue;
|
|
1259
|
-
var k =
|
|
1248
|
+
var k = x.boxBottom, P = "Always" === r.useEventBoxes;
|
|
1260
1249
|
P ? (w.part.top = Math.floor(_ / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = _ + 1, w.part.height = C - _ + 1), w.part.barTop = Math.max(_ - w.part.top - 1, 0), w.part.barHeight = Math.max(C - _ - 2, 1);
|
|
1261
1250
|
var p = w.part.top, m = w.part.top + w.part.height;
|
|
1262
|
-
p > l.maxStart && (l.maxStart = p), m < l.minEnd && (l.minEnd = m), p < this.minStart && (this.minStart = p), m > this.maxEnd && (this.maxEnd = m), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.
|
|
1251
|
+
p > l.maxStart && (l.maxStart = p), m < l.minEnd && (l.minEnd = m), p < this.minStart && (this.minStart = p), m > this.maxEnd && (this.maxEnd = m), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.zb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (i[v] = !0);
|
|
1263
1252
|
}
|
|
1264
1253
|
}
|
|
1265
1254
|
}
|
|
1266
1255
|
}
|
|
1267
|
-
for (var a = 0; a < this.
|
|
1268
|
-
var d = this.
|
|
1269
|
-
d.events.sort(this.
|
|
1256
|
+
for (var a = 0; a < this.Ba.length; a++) {
|
|
1257
|
+
var d = this.Ba[a];
|
|
1258
|
+
d.events.sort(this.Bb);
|
|
1270
1259
|
for (var v = 0; v < d.events.length; v++) {
|
|
1271
1260
|
var o = d.events[v];
|
|
1272
1261
|
d.putIntoBlock(o);
|
|
1273
1262
|
}
|
|
1274
1263
|
for (var v = 0; v < d.blocks.length; v++) {
|
|
1275
1264
|
var S = d.blocks[v];
|
|
1276
|
-
S.events.sort(this.
|
|
1265
|
+
S.events.sort(this.Bb);
|
|
1277
1266
|
for (var M = 0; M < S.events.length; M++) {
|
|
1278
1267
|
var o = S.events[M];
|
|
1279
1268
|
S.putIntoLine(o);
|
|
1280
1269
|
}
|
|
1281
1270
|
}
|
|
1282
1271
|
}
|
|
1283
|
-
} }, this.
|
|
1272
|
+
} }, this.Bb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1284
1273
|
return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (r.debugMessages || (r.debugMessages = []), r.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var n = t.getTime(), i = e.getTime(), a = s.fa(), o = this.cache.pixels[i + "_" + n]; if (o)
|
|
1285
|
-
return o; n = t.getTime(); var r = 60 * a * 1e3, l = i - n, d = l % r, c = l - d, u = c + r; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.
|
|
1274
|
+
return o; n = t.getTime(); var r = 60 * a * 1e3, l = i - n, d = l % r, c = l - d, u = c + r; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.Cb(l), h.boxTop = this.Cb(c), h.boxBottom = this.Cb(u), this.cache.pixels[i + "_" + n] = h, h; }, this.Cb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.fa())); }, this.Db = function (e) { var t = Math.floor((shadowTop - _startOffset) / r.cellHeight); r.snapToGrid || (t = (shadowTop - _startOffset) / r.cellHeight); s.fa(); }, this.vb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ia = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ma = function () { var e = this.Za(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { r.wa.scope && r.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.pb = function () { if (r.nav.scroll && r.Eb()) {
|
|
1286
1275
|
var e = r.nav.scroll.scrollTop, t = s.fa(), n = 60 / t, i = e / (n * r.cellHeight);
|
|
1287
|
-
r.
|
|
1288
|
-
} }, this.
|
|
1276
|
+
r.Fb.scrollHour = i;
|
|
1277
|
+
} }, this.ob = function () { var e = 0, t = 60 / s.fa(); e = "number" == typeof r.Fb.scrollHour ? t * r.cellHeight * r.Fb.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var n = r.nav.top; "none" === n.style.display ? (n.style.display = "", r.nav.scroll.scrollTop = e, n.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.pb(); }, this.Gb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { r.visible = !0, r.nav.top.style.display = "", this.qb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.Hb = function () { this.vb(), this.ga(), this.Ya(), this.ja(), this.ka(), this.qb(), this.nb(), this.rb(), t.register(this), this.Ib(), this.U("Init"); }, this.Fb = {}, this.Jb = function () { this.Fb.themes = [], this.Fb.themes.push(this.theme || this.cssClassPrefix); }, this.Kb = function () { for (var e = this.Fb.themes, t = 0; t < e.length; t++) {
|
|
1289
1278
|
var n = e[t];
|
|
1290
1279
|
DayPilot.Util.removeClass(this.nav.top, n + "_main");
|
|
1291
|
-
} this.
|
|
1280
|
+
} this.Fb.themes = []; }, this.Lb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1292
1281
|
var e = {};
|
|
1293
1282
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1294
|
-
} }, this.
|
|
1295
|
-
this.
|
|
1283
|
+
} }, this.Mb = function () { if ("function" == typeof this.onInit && !this.Nb) {
|
|
1284
|
+
this.Nb = !0;
|
|
1296
1285
|
var e = {};
|
|
1297
1286
|
this.onInit(e);
|
|
1298
|
-
} }, this.
|
|
1287
|
+
} }, this.Eb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Ib = function () { var e = r.Eb; e() || (r.X = setInterval(function () { e() && (r.nb(), r.qb(), clearInterval(r.X)); }, 100)); }, this.ab = function (e, t) { return r.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var i = r.Sa.Ra; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
|
|
1299
1288
|
var a = i.createVNode(e, n);
|
|
1300
1289
|
i.render(a, t);
|
|
1301
|
-
} }, this.
|
|
1290
|
+
} }, this.Sa.Wa = function (e, t) { var n = r.Sa.Ra; if ("function" == typeof n.render) {
|
|
1302
1291
|
var i = e;
|
|
1303
1292
|
DayPilot.isArray(e) && (i = n.h("div", null, e)), n.render(i, t);
|
|
1304
|
-
} }, this.
|
|
1293
|
+
} }, this.Sa.Ua = function (e) { var t = r.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.ub, this.internal.xssTextHtml = r.ab, this.internal.enableVue = function (e) { r.Sa.Ra = e; }, this.internal.vueRef = function () { return r.Sa.Ra; }, this.internal.vueRendering = function () { return r.Sa.Ta; }, this.init = function () { this.yb(); var e = this.Gb(); return this.Jb(), e ? void this.Hb() : (this.vb(), this.ga(), this.ha(), this.Ya(), this.ja(), this.ka(), this.u(), this.qb(), this.nb(), this.rb(), t.register(this), this.events && (this.ia(), this.na()), this.Lb(), this.Mb(), this.Ib(), this.Ma = !0, this); }, this.Init = this.init, this.ub(a);
|
|
1305
1294
|
}, DayPilot.CalendarColumn = function (e, t) { var n = this; n.id = e.id, n.name = e.name, n.data = e.data, n.start = new DayPilot.Date(e.start), n.calendar = t, n.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, n = this.each(function () { if (!this.daypilot) {
|
|
1306
1295
|
var n = new DayPilot.Calendar(this.id);
|
|
1307
1296
|
this.daypilot = n;
|
|
@@ -1312,39 +1301,39 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1312
1301
|
(0, e(r).assign)(t, a);
|
|
1313
1302
|
} for (var s in i)
|
|
1314
1303
|
0 === s.indexOf("on") && !function (n) { a[n] = function (a) { var o = e(i[n]); t["$apply"](function () { o(t, { "args": a }); }); }; }(s); var l = t["$watch"], d = i["config"] || i["daypilotConfig"], c = i["events"] || i["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
1315
|
-
a[t] = e[t]; a.update(), a.
|
|
1304
|
+
a[t] = e[t]; a.update(), a.Mb(); }, !0), l.call(t, c, function (e) { a.events.list = e, a.update(); }, !0); } }; }]); }();
|
|
1316
1305
|
}
|
|
1317
1306
|
}(), "undefined" == typeof DayPilot)
|
|
1318
1307
|
var DayPilot = {};
|
|
1319
1308
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1320
1309
|
"use strict";
|
|
1321
|
-
"undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "2025.3.
|
|
1310
|
+
"undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) { this.v = "2025.3.691-lite"; var t = "navigator_" + (new Date).getTime(), n = 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.ca.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", e)
|
|
1322
1311
|
for (var t in e)
|
|
1323
|
-
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.
|
|
1312
|
+
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Pb(); this.resetTarget && !e ? this.Qb(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Pb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Eb && (n.Eb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Rb = function (e) { this.date = new DayPilot.Date(e), this.Qb(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Rb(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Pb = function () { var e = this.D(); if (!e)
|
|
1324
1313
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
1325
1314
|
return null; for (var i = DayPilot.Date.parse(t, n.pattern), a = 0; a < n.patterns.length; a++) {
|
|
1326
1315
|
if (i)
|
|
1327
1316
|
return i;
|
|
1328
1317
|
i = DayPilot.Date.parse(t, n.patterns[a]);
|
|
1329
|
-
} return i; }, this.
|
|
1318
|
+
} return i; }, this.Qb = function (e) { var t = this.D(); if (t) {
|
|
1330
1319
|
var i = e.toString(n.pattern, n.locale);
|
|
1331
1320
|
"INPUT" === t.tagName ? t.value = i : t.innerHTML = i;
|
|
1332
|
-
} }, this.ca = {}, this.ca.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.
|
|
1321
|
+
} }, this.ca = {}, this.ca.locale = function () { return DayPilot.Locale.find(n.locale); }, this.D = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return n.Eb; } }), this.show = function () { if (!this.Eb) {
|
|
1333
1322
|
document.addEventListener("mousedown", n.close), document.addEventListener("wheel", n.close), window.addEventListener("resize", n.close);
|
|
1334
1323
|
var e = this.D(), i = new DayPilot.Navigator(t);
|
|
1335
|
-
i.api = 2, i.cssOnly = !0, i.theme = n.theme, i.weekStarts = "Auto", i.locale = n.locale, i.showToday =
|
|
1324
|
+
i.api = 2, i.cssOnly = !0, i.theme = n.theme, i.weekStarts = "Auto", i.locale = n.locale, i.showToday = n.showToday, i.todayText = n.todayText, i.onTodayClick = function (e) { i.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, i.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(i.Sb), a = t.toString(n.pattern, n.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(e), e.preventDefault.value) || (n.Qb(a), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(e)); }, this.navigator = i;
|
|
1336
1325
|
var a = { x: 0, y: 0, w: 0, h: 0 };
|
|
1337
1326
|
e && (a = DayPilot.abs(e));
|
|
1338
1327
|
var o = a.h, r = n.targetAlignment, s = document.createElement("div");
|
|
1339
1328
|
s.style.position = "absolute", "left" === r && (s.style.left = a.x + "px"), s.style.top = a.y + o + "px", n.zIndex && (s.style.zIndex = n.zIndex);
|
|
1340
1329
|
var l = document.createElement("div");
|
|
1341
1330
|
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;
|
|
1342
|
-
var d = n.
|
|
1343
|
-
if (i.startDate = d, i.
|
|
1331
|
+
var d = n.Pb() || n.date;
|
|
1332
|
+
if (i.startDate = d, i.Sb = d.getTimePart(), i.selectionDay = d.getDatePart(), i.init(), "right" === r) {
|
|
1344
1333
|
var c = a.x + a.w - i.nav.top.offsetWidth;
|
|
1345
1334
|
s.style.left = c + "px";
|
|
1346
1335
|
}
|
|
1347
|
-
this.
|
|
1336
|
+
this.Eb = !0, this.onShow && this.onShow();
|
|
1348
1337
|
} }, this.prepare(), this.init(); });
|
|
1349
1338
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
1350
1339
|
var DayPilot = {};
|
|
@@ -1352,7 +1341,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1352
1341
|
"use strict";
|
|
1353
1342
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1354
1343
|
var e = function () { }, t = {};
|
|
1355
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, a = null; this.v = "2025.3.
|
|
1344
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, a = null; this.v = "2025.3.691-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.Tb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, o) { o = o || {}; var r = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? r = n.id : "function" == typeof n.id ? r = n.id() : "function" == typeof n.value && (r = n.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Tb.submenu = null, null !== t.mouse) {
|
|
1356
1345
|
i.cssOnly || (i.cssOnly = !0);
|
|
1357
1346
|
var s = null;
|
|
1358
1347
|
if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof i.onShow) {
|
|
@@ -1361,15 +1350,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1361
1350
|
return;
|
|
1362
1351
|
}
|
|
1363
1352
|
var d = document.createElement("div");
|
|
1364
|
-
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.
|
|
1353
|
+
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.Ub("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) { i.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1365
1354
|
throw "No menu items defined.";
|
|
1366
1355
|
if (this.showMenuTitle) {
|
|
1367
1356
|
var c = document.createElement("div");
|
|
1368
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1357
|
+
c.innerHTML = this.menuTitle, c.className = this.Ub("title"), d.appendChild(c);
|
|
1369
1358
|
}
|
|
1370
1359
|
for (var u = 0; u < this.items.length; u++) {
|
|
1371
1360
|
var h = this.items[u], f = document.createElement("div");
|
|
1372
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1361
|
+
if (DayPilot.Util.addClass(f, this.Ub("item")), h.items && (DayPilot.Util.addClass(f, this.Ub("item_haschildren")), DayPilot.Util.addClass(d, this.Ub("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1373
1362
|
if ("-" === h.text) {
|
|
1374
1363
|
var v = document.createElement("div");
|
|
1375
1364
|
v.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(v);
|
|
@@ -1377,7 +1366,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1377
1366
|
else {
|
|
1378
1367
|
var p = document.createElement("a");
|
|
1379
1368
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1380
|
-
DayPilot.Util.addClass(p, i.
|
|
1369
|
+
DayPilot.Util.addClass(p, i.Ub("item_disabled"));
|
|
1381
1370
|
else {
|
|
1382
1371
|
if (h.onclick || h.onClick) {
|
|
1383
1372
|
p.item = h, p.onclick = function (e, t) { return function (n) { if ("function" == typeof e.onClick) {
|
|
@@ -1385,23 +1374,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1385
1374
|
if (i.item = e, i.source = t.source, i.originalEvent = n, i.preventDefault = function () { i.preventDefault.value = !0; }, e.onClick(i), i.preventDefault.value)
|
|
1386
1375
|
return void n.stopPropagation();
|
|
1387
1376
|
} e.onclick && e.onclick.call(t, n); }; }(h, p);
|
|
1388
|
-
var m = function (e, n) { return function (i) { i.stopPropagation(), i.preventDefault(); var a = function () { window.setTimeout(function () { n.source.calendar && (n.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
|
|
1377
|
+
var m = function (e, t) { return function (e) { e.stopPropagation(), e.preventDefault(), t.source.calendar && t.source.calendar.internal.touch && (t.source.calendar.internal.touch.active = !0); }; }, g = function (e, n) { return function (i) { i.stopPropagation(), i.preventDefault(); var a = function () { window.setTimeout(function () { n.source.calendar && n.source.calendar.internal.touch && (n.source.calendar.internal.touch.active = !1); }, 500); }; if ("function" == typeof e.onClick) {
|
|
1389
1378
|
var o = {};
|
|
1390
1379
|
if (o.item = e, o.source = n.source, o.originalEvent = i, o.preventDefault = function () { o.preventDefault.value = !0; }, e.onClick(o), o.preventDefault.value)
|
|
1391
1380
|
return void a();
|
|
1392
1381
|
} e.onclick && e.onclick.call(n, i), t.menuClean(), a(); }; };
|
|
1393
|
-
DayPilot.reNonPassive(p, "touchstart",
|
|
1382
|
+
DayPilot.reNonPassive(p, "touchstart", m(h, p)), DayPilot.reNonPassive(p, "touchend", g(h, p));
|
|
1394
1383
|
}
|
|
1395
1384
|
if (h.items && !h.disabled) {
|
|
1396
|
-
var
|
|
1397
|
-
p.ontouchend =
|
|
1385
|
+
var y = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), i.Vb(e, t); }; };
|
|
1386
|
+
p.ontouchend = y(h, p);
|
|
1398
1387
|
}
|
|
1399
1388
|
if (h.onclick)
|
|
1400
1389
|
e();
|
|
1401
1390
|
else if (h.href)
|
|
1402
1391
|
p.href = h.href.replace(/\x7B0\x7D/gim, r), h.target && p.setAttribute("target", h.target);
|
|
1403
1392
|
else if (h.command) {
|
|
1404
|
-
var
|
|
1393
|
+
var y = function (e, t) { return function (n) { var i = t.source, a = e; a.action = a.action ? a.action : "CallBack"; var o = i.calendar || i.root; if (i instanceof DayPilot.Link)
|
|
1405
1394
|
return void o.internal.linkMenuClick(a.command, i, a.action); if (i instanceof DayPilot.Selection)
|
|
1406
1395
|
return void o.internal.timeRangeMenuClick(a.command, i, a.action); if (i instanceof DayPilot.Event)
|
|
1407
1396
|
return void o.internal.eventMenuClick(a.command, i, a.action); if (i instanceof DayPilot.Selection)
|
|
@@ -1411,88 +1400,88 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1411
1400
|
case "selection": return void o.internal.timeRangeMenuClick(a.command, i, a.action);
|
|
1412
1401
|
default: return void o.internal.eventMenuClick(a.command, i, a.action);
|
|
1413
1402
|
} n.preventDefault(); }; };
|
|
1414
|
-
p.onclick =
|
|
1403
|
+
p.onclick = y(h, p), p.ontouchend = y(h, p);
|
|
1415
1404
|
}
|
|
1416
1405
|
}
|
|
1417
1406
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = n;
|
|
1418
|
-
var
|
|
1419
|
-
if (
|
|
1420
|
-
var
|
|
1421
|
-
|
|
1407
|
+
var b = document.createElement("span");
|
|
1408
|
+
if (b.className = i.Ub("item_text"), b.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(b), h.image) {
|
|
1409
|
+
var w = document.createElement("img");
|
|
1410
|
+
w.src = h.image, w.style.position = "absolute", w.style.top = "0px", w.style.left = "0px", p.appendChild(w);
|
|
1422
1411
|
}
|
|
1423
1412
|
if (h.icon) {
|
|
1424
|
-
var
|
|
1425
|
-
|
|
1413
|
+
var D = document.createElement("span");
|
|
1414
|
+
D.className = i.Ub("item_icon");
|
|
1426
1415
|
var x = document.createElement("i");
|
|
1427
|
-
x.className = h.icon,
|
|
1416
|
+
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
1428
1417
|
}
|
|
1429
1418
|
if (h.symbol) {
|
|
1430
|
-
var
|
|
1431
|
-
|
|
1432
|
-
var
|
|
1433
|
-
|
|
1434
|
-
var
|
|
1435
|
-
|
|
1419
|
+
var _ = "http://www.w3.org/2000/svg", C = document.createElementNS(_, "svg");
|
|
1420
|
+
C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
|
|
1421
|
+
var k = document.createElementNS(_, "use");
|
|
1422
|
+
k.setAttribute("href", h.symbol), C.appendChild(k);
|
|
1423
|
+
var P = document.createElement("span");
|
|
1424
|
+
P.className = i.Ub("item_symbol"), P.style.position = "absolute", P.style.top = "0px", P.style.left = "0px", P.appendChild(C), p.appendChild(P);
|
|
1436
1425
|
}
|
|
1437
|
-
var
|
|
1426
|
+
var S = function (e, n) { return function () { var a = (n.source, e), o = t.waitingSubmenu; if (o) {
|
|
1438
1427
|
if (o.parent === a)
|
|
1439
1428
|
return;
|
|
1440
1429
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
1441
|
-
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = a, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, i.
|
|
1442
|
-
p.onmouseover =
|
|
1430
|
+
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = a, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, i.Vb(a, n); }, 300)); }; };
|
|
1431
|
+
p.onmouseover = S(h, p), f.appendChild(p);
|
|
1443
1432
|
}
|
|
1444
1433
|
d.appendChild(f);
|
|
1445
1434
|
}
|
|
1446
1435
|
}
|
|
1447
|
-
var
|
|
1448
|
-
d.onclick =
|
|
1449
|
-
var
|
|
1436
|
+
var M = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1437
|
+
d.onclick = M, d.ontouchend = M, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), i.Tb.visible = !0, i.Tb.source = n, d.style.display = "";
|
|
1438
|
+
var T = d.offsetHeight, A = d.offsetWidth;
|
|
1450
1439
|
d.style.display = "none";
|
|
1451
|
-
var
|
|
1440
|
+
var E = document.documentElement.clientHeight, H = window.innerWidth, N = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
1452
1441
|
if (function () { var e = o.initiator; if (e) {
|
|
1453
1442
|
var t = e.div, n = e.e, i = e.area, r = i.visibility || i.v || "Visible", s = e.a;
|
|
1454
1443
|
if ("Visible" !== r && (s = DayPilot.Areas.createArea(t, n, i), t.appendChild(s), a = s), s) {
|
|
1455
1444
|
var l = DayPilot.abs(s);
|
|
1456
1445
|
o.x = l.x, o.y = l.y + l.h + 2;
|
|
1457
1446
|
}
|
|
1458
|
-
} }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, n = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (n - a >
|
|
1459
|
-
s = n - (n - a - (
|
|
1447
|
+
} }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, n = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (n - a > E - T && 0 !== E) {
|
|
1448
|
+
s = n - (n - a - (E - T) + N);
|
|
1460
1449
|
}
|
|
1461
1450
|
else
|
|
1462
|
-
s = n; if (i.
|
|
1463
|
-
l = e - (e - r - (
|
|
1451
|
+
s = n; if (i.Tb.y = s, d.style.top = s + "px", "right" === o.align && (e -= A), e - r > H - A && 0 !== H) {
|
|
1452
|
+
l = e - (e - r - (H - A) + N);
|
|
1464
1453
|
}
|
|
1465
1454
|
else
|
|
1466
|
-
l = e; i.
|
|
1467
|
-
var
|
|
1468
|
-
|
|
1469
|
-
var
|
|
1470
|
-
|
|
1455
|
+
l = e; i.Tb.x = l, d.style.left = l + "px"; }(), o.parentLink) {
|
|
1456
|
+
var I = o.parentLink, R = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), L = DayPilot.abs(o.parentLink.parentNode), z = L.x + I.offsetWidth, B = L.y - R;
|
|
1457
|
+
z + A > H && (z = Math.max(0, L.x - A));
|
|
1458
|
+
var U = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1459
|
+
B + T - U > E && (B = Math.max(0, E - T + U)), d.style.left = z + "px", d.style.top = B + "px";
|
|
1471
1460
|
}
|
|
1472
|
-
d.style.display = "", this.addShadow(d), this.
|
|
1473
|
-
} }, this.update = function () { if (i.
|
|
1474
|
-
var e = i.
|
|
1475
|
-
i.hide(), i.show(e, { "x": i.
|
|
1476
|
-
} }, this.
|
|
1461
|
+
d.style.display = "", this.addShadow(d), this.Tb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
1462
|
+
} }, this.update = function () { if (i.Tb.visible) {
|
|
1463
|
+
var e = i.Tb.source;
|
|
1464
|
+
i.hide(), i.show(e, { "x": i.Tb.x, "y": i.Tb.y });
|
|
1465
|
+
} }, this.Vb = function (e, t) { var n = e, a = t.source; if ((!i.Tb.submenu || i.Tb.submenu.item !== e) && (i.Tb.submenu && i.Tb.submenu.item !== e && (DayPilot.Util.removeClass(i.Tb.submenu.link.parentNode, i.Ub("item_haschildren_active")), i.Tb.submenu.menu.hide(), i.Tb.submenu = null), e.items)) {
|
|
1477
1466
|
var o = i.cloneOptions();
|
|
1478
|
-
o.items = e.items, i.
|
|
1479
|
-
} }, this.
|
|
1467
|
+
o.items = e.items, i.Tb.submenu = {}, i.Tb.submenu.menu = new DayPilot.Menu(o), i.Tb.submenu.menu.Wb = i, i.Tb.submenu.menu.show(a, { "submenu": !0, "parentLink": t, "parentItem": n }), i.Tb.submenu.item = e, i.Tb.submenu.link = t, DayPilot.Util.addClass(t.parentNode, i.Ub("item_haschildren_active"));
|
|
1468
|
+
} }, this.Ub = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Tb.submenu && this.Tb.submenu.menu.hide(); var n = t.waitingSubmenu; if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.Tb.div && this.Tb.div.parentNode === document.body && document.body.removeChild(this.Tb.div), a && (DayPilot.de(a), a = null), i.Tb.visible = !1, i.Tb.source = null, i.Wb && e.hideParent && i.Wb.hide(e), DayPilot.Menu.active === i && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
1480
1469
|
var o = {};
|
|
1481
1470
|
this.onHide(o);
|
|
1482
1471
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { i.hide(e); }, i.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(n) ? null : n; if (o)
|
|
1483
1472
|
for (var r in o)
|
|
1484
|
-
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.
|
|
1485
|
-
this[i] = t[i]; this.
|
|
1486
|
-
n.
|
|
1473
|
+
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var n = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.l = null, this.Ma = !1; for (var i in t)
|
|
1474
|
+
this[i] = t[i]; this.Xb = function (e) { return this.theme + "_" + e; }, this.u = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Xb("main"), DayPilot.list(n.items).forEach(function (e) { var i = document.createElement("span"); i.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), i.className = n.Xb("item"), e.cssClass && i.classList.add(e.cssClass), i.data = e, i.onclick = function (t) { if (n.active && n.active.item === e)
|
|
1475
|
+
n.Yb();
|
|
1487
1476
|
else if (e.children)
|
|
1488
|
-
return void n.
|
|
1477
|
+
return void n.Zb(i); if ("function" == typeof e.onClick) {
|
|
1489
1478
|
var a = {};
|
|
1490
1479
|
a.item = e, a.originalEvent = t, e.onClick(a);
|
|
1491
|
-
} }, i.onmousedown = function (e) { e.stopPropagation(); }, i.onmouseover = function () { n.active && n.active.item !== e && n.
|
|
1492
|
-
n.
|
|
1480
|
+
} }, i.onmousedown = function (e) { e.stopPropagation(); }, i.onmouseover = function () { n.active && n.active.item !== e && n.Zb(i); }, t.appendChild(i), n.elements.items.push(i); }); }, this.Yb = function () { var e = n.Xb("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.$b = function (e) { return !!n.active && n.active.item === e.data; }, this.Zb = function (e) { if (!n.$b(e)) {
|
|
1481
|
+
n.Yb();
|
|
1493
1482
|
var t = e.data, i = n.active = {};
|
|
1494
1483
|
i.item = t, i.div = e;
|
|
1495
|
-
var a = n.
|
|
1484
|
+
var a = n.Xb("item_active");
|
|
1496
1485
|
DayPilot.Util.addClass(e, a);
|
|
1497
1486
|
var o = DayPilot.abs(e);
|
|
1498
1487
|
if (t.children) {
|
|
@@ -1501,11 +1490,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1501
1490
|
"right" === t.align && (r += o.w), i.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": n.windowMargin });
|
|
1502
1491
|
}
|
|
1503
1492
|
DayPilot.MenuBar.active = n;
|
|
1504
|
-
} }, this.init = function () { return this.u(), this.
|
|
1493
|
+
} }, this.init = function () { return this.u(), this.Ma = !0, this; }, this.dispose = function () { this.Ma && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Yb(), 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.wheel = 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)
|
|
1505
1494
|
return null; var t = e.touches[0], n = {}; return n.x = t.pageX, n.y = t.pageY, n; }, 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) {
|
|
1506
1495
|
var n = DayPilot.Menu.active;
|
|
1507
1496
|
if (n) {
|
|
1508
|
-
var i = n.
|
|
1497
|
+
var i = n.Tb.source;
|
|
1509
1498
|
i && i.calendar === e.calendar && t.menuClean();
|
|
1510
1499
|
}
|
|
1511
1500
|
}
|
|
@@ -1549,24 +1538,24 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1549
1538
|
throw "No CSS registration method found";
|
|
1550
1539
|
t.sheet.addRule(e, i, a);
|
|
1551
1540
|
} }, e; }, i = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", a = new n;
|
|
1552
|
-
a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"),
|
|
1553
|
-
a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.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==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_time", "position: relative;"), a.add(".modal_default_form_item_time_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_datetime_parent", "display: flex;"), a.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), a.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.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;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.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;"), a.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==\")"), a.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;"), a.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==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.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;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), a.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), a.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.Zb = !1, this.$b = null, this._b = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1554
|
-
throw "This modal dialog is already displayed."; if (this.div || this.
|
|
1541
|
+
a.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), a.add(".modal_default_main:focus", "outline: none;"), a.add(".modal_default_content", "padding: 10px 0px;"), a.add(".modal_default_inner", "padding: 20px;"), a.add(".modal_default_input", "padding: 10px 0px;"), a.add(".modal_default_buttons", "margin-top: 10px;"), a.add(".modal_default_buttons", "padding: 10px 0px;"),
|
|
1542
|
+
a.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), a.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), a.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), a.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), a.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item label", "display: block;"), a.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), a.add(".modal_default_form_item_label", "margin: 2px 0px;"), a.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), a.add(".modal_default_form_item_invalid", ""), a.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), a.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_default_ok", "padding: 3px; width: 80px;"), a.add(".modal_default_cancel", "padding: 3px; width: 80px;"), a.add(".modal_default_form_item_date", "position: relative;"), a.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==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && a.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), a.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), a.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), a.add(".modal_default_form_item_searchable", "position: relative;"), a.add(".modal_default_form_item_searchable_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_time", "position: relative;"), a.add(".modal_default_form_item_time_icon", ""), a.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(" + i + ");"), a.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), a.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), a.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), a.add(".modal_default_form_item_datetime_parent", "display: flex;"), a.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), a.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), a.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), a.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), a.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), a.add(".modal_default_form_item_tabular_row", "display: table-row;"), a.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), a.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), a.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), a.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), a.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;"), a.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), a.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;"), a.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==\")"), a.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;"), a.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==\")"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), a.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), a.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), a.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), a.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), a.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), a.add(".modal_min_ok", "padding: 3px 10px;"), a.add(".modal_min_cancel", "padding: 3px 10px;"), a.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;"), a.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), a.add(".navigator_modal_month", "font-size: 11px;"), a.add(".navigator_modal_day", "color: black;"), a.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), a.add(".navigator_modal_dayheader", "color: black;"), a.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), a.add(".navigator_modal_dayother", "color: gray;"), a.add(".navigator_modal_todaybox", "border: 1px solid red;"), a.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), a.add(".navigator_modal_busy", "font-weight: bold;"), a.add(".navigator_modal_cell", "text-align: center;"), a.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), a.add(".navigator_modal_title", "text-align: center;"), a.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), a.add(".navigator_modal_dayheader", "text-align: center;"), a.add(".navigator_modal_weeknumber", "text-align: center;"), a.add(".navigator_modal_cell_text", "cursor: pointer;"), a.add(".navigator_modal_todaysection", "box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--dp-nav-border-color);"), a.add(".navigator_modal_todaysection_button", "cursor: pointer; color: #333; background-color: #f0f0f0; border: 1px solid var(--dp-nav-border-color); padding: 5px 10px; border-radius: 0px; "), a.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._b = !1, this.bc = null, this.cc = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1543
|
+
throw "This modal dialog is already displayed."; if (this.div || this.dc(), this.sb(), this.useIframe) {
|
|
1555
1544
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
1556
1545
|
window.setTimeout(t(this, e), 0);
|
|
1557
1546
|
}
|
|
1558
1547
|
else
|
|
1559
|
-
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.
|
|
1548
|
+
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.sb(), this.ec(), this.fc(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1560
1549
|
throw "This modal dialog is already displayed."; if (this.useIframe) {
|
|
1561
|
-
this.div || this.
|
|
1550
|
+
this.div || this.dc();
|
|
1562
1551
|
var n = this.loadingHtml;
|
|
1563
|
-
n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.
|
|
1552
|
+
n && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", n)), this.re(this.iframe, "load", this.gc), this.iframe.src = e, this.sb(), this.ec(), this.fc();
|
|
1564
1553
|
}
|
|
1565
1554
|
else
|
|
1566
|
-
t.
|
|
1555
|
+
t.hc({ "url": e, "success": function (e) { var n = e.request.responseText; t.showHtml(n); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this.fc = function () { if ("function" == typeof t.onShow) {
|
|
1567
1556
|
var e = {};
|
|
1568
|
-
e.root = t.
|
|
1569
|
-
} }, this.
|
|
1557
|
+
e.root = t.ic(), e.modal = t, t.onShow(e);
|
|
1558
|
+
} }, this.ic = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.hc = function (e) { var t = new XMLHttpRequest; if (t) {
|
|
1570
1559
|
var n = e.method || "GET", i = e.success || function () { }, a = e.error || function () { }, o = e.data, r = e.url;
|
|
1571
1560
|
t.open(n, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
1572
1561
|
if (200 === t.status || 304 === t.status) {
|
|
@@ -1579,45 +1568,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1579
1568
|
}
|
|
1580
1569
|
else
|
|
1581
1570
|
window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
1582
|
-
} }, this.
|
|
1583
|
-
for (var i = n() - 40, a = this.width; a < i && this.
|
|
1571
|
+
} }, this.sb = function () { delete this.result; var e = window, n = document, i = e.pageYOffset ? e.pageYOffset : n.documentElement && n.documentElement.scrollTop ? n.documentElement.scrollTop : n.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 = i + 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.kc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.gc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.jc().y; }, n = function () { return t.jc().x; }; if (this.useIframe) {
|
|
1572
|
+
for (var i = n() - 40, a = this.width; a < i && this.lc(); a += 10)
|
|
1584
1573
|
this.div.style.width = a + "px", this.div.style.marginLeft = "-" + Math.floor(a / 2) + "px";
|
|
1585
|
-
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.
|
|
1574
|
+
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.nc(); r += 10)
|
|
1586
1575
|
this.iframe.style.height = r + "px", this.div.style.height = r + "px";
|
|
1587
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
1576
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.gc);
|
|
1588
1577
|
}
|
|
1589
1578
|
else
|
|
1590
|
-
this.div.style.height = ""; }, this.
|
|
1579
|
+
this.div.style.height = ""; }, this.lc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollWidth, i = e.body.children, a = 0; a < i.length; a++) {
|
|
1591
1580
|
var o = i[a].offsetLeft + i[a].offsetWidth;
|
|
1592
1581
|
n = Math.max(n, o);
|
|
1593
|
-
} return n > t.clientWidth; }, this.
|
|
1582
|
+
} return n > t.clientWidth; }, this.nc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, n = t.scrollHeight, i = e.body.children, a = 0; a < i.length; a++) {
|
|
1594
1583
|
var o = i[a].offsetTop + i[a].offsetHeight;
|
|
1595
1584
|
n = Math.max(n, o);
|
|
1596
|
-
} return n > t.clientHeight; }, this.
|
|
1585
|
+
} return n > t.clientHeight; }, this.jc = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1597
1586
|
var t = e.documentElement.clientWidth, n = e.documentElement.clientHeight;
|
|
1598
1587
|
return { x: t, y: n };
|
|
1599
|
-
} var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.
|
|
1600
|
-
var e = e || window.event, n = t.mc(e), i = n.x - t.
|
|
1601
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t
|
|
1602
|
-
} }, this.
|
|
1588
|
+
} var t = e.body.clientWidth, n = e.body.clientHeight; return { x: t, y: n }; }, this.ec = function () { this._b || (this.re(window, "resize", this.oc), this.re(window, "scroll", this.pc), this.dragDrop && (this.re(document, "mousemove", this.qc), this.re(document, "mouseup", this.rc)), this._b = !0); }, this.sc = function () { this.ue(window, "resize", this.oc), this.ue(window, "scroll", this.pc), this.dragDrop && (this.ue(document, "mousemove", this.qc), this.ue(document, "mouseup", this.rc)), this._b = !1; }, this.tc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.uc(), t.cc = t.mc(e || window.event), t.bc = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.qc = function (e) { if (t.cc) {
|
|
1589
|
+
var e = e || window.event, n = t.mc(e), i = n.x - t.cc.x, a = n.y - t.cc.y;
|
|
1590
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.bc.y + a + "px", t.div.style.left = t.bc.x + i + "px";
|
|
1591
|
+
} }, this.rc = function (e) { t.cc && (t.vc(), t.div.style.cursor = null, t.cc = null); }, this.uc = function () { if (this.useIframe) {
|
|
1603
1592
|
var e = document.createElement("div");
|
|
1604
1593
|
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;
|
|
1605
|
-
} }, this.
|
|
1594
|
+
} }, this.vc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.oc = function () { t.wc(), t.kc(); }, this.pc = function () { t.wc(); }, this.kc = function () { if (!t.left && t.div) {
|
|
1606
1595
|
var e = t.div.offsetWidth;
|
|
1607
1596
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
1608
|
-
} }, this.
|
|
1609
|
-
var e = t.
|
|
1597
|
+
} }, this.wc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1598
|
+
var e = t.xc.scrollY();
|
|
1610
1599
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1611
|
-
} }, this.
|
|
1612
|
-
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.
|
|
1600
|
+
} }, this.xc = {}, this.xc.container = function () { return t.container || document.body; }, this.xc.scrollY = function () { var e = t.xc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, n) { e.addEventListener ? e.addEventListener(t, n, !1) : e.attachEvent && e.attachEvent("on" + t, n); }, this.ue = function (e, t, n) { e.removeEventListener ? e.removeEventListener(t, n, !1) : e.detachEvent && e.detachEvent("on" + t, n); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1601
|
+
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.dc = function () { var e = t.xc.container(), n = e === document.body, i = n ? "fixed" : "absolute", a = document.createElement("div"); a.id = this.id + "hide", a.style.position = i, a.style.left = "0px", a.style.top = "0px", a.style.right = "0px", a.style.bottom = "0px", a.oncontextmenu = function () { return !1; }, a.onmousedown = function () { return !1; }, e.appendChild(a); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = i, 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.tc), 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 = a; }, this.setInnerHTML = function (e, n) { var i = window.frames[e], a = i.contentWindow || i.document || i.contentDocument; a.document && (a = a.document), null == a.body && a.write("<body></body>"), n.nodeType ? a.body.appendChild(n) : a.body.innerHTML = n, t.autoStretch && (t.autoStretchFirstLoadOnly && t.yc || (t.stretch(), t.yc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.ic(), n = e.querySelectorAll("input, textarea, select"), i = {}, a = 0; a < n.length; a++) {
|
|
1613
1602
|
var o = n[a], r = o.name;
|
|
1614
1603
|
if (r) {
|
|
1615
1604
|
var s = o.value;
|
|
1616
1605
|
i[r] = s;
|
|
1617
1606
|
}
|
|
1618
|
-
} t.close(i); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.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(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.
|
|
1607
|
+
} t.close(i); }, this.hide = function (e) { e = e || {}; var n = {}; n.backgroundClick = !!e.backgroundClick, n.result = this.result, n.canceled = "undefined" == typeof this.result, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(n), n.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(n) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.sc(), t.zc(t.div), t.zc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.zc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.Ac = function () { if (e)
|
|
1619
1608
|
for (var t in e)
|
|
1620
|
-
this[t] = e[t]; }, this.
|
|
1609
|
+
this[t] = e[t]; }, this.Ac(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var n = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (i, a) { t.onClosed = function (e) { i(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 = n, 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 n = t.okText || "OK", i = t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, o) { t.onClosed = function (e) { a(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 = n, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = i, 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, n) { "object" == typeof t && (n = t, t = ""), n = n || {}, n.height = n.height || 40, n.useIframe = !1; var i = n.okText || "OK", a = n.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { n.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(n), 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) {
|
|
1621
1610
|
case 13:
|
|
1622
1611
|
s.close(this.value);
|
|
1623
1612
|
break;
|
|
@@ -1667,28 +1656,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1667
1656
|
y && y.focus();
|
|
1668
1657
|
}
|
|
1669
1658
|
else {
|
|
1670
|
-
var
|
|
1671
|
-
o.autoFocus &&
|
|
1659
|
+
var D = h.firstFocusable();
|
|
1660
|
+
o.autoFocus && D ? D.focus() : o.div.focus();
|
|
1672
1661
|
} }); }, 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)
|
|
1673
1662
|
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, n) { return t = t || function () { }, n = n || function () { }, e(t, n), DayPilot.getPromise(e); }, this["catch"] = function (n) { return t.then(null, n), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
|
|
1674
|
-
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.
|
|
1663
|
+
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.Bc = [], this.Cc = null, this.canceling = !1, this.Dc = [], this.f = [], this.Ec = null, e = e || {}; for (var t in e)
|
|
1675
1664
|
this[t] = e[t]; };
|
|
1676
|
-
r.prototype.create = function () { return this.load(), this.render(), this.
|
|
1665
|
+
r.prototype.create = function () { return this.load(), this.render(), this.Ec; }, r.prototype.render = function () { var e = this; this.Ec = document.createElement("div"), this.Bc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) { var t = this.theme, n = this, i = document.createElement("div"); if (i.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? i.className += " " + t + "_form_item_" + e.type : i.className += " " + t + "_form_title", e.data.cssClass && (i.className += " " + e.data.cssClass), !e.isValue) {
|
|
1677
1666
|
var a = document.createElement("div");
|
|
1678
1667
|
a.className = t + "_form_item_label", a.innerText = e.text, i.appendChild(a);
|
|
1679
|
-
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, n.
|
|
1668
|
+
} var o = this.createInteractive(e); o.onInput = function (e) { if (e = e || {}, n.Fc(o, { "debounce": !e.immediate }), "function" == typeof n.onChange) {
|
|
1680
1669
|
var t = {};
|
|
1681
1670
|
t.result = n.serialize(), n.onChange(t);
|
|
1682
|
-
} }, o.onBlur = function () { n.canceling || n.
|
|
1671
|
+
} }, o.onBlur = function () { n.canceling || n.Fc(o); }, o.apply(e), o.Ec = i, o.row = e, o.element && i.appendChild(o.element), this.f.push(o), this.Ec.appendChild(i); }, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var i = e.Fc(n); t = t && i; }), t; }, r.prototype.Fc = function (e, t) { function n() { e.Gc && (e.Gc.remove(), e.Gc = null), e.Ec.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Gc = t, e.Ec.appendChild(t); } t = t || {}; var i = t.debounce, a = 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) {
|
|
1683
1672
|
var c = {};
|
|
1684
1673
|
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
1685
1674
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
1686
1675
|
if (c.valid)
|
|
1687
|
-
clearTimeout(this.
|
|
1676
|
+
clearTimeout(this.Dc[o.field]), e.Gc && (e.Gc.remove(), e.Gc = null), e.Ec.classList.remove(u);
|
|
1688
1677
|
else if (!a)
|
|
1689
1678
|
if (i) {
|
|
1690
1679
|
var f = 1e3;
|
|
1691
|
-
clearTimeout(this.
|
|
1680
|
+
clearTimeout(this.Dc[o.field]), this.Dc[o.field] = setTimeout(function () { n(); }, f);
|
|
1692
1681
|
}
|
|
1693
1682
|
else
|
|
1694
1683
|
n();
|
|
@@ -1700,35 +1689,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1700
1689
|
catch (e) {
|
|
1701
1690
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
1702
1691
|
} for (var a in n)
|
|
1703
|
-
this.setValue(a, n[a]); }, r.prototype.setValue = function (e, t) { this.
|
|
1692
|
+
this.setValue(a, n[a]); }, r.prototype.setValue = function (e, t) { this.Bc.forEach(function (n) { n.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.Cc ? this.Cc : this.Bc).forEach(function (n) { var i = e.updateState(n, { enabled: t[n.level] && !n.data.disabled }); i.isValue && (t[i.level + 1] = i.enabled && i.checked); }); }, r.prototype.processFormItem = function (e, t) {
|
|
1704
1693
|
var n = this, i = this.getFieldType(e), a = [];
|
|
1705
1694
|
if ("radio" === i) {
|
|
1706
1695
|
if (e.name) {
|
|
1707
1696
|
var o = new s;
|
|
1708
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, n.
|
|
1697
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, n.Bc.push(o), a.push(o);
|
|
1709
1698
|
}
|
|
1710
|
-
e.options.forEach(function (o) {
|
|
1699
|
+
e.options.forEach(function (o) {
|
|
1700
|
+
var r = new s;
|
|
1701
|
+
r.field = e.id, r.data = o, r.level = t, r.type = i, r.isValue = !0, r.text = o.name, r.resolved = o.id, n.Bc.push(r), a.push(r),
|
|
1702
|
+
o.children && o.children.forEach(function (e) { var i = n.processFormItem(e, t + 1); a = a.concat(i); });
|
|
1703
|
+
});
|
|
1711
1704
|
}
|
|
1712
1705
|
else if ("title" === i) {
|
|
1713
1706
|
var o = new s;
|
|
1714
|
-
o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1,
|
|
1715
|
-
o.text = e.name, n.zc.push(o), a.push(o);
|
|
1707
|
+
o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = e.name, n.Bc.push(o), a.push(o);
|
|
1716
1708
|
}
|
|
1717
1709
|
else if ("image" === i) {
|
|
1718
1710
|
var o = new s;
|
|
1719
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.
|
|
1711
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.Bc.push(o), a.push(o);
|
|
1720
1712
|
}
|
|
1721
1713
|
else if ("html" === i) {
|
|
1722
1714
|
var o = new s;
|
|
1723
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.
|
|
1715
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.Bc.push(o), a.push(o);
|
|
1724
1716
|
}
|
|
1725
1717
|
else if ("scrollable" === i) {
|
|
1726
1718
|
var o = new s;
|
|
1727
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.
|
|
1719
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = i, o.interactive = !1, o.text = null, n.Bc.push(o), a.push(o);
|
|
1728
1720
|
}
|
|
1729
1721
|
else {
|
|
1730
1722
|
var o = new s;
|
|
1731
|
-
o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], n.
|
|
1723
|
+
o.field = e.id, o.data = e, o.level = t, o.type = i, o.text = e.name, o.children = [], n.Bc.push(o), a.push(o);
|
|
1732
1724
|
}
|
|
1733
1725
|
return "checkbox" === i && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var i = n.processFormItem(e, t + 1); a = a.concat(i); })), a;
|
|
1734
1726
|
}, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
|
|
@@ -1761,11 +1753,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1761
1753
|
a.close(), n = !0;
|
|
1762
1754
|
break;
|
|
1763
1755
|
default: n = !0;
|
|
1764
|
-
} n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { a.show(); }, i.onclick = function () { a.show(); }, i.oninput = function (e) { n.onInput(); }, i.onblur = function (e) { n.onBlur(); }, n.element = i, n.picker = a, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = a.date ? a.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.
|
|
1765
|
-
return {}; var t = a.
|
|
1756
|
+
} n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { a.show(); }, i.onclick = function () { a.show(); }, i.oninput = function (e) { n.onInput(); }, i.onblur = function (e) { n.onBlur(); }, n.element = i, n.picker = a, n.canFocus = function () { return !n.element.disabled; }, n.focus = function () { n.element.focus(); }, n.save = function () { var t = a.date ? a.date.toString() : null, n = {}; return n[e.field] = t, n; }, n; }, "time": function () { return t.Hc(e); }, "datetime": function () { return t.Ic(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var n = t.element; n.value = e.value, n.disabled = !e.enabled; }; var n = document.createElement("select"); return n.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.Jc = e.id, n.appendChild(t); }), n.onchange = function (e) { t.onInput({ "immediate": !0 }); }, n.onblur = function (e) { t.onBlur(); }, t.element = n, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, i = n.options[n.selectedIndex]; i && "undefined" != typeof i.Jc && (t = i.Jc); var a = {}; return a[e.field] = t, a; }, t; }, "searchable": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), a = i.create(); return n.element = a, n.searchable = i, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = i.selected && i.selected.id, n = {}; return n[e.field] = t, n; }, n; }, "radio": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), a = document.createElement("input"); a.type = "radio", a.name = e.field, a.Jc = e.resolved, a.onchange = function (e) { var i = n.row; t.findRowsByField(i.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(i, { checked: !0 }), t.applyState(), n.onInput({ "immediate": !0 }); }, a.onblur = function (e) { n.onBlur(); }, i.appendChild(a); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.radio = a, n.canFocus = function () { return !1; }, n.focus = function () { n.radio.focus(); }, n.save = function () { if (!a.checked)
|
|
1757
|
+
return {}; var t = a.Jc, n = {}; return n[e.field] = t, n; }, n; }, "checkbox": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var i = document.createElement("label"), a = document.createElement("input"); a.type = "checkbox", a.name = e.field, a.Jc = e.resolved, a.onchange = function (e) { var i = n.row; t.updateState(i, { checked: this.checked }), t.applyState(), n.onInput({ "immediate": !0 }); }, a.onblur = function (e) { n.onBlur(); }, i.appendChild(a); var o = document.createTextNode(e.text); return i.append(o), n.element = i, n.checkbox = a, n.canFocus = function () { return !1; }, n.focus = function () { n.checkbox.focus(); }, n.save = function () { var t = a.checked, n = {}; return n[e.field] = t, n; }, n; }, "table": function () { var n = new l; n.apply = function (e) { n.row = e; var t = n.table; t.disabled = !e.enabled, t.load(e.value || []); }; var i = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { n.onInput(); } }), a = i.create(); return n.element = a, n.table = i, n.canFocus = function () { return !1; }, n.focus = function () { n.table.focus(); }, n.save = function () { var t = i.save(), n = {}; return n[e.field] = t, n; }, n; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : n[e.type](); }, r.prototype.Hc = function (e) { var t = this, n = new l; n.apply = function (e) { n.row = e; var t = n.searchable; t.disabled = !e.enabled, t.select(e.value); }; var i = [], a = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(a) || (a = 15); for (var o = 60 / a, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
|
|
1766
1758
|
var h = c.addMinutes(a * u), f = {};
|
|
1767
1759
|
f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), i.push(f);
|
|
1768
|
-
} var v = new d({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, r.prototype.
|
|
1760
|
+
} var v = new d({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }), p = v.create(); return n.element = p, n.searchable = v, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.searchable.focus(); }, n.save = function () { var t = v.selected && v.selected.id, n = {}; return n[e.field] = t, n; }, n; }, r.prototype.Ic = function (e) { var t = this, n = new l; n.apply = function (e) { n.row = e; var i = n.searchable; i.disabled = !e.enabled; var a = new DayPilot.Date(e.value).toString("HH:mm"); i.select(a); var o = n.dateInput, r = n.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
|
|
1769
1761
|
var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
|
|
1770
1762
|
r.locale = s, r.pattern = l.datePattern;
|
|
1771
1763
|
} 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 i = function () { var i = document.createElement("input"); i.name = e.field; var a = new DayPilot.DatePicker({ target: i, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { n.onInput({ "immediate": !0 }); } }); return i.picker = a, i.className = t.theme + "_input_date", i.type = "text", i.onkeydown = function (e) { var n = !1; switch (e.keyCode) {
|
|
@@ -1782,11 +1774,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1782
1774
|
} n || (e.preventDefault(), e.stopPropagation()); }, i.onfocus = function () { a.show(); }, i.onclick = function () { a.show(); }, i.oninput = function (e) { n.onInput(); }, i.onblur = function (e) { n.onBlur(); }, n.dateInput = i, n.picker = a, i; }(), a = function () { var i = [], a = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(a) || (a = 15); for (var o = 60 / a, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
1783
1775
|
var u = l.addMinutes(a * c), h = {};
|
|
1784
1776
|
h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), i.push(h);
|
|
1785
|
-
} var f = new d({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(i), o.appendChild(a), n.element = o, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, i = n.picker.date ? n.picker.date.toString() : null, a = new DayPilot.Date(i).getDatePart(), o = DayPilot.Date.parse(a.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, n; }, r.prototype.findRowsByField = function (e) { return this.
|
|
1777
|
+
} var f = new d({ data: i, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && n.onInput({ "immediate": !0 }); } }); return n.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(i), o.appendChild(a), n.element = o, n.canFocus = function () { return !n.searchable.disabled; }, n.focus = function () { n.dateInput.focus(); }, n.save = function () { var t = n.searchable.selected && n.searchable.selected.id, i = n.picker.date ? n.picker.date.toString() : null, a = new DayPilot.Date(i).getDatePart(), o = DayPilot.Date.parse(a.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, n; }, r.prototype.findRowsByField = function (e) { return this.Bc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (n) { return n.row.field === e && ("radio" !== n.row.type || n.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 n = this.Cc ? this.Cc : this.Bc, i = n.indexOf(e); return this.Cc = n.map(function (n) { if (n !== e)
|
|
1786
1778
|
return n; if (e.propsEqual(t))
|
|
1787
1779
|
return e; var i = e.clone(); for (var a in t)
|
|
1788
|
-
i[a] = t[a]; return i; }), this.
|
|
1789
|
-
this.
|
|
1780
|
+
i[a] = t[a]; return i; }), this.Cc[i]; }, r.prototype.updateInteractive = function (e) { var t = this.Cc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.Cc) {
|
|
1781
|
+
this.Cc.filter(function (t, n) { return e.Bc[n] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.Bc = this.Cc, this.Cc = null;
|
|
1790
1782
|
} }, 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 n = t.save(); for (var i in n)
|
|
1791
1783
|
e[i] = n[i]; }), e; };
|
|
1792
1784
|
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; };
|
|
@@ -1794,45 +1786,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1794
1786
|
"id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
|
|
1795
1787
|
if (this[t] !== e[t])
|
|
1796
1788
|
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)); };
|
|
1797
|
-
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.
|
|
1789
|
+
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.Kc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Lc = null, this.Mc = null, this.Nc = !1, this.Oc = null, this.Pc = null, this.q = [], this.Qc = null, e = e || {}; var t = this, n = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Lc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Lc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Kc; }, set: function (e) { this.Kc = e, this.Oc && (this.Oc.disabled = e, e && this.Rc()); } }); for (var i in e)
|
|
1798
1790
|
n[i] || (this[i] = e[i]); for (var i in e)
|
|
1799
1791
|
n[i] && n[i].post(e[i]); };
|
|
1800
|
-
d.prototype.select = function (e) { return this.
|
|
1792
|
+
d.prototype.select = function (e) { return this.Lc = this.data.find(function (t) { return t.id === e; }), this.Sc(!1), this; }, d.prototype.create = function () { function e(e) { var n = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (n = "includes"), e = e || n || "includes", h.style.display = "", h.style.top = v.offsetHeight + "px", h.style.left = "0px", h.style.width = v.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Mc = null, l.q = []; var a = null; l.data.forEach(function (n) { var o = n.name || n.id; if ("includes" === e) {
|
|
1801
1793
|
if (o.toLowerCase().indexOf(v.value.toLowerCase()) === -1)
|
|
1802
1794
|
return;
|
|
1803
1795
|
}
|
|
1804
1796
|
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(v.value.toLowerCase()))
|
|
1805
|
-
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = n, n === l.
|
|
1797
|
+
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = n, n === l.Lc && (l.Mc = r), a || (a = r), r.addEventListener("mousedown", function (e) { i(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Mc !== r && (l.Mc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.q.push(r); }), l.Mc || (l.Mc = a), 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.Mc && (l.Mc.className += " " + l.theme + "_list_item_highlight", t && !n(l.Mc, h) && l.Mc.scrollIntoView()); } function n(e, t) { var n = e.getBoundingClientRect(), i = t.getBoundingClientRect(); return n.top >= i.top && n.bottom <= i.bottom; } function i(e) { var t = e.item; l.Lc = t, l.Sc(!0), o(), r(); } function a() { l.Rc(); } function o() { l.s(); } function r() { l.Nc = !0, v.setAttribute("readonly", "readonly"), v.focus(); } function s() { l.Nc = !1, v.removeAttribute("readonly"), v.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.Nc ? (l.focus(), s()) : (a(), 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.Qc = f; var v = document.createElement("input"); return v.type = "text", v.className = this.theme + "_input", v.disabled = this.Kc, v.addEventListener("click", function (e) { s(); }), v.addEventListener("focus", function (t) { e("all"); }), v.addEventListener("input", function (t) { e(); }), v.addEventListener("blur", function (e) { v.removeAttribute("readonly"), a(); }), v.addEventListener("keydown", function (e) { if (l.Nc) {
|
|
1806
1798
|
if ("Enter" === e.key)
|
|
1807
1799
|
return;
|
|
1808
1800
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
1809
1801
|
return;
|
|
1810
1802
|
s();
|
|
1811
1803
|
} if ("ArrowDown" === e.key) {
|
|
1812
|
-
var n = d.q.indexOf(d.
|
|
1813
|
-
n + 1 < d.q.length && (d.
|
|
1804
|
+
var n = d.q.indexOf(d.Mc);
|
|
1805
|
+
n + 1 < d.q.length && (d.Mc = d.q[n + 1]), t();
|
|
1814
1806
|
}
|
|
1815
1807
|
else if ("ArrowUp" === e.key) {
|
|
1816
|
-
var n = d.q.indexOf(d.
|
|
1817
|
-
n - 1 >= 0 && (d.
|
|
1808
|
+
var n = d.q.indexOf(d.Mc);
|
|
1809
|
+
n - 1 >= 0 && (d.Mc = d.q[n - 1]), t();
|
|
1818
1810
|
}
|
|
1819
1811
|
else
|
|
1820
|
-
"Enter" === e.key ? l.
|
|
1812
|
+
"Enter" === e.key ? l.Mc ? (e.stopPropagation(), i(l.Mc)) : (e.stopPropagation(), a(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), a(), r()); }), this.Oc = v, this.Pc = h, this.Lc || (this.Lc = this.data[0], this.Lc && (v.value = this.Lc.name)), c.appendChild(v), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.Rc = function () { this.s(), this.Lc ? this.Oc.value = this.Lc.name : (this.Oc.value = "", this.Sc(!0)); }, d.prototype.focus = function () { this.Nc = !0, this.Oc.setAttribute("readonly", "readonly"), this.Oc.focus(), this.Rc(); }, d.prototype.s = function () { this.Pc.style.display = "none"; }, d.prototype.Sc = function (e) { if (this.Qc.value = this.selected ? this.selected.id : null, this.Lc ? this.Oc.value = this.Lc.name : this.Oc.value = "", "function" == typeof this.onSelect) {
|
|
1821
1813
|
var t = { control: this, ui: e };
|
|
1822
1814
|
this.onSelect(t);
|
|
1823
1815
|
} };
|
|
1824
|
-
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.
|
|
1816
|
+
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.Tc = null, this.Bc = [], e = e || {}; for (var t in e)
|
|
1825
1817
|
this[t] = e[t]; };
|
|
1826
|
-
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var i = document.createElement("div"); i.className = this.theme + "_table"; var a = this.
|
|
1818
|
+
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var n = document.createElement("input"); n.type = "hidden", n.name = e.name, n.table = this, t.appendChild(n); var i = document.createElement("div"); i.className = this.theme + "_table"; var a = this.Uc(); i.appendChild(a); var o = e.Vc({}); o.spacer = !0; var r = this.Wc(o); r.classList.add(e.theme + "_spacer"), i.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", i.appendChild(s), t.appendChild(i); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = i, 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) {
|
|
1827
1819
|
var n = e.item.onNewRow, i = {};
|
|
1828
1820
|
if ("function" == typeof n) {
|
|
1829
1821
|
var a = {};
|
|
1830
1822
|
a.result = e.form.serialize(), a.value = {}, n(a), i = a.value;
|
|
1831
1823
|
}
|
|
1832
|
-
var o = e.
|
|
1833
|
-
e.
|
|
1834
|
-
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.
|
|
1835
|
-
throw new Error("Array expected"); this.data = e, this
|
|
1824
|
+
var o = e.Vc(i);
|
|
1825
|
+
e.Bc.push(o), e.Xc(), e.Yc();
|
|
1826
|
+
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.Uc = 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 (n) { var i = document.createElement("div"); i.classList.add(e.theme + "_cell"), i.innerText = n.name, t.appendChild(i); }), t; }, c.prototype.Zc = function () { var e = this.item.max || 0; return !!(e && this.Bc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.Bc.forEach(function (e) { var n = {}; e.cells.forEach(function (e) { n[e.id] = e.value; }), t.push(n); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
1827
|
+
throw new Error("Array expected"); this.data = e, this.$c(), this.Xc(); }, c.prototype._c = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Zc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.$c = function () { var e = this; this.Bc = [], this.data.forEach(function (t) { var n = e.Vc(t); e.Bc.push(n); }); }, c.prototype.ad = function (e) { var t = this, n = t.Bc.indexOf(e); t.Bc.splice(n, 1); }, c.prototype.Vc = function (e) { var t = this, n = {}; return n.data = e, n.cells = [], t.item.columns.forEach(function (i) { var a = i.id, o = e[a], r = t.bd(i); if ("undefined" == typeof o)
|
|
1836
1828
|
if ("text" === r)
|
|
1837
1829
|
o = "";
|
|
1838
1830
|
else if ("number" === r)
|
|
@@ -1840,23 +1832,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1840
1832
|
else if ("select" === r) {
|
|
1841
1833
|
var s = i.options;
|
|
1842
1834
|
o = s && s[0].id;
|
|
1843
|
-
} var l = {}; l.id = a, l.value = o, l.type = r, l.data = i, n.cells.push(l); }), n; }, c.prototype.
|
|
1844
|
-
var t = e.
|
|
1835
|
+
} var l = {}; l.id = a, l.value = o, l.type = r, l.data = i, n.cells.push(l); }), n; }, c.prototype.bd = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Xc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.Bc.forEach(function (t) { var n = e.Wc(t); e.nav.body.appendChild(n); }), 0 === this.Bc.length) {
|
|
1836
|
+
var t = e.cd();
|
|
1845
1837
|
e.nav.after.appendChild(t);
|
|
1846
|
-
} this.
|
|
1838
|
+
} this._c(); }, c.prototype.cd = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Wc = function (e) { var t = this, n = document.createElement("div"); n.className = t.theme + "_row", e.cells.forEach(function (i) { var a = document.createElement("div"); a.className = t.theme + "_cell"; var o = t.dd(i); if (e.spacer) {
|
|
1847
1839
|
var r = document.createElement("div");
|
|
1848
1840
|
r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), a.appendChild(r);
|
|
1849
1841
|
}
|
|
1850
1842
|
else
|
|
1851
|
-
a.appendChild(o); n.appendChild(a); }); var i = document.createElement("div"); i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction"); var a = document.createElement("span"); return a.className = this.theme + "_delete", a.addEventListener("click", function (n) { t.disabled || (t
|
|
1843
|
+
a.appendChild(o); n.appendChild(a); }); var i = document.createElement("div"); i.classList.add(t.theme + "_cell"), i.classList.add(t.theme + "_rowaction"); var a = document.createElement("span"); return a.className = this.theme + "_delete", a.addEventListener("click", function (n) { t.disabled || (t.ad(e), t.Xc(), t.Yc()); }), e.spacer || i.appendChild(a), n.appendChild(i), n; }, c.prototype.Yc = function () { var e = this; if ("function" == typeof e.onInput) {
|
|
1852
1844
|
var t = {};
|
|
1853
1845
|
e.onInput(t);
|
|
1854
|
-
} }, c.prototype.
|
|
1846
|
+
} }, c.prototype.dd = function (e) { var t = this, n = e.type; if ("text" === n || "number" === n) {
|
|
1855
1847
|
var i = document.createElement("input");
|
|
1856
|
-
return i.type = n, t.disabled && (i.disabled = !0), e.value && (i.value = e.value), i.addEventListener("keyup", function (i) { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.
|
|
1848
|
+
return i.type = n, t.disabled && (i.disabled = !0), e.value && (i.value = e.value), i.addEventListener("keyup", function (i) { "number" === n ? e.value = Number(this.value) : e.value = this.value, t.Yc(); }), i;
|
|
1857
1849
|
} if ("select" === n) {
|
|
1858
1850
|
var a = document.createElement("select");
|
|
1859
|
-
return t.disabled && (a.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.
|
|
1851
|
+
return t.disabled && (a.disabled = !0), e.data.options.forEach(function (t) { var n = document.createElement("option"); n.innerText = t.name, n.value = t.id, n.Jc = t.id, a.appendChild(n), e.value === t.id && n.setAttribute("selected", !0); }), a.addEventListener("change", function (n) { var i = a.options[a.selectedIndex]; i && "undefined" != typeof i.Jc && (e.value = i.Jc), t.Yc(); }), a;
|
|
1860
1852
|
} throw new Error("Unsupported item type: " + n); }, c.prototype.focus = function () { };
|
|
1861
1853
|
}
|
|
1862
1854
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
@@ -1865,9 +1857,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1865
1857
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1866
1858
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
1867
1859
|
e.Month = function (n, i) {
|
|
1868
|
-
this.v = "2025.3.
|
|
1860
|
+
this.v = "2025.3.691-lite", this.nav = {};
|
|
1869
1861
|
var a = this;
|
|
1870
|
-
this.id = n, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", 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.Q = !1, this.W = 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.Y(), a.
|
|
1862
|
+
this.id = n, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", 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.Q = !1, this.W = 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.Y(), a.ed(), a.ha(), "Full" === e.UpdateType && (a.fd(), a.gd()), a.ma(), a.show(), a.na(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
1871
1863
|
t = e.data;
|
|
1872
1864
|
else {
|
|
1873
1865
|
if ("object" != typeof e)
|
|
@@ -1912,21 +1904,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1912
1904
|
var s = {};
|
|
1913
1905
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = n, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1914
1906
|
return;
|
|
1915
|
-
a.events.list = n, a.
|
|
1907
|
+
a.events.list = n, a.Ma && a.update();
|
|
1916
1908
|
} }; if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
1917
1909
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": a.visibleStart().toString(), "end": a.visibleEnd().toString() }, "url": e, "success": o, "error": i });
|
|
1918
1910
|
else {
|
|
1919
1911
|
var r = e, s = "start=" + a.visibleStart().toString() + "&end=" + a.visibleEnd().toString();
|
|
1920
1912
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": i });
|
|
1921
|
-
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(a.
|
|
1913
|
+
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var n = (a.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return n.sort(a.Bb), n.filter(function (n) { var i = n.start(), a = n.end(); return i === a && i === e || DayPilot.Util.overlaps(e, t, i, a); }); }, this.update = function (e) { if (a.ub(e), this.Ma) {
|
|
1922
1914
|
if (a.Q)
|
|
1923
1915
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
1924
1916
|
if (this.cells) {
|
|
1925
|
-
a.Y(), a.
|
|
1917
|
+
a.Y(), a.ed(), a.ha(), a.fd(), a.gd(), a.ma(), a.u(), a.na(), this.visible ? this.show() : this.hide();
|
|
1926
1918
|
}
|
|
1927
|
-
} }, this.
|
|
1919
|
+
} }, this.wb = null, this.ub = function (e) { if (e) {
|
|
1928
1920
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
1929
|
-
this.
|
|
1921
|
+
this.wb = t;
|
|
1930
1922
|
for (var n in e)
|
|
1931
1923
|
if (t[n]) {
|
|
1932
1924
|
var i = t[n];
|
|
@@ -1934,10 +1926,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1934
1926
|
}
|
|
1935
1927
|
else
|
|
1936
1928
|
a[n] = e[n];
|
|
1937
|
-
} }, this.
|
|
1929
|
+
} }, this.xb = function () { var e = this.wb; for (var t in e) {
|
|
1938
1930
|
var n = e[t];
|
|
1939
1931
|
n.postInit && n.postInit();
|
|
1940
|
-
} }, this.
|
|
1932
|
+
} }, this.zb = {}, this.zb.events = [], this.Ab = function (e) { var t = this.zb.events, n = this.events.list[e], i = {}; for (var o in n)
|
|
1941
1933
|
i[o] = n[o]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1942
1934
|
var r = {};
|
|
1943
1935
|
r.control = a, r.data = i, this.onBeforeEventRender(r);
|
|
@@ -1946,7 +1938,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1946
1938
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
1947
1939
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1948
1940
|
for (var t = 0; t < e.length; t++)
|
|
1949
|
-
this.
|
|
1941
|
+
this.Ab(t);
|
|
1950
1942
|
for (var n = 0; n < e.length; n++) {
|
|
1951
1943
|
var i = e[n];
|
|
1952
1944
|
if ("object" != typeof i)
|
|
@@ -1959,12 +1951,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1959
1951
|
if (!(a.getTime() > o.getTime()))
|
|
1960
1952
|
for (var t = 0; t < this.rows.length; t++) {
|
|
1961
1953
|
var r = this.rows[t], s = new DayPilot.Event(i, this);
|
|
1962
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
1954
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.zb.events[n]));
|
|
1963
1955
|
}
|
|
1964
1956
|
}
|
|
1965
1957
|
for (var l = 0; l < this.rows.length; l++) {
|
|
1966
1958
|
var r = this.rows[l];
|
|
1967
|
-
r.events.sort(this.
|
|
1959
|
+
r.events.sort(this.Bb);
|
|
1968
1960
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
1969
1961
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
1970
1962
|
r.putIntoLine(c, u, h, l);
|
|
@@ -1972,16 +1964,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1972
1964
|
}
|
|
1973
1965
|
} }, this.Y = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
1974
1966
|
var t = this.elements.events[e];
|
|
1975
|
-
a.
|
|
1976
|
-
} this.elements.events = []; }, this.
|
|
1977
|
-
var i = n && n.
|
|
1967
|
+
a.Pa(t);
|
|
1968
|
+
} this.elements.events = []; }, this.Pa = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof a.onBeforeEventDomRemove && a.onBeforeEventDomRemove(n), n && "function" == typeof a.onBeforeEventDomAdd) {
|
|
1969
|
+
var i = n && n.Qa;
|
|
1978
1970
|
if (i) {
|
|
1979
|
-
a.
|
|
1971
|
+
a.Sa.Ra && t(n.element) && (a.Sa.Ta = !0, a.Sa.Ua(i), a.Sa.Ta = !1);
|
|
1980
1972
|
}
|
|
1981
|
-
} }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.
|
|
1973
|
+
} }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.na = function () { this.hd(); }, this.hd = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
1982
1974
|
for (var t = this.rows[e], n = 0; n < t.lines.length; n++)
|
|
1983
1975
|
for (var i = t.lines[n], a = 0; a < i.length; a++)
|
|
1984
|
-
this.
|
|
1976
|
+
this.Va(i[a]); }, this.Bb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1985
1977
|
return 0; var n = e.start().getTime() - t.start().getTime(); return 0 !== n ? n : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, n, i, o, r, s) { r || (r = 0); var l = o; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: n }, this.shadow.width = o; var d = 7 * n + t - r; d < 0 && (l += d, t = 0, n = 0); for (var c = r; c >= 7;)
|
|
1986
1978
|
n--, c -= 7; if (c > t) {
|
|
1987
1979
|
c > t + (7 - this.getColCount()) ? (n--, t = t + 7 - c) : (l = l - c + t, t = 0);
|
|
@@ -1997,17 +1989,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1997
1989
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
1998
1990
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1999
1991
|
} }, this.getEventTop = function (e, t) { for (var n = this.headerHeight, i = 0; i < e; i++)
|
|
2000
|
-
n += this.rows[i].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
1992
|
+
n += this.rows[i].getHeight(); return n += this.cellHeaderHeight, n += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Va = function (n) {
|
|
2001
1993
|
var i = n.cache || n.data, o = i.borderRadius || a.eventBorderRadius;
|
|
2002
1994
|
"number" == typeof o && (o += "px");
|
|
2003
1995
|
var r = n.part.row, s = n.part.line, l = n.part.colStart, d = n.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(r, s), f = document.createElement("div");
|
|
2004
|
-
f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), i.cssClass && DayPilot.Util.addClass(f, i.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = a.va, f.oncontextmenu = a.
|
|
1996
|
+
f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.L("_event"), i.cssClass && DayPilot.Util.addClass(f, i.cssClass), n.part.startsHere || DayPilot.Util.addClass(f, this.L("_event_continueleft")), n.part.endsHere || DayPilot.Util.addClass(f, this.L("_event_continueright")), f.event = n, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && n.client.toolTip() && (f.title = n.client.toolTip()), f.onclick = a.va, f.oncontextmenu = a.jd, f.onmousedown = function (t) {
|
|
2005
1997
|
t = t || window.event;
|
|
2006
1998
|
var i = t.which || t.button;
|
|
2007
1999
|
if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === i)
|
|
2008
2000
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
2009
2001
|
var o = {};
|
|
2010
|
-
o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1,
|
|
2002
|
+
o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1,
|
|
2003
|
+
o.direction = this.style.cursor, e.resizingEvent = o;
|
|
2011
2004
|
}
|
|
2012
2005
|
else if ("move" === this.style.cursor || n.client.moveEnabled()) {
|
|
2013
2006
|
a.clearShadow();
|
|
@@ -2046,11 +2039,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2046
2039
|
!function () { var e = {}; if (e.control = a, e.e = n, e.element = null, f.domArgs = e, "function" == typeof a.onBeforeEventDomAdd && a.onBeforeEventDomAdd(e), e.element) {
|
|
2047
2040
|
var i = v;
|
|
2048
2041
|
if (i) {
|
|
2049
|
-
e.
|
|
2042
|
+
e.Qa = i;
|
|
2050
2043
|
if (t(e.element)) {
|
|
2051
|
-
if (!a.
|
|
2044
|
+
if (!a.Sa.Ra)
|
|
2052
2045
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
2053
|
-
a.
|
|
2046
|
+
a.Sa.Ta = !0, a.Sa.Wa(e.element, i, { "style": { "flexGrow": 1 } }), a.Sa.Ta = !1;
|
|
2054
2047
|
}
|
|
2055
2048
|
else
|
|
2056
2049
|
i.appendChild(e.element);
|
|
@@ -2058,7 +2051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2058
2051
|
}
|
|
2059
2052
|
else
|
|
2060
2053
|
v.innerHTML = n.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f);
|
|
2061
|
-
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.
|
|
2054
|
+
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.ed = 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()), n = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(n / 7), this.days = 7 * e, this.rows = []; for (var i = 0; i < e; i++) {
|
|
2062
2055
|
var o = {};
|
|
2063
2056
|
o.start = this.firstDate.addDays(7 * i), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = i, 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, n, i) { for (var a = this, o = 0; o < this.lines.length; o++) {
|
|
2064
2057
|
var r = this.lines[o];
|
|
@@ -2068,7 +2061,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2068
2061
|
e + t - 1 < this[i].part.colStart || e > this[i].part.colStart + this[i].part.colWidth - 1 || (n = !1); return n; }, r.addEvent = function (e, t, n, i, o) { e.part.colStart = t, e.part.colWidth = n, e.part.row = i, e.part.line = o, e.part.startsHere = a.start.getTime() <= e.start().getTime(), e.part.endsHere = a.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, n, i, 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++)
|
|
2069
2062
|
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);
|
|
2070
2063
|
} 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++)
|
|
2071
|
-
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.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
2064
|
+
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.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ya = 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.L("_main"); var n = document.createElement("div"); this.nav.cells = n, n.style.position = "absolute", n.style.left = "0px", n.style.right = "0px", n.setAttribute("unselectable", "on"), t.appendChild(n); var i = document.createElement("div"); this.nav.events = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i), t.onmousemove = function (t) { if (e.resizingEvent) {
|
|
2072
2065
|
var n = DayPilot.mo3(a.nav.top, t);
|
|
2073
2066
|
if (!n)
|
|
2074
2067
|
return;
|
|
@@ -2120,7 +2113,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2120
2113
|
break;
|
|
2121
2114
|
}
|
|
2122
2115
|
} null === a && (a = this.rows.length - 1); var d = {}; return d.x = i, d.y = a, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), n = { x: 0, y: 0 }; t >= 7;)
|
|
2123
|
-
n.y++, t -= 7; return n.x = t, n; }, this.
|
|
2116
|
+
n.y++, t -= 7; return n.x = t, n; }, this.gd = function () { var e = document.createElement("div"); e.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(e), this.cells = []; for (var t = 0; t < this.getColCount(); t++) {
|
|
2124
2117
|
this.cells[t] = [];
|
|
2125
2118
|
var n = document.createElement("div");
|
|
2126
2119
|
n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.left = this.getCellWidth() * t + "%", n.style.width = this.getCellWidth() + "%", n.style.top = "0px", n.style.height = this.headerHeight + "px";
|
|
@@ -2129,18 +2122,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2129
2122
|
var a = document.createElement("div");
|
|
2130
2123
|
a.setAttribute("unselectable", "on"), a.innerHTML = o.locale().dayNames[i], n.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.L("_header_inner"), a.innerHTML = o.locale().dayNames[i], e.appendChild(n);
|
|
2131
2124
|
for (var r = 0; r < this.rows.length; r++)
|
|
2132
|
-
this.
|
|
2133
|
-
} }, this.
|
|
2125
|
+
this.kd(t, r, e);
|
|
2126
|
+
} }, this.fd = function () { for (var e = 0; e < this.cells.length; e++)
|
|
2134
2127
|
for (var t = 0; t < this.cells[e].length; t++) {
|
|
2135
2128
|
var n = a.cells[e][t];
|
|
2136
|
-
a.
|
|
2137
|
-
} this.nav.cells.innerHTML = ""; }, this.
|
|
2138
|
-
var i = n && n.
|
|
2129
|
+
a.hb(n);
|
|
2130
|
+
} this.nav.cells.innerHTML = ""; }, this.hb = function (e) { !function () { var n = e.domArgs; if (e.domArgs = null, n && "function" == typeof a.onBeforeCellDomRemove && a.onBeforeCellDomRemove(n), n && "function" == typeof a.onBeforeCellDomAdd) {
|
|
2131
|
+
var i = n && n.Qa;
|
|
2139
2132
|
if (i) {
|
|
2140
|
-
var o = a.
|
|
2141
|
-
o ? a.
|
|
2133
|
+
var o = a.ld.reactDOM && isReactCmp(n.element), r = a.Sa.Ra && (isVueCmp(n.element) || t(n.element));
|
|
2134
|
+
o ? a.ld.md(i) : r && (a.Sa.Ta = !0, a.Sa.Ua(i), a.Sa.Ta = !1);
|
|
2142
2135
|
}
|
|
2143
|
-
} }(), e.onclick = null; }, this.ta = function () { return 2 === a.api; }, this.
|
|
2136
|
+
} }(), e.onclick = null; }, this.ta = function () { return 2 === a.api; }, this.kd = function (n, i, r) { var s = this.rows[i], l = this.firstDate.addDays(7 * i + n), d = l.getDay(), c = null; c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !a.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = a, f.cell = h, "function" == typeof a.onBeforeCellRender && a.onBeforeCellRender(f); var v = f.cell.properties, p = document.createElement("div"); if (p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.cursor = "default", p.style.left = this.getCellWidth() * n + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(i) + "px", p.style.height = s.getHeight() + "px", p.className = this.L("_cell"), v.business) {
|
|
2144
2137
|
var u = this.L("_cell_business");
|
|
2145
2138
|
DayPilot.Util.addClass(p, u);
|
|
2146
2139
|
} var m = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); m.setAttribute("unselectable", "on"), p.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.L("_cell_inner"), v.backColor && (m.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== a.timeRangeSelectedHandling && (a.clearShadow(), e.timeRangeSelecting = { "root": a, "x": n, "y": i, "from": { x: n, y: i }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), n = t.addDays(1); a.O(t, n); }; if ("Disabled" !== a.timeRangeSelectedHandling)
|
|
@@ -2156,11 +2149,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2156
2149
|
if (e.control = a, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(e), e.element) {
|
|
2157
2150
|
var n = m;
|
|
2158
2151
|
if (n) {
|
|
2159
|
-
e.
|
|
2152
|
+
e.Qa = n;
|
|
2160
2153
|
if (t(e.element)) {
|
|
2161
|
-
if (!a.
|
|
2154
|
+
if (!a.Sa.Ra)
|
|
2162
2155
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
2163
|
-
a.
|
|
2156
|
+
a.Sa.Ta = !0, a.Sa.Wa(e.element, n), a.Sa.Ta = !1;
|
|
2164
2157
|
}
|
|
2165
2158
|
else
|
|
2166
2159
|
n.appendChild(e.element);
|
|
@@ -2191,7 +2184,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2191
2184
|
a.eventClickCallBack(n);
|
|
2192
2185
|
break;
|
|
2193
2186
|
case "JavaScript": a.onEventClick(n);
|
|
2194
|
-
} }, this.
|
|
2187
|
+
} }, this.jd = function () { var e = this; return a.xa(e.event), !1; }, this.xa = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
2195
2188
|
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)) {
|
|
2196
2189
|
switch (a.eventRightClickHandling) {
|
|
2197
2190
|
case "ContextMenu":
|
|
@@ -2280,20 +2273,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2280
2273
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
2281
2274
|
} }, this.wa = {}, this.wa.scope = null, this.wa.notify = function () { a.wa.scope && a.wa.scope["$apply"](); }, this.wa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var n = {}; n.command = e, this.U("Command", t, n); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.ca = {}, this.ca.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this.ca.da = function () { return "Disabled" !== a.xssProtection; };
|
|
2282
2275
|
var o = this.ca;
|
|
2283
|
-
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.Q || (e.Q = !0, e.
|
|
2276
|
+
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.Q || (e.Q = !0, e.fd(), e.Y(), 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.Q; }, this.rb = 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.u = 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.yb = function () { if (this.id && this.id.tagName)
|
|
2284
2277
|
this.nav.top = this.id;
|
|
2285
2278
|
else {
|
|
2286
2279
|
if ("string" != typeof this.id)
|
|
2287
2280
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2288
2281
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2289
2282
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2290
|
-
} }, this.
|
|
2283
|
+
} }, this.Hb = function () { this.ed(), this.Ya(), this.gd(), this.rb(), this.U("Init"); }, this.ab = function (e, t) { return a.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var i = a.Sa.Ra; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
|
|
2291
2284
|
var o = i.createVNode(e, n);
|
|
2292
2285
|
i.render(o, t);
|
|
2293
|
-
} }, this.
|
|
2286
|
+
} }, this.Sa.Wa = function (e, t, n) { var i = a.Sa.Ra; if ("function" == typeof i.render) {
|
|
2294
2287
|
var o = e;
|
|
2295
2288
|
DayPilot.isArray(e) && (o = i.h("div", n, e)), i.render(o, t);
|
|
2296
|
-
} }, this.
|
|
2289
|
+
} }, this.Sa.Ua = function (e) { var t = a.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.ub, this.internal.xssTextHtml = a.ab, this.internal.enableVue = function (e) { a.Sa.Ra = e; }, this.internal.vueRef = function () { return a.Sa.Ra; }, this.internal.vueRendering = function () { return a.Sa.Ta; }, this.init = function () { return this.yb(), this.loadFromServer() ? void this.Hb() : (this.ed(), this.ha(), this.Ya(), this.gd(), this.u(), this.na(), this.rb(), this.fireAfterRenderDetached(null, !1), this.Ma = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.ub(i);
|
|
2297
2290
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2298
2291
|
var n = e.movingEvent;
|
|
2299
2292
|
if (!n.event)
|
|
@@ -2345,16 +2338,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2345
2338
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
2346
2339
|
var e = DayPilot.Util.isVueVNode;
|
|
2347
2340
|
DayPilot.Navigator = function (t, n) {
|
|
2348
|
-
this.v = "2025.3.
|
|
2341
|
+
this.v = "2025.3.691-lite";
|
|
2349
2342
|
var i = this;
|
|
2350
|
-
this.id = t, 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.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", 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.onTodayClick = null, this.nav = {}, this.
|
|
2351
|
-
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.
|
|
2352
|
-
g.style.position = "absolute", r.
|
|
2343
|
+
this.id = t, 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.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", 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.onTodayClick = null, this.nav = {}, this.zb = {}, this.nd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.od() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.pd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.od() || (this.root.style.width = 7 * r.cellWidth() + this.pd() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ta = function () { return 2 === i.api; }, this.fd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.qd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.rd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.sd = function () { if (!r.od())
|
|
2344
|
+
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.td = function () { return r.od() ? null : r.cellWidth(); }, this.ud = function (e) { return "number" != typeof e && (e = 1), r.od() ? this.sd() * e : this.td() * e; }, this.vd = function (e) { var t = r.od() ? "%" : "px"; return this.ud(e) + t; }, this.gd = function (t, n) { var a = {}; a.cells = [], a.days = [], a.weeks = []; var o = this.startDate.addMonths(t), s = n.before, l = n.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6; a.rowCount = f; var v = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.pd(); a.width = p; var m = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; a.height = m; var g = document.createElement("div"); if (r.od() ? "Horizontal" === this.orientation && (g.style.width = 100 / i.showMonths + "%") : g.style.width = p + "px", g.style.height = m + "px", "Horizontal" === this.orientation)
|
|
2345
|
+
g.style.position = "absolute", r.od() ? (g.style.left = 100 / i.showMonths * t + "%", a.leftPct = 100 / i.showMonths * t) : g.style.left = p * t + "px", g.style.top = "0px", a.top = 0, a.left = p * t;
|
|
2353
2346
|
else {
|
|
2354
2347
|
g.style.position = "relative";
|
|
2355
2348
|
var y = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
|
|
2356
2349
|
a.top = y, a.left = 0, a.leftPct = 0;
|
|
2357
|
-
} g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g); var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div"); w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.
|
|
2350
|
+
} g.className = this.L("_month"), g.style.cursor = "default", g.style.userSelect = "none", g.style.webkitUserSelect = "none", g.month = a, a.div = g, this.root.appendChild(g); var b = this.titleHeight + this.dayHeaderHeight, w = document.createElement("div"); w.style.position = "absolute", w.style.left = "0px", w.style.right = "0px", w.style.top = "0px", w.style.width = i.vd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.className = this.L("_titleleft"), n.left && (w.style.cursor = "pointer", w.innerHTML = "<span><</span>", w.onclick = this.wd), g.appendChild(w), this.tl = w; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = i.vd(), D.style.top = "0px", D.style.width = i.vd(i.showWeekNumbers ? 6 : 5), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.className = this.L("_title"), D.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), g.appendChild(D), this.ti = D; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = i.vd(i.showWeekNumbers ? 7 : 6), x.style.right = i.vd(i.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = i.vd(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.className = this.L("_titleright"), n.right && (x.style.cursor = "pointer", x.innerHTML = "<span>></span>", x.onclick = this.xd), g.appendChild(x), this.tr = x; var _ = (this.pd(), i.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
|
|
2358
2351
|
for (var C = 0; C < f; C++) {
|
|
2359
2352
|
var k = c.addDays(7 * C), P = null;
|
|
2360
2353
|
switch (this.weekNumberAlgorithm) {
|
|
@@ -2370,30 +2363,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2370
2363
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2371
2364
|
}
|
|
2372
2365
|
var S = document.createElement("div");
|
|
2373
|
-
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = C * this.cellHeight + b + "px", S.style.width = i.
|
|
2366
|
+
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = C * this.cellHeight + b + "px", S.style.width = i.vd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.className = this.L("_weeknumber"), S.innerHTML = "<span>" + P + "</span>", g.appendChild(S), a.weeks.push(S);
|
|
2374
2367
|
} if (i.showWeekNumbers) {
|
|
2375
2368
|
var S = document.createElement("div");
|
|
2376
|
-
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = this.titleHeight + "px", S.style.width = i.
|
|
2369
|
+
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = this.titleHeight + "px", S.style.width = i.vd(), S.style.height = this.dayHeaderHeight + "px", S.className = this.L("_dayheader"), g.appendChild(S);
|
|
2377
2370
|
} for (var M = 0; M < 7; M++) {
|
|
2378
2371
|
a.cells[M] = [];
|
|
2379
2372
|
var S = document.createElement("div");
|
|
2380
|
-
S.style.position = "absolute", S.style.left = i.
|
|
2373
|
+
S.style.position = "absolute", S.style.left = i.vd(M + _), S.style.right = i.vd(M + _), S.style.top = this.titleHeight + "px", S.style.width = i.vd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.className = this.L("_dayheader"), S.innerHTML = "<span>" + this.yd(M) + "</span>", g.appendChild(S), a.days.push(S);
|
|
2381
2374
|
for (var C = 0; C < f; C++) {
|
|
2382
|
-
var k = c.addDays(7 * C + M), T = this.
|
|
2383
|
-
if ("month" === this.
|
|
2375
|
+
var k = c.addDays(7 * C + M), T = this.zd(k) && "none" !== this.Ad(), A = k.firstDayOfMonth() === o, E = k < o, H = k >= o.addMonths(1);
|
|
2376
|
+
if ("month" === this.Ad())
|
|
2384
2377
|
T = T && A;
|
|
2385
|
-
else if ("day" === this.
|
|
2378
|
+
else if ("day" === this.Ad())
|
|
2386
2379
|
T = T && (A || s && E || l && H);
|
|
2387
|
-
else if ("week" === this.
|
|
2380
|
+
else if ("week" === this.Ad()) {
|
|
2388
2381
|
var N = k.firstDayOfMonth() === o;
|
|
2389
2382
|
T = T && (N || s && E || l && H);
|
|
2390
2383
|
}
|
|
2391
2384
|
var I = document.createElement("div");
|
|
2392
2385
|
a.cells[M][C] = I;
|
|
2393
|
-
var R = i.
|
|
2394
|
-
I.day = k, I.x = M, I.y = C, I.left = L, I.top = z, I.isCurrentMonth = A, I.isNextMonth = H, I.isPrevMonth = E, I.showBefore = s, I.showAfter = l, I.className = this.L(A ? "_day" : "_dayother"), i.
|
|
2386
|
+
var R = i.Bd(M, C), L = R.x, z = R.y, B = r.od() ? "%" : "px";
|
|
2387
|
+
I.day = k, I.x = M, I.y = C, I.left = L, I.top = z, I.isCurrentMonth = A, I.isNextMonth = H, I.isPrevMonth = E, I.showBefore = s, I.showAfter = l, I.className = this.L(A ? "_day" : "_dayother"), i.qd(I, "cell"), k.getTime() === v.getTime() && A && this.qd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.qd(I, "weekend"), I.style.position = "absolute", I.style.left = L + B, I.style.right = L + B, I.style.top = z + "px", I.style.width = i.vd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
2395
2388
|
var U = document.createElement("div");
|
|
2396
|
-
U.style.position = "absolute", U.className = k.getTime() === v.getTime() && A ? this.L("_todaybox") : this.L("_daybox"), i.
|
|
2389
|
+
U.style.position = "absolute", U.className = k.getTime() === v.getTime() && A ? this.L("_todaybox") : this.L("_daybox"), i.qd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
|
|
2397
2390
|
var O = null;
|
|
2398
2391
|
this.cells && this.cells[k.toStringSortable()] && (O = this.cells[k.toStringSortable()]);
|
|
2399
2392
|
var j = O || {};
|
|
@@ -2403,34 +2396,36 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2403
2396
|
}
|
|
2404
2397
|
if (O && DayPilot.Util.addClass(I, O.cssClass || O.css), A || s && E || l && H) {
|
|
2405
2398
|
var F = document.createElement("div");
|
|
2406
|
-
F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", i.
|
|
2399
|
+
F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", i.qd(F, "cell_text"), I.isClickable = !0, O && O.html && (F.innerHTML = O.html), I.appendChild(F);
|
|
2407
2400
|
}
|
|
2408
|
-
I.onclick = this.
|
|
2401
|
+
I.onclick = this.Cd, function () { if ("function" == typeof i.onBeforeCellDomAdd || "function" == typeof i.onBeforeCellDomRemove) {
|
|
2409
2402
|
var t = {};
|
|
2410
2403
|
if (t.control = i, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof i.onBeforeCellDomAdd && i.onBeforeCellDomAdd(t), t.element) {
|
|
2411
2404
|
var n = U;
|
|
2412
2405
|
if (n) {
|
|
2413
|
-
t.
|
|
2406
|
+
t.Qa = n;
|
|
2414
2407
|
if (e(t.element)) {
|
|
2415
|
-
if (!i.
|
|
2408
|
+
if (!i.Sa.Ra)
|
|
2416
2409
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
2417
|
-
i.
|
|
2410
|
+
i.Sa.Ta = !0, i.Sa.Wa(t.element, n), i.Sa.Ta = !1;
|
|
2418
2411
|
}
|
|
2419
2412
|
else
|
|
2420
2413
|
n.appendChild(t.element);
|
|
2421
2414
|
}
|
|
2422
2415
|
}
|
|
2423
|
-
} }(), g.appendChild(I), T && (i.
|
|
2416
|
+
} }(), g.appendChild(I), T && (i.Dd(g, M, C), this.selected.push(I));
|
|
2424
2417
|
}
|
|
2425
|
-
} var
|
|
2426
|
-
|
|
2427
|
-
|
|
2418
|
+
} var Y = document.createElement("div"); Y.style.position = "absolute", Y.style.left = "0px", Y.style.top = b - 2 + "px", Y.style.width = i.vd(7 + _), Y.style.height = "1px", Y.style.fontSize = "1px", Y.style.lineHeight = "1px", Y.className = this.L("_line"), g.appendChild(Y), this.months.push(a); }, this.Bd = function (e, t) {
|
|
2419
|
+
var n = this.titleHeight + this.dayHeaderHeight, a = (this.pd(),
|
|
2420
|
+
this.showWeekNumbers ? 1 : 0);
|
|
2421
|
+
return { "x": i.ud(e + a), "y": t * this.cellHeight + n };
|
|
2422
|
+
}, this.Dd = function (e, t, n) { var a = e.month.cells[t][n]; i.qd(a, "select"); }, this.Ed = function (e, t, n) { var a = e.month.cells[t][n]; i.rd(a, "select"); }, this.pd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Fd = function () { if (this.items)
|
|
2428
2423
|
for (var e = 0; e < this.showMonths; e++)
|
|
2429
2424
|
for (var t = 0; t < 7; t++)
|
|
2430
2425
|
for (var n = 0; n < 6; n++) {
|
|
2431
2426
|
var i = this.months[e].cells[t][n];
|
|
2432
|
-
i && (1 === this.items[i.day.toStringSortable()] ? (this.
|
|
2433
|
-
} }, this.
|
|
2427
|
+
i && (1 === this.items[i.day.toStringSortable()] ? (this.qd(i, "busy"), this.rd(i, "free")) : (this.rd(i, "busy"), this.qd(i, "free")));
|
|
2428
|
+
} }, this.Gd = function () { var e = {}; e.startDate = i.startDate, e.selectionStart = i.selectionStart, e.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(e); }, this.Ad = function () { return (this.selectMode || "").toLowerCase(); }, this.Hd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.Ad()) {
|
|
2434
2429
|
case "day":
|
|
2435
2430
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
2436
2431
|
break;
|
|
@@ -2444,19 +2439,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2444
2439
|
this.selectionEnd = e;
|
|
2445
2440
|
break;
|
|
2446
2441
|
default: throw "Unknown selectMode value.";
|
|
2447
|
-
} }, this.
|
|
2448
|
-
return void (this.
|
|
2442
|
+
} }, this.Id = null, this.select = function (e, t, n) { var a = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = a ? t : null, l = o ? t : n; if (!this.Ma)
|
|
2443
|
+
return void (this.Id = { "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) {
|
|
2449
2444
|
var v = this.startDate;
|
|
2450
|
-
(this.selectionStart < this.
|
|
2451
|
-
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.
|
|
2445
|
+
(this.selectionStart < this.Jd() || this.selectionStart >= this.Kd()) && (v = this.selectionStart.firstDayOfMonth()), v.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = v;
|
|
2446
|
+
} s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.Hd(), this.fd(), this.nd(), this.Ld(), this.Fd(), this.Gd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.O(), f && this.Md(); }, this.update = function (e) { i.Nd(e); }, this.Nd = function (e) { if (i.ub(e), this.Ma) {
|
|
2452
2447
|
if (i.Q)
|
|
2453
2448
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2454
|
-
i.
|
|
2449
|
+
i.Od();
|
|
2455
2450
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2456
|
-
i.
|
|
2457
|
-
} }, this.
|
|
2451
|
+
i.sb(), t.start === i.selectionStart && t.end === i.selectionEnd && t.day === i.selectionDay || i.O();
|
|
2452
|
+
} }, this.sb = function () { this.fd(), this.nd(), this.Hd(), this.Ld(), this.ha(), this.Fd(), this.Gd(), this.visible ? this.show() : this.hide(); }, this.Od = function () { i.zb = {}; }, this.wb = null, this.ub = function (e) { if (e) {
|
|
2458
2453
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e); } } };
|
|
2459
|
-
this.
|
|
2454
|
+
this.wb = t;
|
|
2460
2455
|
for (var n in e)
|
|
2461
2456
|
if (t[n]) {
|
|
2462
2457
|
var a = t[n];
|
|
@@ -2464,15 +2459,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2464
2459
|
}
|
|
2465
2460
|
else
|
|
2466
2461
|
i[n] = e[n];
|
|
2467
|
-
} }, this.
|
|
2462
|
+
} }, this.xb = function () { var e = this.wb; for (var t in e) {
|
|
2468
2463
|
var n = e[t];
|
|
2469
2464
|
n.postInit && n.postInit();
|
|
2470
|
-
} }, this.U = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.
|
|
2465
|
+
} }, this.U = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.Pd) : WebForm_DoCallback(this.uniqueID, a, this.W, null, this.callbackError, !0); }, this.Pd = function (e) { if ("function" == typeof i.onAjaxError) {
|
|
2471
2466
|
var t = {};
|
|
2472
2467
|
t.request = e, i.onAjaxError(t);
|
|
2473
2468
|
}
|
|
2474
2469
|
else
|
|
2475
|
-
"function" == typeof i.ajaxError && i.ajaxError(e); }, this.V = function (e) { i.W(e.responseText); }, this.S = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.T(); var o = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, o); }, this.T = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.
|
|
2470
|
+
"function" == typeof i.ajaxError && i.ajaxError(e); }, this.V = function (e) { i.W(e.responseText); }, this.S = function (e, t, n) { var a = {}; a.action = e, a.parameters = n, a.data = t, a.header = this.T(); var o = "JSON" + JSON.stringify(a); __doPostBack(i.uniqueID, o); }, this.T = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Qd = function (e, t) { "refresh" === e && this.Md(); }, this.yd = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.zd = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Rd = function (e) { for (var t = 0; t < i.months.length; t++) {
|
|
2476
2471
|
var n = i.months[t];
|
|
2477
2472
|
if (!n)
|
|
2478
2473
|
return null;
|
|
@@ -2483,19 +2478,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2483
2478
|
if (n.top <= e.y && e.y < n.top + n.height)
|
|
2484
2479
|
return t;
|
|
2485
2480
|
}
|
|
2486
|
-
} return null; }, this.
|
|
2487
|
-
return void (i.
|
|
2481
|
+
} return null; }, this.Sd = function (e) { }, this.Td = function () { if (!r.od())
|
|
2482
|
+
return void (i.Ud = i.cellWidth); var e = i.months[0].cells[0][0], t = e.clientWidth; i.Ud = t, i.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === i.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, n) { e.forEach(function (e, i) { e.width = t, e.left = n * t; }); }); }); }, this.Vd = function (e) { i.Td(); var t = DayPilot.mo3(i.nav.top, e), n = i.Rd(t); if (null === n)
|
|
2488
2483
|
return null; var a = i.months[n], o = this.titleHeight + this.dayHeaderHeight; if (a.top <= t.y && t.y < a.top + o)
|
|
2489
2484
|
return { "month": n, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < a.cells.length; r++)
|
|
2490
2485
|
for (var s = 0; s < a.cells[r].length; s++) {
|
|
2491
2486
|
var l = a.cells[r][s], d = l.top + a.top, c = l.left + a.left;
|
|
2492
|
-
if (c <= t.x && t.x < c + i.
|
|
2487
|
+
if (c <= t.x && t.x < c + i.Ud && d <= t.y && t.y < d + i.cellHeight)
|
|
2493
2488
|
return { "month": n, "x": r, "y": s, "coords": t };
|
|
2494
|
-
} return null; }, this.
|
|
2495
|
-
var t = i.
|
|
2489
|
+
} return null; }, this.Wd = function (e) { if (i.freeHandSelectionEnabled) {
|
|
2490
|
+
var t = i.Vd(e);
|
|
2496
2491
|
t && !t.header && (a.start = t), i.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
2497
|
-
} }, this.
|
|
2498
|
-
var t = i.
|
|
2492
|
+
} }, this.Xd = function (e) { if (a.start) {
|
|
2493
|
+
var t = i.Vd(e);
|
|
2499
2494
|
if (a.end)
|
|
2500
2495
|
a.end = t;
|
|
2501
2496
|
else if (t) {
|
|
@@ -2503,11 +2498,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2503
2498
|
o > n && (a.end = t);
|
|
2504
2499
|
}
|
|
2505
2500
|
a.end && (a.clear(), a.draw());
|
|
2506
|
-
} }, this.
|
|
2507
|
-
var a = this.
|
|
2508
|
-
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.
|
|
2501
|
+
} }, this.Yd = {};
|
|
2502
|
+
var a = this.Yd;
|
|
2503
|
+
a.start = null, a.drawCell = function (e) { var t = i.months[e.month], n = i.Bd(e.x, e.y), o = t.top + n.y, s = t.left + n.x, l = "px", d = i.vd(); if (r.od()) {
|
|
2509
2504
|
var c = "Horizontal" === i.orientation ? i.showMonths : 1;
|
|
2510
|
-
s = t.leftPct + n.x / c, l = "%", d = i.
|
|
2505
|
+
s = t.leftPct + n.x / c, l = "%", d = i.vd(1 / c);
|
|
2511
2506
|
} var u = document.createElement("div"); u.style.position = "absolute", u.style.left = s + l, u.style.top = o + "px", u.style.height = i.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", i.nav.preselection.appendChild(u), a.cells.push(u); }, a.clear = function () { if (a.cells) {
|
|
2512
2507
|
for (var e = 0; e < a.cells.length; e++)
|
|
2513
2508
|
i.nav.preselection.removeChild(a.cells[e]);
|
|
@@ -2550,48 +2545,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2550
2545
|
return null;
|
|
2551
2546
|
e = new o(t);
|
|
2552
2547
|
} 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 o(e).date(); }; };
|
|
2553
|
-
this.
|
|
2548
|
+
this.Cd = function (e) { var t = this.parentNode, n = this.parentNode.month, a = this.x, o = this.y, r = n.cells[a][o].day; if (n.cells[a][o].isClickable) {
|
|
2554
2549
|
i.clearSelection(), i.selectionDay = r;
|
|
2555
2550
|
var r = i.selectionDay;
|
|
2556
|
-
switch (i.
|
|
2551
|
+
switch (i.Ad()) {
|
|
2557
2552
|
case "none":
|
|
2558
2553
|
i.selectionStart = r, i.selectionEnd = r;
|
|
2559
2554
|
break;
|
|
2560
2555
|
case "day":
|
|
2561
2556
|
if (i.autoFocusOnClick) {
|
|
2562
2557
|
var s = r;
|
|
2563
|
-
if (r < i.
|
|
2558
|
+
if (r < i.Jd() || r >= i.Kd())
|
|
2564
2559
|
return void i.select(r);
|
|
2565
2560
|
}
|
|
2566
2561
|
var l = n.cells[a][o];
|
|
2567
|
-
i.
|
|
2562
|
+
i.Dd(t, a, o), i.selected.push(l), i.selectionStart = l.day, i.selectionEnd = l.day;
|
|
2568
2563
|
break;
|
|
2569
2564
|
case "week":
|
|
2570
2565
|
if (i.autoFocusOnClick) {
|
|
2571
2566
|
var s = n.cells[0][o].day, d = n.cells[6][o].day;
|
|
2572
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.
|
|
2567
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < i.Jd() || d >= i.Kd()))
|
|
2573
2568
|
return void i.select(r);
|
|
2574
2569
|
}
|
|
2575
2570
|
for (var c = 0; c < 7; c++)
|
|
2576
|
-
i.
|
|
2571
|
+
i.Dd(t, c, o), i.selected.push(n.cells[c][o]);
|
|
2577
2572
|
i.selectionStart = n.cells[0][o].day, i.selectionEnd = n.cells[6][o].day;
|
|
2578
2573
|
break;
|
|
2579
2574
|
case "month":
|
|
2580
2575
|
if (i.autoFocusOnClick) {
|
|
2581
2576
|
var s = r;
|
|
2582
|
-
if (r < i.
|
|
2577
|
+
if (r < i.Jd() || r >= i.Kd())
|
|
2583
2578
|
return void i.select(r);
|
|
2584
2579
|
}
|
|
2585
2580
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
2586
2581
|
for (var a = 0; a < 7; a++) {
|
|
2587
2582
|
var l = n.cells[a][o];
|
|
2588
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.
|
|
2583
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (i.Dd(t, a, o), i.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
2589
2584
|
}
|
|
2590
2585
|
i.selectionStart = s, i.selectionEnd = d;
|
|
2591
2586
|
break;
|
|
2592
2587
|
default: throw "unknown selectMode";
|
|
2593
2588
|
}
|
|
2594
|
-
i.
|
|
2589
|
+
i.Gd(), i.O();
|
|
2595
2590
|
} }, this.O = function (e) { var t = i.selectionStart, n = i.selectionEnd.addDays(1), a = DayPilot.DateUtil.daysDiff(t, n), o = i.selectionDay; if (e = e || {}, i.ta()) {
|
|
2596
2591
|
var r = {};
|
|
2597
2592
|
if (r.start = t, r.end = n, r.day = o, r.days = a, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
|
|
@@ -2621,7 +2616,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2621
2616
|
break;
|
|
2622
2617
|
case "None": break;
|
|
2623
2618
|
case "PostBack": i.timeRangeSelectedPostBack(t, n, o);
|
|
2624
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, n, i) { var a = {}; a.start = e, a.end = t, a.day = i, this.S("TimeRangeSelected", n, a); }, this.
|
|
2619
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, n, i) { var a = {}; a.start = e, a.end = t, a.day = i, this.S("TimeRangeSelected", n, a); }, this.xd = function (e) { i.Zd(i.skipMonths); }, this.wd = function (e) { i.Zd(-i.skipMonths); }, this.Zd = function (e) { this.startDate = this.startDate.addMonths(e), this.fd(), this.nd(), this.Ld(), this.Gd(), this.Md(), this.Fd(); }, this.Jd = function () { return i.startDate.firstDayOfMonth(); }, this.Kd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Md = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (i.ta()) {
|
|
2625
2620
|
var n = {};
|
|
2626
2621
|
if (n.start = e, n.end = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(n), n.preventDefault.value))
|
|
2627
2622
|
return;
|
|
@@ -2648,10 +2643,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2648
2643
|
this.onVisibleRangeChanged(e, t);
|
|
2649
2644
|
break;
|
|
2650
2645
|
case "Disabled":
|
|
2651
|
-
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.U("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.W = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.
|
|
2652
|
-
var t = this.
|
|
2653
|
-
this.
|
|
2654
|
-
} this.showToday && "Bottom" === this.todayPosition && this
|
|
2646
|
+
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.U("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.S("Visible", e, t); }, this.W = function (e, t) { var e = JSON.parse(e); i.items = e.Items, i.cells = e.Cells, i.cells ? i.update() : i.Fd(); }, this.Ld = function () { this.showToday && "Top" === this.todayPosition && this.$d(); for (var e = 0; e < this.showMonths; e++) {
|
|
2647
|
+
var t = this._d(e);
|
|
2648
|
+
this.gd(e, t);
|
|
2649
|
+
} this.showToday && "Bottom" === this.todayPosition && this.$d(), this.root.style.height = this.ae() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.$d = function () { if (this.showToday) {
|
|
2655
2650
|
var e = document.createElement("span");
|
|
2656
2651
|
e.className = this.L("_todaysection_button"), this.todayHtml ? e.innerHTML = this.todayHtml : e.innerText = this.todayText, e.onclick = function () { if ("function" == typeof i.onTodayClick) {
|
|
2657
2652
|
var e = {};
|
|
@@ -2660,7 +2655,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2660
2655
|
} i.select(DayPilot.Date.today()); };
|
|
2661
2656
|
var t = document.createElement("div");
|
|
2662
2657
|
t.style.height = this.todayHeight + "px", t.className = this.L("_todaysection"), t.appendChild(e), this.root.appendChild(t);
|
|
2663
|
-
} }, this
|
|
2658
|
+
} }, this.ae = function () { var e = 0; if (this.showToday && (e += this.todayHeight), "Horizontal" === this.orientation) {
|
|
2664
2659
|
for (var t = 0; t < this.months.length; t++) {
|
|
2665
2660
|
var n = this.months[t];
|
|
2666
2661
|
n.height > e && (e = n.height);
|
|
@@ -2669,56 +2664,56 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2669
2664
|
} for (var t = 0; t < this.months.length; t++) {
|
|
2670
2665
|
var n = this.months[t];
|
|
2671
2666
|
e += n.height;
|
|
2672
|
-
} return e; }, this.
|
|
2673
|
-
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.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.
|
|
2667
|
+
} return e; }, this._d = function (e) { if (this.internal.showLinks)
|
|
2668
|
+
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.wa = {}, this.wa.scope = null, this.wa.notify = function () { i.wa.scope && i.wa.scope["$apply"](); }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var a = i.Sa.Ra; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
2674
2669
|
var o = a.createVNode(e, n);
|
|
2675
2670
|
a.render(o, t);
|
|
2676
|
-
} }, this.
|
|
2671
|
+
} }, this.Sa.Wa = function (e, t) { var n = i.Sa.Ra; if ("function" == typeof n.render) {
|
|
2677
2672
|
var a = e;
|
|
2678
2673
|
DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
|
|
2679
|
-
} }, this.
|
|
2674
|
+
} }, this.Sa.Ua = function (e) { var t = i.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = i.ub, this.internal.initialized = function () { return i.Ma; }, this.internal.enableVue = function (e) { i.Sa.Ra = e; }, this.internal.vueRef = function () { return i.Sa.Ra; }, this.internal.vueRendering = function () { return i.Sa.Ta; }, this.internal.upd = function (e) { i.Nd(e); }, this.ca = {};
|
|
2680
2675
|
var r = this.ca;
|
|
2681
2676
|
r.locale = function () { return DayPilot.Locale.find(i.locale); }, r.weekStarts = function () { if ("Auto" === i.weekStarts) {
|
|
2682
2677
|
var e = r.locale();
|
|
2683
2678
|
return e ? e.weekStarts : 0;
|
|
2684
|
-
} return i.weekStarts; }, r.cellWidth = function () { if (i.
|
|
2685
|
-
return i.
|
|
2679
|
+
} return i.weekStarts; }, r.cellWidth = function () { if (i.zb.cellWidth)
|
|
2680
|
+
return i.zb.cellWidth; var e = i.be("_cell_dimensions").width; return e || (e = i.cellWidth), i.zb.cellWidth = e, e; }, r.od = function () { return "Auto" === i.ca.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2686
2681
|
var t = this.selected[e];
|
|
2687
|
-
i.
|
|
2688
|
-
} this.selected = []; }, this.
|
|
2682
|
+
i.Ed(t.parentNode, t.x, t.y);
|
|
2683
|
+
} this.selected = []; }, this.ce = function () { return !!this.backendUrl && ("undefined" == typeof i.items || !i.items); }, this.events = {}, this.ha = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2689
2684
|
this.items = {};
|
|
2690
2685
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2691
2686
|
var t = this.events.list[e];
|
|
2692
2687
|
if (!t.hidden) {
|
|
2693
|
-
var n = this.
|
|
2688
|
+
var n = this.ee(t);
|
|
2694
2689
|
for (var i in n)
|
|
2695
2690
|
this.items[i] = 1;
|
|
2696
2691
|
}
|
|
2697
2692
|
}
|
|
2698
|
-
} }, this.
|
|
2699
|
-
i[a.toStringSortable()] = 1, a = a.addDays(1); return i; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
2693
|
+
} }, this.be = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.L(e); var n = i.root || document.body; n.appendChild(t); var a = t.offsetHeight, o = t.offsetWidth; n.removeChild(t); var r = {}; return r.height = a, r.width = o, r; }, this.ee = function (e) { for (var t = new DayPilot.Date(e.start), n = new DayPilot.Date(e.end), i = {}, a = t.getDatePart(); a.getTime() <= n.getTime();)
|
|
2694
|
+
i[a.toStringSortable()] = 1, a = a.addDays(1); return i; }, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.yb = function () { if (this.id && this.id.tagName)
|
|
2700
2695
|
this.nav.top = this.id;
|
|
2701
2696
|
else {
|
|
2702
2697
|
if ("string" != typeof this.id)
|
|
2703
2698
|
throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
|
|
2704
2699
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2705
2700
|
throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
|
|
2706
|
-
} this.root = this.nav.top; }, this.init = function () { if (this.
|
|
2707
|
-
this.
|
|
2708
|
-
if (this.
|
|
2709
|
-
var e = this.
|
|
2710
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
2701
|
+
} this.root = this.nav.top; }, this.init = function () { if (this.yb(), !this.root.dp) {
|
|
2702
|
+
this.Hd(), this.nd(), this.Ld(), this.ha(), this.Fd(), this.aa(), this.fe(), this.rb();
|
|
2703
|
+
if (this.ce() && this.Md(), this.Ma = !0, this.xb(), this.Id) {
|
|
2704
|
+
var e = this.Id;
|
|
2705
|
+
this.select(e.date1, e.date2, e.options), this.Id = null;
|
|
2711
2706
|
}
|
|
2712
2707
|
return this;
|
|
2713
|
-
} }, this.
|
|
2708
|
+
} }, this.fe = function () { i.nav.top.onmousedown = this.Wd, i.nav.top.onmousemove = this.Xd; }, this.rb = function () { DayPilot.re(document, "mouseup", i.ge); }, this.ge = function (e) { if (a.start && a.end) {
|
|
2714
2709
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
2715
2710
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
2716
2711
|
return a.start = null, void a.clear();
|
|
2717
2712
|
a.clear();
|
|
2718
2713
|
var n = a.ordered();
|
|
2719
|
-
n.start = new o(n.start).nextVisible(), n.end = new o(n.end).previousVisible(), i.selectionDay = new o(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new o(n.end).date(), a.start = null, a.end = null, i.
|
|
2714
|
+
n.start = new o(n.start).nextVisible(), n.end = new o(n.end).previousVisible(), i.selectionDay = new o(n.start).date(), i.selectionStart = i.selectionDay, i.selectionEnd = new o(n.end).date(), a.start = null, a.end = null, i.fd(), i.nd(), i.Ld(), i.Fd(), i.Gd();
|
|
2720
2715
|
i.O({ "mode": "FreeHand" });
|
|
2721
|
-
} 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.Q = !0); }, this.aa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.
|
|
2716
|
+
} 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.Q = !0); }, this.aa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ub(n);
|
|
2722
2717
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, n = this.each(function () { if (!this.daypilot) {
|
|
2723
2718
|
var n = new DayPilot.Navigator(this.id);
|
|
2724
2719
|
this.daypilot = n;
|
|
@@ -2732,7 +2727,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2732
2727
|
var l = DayPilot.Util.shouldApply(s);
|
|
2733
2728
|
l ? !function (n) { a[n] = function (a) { var o = e(i[n]); t["$apply"](function () { o(t, { "args": a }); }); }; }(s) : !function (n) { a[n] = function (a) { e(i[n])(t, { "args": a }); }; }(s);
|
|
2734
2729
|
} var d = t["$watch"], c = i["config"] || i["daypilotConfig"], u = i["events"] || i["daypilotEvents"]; d.call(t, c, function (e, t) { for (var n in e)
|
|
2735
|
-
a[n] = e[n]; a.update(); }, !0), d.call(t, u, function (e) { a.events.list = e, a.ha(), a.
|
|
2730
|
+
a[n] = e[n]; a.update(); }, !0), d.call(t, u, function (e) { a.events.list = e, a.ha(), a.Fd(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
2736
2731
|
}
|
|
2737
2732
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
2738
2733
|
var DayPilot = {};
|
|
@@ -2742,11 +2737,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2742
2737
|
if ("undefined" == typeof DayPilot.Scheduler) {
|
|
2743
2738
|
var t = navigator.userAgent.indexOf("iPad") > -1 || navigator.userAgent.indexOf("iPhone") > -1, n = {}, i = function () { }, a = !1, o = function () { return document.body; }, r = function () { return document.createElement("div"); };
|
|
2744
2739
|
DayPilot.Scheduler = function (a, s) {
|
|
2745
|
-
this.v = "2025.3.
|
|
2740
|
+
this.v = "2025.3.691-lite";
|
|
2746
2741
|
var l = this;
|
|
2747
|
-
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = t ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.
|
|
2748
|
-
if (!l.
|
|
2749
|
-
return void (l.
|
|
2742
|
+
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = t ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.he = -1, this.ie = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.zb = {}, this.zb.cells = [], this.zb.linesVertical = {}, this.zb.linesHorizontal = {}, this.zb.timeHeaderGroups = [], this.zb.timeHeader = {}, this.zb.events = [], this.nav = {}, this.scrollTo = function (e) { l.je(e); }, this.je = function (e) { if (e) {
|
|
2743
|
+
if (!l.Ma)
|
|
2744
|
+
return void (l.ke = e);
|
|
2750
2745
|
var t;
|
|
2751
2746
|
if (e instanceof DayPilot.Date)
|
|
2752
2747
|
t = this.getPixels(e).left;
|
|
@@ -2757,85 +2752,85 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2757
2752
|
throw new DayPilot.Exception("Invalid scrollTo() parameter. Accepted parameters: string (ISO date), number (pixels), DayPilot.Date object");
|
|
2758
2753
|
t = e;
|
|
2759
2754
|
}
|
|
2760
|
-
var n = l.
|
|
2761
|
-
t < 0 && (t = 0), t > n - i && (t = n - i), l.
|
|
2755
|
+
var n = l.le.clientWidth, i = l.nav.scroll.clientWidth;
|
|
2756
|
+
t < 0 && (t = 0), t > n - i && (t = n - i), l.me(t);
|
|
2762
2757
|
} }, this.scrollToResource = function (e) { DayPilot.complete(function () { var t; if ("string" == typeof e || "number" == typeof e)
|
|
2763
|
-
t = l.
|
|
2758
|
+
t = l.ne(e);
|
|
2764
2759
|
else {
|
|
2765
2760
|
if (!(e instanceof DayPilot.Row))
|
|
2766
2761
|
throw new DayPilot.Exception("Invalid scrollToResource() argument: id or DayPilot.Row expected");
|
|
2767
|
-
t = l.
|
|
2768
|
-
} t && setTimeout(function () { var e = t.top; l.nav.scroll.scrollTop = e; }, 100); }); }, this.
|
|
2769
|
-
var e = l.
|
|
2762
|
+
t = l.ne(e.id);
|
|
2763
|
+
} t && setTimeout(function () { var e = t.top; l.nav.scroll.scrollTop = e; }, 100); }); }, this.oe = function () { if (this.floatingTimeHeaders && this.timeHeader) {
|
|
2764
|
+
var e = l.pe();
|
|
2770
2765
|
if (e) {
|
|
2771
|
-
l.
|
|
2766
|
+
l.qe();
|
|
2772
2767
|
for (var t = e.pixels.left, n = e.pixels.right + e.sw, i = [], a = 0; a < this.timeHeader.length; a++)
|
|
2773
2768
|
for (var o = 0; o < this.timeHeader[a].length; o++) {
|
|
2774
2769
|
var r = this.timeHeader[a][o], s = r.left, d = r.left + r.width, c = null;
|
|
2775
|
-
if (s < t && t < d && (c = {}, c.x = o, c.y = a, c.marginLeft = t - s, c.marginRight = 0, c.div = l.
|
|
2776
|
-
c || (c = {}, c.x = o, c.y = a, c.marginLeft = 0, c.div = l.
|
|
2770
|
+
if (s < t && t < d && (c = {}, c.x = o, c.y = a, c.marginLeft = t - s, c.marginRight = 0, c.div = l.zb.timeHeader[o + "_" + a], i.push(c)), s < n && n < d) {
|
|
2771
|
+
c || (c = {}, c.x = o, c.y = a, c.marginLeft = 0, c.div = l.zb.timeHeader[o + "_" + a], i.push(c)), c.marginRight = d - n;
|
|
2777
2772
|
break;
|
|
2778
2773
|
}
|
|
2779
2774
|
}
|
|
2780
2775
|
for (var u = 0; u < i.length; u++) {
|
|
2781
2776
|
var c = i[u];
|
|
2782
|
-
l.
|
|
2777
|
+
l.se(c.div, c.marginLeft, c.marginRight);
|
|
2783
2778
|
}
|
|
2784
2779
|
}
|
|
2785
|
-
} }, this.
|
|
2786
|
-
var d = l.
|
|
2787
|
-
d.
|
|
2788
|
-
return !0; }); }, d.
|
|
2780
|
+
} }, this.te = function () { l.oe(), l.ve(); }, this.we = {};
|
|
2781
|
+
var d = l.we;
|
|
2782
|
+
d.xe = function (e, t, n, i) { var a = e, o = e + n, r = t, s = t + i; return l.elements.events.filter(function (e) { var t = e.event, n = t.part.left, i = t.part.left + t.part.width, d = l.rowlist[t.part.dayIndex], c = d.top + t.part.top, u = c + l.eventHeight; if (DayPilot.Util.overlaps(n, i, a, o) && DayPilot.Util.overlaps(c, u, r, s))
|
|
2783
|
+
return !0; }); }, d.ye = function () { var e = [], t = l.pe(); if (!t)
|
|
2789
2784
|
return e; for (var n = t.pixels.left, i = 0; i < l.elements.events.length; i++) {
|
|
2790
2785
|
var a = l.elements.events[i], o = a.event, r = o.part.left, s = o.part.left + o.part.width;
|
|
2791
2786
|
r < n && n < s && e.push(a);
|
|
2792
|
-
} return e.area = t, e; }, this.
|
|
2793
|
-
var e = d.
|
|
2794
|
-
l.
|
|
2795
|
-
} }, this.elements.sections = [], this.elements.hsections = [], this.
|
|
2787
|
+
} return e.area = t, e; }, this.ve = function () { if (this.floatingEvents) {
|
|
2788
|
+
var e = d.ye();
|
|
2789
|
+
l.ze = performance.now(), e.forEach(function (t) { var n = t.event, i = e.area.pixels.left, a = n.part.left, o = i - a; l.Ae(t, o, 0); }), l.Be();
|
|
2790
|
+
} }, this.elements.sections = [], this.elements.hsections = [], this.se = function (e, t, n) { var i = r(); i.className = l.L("_timeheader_float"), i.style.position = "absolute", i.style.left = t + "px", i.style.right = n + "px", i.style.top = "0px", i.style.bottom = "0px", i.style.overflow = "hidden"; var a = r(); a.className = l.L("_timeheader_float_inner"); var o = e.cell.th; a.innerHTML = l.ab(o.text, o.innerHTML), o.fontColor && (a.style.color = o.fontColor), i.appendChild(a), i.Ce = { marginLeft: t, marginRight: n }, e.section = i, e.insertBefore(i, e.firstChild.nextSibling), e.firstChild.innerHTML = "", this.elements.hsections.push(e); }, this.qe = function () { for (var e = 0; e < this.elements.hsections.length; e++) {
|
|
2796
2791
|
var t = this.elements.hsections[e], n = t.cell;
|
|
2797
|
-
n && t.firstChild && (t.firstChild.innerHTML = l
|
|
2798
|
-
} this.elements.hsections = []; }, this.
|
|
2799
|
-
return i.
|
|
2792
|
+
n && t.firstChild && (t.firstChild.innerHTML = l.ab(n.th.text, n.th.innerHTML)), DayPilot.de(t.section), t.section = null;
|
|
2793
|
+
} this.elements.hsections = []; }, this.Ae = function (e, t, n) { var i = e.section; if (i)
|
|
2794
|
+
return i.Ce && i.Ce.marginLeft === t && i.Ce.marginRight === n ? void (i.Ce.stamp = l.ze) : (e.section.style.left = t + "px", e.section.style.right = n + "px", void (i.Ce = { marginLeft: t, marginRight: n, stamp: l.ze })); i = r(), i.className = l.L("_event_float"), i.style.position = "absolute", i.style.left = t + "px", i.style.right = n + "px", i.style.top = "0px", i.style.bottom = "0px", i.style.overflow = "hidden"; var a = r(); a.className = l.L("_event_float_inner"), a.innerHTML = e.event.client.html(), i.appendChild(a), i.Ce = { marginLeft: t, marginRight: n, stamp: l.ze }, e.section = i, e.insertBefore(i, e.firstChild.nextSibling), e.firstChild.innerHTML = ""; var o = e.event, s = o.cache || o.data; s.fontColor && (a.style.color = s.fontColor), this.elements.sections.push(e); }, this.Be = function () { for (var e = [], t = 0; t < this.elements.sections.length; t++) {
|
|
2800
2795
|
var n = this.elements.sections[t];
|
|
2801
|
-
if (n.section && n.section.
|
|
2796
|
+
if (n.section && n.section.Ce && n.section.Ce.stamp === l.ze)
|
|
2802
2797
|
e.push(n);
|
|
2803
2798
|
else {
|
|
2804
2799
|
var i = n.event;
|
|
2805
2800
|
i && (n.firstChild.innerHTML = i.client.html()), DayPilot.de(n.section), n.section = null;
|
|
2806
2801
|
}
|
|
2807
|
-
} this.elements.sections = e; }, this.setScrollX = function (e) { l.
|
|
2808
|
-
!function () { var e = l.
|
|
2802
|
+
} this.elements.sections = e; }, this.setScrollX = function (e) { l.De.enabled ? (l.De.scrollXRequested = e, setTimeout(function () { var e = l.De.scrollXRequested; "number" == typeof e && l.me(e); }, 0)) : l.me(e); }, this.me = function (e) { var t = l.nav.scroll, n = l.Ee(); t.clientWidth + e > n && (e = n - t.clientWidth), l.divTimeScroll.scrollLeft = e, t.scrollLeft = e; }, this.setScrollY = function (e) { l.De.enabled ? (l.De.scrollYRequested = e, setTimeout(function () { var e = l.De.scrollYRequested; "number" == typeof e && l.Fe(e); }, 0)) : l.Fe(e); }, this.Fe = function (e) { var t = l.nav.scroll, n = l.he; t.clientHeight + e > n && (e = n - t.clientHeight), l.divResScroll.scrollTop = e, t.scrollTop = e; }, this.setScroll = function (e, t) { l.setScrollX(e), l.setScrollY(t); }, this.ma = function () { if (this.nav.scroll) {
|
|
2803
|
+
!function () { var e = l.Ee(); l.le.style.height = l.he + "px", l.le.style.width = e + "px", e > l.nav.scroll.clientWidth ? l.nav.scroll.style.overflowX = "auto" : l.nav.scroll.style.overflowX = "hidden"; }();
|
|
2809
2804
|
var e = 1;
|
|
2810
2805
|
this.nav.scroll.style.height = "30px";
|
|
2811
|
-
var t = this.
|
|
2812
|
-
if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.
|
|
2806
|
+
var t = this.Za(), n = t + this.Ge() + e;
|
|
2807
|
+
if (t >= 0 && (this.nav.scroll.style.height = t + "px", this.He.style.height = t + "px"), this.nav.divider && ((!n || isNaN(n) || n < 0) && (n = 0), this.nav.divider.style.height = n + "px"), this.nav.top.style.height = n + "px", l.nav.resScrollSpace) {
|
|
2813
2808
|
var i = 30;
|
|
2814
2809
|
"Auto" === l.heightSpec && (i = DayPilot.sh(l.nav.scroll)), l.nav.resScrollSpace.style.height = i + "px";
|
|
2815
2810
|
}
|
|
2816
2811
|
for (var a = 0; a < this.elements.linesVertical.length; a++)
|
|
2817
|
-
this.elements.linesVertical[a].style.height = this.
|
|
2818
|
-
} }, this.
|
|
2812
|
+
this.elements.linesVertical[a].style.height = this.he + "px";
|
|
2813
|
+
} }, this.Ie = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(), this.timeHeader = []; var e = this.timeHeaders; e || (e = [{ "groupBy": this.cellGroupBy }, { "groupBy": "Cell" }]); for (var t = l.startDate.addDays(l.days), n = 0; n < e.length; n++) {
|
|
2819
2814
|
var i = e[n].groupBy, a = e[n].format;
|
|
2820
2815
|
"Default" === i && (i = this.cellGroupBy);
|
|
2821
2816
|
for (var o = [], r = l.startDate; r.ticks < t.ticks;) {
|
|
2822
2817
|
var s = {};
|
|
2823
|
-
if (s.start = r, s.end = this.
|
|
2818
|
+
if (s.start = r, s.end = this.Je(s.start, i), s.start.ticks === s.end.ticks)
|
|
2824
2819
|
break;
|
|
2825
2820
|
s.left = this.getPixels(s.start).left;
|
|
2826
2821
|
var d = this.getPixels(s.end).left, c = d - s.left;
|
|
2827
|
-
s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.
|
|
2822
|
+
s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.Ke()) : s.text = this.Le(s, i), c > 0 && o.push(s), r = s.end;
|
|
2828
2823
|
}
|
|
2829
2824
|
this.timeHeader.push(o);
|
|
2830
|
-
} }, this.getPixels = function (e) { var t = l.startDate.addDays(l.days); e = e.ticks > t.ticks ? t.addTime(-1) : e; var n = e.ticks - this.startDate.ticks, i = l.
|
|
2831
|
-
return null; var a = i.x, o = l.
|
|
2832
|
-
return null; var r = n && !t ? o.end : o.start; return t ? r.addTime(this.
|
|
2833
|
-
return null; var a = {}; return a.x = n, a.offset = e % l.cellWidth, a.cell = i, a; }, this.
|
|
2834
|
-
return { past: !0 }; var i = Math.floor(t / n); return { i: i, current: l.
|
|
2825
|
+
} }, this.getPixels = function (e) { var t = l.startDate.addDays(l.days); e = e.ticks > t.ticks ? t.addTime(-1) : e; var n = e.ticks - this.startDate.ticks, i = l.Cb(n), a = l.cellWidth, o = Math.floor(i / a), r = o * a; return { left: i, boxLeft: r, boxRight: r + a, i: o }; }, this.getDate = function (e, t, n) { var i = this.Me(e, n); if (!i)
|
|
2826
|
+
return null; var a = i.x, o = l.Ne(a); if (!o)
|
|
2827
|
+
return null; var r = n && !t ? o.end : o.start; return t ? r.addTime(this.Db(i.offset)) : r; }, this.Me = function (e, t) { t && (e -= 1); var n = Math.floor(e / l.cellWidth), i = l.Ne(n); if (!i)
|
|
2828
|
+
return null; var a = {}; return a.x = n, a.offset = e % l.cellWidth, a.cell = i, a; }, this.Oe = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * l.Pe() * 1e3; if (t < 0)
|
|
2829
|
+
return { past: !0 }; var i = Math.floor(t / n); return { i: i, current: l.Ne(i) }; }, this.Cb = function (e) { var t = 60 * l.Pe() * 1e3, n = l.cellWidth; return Math.floor(n * e / t); }, this.Db = function (e) { var t = 60 * l.Pe() * 1e3, n = l.cellWidth; return Math.floor(e / n * t); }, this.Qe = function (e) { DayPilot.Global.touch.start || n.Re || (l.Se = {}, l.va(this, e)); }, this.va = function (e, t) { e.event && l.Te(e, t); }, this.xa = function (e) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
|
|
2835
2830
|
var t = this.event;
|
|
2836
2831
|
if (e.cancelBubble = !0, e.preventDefault(), !this.event.client.rightClickEnabled())
|
|
2837
2832
|
return !1;
|
|
2838
|
-
l.
|
|
2833
|
+
l.Ue(e);
|
|
2839
2834
|
var n = {};
|
|
2840
2835
|
if (n.e = t, n.div = this, n.originalEvent = e, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onEventRightClick && (l.onEventRightClick(n), n.preventDefault.value))
|
|
2841
2836
|
return !1;
|
|
@@ -2845,11 +2840,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2845
2840
|
i ? i.show(t) : l.contextMenu && l.contextMenu.show(this.event);
|
|
2846
2841
|
}
|
|
2847
2842
|
return "function" == typeof l.onEventRightClicked && l.onEventRightClicked(n), !1;
|
|
2848
|
-
} }, this.
|
|
2843
|
+
} }, this.Ne = function (e) { var t = l.Pe(), n = 60 * t * 1e3; return { start: l.startDate.addTime(e * n), end: l.startDate.addTime((e + 1) * n), left: e * l.cellWidth, width: l.cellWidth }; }, this.Te = function (e, t) { if ("boolean" == typeof t)
|
|
2849
2844
|
throw new DayPilot.Exception("Invalid _eventClickSingle parameters"); var n = e.event; if (n) {
|
|
2850
2845
|
var i = t.ctrlKey, a = t.metaKey;
|
|
2851
2846
|
if (n.client.clickEnabled()) {
|
|
2852
|
-
l.
|
|
2847
|
+
l.Ue(t);
|
|
2853
2848
|
var o = {};
|
|
2854
2849
|
o.e = n, o.control = l, o.div = e, o.originalEvent = t, o.ctrl = i, o.meta = a, o.shift = t.shiftKey, o.preventDefault = function () { this.preventDefault.value = !0; }, o.toJSON = function () { return DayPilot.Util.copyProps(o, {}, ["e", "ctrl", "meta", "shift"]); }, "function" == typeof l.onEventClick && (l.onEventClick(o), o.preventDefault.value) || "function" == typeof l.onEventClicked && l.onEventClicked(o);
|
|
2855
2850
|
}
|
|
@@ -2859,80 +2854,82 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2859
2854
|
}
|
|
2860
2855
|
"function" == typeof l.onEventDeleted && l.onEventDeleted(t);
|
|
2861
2856
|
} }, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, i) { if ("Disabled" !== this.eventResizeHandling) {
|
|
2862
|
-
n = l.
|
|
2857
|
+
n = l.Ve(n);
|
|
2863
2858
|
var a = {};
|
|
2864
2859
|
a.e = e, a.async = !1, a.loaded = function () { o(); }, a.newStart = t, a.newEnd = n, a.what = i, a.preventDefault = function () { this.preventDefault.value = !0; }, a.control = l, a.toJSON = function () { return DayPilot.Util.copyProps(a, {}, ["e", "async", "newStart", "newEnd"]); };
|
|
2865
2860
|
var o = function () { if (!a.preventDefault.value) {
|
|
2866
2861
|
switch (a.loaded = {}, t = a.newStart, n = a.newEnd, l.eventResizeHandling) {
|
|
2867
|
-
case "Update": l.
|
|
2862
|
+
case "Update": l.We(a);
|
|
2868
2863
|
}
|
|
2869
2864
|
"function" == typeof l.onEventResized && l.onEventResized(a);
|
|
2870
2865
|
} };
|
|
2871
2866
|
"function" == typeof l.onEventResize && l.onEventResize(a), a.async || o();
|
|
2872
|
-
} }, this.
|
|
2867
|
+
} }, this.sb = function (e) { e = e || {}, clearTimeout(l.Xe), l.timeHeader = null, l.cellProperties = {}, l.Ie(), l.Ye(), l.events.Ze(), l.ca.Od(), l.clearSelection(), l.ha(), l.$e(), l._e(), l.tb(), l.af(), l.bf(), l.cf(), l.ia(), l.Y(), l.df(), l.ef = {}, l.ff(), l.ma(), l.gf(), e.immediateEvents ? l.na() : setTimeout(function () { l.na(); }, 100), this.visible ? l.ie !== l.visible && this.show() : this.hide(), this.ie = this.visible, this.te(), l.hf(), this.if(); }, this.if = function () { if ("function" == typeof l.onAfterUpdate) {
|
|
2873
2868
|
var e = {};
|
|
2874
2869
|
l.onAfterUpdate(e);
|
|
2875
|
-
} }, this.update = function (e) { if (!l.
|
|
2870
|
+
} }, this.update = function (e) { if (!l.Ma)
|
|
2876
2871
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that hasn't been initialized."); if (l.Q)
|
|
2877
2872
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Scheduler object that has been disposed already. Calling .dispose() destroys the object and makes it unusable."); c.request(e); };
|
|
2878
2873
|
var c = {};
|
|
2879
|
-
c.timeout = null, c.options = null, c.enabled = !1, c.request = function (e) { c.enabled ? (clearTimeout(c.timeout), c.
|
|
2874
|
+
c.timeout = null, c.options = null, c.enabled = !1, c.request = function (e) { c.enabled ? (clearTimeout(c.timeout), c.jf(e), c.timeout = setTimeout(c.doit)) : (c.jf(e), c.doit()); }, c.jf = function (e) { if (e) {
|
|
2880
2875
|
c.options || (c.options = {});
|
|
2881
2876
|
for (var t in e)
|
|
2882
2877
|
c.options[t] = e[t];
|
|
2883
|
-
} }, c.doit = function () {
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2878
|
+
} }, c.doit = function () {
|
|
2879
|
+
var e = c.options;
|
|
2880
|
+
return c.options = null,
|
|
2881
|
+
l.Ma ? (l.ub(e), l.sb({ "immediateEvents": !0 }), void l.xb()) : void l.ub(e);
|
|
2882
|
+
}, this.kf = function (e) { e.forEach(function (e) { l.lf(e.index); }); }, this.mf = function (e) { return e && 0 !== e.length ? e[0].isRow ? e : e.map(function (e) { return l.rowlist[e]; }) : []; }, this.nf = function (e, t, n) { e = DayPilot.ua(e), e = l.mf(e), l.kf(e), this.of ? (this.$e(), this.bf(), this.df(), e.forEach(function (e) { l.pf(e.index); }), e.forEach(function (e) { l.qf(e.index); }), this.gf(), this.rf()) : (e.forEach(function (e) { t || l.pf(e.index), l.qf(e.index); }), e.forEach(function (e) { l.sf(e.index); }), l.gf()), l.ve(), n && n(), this.ff(); }, this.Ve = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().ticks === e.ticks ? e.addDays(-1) : e.getDatePart(); }, this.tf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart().addDays(1); }, this.uf = function (e) { return "DateTime" === l.eventEndSpec ? e : e.getDatePart(); }, this.M = function (e, t, n, i, a) { if (l.vf = null, "Disabled" !== l.eventMoveHandling) {
|
|
2883
|
+
n = l.Ve(n);
|
|
2887
2884
|
var o = {};
|
|
2888
2885
|
o.e = e, o.newStart = t, o.newEnd = n, o.newResource = i, o.ctrl = !1, o.meta = !1, o.shift = !1, a && (o.shift = a.shiftKey, o.ctrl = a.ctrlKey, o.meta = a.metaKey), o.control = l, o.areaData = DayPilot.Global.movingAreaData, o.toJSON = function () { return DayPilot.Util.copyProps(o, {}, ["e", "newStart", "newEnd", "newResource", "ctrl", "meta", "shift"]); }, o.preventDefault = function () { this.preventDefault.value = !0; };
|
|
2889
2886
|
var r = function () { if (o.loaded = function () { }, o.preventDefault.value)
|
|
2890
|
-
return void l.
|
|
2891
|
-
case "Update": l.
|
|
2892
|
-
} l.
|
|
2887
|
+
return void l.wf(); switch (t = o.newStart, n = o.newEnd, l.eventMoveHandling) {
|
|
2888
|
+
case "Update": l.We(o);
|
|
2889
|
+
} l.wf(), "function" == typeof l.onEventMoved && l.onEventMoved(o); };
|
|
2893
2890
|
o.async = !1, o.loaded = function () { r(); }, "function" == typeof l.onEventMove && l.onEventMove(o), o.async || r();
|
|
2894
|
-
} }, this.
|
|
2891
|
+
} }, this.We = function (e) { var t = e.e, n = e.newStart, i = e.newEnd, a = e.newResource; t.start(n), t.end(i), t.resource(a), l.events.update(t), l.events.xf(); }, this.yf = function (e) { if (e)
|
|
2895
2892
|
if (e.args)
|
|
2896
2893
|
l.O(e.args.start, e.args.end, e.args.resource);
|
|
2897
2894
|
else {
|
|
2898
|
-
var t = l.
|
|
2895
|
+
var t = l.zf(e);
|
|
2899
2896
|
if (!t)
|
|
2900
2897
|
return;
|
|
2901
2898
|
l.O(t.start, t.end, t.resource);
|
|
2902
2899
|
} }, this.O = function (e, t, n) { if ("Disabled" !== l.timeRangeSelectedHandling) {
|
|
2903
2900
|
var i = t;
|
|
2904
|
-
t = l.
|
|
2901
|
+
t = l.Ve(i);
|
|
2905
2902
|
var a = {};
|
|
2906
2903
|
if (a.control = l, a.start = e, a.end = t, a.resource = n, a.preventDefault = function () { this.preventDefault.value = !0; }, a.toJSON = function () { return DayPilot.Util.copyProps(a, {}, ["start", "end", "resource"]); }, "function" == typeof l.onTimeRangeSelect) {
|
|
2907
2904
|
if (l.onTimeRangeSelect(a), a.preventDefault.value)
|
|
2908
2905
|
return;
|
|
2909
2906
|
e = a.start, t = a.end;
|
|
2910
2907
|
}
|
|
2911
|
-
t = l.
|
|
2912
|
-
} }, this.
|
|
2908
|
+
t = l.tf(t), l.Af(l.Bf, e, t), l.Cf(l.Bf), "function" == typeof l.onTimeRangeSelected && l.onTimeRangeSelected(a);
|
|
2909
|
+
} }, this.Af = function (e, t, n) { if (e) {
|
|
2913
2910
|
var i, a = n;
|
|
2914
|
-
t.getTime() < l.startDate.getTime() ? (e.start.x = 0, e.start.time = l.startDate.getTime()) : (i = l.
|
|
2911
|
+
t.getTime() < l.startDate.getTime() ? (e.start.x = 0, e.start.time = l.startDate.getTime()) : (i = l.Oe(t), e.start.x = i.i, e.start.time = t);
|
|
2915
2912
|
var o = l.startDate.addDays(l.days);
|
|
2916
|
-
a.getTime() > o.getTime() ? (e.end.x = l.
|
|
2917
|
-
} }, this.
|
|
2913
|
+
a.getTime() > o.getTime() ? (e.end.x = l.Df(), e.end.time = o.getTime()) : (i = l.Oe(a.addMilliseconds(-1)), e.end.x = i.i, e.end.time = n);
|
|
2914
|
+
} }, this.Ef = function (e, t) { l.Ff(e, t); }, this.Ff = function (e, t) { var n = {}; n.resource = e, n.row = e, n.ctrl = t.ctrlKey, n.shift = t.shiftKey, n.meta = t.metaKey, n.originalEvent = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onRowClick && (l.onRowClick(n), n.preventDefault.value) || "function" == typeof l.onRowClicked && l.onRowClicked(n); }, this.Gf = function (e) { var t = {}; t.header = e, t.control = l, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderClick && (l.onTimeHeaderClick(t), t.preventDefault.value) || "function" == typeof l.onTimeHeaderClicked && l.onTimeHeaderClicked(t); }, this.getViewport = function () { var e = this.nav.scroll.scrollLeft, t = this.nav.scroll.scrollTop, n = {}, i = l.Hf(e, t), a = l.If(i), o = l.Ne(i.start.x), r = l.Ne(i.end.x); return n.start = l.getDate(e, !0), n.end = l.getDate(e + l.nav.scroll.clientWidth, !0, !0), n.resources = a, o && (n.topLeft = { "start": o.start, "end": o.end, x: i.start.x, y: i.start.y, "resource": a[0] }), r && (n.bottomRight = { "start": r.start, "end": r.end, x: i.end.x, y: i.end.y, "resource": a[a.length - 1] }), n.rows = function () { return n.resources.map(function (e) { return l.rows.find(e); }); }, n.events = function () { var e = []; return n.rows().forEach(function (t) { e = e.concat(t.events.forRange(n.start, n.end)); }), e; }, n; }, this.Hf = function (e, t) { var n = {}; n.start = {}, n.end = {}; var i = l.Me(e), a = l.Me(e + l.nav.scroll.clientWidth); i && (n.start.x = i.x), a && (n.end.x = a.x); var o = t, r = t + l.nav.scroll.clientHeight; n.start.y = l.Jf(o).i, n.end.y = l.Jf(r).i, n.start.x = DayPilot.Util.atLeast(n.start.x, 0); var s = l.Df(); return n.end.x >= s && (n.end.x = s - 1), n; }, this.If = function (e) { e || (e = this.Hf(this.nav.scroll.scrollLeft, this.nav.scroll.scrollTop)); var t = []; t.ignoreToJSON = !0; for (var n = e.start.y; n <= e.end.y; n++) {
|
|
2918
2915
|
var i = l.rowlist[n];
|
|
2919
2916
|
i && t.push(i.id);
|
|
2920
|
-
} return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
2917
|
+
} return t; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.tb = function () { l.nav.top.className !== l.L("_main") && (l.nav.top.className = l.L("_main"), l.nav.dh1.className = l.L("_divider_horizontal"), l.nav.dh2.className = l.L("_divider_horizontal"), l.divResScroll.className = l.L("_rowheader_scroll"), l.nav.divider.className = l.L("_divider") + " " + l.L("_splitter"), l.nav.scroll.className = l.L("_scrollable"), l.le.className = l.L("_matrix") + " " + l.L("_grid_main")); }, this.aa = function () { this.nav.top.dispose = this.dispose; }, this.dispose = function () { var e = l; if (e.Ma && !e.Q) {
|
|
2921
2918
|
e.Q = !0;
|
|
2922
|
-
for (var t in e.
|
|
2923
|
-
var i = e.
|
|
2919
|
+
for (var t in e.Kf) {
|
|
2920
|
+
var i = e.Kf[t];
|
|
2924
2921
|
DayPilot.isArray(i) ? i.forEach(function (e) { clearTimeout(e); }) : clearTimeout(i);
|
|
2925
2922
|
}
|
|
2926
|
-
e.Y(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.
|
|
2927
|
-
} }, this.disposed = function () { return l.Q; }, this.ba = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = l.
|
|
2923
|
+
e.Y(), e.divCells = null, e.divCorner = null, e.divEvents = null, e.divHeader && (e.divHeader.rows = null), e.divHeader = null, e.divLines = null, e.divNorth = null, e.divRange = null, e.divResScroll = null, e.divStretch = null, e.divTimeScroll = null, e.He = null, e.le.calendar = null, e.le = null, e.nav.top.onmousemove = null, e.nav.top.onmouseout = null, e.nav.top.dispose = null, e.nav.top.ontouchstart = null, e.nav.top.ontouchmove = null, e.nav.top.ontouchend = null, e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top = null, e.nav.scroll.onscroll = null, e.nav.scroll.root = null, e.nav.scroll = null, n.sc(e), u = null;
|
|
2924
|
+
} }, this.disposed = function () { return l.Q; }, this.ba = function (e) { var t = null; t = e.nodeType ? e.event : e; var n = l.Lf(t), i = l.rowlist, a = l.eventHeight, o = t.part && t.part.top && i[t.part.dayIndex] ? t.part.top + i[t.part.dayIndex].top : n.top, s = n.left, d = n.width, c = document.createElement("div"); c.style.position = "absolute", c.style.width = d + "px", c.style.height = a + "px", c.style.left = s + "px", c.style.top = o + "px", c.style.overflow = "hidden"; var u = r(); return c.appendChild(u), c.className = this.L("_shadow"), u.className = this.L("_shadow_inner"), l.divShadow.appendChild(c), c.calendar = l, c; }, this.Jf = function (e) { for (var t, n = l.rowlist, i = {}, a = 0, o = 0, r = n.length, s = 0; s < r; s++) {
|
|
2928
2925
|
var d = n[s];
|
|
2929
2926
|
if (o += d.height, a = o - d.height, t = d, i.top = a, i.bottom = o, i.i = s, i.element = t, e < o)
|
|
2930
2927
|
break;
|
|
2931
|
-
} return i; }, this.
|
|
2928
|
+
} return i; }, this.Mf = function (e) { if (e > this.rowlist.length - 1)
|
|
2932
2929
|
throw new DayPilot.Exception("Row index too high"); for (var t = 0, n = 0; n <= e; n++)
|
|
2933
2930
|
t += this.rowlist[n].height; var i = this.rowlist[e]; return { top: t - i.height, height: i.height, bottom: t, i: e, data: i }; }, this.events.find = function (e) { if (!l.events.list || "undefined" == typeof l.events.list.length)
|
|
2934
2931
|
return null; if ("function" == typeof e)
|
|
2935
|
-
return l.
|
|
2932
|
+
return l.Nf(e); for (var t = l.events.list.length, n = 0; n < t; n++)
|
|
2936
2933
|
if (l.events.list[n].id === e)
|
|
2937
2934
|
return new DayPilot.Event(l.events.list[n], l); return null; }, this.events.findAll = function (e) { if ("function" == typeof e) {
|
|
2938
2935
|
for (var t = l.events.list.length, n = [], i = 0; i < t; i++) {
|
|
@@ -2943,13 +2940,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2943
2940
|
} if ("object" == typeof e)
|
|
2944
2941
|
return l.events.findAll(function (t) { for (var n in e)
|
|
2945
2942
|
if (e[n] !== t.data[n])
|
|
2946
|
-
return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.
|
|
2943
|
+
return !1; return !0; }); throw new DayPilot.Exception("function or object argument expected"); }, this.Nf = function (e) { for (var t = l.events.list.length, n = 0; n < t; n++) {
|
|
2947
2944
|
var i = new DayPilot.Event(l.events.list[n], l);
|
|
2948
2945
|
if (e(i))
|
|
2949
2946
|
return i;
|
|
2950
|
-
} return null; }, this.events.focus = function (e) { var t = l.
|
|
2947
|
+
} return null; }, this.events.focus = function (e) { var t = l.Of(e); t && t.focus(); }, this.events.scrollIntoView = function (e) { if (l.Of(e)) {
|
|
2951
2948
|
var t = e.start(), n = l.getViewport();
|
|
2952
|
-
!DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(l.sa(), l.
|
|
2949
|
+
!DayPilot.Util.overlaps(n.start, n.end, e.start(), e.end()) && DayPilot.Util.overlaps(l.sa(), l.Pf(), e.start(), e.end()) && l.scrollTo(t, "fast", "middle");
|
|
2953
2950
|
var i = e.resource();
|
|
2954
2951
|
l.getViewport().resources.indexOf(i) === -1 && l.scrollToResource(i);
|
|
2955
2952
|
} }, this.events.all = function () { for (var e = [], t = 0; t < l.events.list.length; t++) {
|
|
@@ -2969,48 +2966,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2969
2966
|
var r = {};
|
|
2970
2967
|
if (r.preventDefault = function () { this.preventDefault.value = !0; }, r.data = n, "function" == typeof t && t(r), r.preventDefault.value)
|
|
2971
2968
|
return;
|
|
2972
|
-
l.events.list = r.data, l.
|
|
2969
|
+
l.events.list = r.data, l.Ma && l.update();
|
|
2973
2970
|
} }; if (l.eventsLoadMethod && "POST" === l.eventsLoadMethod.toUpperCase())
|
|
2974
2971
|
DayPilot.ajax({ "method": "POST", "contentType": "application/json", "data": { "start": l.visibleStart().toString(), "end": l.visibleEnd().toString() }, "url": e, "success": a, "error": i });
|
|
2975
2972
|
else {
|
|
2976
2973
|
var o = e, r = "start=" + l.visibleStart().toString() + "&end=" + l.visibleEnd().toString();
|
|
2977
2974
|
o += o.indexOf("?") > -1 ? "&" + r : "?" + r, DayPilot.ajax({ "method": "GET", "url": o, "success": a, "error": i });
|
|
2978
|
-
} }, this.events.
|
|
2975
|
+
} }, this.events.Qf = function (e) { var t = []; return l.rowlist.forEach(function (n) { l.Rf(n.index); for (var i = 0; i < n.events.length; i++) {
|
|
2979
2976
|
var a = n.events[i].data;
|
|
2980
|
-
if (l.
|
|
2977
|
+
if (l.Sf(a, e)) {
|
|
2981
2978
|
t.push(n), n.events.splice(i, 1);
|
|
2982
2979
|
break;
|
|
2983
2980
|
}
|
|
2984
|
-
} }), t; }, this.events.
|
|
2981
|
+
} }), t; }, this.events.Tf = function (e) { if (!e)
|
|
2985
2982
|
return null; for (var t = l.rowlist, n = 0; n < t.length; n++) {
|
|
2986
2983
|
var i = t[n];
|
|
2987
|
-
l.
|
|
2984
|
+
l.Rf(i.index);
|
|
2988
2985
|
for (var a = 0; a < i.events.length; a++) {
|
|
2989
2986
|
var o = i.events[a];
|
|
2990
|
-
if (l.
|
|
2987
|
+
if (l.Sf(o.data, e))
|
|
2991
2988
|
return i.events[a];
|
|
2992
2989
|
}
|
|
2993
|
-
} return null; }, this.events.
|
|
2994
|
-
l.
|
|
2995
|
-
var r = l.
|
|
2996
|
-
r && ("function" == typeof l.onBeforeEventRender && (r.cache = l.
|
|
2997
|
-
} }), t; }, this.
|
|
2990
|
+
} return null; }, this.events.Uf = function (e) { var t = [], n = l.Vf(), i = DayPilot.indexOf(l.events.list, e); l.Ab(i); var a = l.rowlist, o = !1; return a.forEach(function (a) { if (!o) {
|
|
2991
|
+
l.Rf(a.index);
|
|
2992
|
+
var r = l.Wf(e, a);
|
|
2993
|
+
r && ("function" == typeof l.onBeforeEventRender && (r.cache = l.zb.events[i]), t.push(a), n || (o = !0));
|
|
2994
|
+
} }), t; }, this.Sf = function (e, t) { return DayPilot.Util.isSameEvent(e, t); }, this.events.update = function (e, t, n) { if ("object" == typeof e && !(e instanceof DayPilot.Event)) {
|
|
2998
2995
|
var i = l.events.find(e.id);
|
|
2999
2996
|
return l.events.remove(i), void l.events.add(e);
|
|
3000
|
-
} if (n = n || {}, l.events.list.find(function (t) { return l.
|
|
3001
|
-
l.
|
|
3002
|
-
var a = l.events.
|
|
3003
|
-
e.commit(), a = a.concat(l.events.
|
|
2997
|
+
} if (n = n || {}, l.events.list.find(function (t) { return l.Sf(t, e.data); })) {
|
|
2998
|
+
l.De.Xf && (l.De.skip = !0);
|
|
2999
|
+
var a = l.events.Qf(e.data);
|
|
3000
|
+
e.commit(), a = a.concat(l.events.Uf(e.data)), l.events.Yf(a);
|
|
3004
3001
|
} }, this.events.remove = function (e) { if (e) {
|
|
3005
3002
|
if ("string" == typeof e || "number" == typeof e) {
|
|
3006
3003
|
var t = l.events.find(e);
|
|
3007
3004
|
return void l.events.remove(t);
|
|
3008
3005
|
}
|
|
3009
|
-
var n = l.
|
|
3010
|
-
n && l.events.list.splice(n.index, 1), l.
|
|
3011
|
-
var i = l.events.
|
|
3012
|
-
l.events.
|
|
3013
|
-
} }, this.events.add = function (e, t, n) { var n = n || {}, i = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = l, l.events.list || (l.events.list = []); var a = l.
|
|
3006
|
+
var n = l.Zf(e.data);
|
|
3007
|
+
n && l.events.list.splice(n.index, 1), l.De.Xf && (l.De.skip = !0);
|
|
3008
|
+
var i = l.events.Qf(e.data);
|
|
3009
|
+
l.events.Yf(i);
|
|
3010
|
+
} }, this.events.add = function (e, t, n) { var n = n || {}, i = n.renderOnly; e instanceof DayPilot.Event || (e = new DayPilot.Event(e)), e.calendar = l, l.events.list || (l.events.list = []); var a = l.Zf(e); if (i) {
|
|
3014
3011
|
if (!a)
|
|
3015
3012
|
throw new DayPilot.Exception("Unexpected: event not found in list");
|
|
3016
3013
|
}
|
|
@@ -3018,78 +3015,78 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3018
3015
|
if (a)
|
|
3019
3016
|
throw new DayPilot.Exception("The event you are trying to add using DayPilot.Scheduler.events.add() is already loaded. A unique ID is required.");
|
|
3020
3017
|
a || l.events.list.push(e.data);
|
|
3021
|
-
} if (l.
|
|
3022
|
-
l.
|
|
3023
|
-
var o = l.events.
|
|
3024
|
-
l.events.
|
|
3025
|
-
} }, this.events
|
|
3018
|
+
} if (l.Ma) {
|
|
3019
|
+
l.De.Xf && (l.De.skip = !0);
|
|
3020
|
+
var o = l.events.Uf(e.data);
|
|
3021
|
+
l.events.Yf(o);
|
|
3022
|
+
} }, this.events.$f = function (e) { var t = e instanceof DayPilot.Event ? e.data : e, n = new DayPilot.Date(t.start), i = new DayPilot.Date(t.end); return !!l.events.list.find(function (e) { if (l.Sf(t, e))
|
|
3026
3023
|
return !1; if (t.resource !== e.resource)
|
|
3027
|
-
return !1; var a = new DayPilot.Date(e.start), o = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, i, a, o); }); }, this.events.
|
|
3024
|
+
return !1; var a = new DayPilot.Date(e.start), o = new DayPilot.Date(e.end); return DayPilot.Util.overlaps(n, i, a, o); }); }, this.events._f = { "rows": [] }, this.events.ag = null, this.events.Ze = function () { clearTimeout(l.events.ag), l.events.ag = null, l.events._f.rows = []; }, this.events.bg = 0, this.events.Yf = function (e) { var t = l.events._f.rows; e.forEach(function (e) { t.push(e); }), l.events._f.rows = DayPilot.ua(t); var n = l.events.xf; l.events.ag || (l.events.ag = setTimeout(n, l.events.bg)); }, this.events.xf = function () { clearTimeout(l.events.ag), l.events.ag = null; var e = l.events._f.rows; l.events._f.rows = [], l.cg(e), l.dg(), l.Ma && (l.of && l.$e(), l.ma(), l.nf(e)); }, this.De = {}, this.De.enabled = !1, this.De.skip = !1, this.De.skipUpdate = function () { return l.De.skip; }, this.De.skipped = function () { l.De.skip = !1; }, this.De.eg = !1, this.De.Xf = !1, this.ld = {}, this.ld.reactDOM = null, this.ld.react = null, this.fg = function (e) { var t = l.startDate; if (e.ticks === t.ticks)
|
|
3028
3025
|
return e; var n = t; if (e.ticks < t.ticks) {
|
|
3029
3026
|
for (; n.ticks > e.ticks;)
|
|
3030
|
-
n = n.addTime(60 * -l.
|
|
3027
|
+
n = n.addTime(60 * -l.Pe() * 1e3);
|
|
3031
3028
|
return n;
|
|
3032
|
-
} var i = this.
|
|
3033
|
-
return i.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.
|
|
3029
|
+
} var i = this.Oe(e); if (i.current)
|
|
3030
|
+
return i.current.start; throw new DayPilot.Exception("getBoxStart(): time not found"); }, this.Lf = function (e) { var t = this.Jf(l.coords.y); if ("function" != typeof e.end)
|
|
3034
3031
|
throw new DayPilot.Exception("e.end function is not defined"); if (!e.end())
|
|
3035
|
-
throw new DayPilot.Exception("e.end() returns null"); var i = DayPilot.DateUtil.diff(e.rawend(), e.start()); i = DayPilot.Util.atLeast(i, 1); var a = f.
|
|
3032
|
+
throw new DayPilot.Exception("e.end() returns null"); var i = DayPilot.DateUtil.diff(e.rawend(), e.start()); i = DayPilot.Util.atLeast(i, 1); var a = f.gg(i), o = 0, r = l.coords.x; a && (o = e.start().getTime() - this.fg(e.start()).getTime()); var s = 0; if (n.hg)
|
|
3036
3033
|
if (a) {
|
|
3037
|
-
var d = e.start(), c = this.
|
|
3038
|
-
s = n.
|
|
3039
|
-
var u = 60 * l.
|
|
3034
|
+
var d = e.start(), c = this.fg(d);
|
|
3035
|
+
s = n.hg.getTime() - c.getTime();
|
|
3036
|
+
var u = 60 * l.Pe() * 1e3;
|
|
3040
3037
|
s = Math.floor(s / u) * u;
|
|
3041
3038
|
}
|
|
3042
3039
|
else
|
|
3043
|
-
s = n.
|
|
3040
|
+
s = n.hg.getTime() - e.start().getTime(); var h = this.getDate(r, !0).addTime(-s); n.ig && (h = e.start()); var v = l.snapToGrid; v && (h = this.fg(h)), h = h.addTime(o); var p = h.addTime(i), m = h, g = p, y = this.getPixels(m), b = this.getPixels(g.addTime(-1)), w = v ? y.boxLeft : y.left, D = v && a ? b.boxRight - w : b.left - w, x = {}; return x.top = t.top, x.left = w, x.row = t.element, x.rowIndex = t.i, x.width = D, x.start = h, x.end = p, x.relativeY = l.coords.y - t.top, x; }, this.Pe = function () { switch (this.scale) {
|
|
3044
3041
|
case "CellDuration": return this.cellDuration;
|
|
3045
3042
|
case "Minute": return 1;
|
|
3046
3043
|
case "Hour": return 60;
|
|
3047
3044
|
case "Day": return 1440;
|
|
3048
3045
|
case "Week": return 10080;
|
|
3049
|
-
} throw new DayPilot.Exception("can't guess cellDuration value"); }, this.
|
|
3046
|
+
} throw new DayPilot.Exception("can't guess cellDuration value"); }, this.jg = function (e) { return e.end.ticks - e.start.ticks; }, this.kg = function () { var e = n.lg.width, t = n.lg.left, i = n.mg, a = n.ig.dpBorder, o = null, r = null, s = l.snapToGrid, d = !s; "left" === a ? (o = l.getDate(t, d), r = i.rawend()) : "right" === a && (o = i.start(), r = l.getDate(t + e, d, !0)), n.lg.start = o, n.lg.end = r; }, this.ng = function () { var e = l.coords, t = n.ig.dpBorder, i = n.ig.event, a = i.part.left; "right" === t && (a += i.part.width); var o, r, s = n.ig.event.calendar.cellWidth, d = i.part.width, c = i.part.left, u = 0, h = e.x - a, f = l.snapToGrid; if ("right" === t) {
|
|
3050
3047
|
if (o = c, f) {
|
|
3051
|
-
var v = l.
|
|
3048
|
+
var v = l.Me(d + c + h).cell, p = l.Me(c).cell, m = p.left + p.width - c;
|
|
3052
3049
|
r = v.left + v.width - c, r < m && (r = m);
|
|
3053
3050
|
}
|
|
3054
3051
|
else
|
|
3055
3052
|
r = d + h;
|
|
3056
|
-
var g = l.
|
|
3057
|
-
c + r > g && (r = g - c), n.
|
|
3053
|
+
var g = l.Ee();
|
|
3054
|
+
c + r > g && (r = g - c), n.lg.left = c, n.lg.width = r, n.lg.style.left = c + "px", n.lg.style.width = r + "px";
|
|
3058
3055
|
}
|
|
3059
3056
|
else {
|
|
3060
3057
|
if ("left" !== t)
|
|
3061
3058
|
throw new DayPilot.Exception("Invalid dpBorder.");
|
|
3062
3059
|
f ? (h >= d && (h = d), o = Math.floor((c + h + 0) / s) * s, o < u && (o = u)) : o = c + h, r = d - (o - c);
|
|
3063
3060
|
var y = c + d, b = s;
|
|
3064
|
-
f ? "Never" === l.useEventBoxes && (b = d < s ? d : 1) : b = 1, r < b && (r = b, o = y - r), n.
|
|
3065
|
-
} l.
|
|
3066
|
-
var e = n.
|
|
3061
|
+
f ? "Never" === l.useEventBoxes && (b = d < s ? d : 1) : b = 1, r < b && (r = b, o = y - r), n.lg.left = o, n.lg.width = r, n.lg.style.left = o + "px", n.lg.style.width = r + "px";
|
|
3062
|
+
} l.kg(); }, this.og = function () { if (l.coords && n.pg) {
|
|
3063
|
+
var e = n.qg, t = this.Lf(n.pg);
|
|
3067
3064
|
e.row = t.row, e.style.height = DayPilot.Util.atLeast(t.row.height, 0) + "px", e.style.top = t.top + "px", e.style.left = t.left + "px", e.style.width = t.width + "px", e.start = t.start, e.end = t.end;
|
|
3068
|
-
} }, this.
|
|
3069
|
-
var i = l.
|
|
3065
|
+
} }, this.rg = function () { return this.rowHeaderWidth; }, this.sg = function () { return this.tg(l.progressiveRowRenderingPreload); }, this.tg = function (e) { e = e || 0; var t = 0, n = l.rowlist.length; if (l.progressiveRowRendering) {
|
|
3066
|
+
var i = l.pe();
|
|
3070
3067
|
t = i.yStart, n = i.yEnd + 1, t = DayPilot.Util.atLeast(0, t - e), n = Math.min(l.rowlist.length, n + e);
|
|
3071
|
-
} return { "start": t, "end": n }; }, this.
|
|
3068
|
+
} return { "start": t, "end": n }; }, this._e = function () { function e() { var e = l.divHeader; e && (e.rows = []); var t = e; t && (t.innerHTML = ""); } this.ug = !0; var t = this.rg(); e(); var n = this.divHeader; if (n.style.width = t + "px", n.style.height = l.he + "px", l.divHeader = n, l.progressiveRowRendering)
|
|
3072
3069
|
i();
|
|
3073
3070
|
else
|
|
3074
3071
|
for (var a = this.rowlist.length, o = 0; o < a; o++)
|
|
3075
|
-
l.
|
|
3076
|
-
for (var e = this.
|
|
3077
|
-
e.start <= t && t < e.end ? l.
|
|
3072
|
+
l.vg(o); l.wg(), this.divResScroll.appendChild(n); }, this.xg = function () { if (l.progressiveRowRendering)
|
|
3073
|
+
for (var e = this.sg(), t = 0; t < l.rowlist.length; t++)
|
|
3074
|
+
e.start <= t && t < e.end ? l.vg(t) : l.yg(t); }, this.wg = function () { if (!l.ca.zg()) {
|
|
3078
3075
|
var e = l.divHeader, t = r();
|
|
3079
3076
|
t.style.position = "absolute", e.appendChild(t), l.nav.resScrollSpace = t;
|
|
3080
3077
|
var n = r();
|
|
3081
3078
|
n.style.position = "relative", n.style.height = "100%", n.className = this.L("_rowheader"), t.appendChild(n);
|
|
3082
|
-
var i = this.
|
|
3083
|
-
t.style.width = i + "px", t.style.top = this.
|
|
3084
|
-
} }, this.
|
|
3085
|
-
var i = this.
|
|
3079
|
+
var i = this.rg(), t = l.nav.resScrollSpace;
|
|
3080
|
+
t.style.width = i + "px", t.style.top = this.he + "px";
|
|
3081
|
+
} }, this.yg = function (e) { var t = l.divHeader.rows[e]; t && (DayPilot.de(t), l.divHeader.rows[e] = null); }, this.lf = function (e) { this.yg(e), this.vg(e); }, this.vg = function (e) { var t = l.rowlist, n = l.divHeader; if (n && !n.rows[e]) {
|
|
3082
|
+
var i = this.rg(), a = t[e];
|
|
3086
3083
|
if (a) {
|
|
3087
|
-
var o = this.
|
|
3084
|
+
var o = this.Ag(a), s = r();
|
|
3088
3085
|
s.style.position = "absolute", s.style.top = a.top + "px", n.rows[e] = s, s.row = a, s.index = e;
|
|
3089
3086
|
var d = o.row, c = this.rowHeaderWidth;
|
|
3090
3087
|
s.style.width = c + "px", s.style.border = "0px none";
|
|
3091
3088
|
var u = d.toolTip || d.toolTip;
|
|
3092
|
-
u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.
|
|
3089
|
+
u && (s.title = u), "undefined" != typeof d.ariaLabel ? s.setAttribute("aria-label", d.ariaLabel) : s.setAttribute("aria-label", d.text || ""), s.onclick = l.Bg;
|
|
3093
3090
|
var h = r();
|
|
3094
3091
|
h.style.width = c + "px", h.className = this.L("_rowheader"), d.cssClass && DayPilot.Util.addClass(h, d.cssClass), d.cssClass && DayPilot.Util.addClass(h, d.cssClass);
|
|
3095
3092
|
var f = d.backColor || d.backColor;
|
|
@@ -3112,7 +3109,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3112
3109
|
var g = r();
|
|
3113
3110
|
g.style.position = "absolute", g.style.bottom = "0px", g.style.width = "100%", g.style.height = "0px", g.style.boxSizing = "content-box", g.style.borderBottom = "1px solid transparent", g.className = this.L("_resourcedivider"), h.appendChild(g);
|
|
3114
3111
|
var y = r(), b = r();
|
|
3115
|
-
b.innerHTML = l
|
|
3112
|
+
b.innerHTML = l.ab(d.text, d.html), b.className = l.L("_rowheader_inner_text"), s.textDiv = b, s.cellDiv = h, y.appendChild(b), m.appendChild(y);
|
|
3116
3113
|
var w = d.verticalAlignment || d.verticalAlignment;
|
|
3117
3114
|
if (w)
|
|
3118
3115
|
switch (m.style.display = "flex", w) {
|
|
@@ -3126,17 +3123,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3126
3123
|
}
|
|
3127
3124
|
s.appendChild(h), n.appendChild(s), h.style.width = i + "px";
|
|
3128
3125
|
}
|
|
3129
|
-
} }, this.
|
|
3126
|
+
} }, this.Bg = function (e) { var t = this.row, n = l.Cg(t, this.index); l.Ef(n, e); }, this.Dg = function (e) { if ("Disabled" !== l.timeHeaderClickHandling) {
|
|
3130
3127
|
var t = {};
|
|
3131
|
-
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(l.
|
|
3132
|
-
} }, this.
|
|
3128
|
+
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(l.Pe())), l.Gf(t);
|
|
3129
|
+
} }, this.Eg = function (e) { if ("Disabled" !== l.timeHeaderRightClickHandling) {
|
|
3133
3130
|
e.cancelBubble = !0, e.preventDefault();
|
|
3134
3131
|
var t = {};
|
|
3135
|
-
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(l.
|
|
3132
|
+
t.start = this.cell.start, t.level = this.cell.level, t.end = this.cell.end, t.end || (t.end = new DayPilot.Date(t.start).addMinutes(l.Pe()));
|
|
3136
3133
|
var n = {};
|
|
3137
3134
|
n.header = t, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof l.onTimeHeaderRightClick && (l.onTimeHeaderRightClick(n), n.preventDefault.value) || "function" == typeof l.onTimeHeaderRightClicked && l.onTimeHeaderRightClicked(n);
|
|
3138
|
-
} }, this.
|
|
3139
|
-
throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); u.prepareRows(!0); var t, n = this.events.list, i = "function" == typeof this.onBeforeEventRender; l.
|
|
3135
|
+
} }, this.Cg = function (e) { return new DayPilot.Row(e, l); }, this.Rf = function (e) { var t = l.rowlist, n = t[e]; n.events || n.resetEvents(); }, this.Fg = {}, this.ha = function (e) { if (e ? this.events.list = e : this.events.list || (this.events.list = []), null != this.events.list && !DayPilot.isArray(this.events.list))
|
|
3136
|
+
throw new DayPilot.Exception("DayPilot.Scheduler.events.list expects an array object"); u.prepareRows(!0); var t, n = this.events.list, i = "function" == typeof this.onBeforeEventRender; l.Fg = {}; for (var a = 0; a < n.length; a++) {
|
|
3140
3137
|
var o = n[a];
|
|
3141
3138
|
if (o) {
|
|
3142
3139
|
if ("object" != typeof o)
|
|
@@ -3148,56 +3145,56 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3148
3145
|
if (!("string" == typeof o.id || "number" == typeof o.id))
|
|
3149
3146
|
throw new DayPilot.Exception("All events must have an id property (string or number)");
|
|
3150
3147
|
var r = "_" + o.id;
|
|
3151
|
-
if (l.
|
|
3148
|
+
if (l.Fg[r])
|
|
3152
3149
|
throw new DayPilot.Exception("Duplicate event IDs are not allowed: " + r);
|
|
3153
|
-
l.
|
|
3150
|
+
l.Fg[r] = !0, i && this.Ab(a), t = l.Gg(o.resource);
|
|
3154
3151
|
for (var s = 0; t && s < t.length; s++) {
|
|
3155
|
-
var d = t[s], c = this.
|
|
3156
|
-
c && i && (c.cache = this.
|
|
3152
|
+
var d = t[s], c = this.Wf(o, d);
|
|
3153
|
+
c && i && (c.cache = this.zb.events[a]);
|
|
3157
3154
|
}
|
|
3158
3155
|
}
|
|
3159
|
-
} l.rowlist.forEach(function (e) { l.
|
|
3160
|
-
var u = this.
|
|
3156
|
+
} l.rowlist.forEach(function (e) { l.Hg(e); }), l.dg(); }, this.Ig = {};
|
|
3157
|
+
var u = this.Ig;
|
|
3161
3158
|
u.rowcache = {}, u.prepareRows = function (e) { u.rowcache = {}; for (var t = l.rowlist, n = 0; n < t.length; n++) {
|
|
3162
3159
|
var i = t[n];
|
|
3163
|
-
if (e && i.resetEvents(), l.
|
|
3160
|
+
if (e && i.resetEvents(), l.Rf(i.index), i.id) {
|
|
3164
3161
|
var a = typeof i.id + "_" + i.id;
|
|
3165
3162
|
u.rowcache[a] || (u.rowcache[a] = []), u.rowcache[a].push(i);
|
|
3166
3163
|
}
|
|
3167
|
-
} }, u.loadEvent = function (e) { }, this.
|
|
3164
|
+
} }, u.loadEvent = function (e) { }, this.Gg = function (e) { var t = typeof e + "_" + e; return u.rowcache[t] || []; }, this.Vf = function () { for (var e = {}, t = 0; t < l.rowlist.length; t++) {
|
|
3168
3165
|
var n = l.rowlist[t], i = n.id;
|
|
3169
3166
|
if (e[i])
|
|
3170
3167
|
return !0;
|
|
3171
3168
|
e[i] = !0;
|
|
3172
|
-
} return !1; }, this.
|
|
3169
|
+
} return !1; }, this.Ab = function (e) { var t = this.zb.events, n = this.events.list[e], i = {}; n instanceof DayPilot.Event && (n = n.data); for (var a in n)
|
|
3173
3170
|
i[a] = n[a]; if ("string" == typeof i.start && (i.start = new DayPilot.Date(i.start)), "string" == typeof i.end && (i.end = new DayPilot.Date(i.end)), "function" == typeof this.onBeforeEventRender) {
|
|
3174
3171
|
var o = {};
|
|
3175
3172
|
o.e = i, o.data = i, this.onBeforeEventRender(o);
|
|
3176
|
-
} t[e] = i; }, this.
|
|
3173
|
+
} t[e] = i; }, this.Hg = function (e) { e.lines = [], e.sections = null, e.events.sort(this.Bb); for (var t = 0; t < e.events.length; t++) {
|
|
3177
3174
|
var n = e.events[t];
|
|
3178
3175
|
e.putIntoLine(n);
|
|
3179
|
-
} }, this.
|
|
3176
|
+
} }, this.cg = function (e) { e = DayPilot.ua(e), e = l.mf(e), e.forEach(function (e) { l.Hg(e); }), e.forEach(function (e) { l.Jg(e); }); }, this.Wf = function (e, t) { var n = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end); i = l.tf(i); var a = n.ticks, o = i.ticks, r = l.startDate.ticks, s = l.startDate.addDays(l.days).ticks; if (o < a)
|
|
3180
3177
|
return null; var d = null; if ("function" == typeof l.onBeforeEventRender) {
|
|
3181
3178
|
var c = DayPilot.indexOf(l.events.list, e);
|
|
3182
|
-
d = l.
|
|
3179
|
+
d = l.zb.events[c];
|
|
3183
3180
|
} if (t.id !== e.resource || (o <= r || a >= s) && (a !== o || a !== r))
|
|
3184
|
-
return null; var u = new DayPilot.Event(e, l); u.part.dayIndex = l.rowlist.indexOf(t), u.part.start = r < a ? n : l.startDate, u.part.end = s > o ? i : l.startDate.addDays(l.days); var h = this.getPixels(u.part.start), v = this.getPixels(u.part.end.addTime(-1)); u.part.start === u.part.end && (v = this.getPixels(u.part.end.addMilliseconds(1))); var p = h.left, m = v.left; if (f.
|
|
3181
|
+
return null; var u = new DayPilot.Event(e, l); u.part.dayIndex = l.rowlist.indexOf(t), u.part.start = r < a ? n : l.startDate, u.part.end = s > o ? i : l.startDate.addDays(l.days); var h = this.getPixels(u.part.start), v = this.getPixels(u.part.end.addTime(-1)); u.part.start === u.part.end && (v = this.getPixels(u.part.end.addMilliseconds(1))); var p = h.left, m = v.left; if (f.gg(o - a)) {
|
|
3185
3182
|
var g = h.boxLeft, y = v.boxRight;
|
|
3186
3183
|
u.part.left = g, u.part.width = y - g, u.part.barLeft = Math.max(p - u.part.left, 0), u.part.barWidth = Math.max(m - p, 1);
|
|
3187
3184
|
}
|
|
3188
3185
|
else
|
|
3189
|
-
u.part.left = p, u.part.width = Math.max(m - p, 1), u.part.barLeft = 0, u.part.barWidth = Math.max(m - p - 1, 1); var b = l.eventMinWidth; return u.part.width = Math.max(u.part.width, b), u.part.right = u.part.left + u.part.width, u.cache = d, t.events.push(u), u; }, this.
|
|
3186
|
+
u.part.left = p, u.part.width = Math.max(m - p, 1), u.part.barLeft = 0, u.part.barWidth = Math.max(m - p - 1, 1); var b = l.eventMinWidth; return u.part.width = Math.max(u.part.width, b), u.part.right = u.part.left + u.part.width, u.cache = d, t.events.push(u), u; }, this.Bb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
3190
3187
|
return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < l.rowlist.length; t++) {
|
|
3191
|
-
var n = l.
|
|
3188
|
+
var n = l.Cg(l.rowlist[t]);
|
|
3192
3189
|
e.push(n);
|
|
3193
3190
|
} return e; }, this.rows.each = function (e) { l.rows.all().forEach(e); }, this.rows.forEach = function (e) { l.rows.all().forEach(e); }, this.rows.find = function (e, t) { if ("string" == typeof e || "number" == typeof e || !e && t) {
|
|
3194
|
-
var n = l.
|
|
3191
|
+
var n = l.Gg(e);
|
|
3195
3192
|
e || (n = l.rowlist);
|
|
3196
3193
|
var i = null;
|
|
3197
3194
|
return "string" == typeof t || t instanceof DayPilot.Date ? (t = new DayPilot.Date(t), i = n.find(function (e) { return t === e.start; })) : i = n[0], i ? new DayPilot.Row(i, l) : null;
|
|
3198
3195
|
} if ("function" != typeof e)
|
|
3199
|
-
throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var a = t || 0, o = l.rowlist.find(function (t, n) { return !(n < a) && e(l.
|
|
3200
|
-
return l.
|
|
3196
|
+
throw new DayPilot.Exception("Invalid rows.find() argument: id or function expected"); var a = t || 0, o = l.rowlist.find(function (t, n) { return !(n < a) && e(l.Cg(t)); }); if (o)
|
|
3197
|
+
return l.Cg(o); }, this.rows.load = function (e, t, n) { if (!e)
|
|
3201
3198
|
throw new DayPilot.Exception("rows.load(): 'url' parameter required"); var i = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof n && n(t); }, a = function (e) { var n, a = e.request; try {
|
|
3202
3199
|
n = JSON.parse(a.responseText);
|
|
3203
3200
|
}
|
|
@@ -3208,34 +3205,34 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3208
3205
|
var r = {};
|
|
3209
3206
|
if (r.preventDefault = function () { this.preventDefault.value = !0; }, r.data = n, "function" == typeof t && t(r), r.preventDefault.value)
|
|
3210
3207
|
return;
|
|
3211
|
-
l.resources = r.data, l.
|
|
3208
|
+
l.resources = r.data, l.Ma && l.update();
|
|
3212
3209
|
} }; l.rowsLoadMethod && "POST" === l.rowsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": i }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": i }); }, this.rows.remove = function (e) { if ("number" == typeof e || "string" == typeof e) {
|
|
3213
3210
|
var t = l.rows.find(e);
|
|
3214
3211
|
if (!t)
|
|
3215
3212
|
throw new DayPilot.Exception("The row to be removed was not found");
|
|
3216
3213
|
return void l.rows.remove(t);
|
|
3217
|
-
} var n = e.$.row.resource, i = DayPilot.indexOf(l.resources, n); l.resources.splice(i, 1), l.update(); }, this.rows.add = function (e) { l.resources.push(e), l.
|
|
3214
|
+
} var n = e.$.row.resource, i = DayPilot.indexOf(l.resources, n); l.resources.splice(i, 1), l.update(); }, this.rows.add = function (e) { l.resources.push(e), l.sb(); }, this.rows.update = function (e) { if (!(e instanceof DayPilot.Row || "object" == typeof e))
|
|
3218
3215
|
throw new DayPilot.Exception("DayPilot.Scheduler.rows.update() expects a DayPilot.Row object or a data object."); if (!(e instanceof DayPilot.Row)) {
|
|
3219
3216
|
var t = e;
|
|
3220
3217
|
if (e = l.rows.find(t.id), !e)
|
|
3221
3218
|
return;
|
|
3222
3219
|
e.data = t;
|
|
3223
|
-
} var n = e.index, i = l.rowlist, a = i[n], o = e.data, r = e.parent() ? e.parent().$.row : null, s = l.
|
|
3220
|
+
} var n = e.index, i = l.rowlist, a = i[n], o = e.data, r = e.parent() ? e.parent().$.row : null, s = l.Kg(o), e = l.Lg(s, r); e.level = a.level, e.index = n, e.top = a.top, e.height = a.height, i[n] = e, e.resetEvents(), l.Rf(e.index), l.Mg(e), l.Hg(e), l.lf(e.index), l.df(), l.gf(); }, this.Mg = function (e) { for (var t = l.events.list, n = t.length, i = "function" == typeof l.onBeforeEventRender, a = 0; a < n; a++) {
|
|
3224
3221
|
var o = t[a];
|
|
3225
3222
|
if (o) {
|
|
3226
3223
|
if (o instanceof DayPilot.Event)
|
|
3227
3224
|
throw new DayPilot.Exception("DayPilot.Scheduler: DayPilot.Event object detected in events.list array. Use raw event data instead.");
|
|
3228
3225
|
if (o.resource === e.id) {
|
|
3229
|
-
i && this.
|
|
3230
|
-
var r = this.
|
|
3231
|
-
r && i && (r.cache = this.
|
|
3226
|
+
i && this.Ab(a);
|
|
3227
|
+
var r = this.Wf(o, e);
|
|
3228
|
+
r && i && (r.cache = this.zb.events[a]);
|
|
3232
3229
|
}
|
|
3233
3230
|
}
|
|
3234
|
-
} }, this.
|
|
3235
|
-
throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], l.rowlist = [], this.
|
|
3236
|
-
var o = e.events[a], r = l.
|
|
3231
|
+
} }, this.Ye = function () { var e = this.resources; if ({}.i = 0, null != e && !DayPilot.isArray(e))
|
|
3232
|
+
throw new DayPilot.Exception("DayPilot.Scheduler.resources expects an array object"); e = e || [], l.rowlist = [], this.Ng(e); }, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Pf = function () { return new DayPilot.Date(l.startDate).addDays(l.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Pf(); }, this.Lg = function (e) { var t = {}; return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = l.ab(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.tags = e.tags, t.height = l.eventHeight, t.level = 0, t.resource = e.Ce, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(l.eventHeight, this.lines.length * l.eventHeight); }, t.resetEvents = function () { var e = this; e.events = [], e.events.forRange = function (t, n) { t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : l.startDate.addDays(l.days); for (var i = [], a = 0; a < e.events.length; a++) {
|
|
3233
|
+
var o = e.events[a], r = l.tf(o.end());
|
|
3237
3234
|
DayPilot.Util.overlaps(o.start(), r, t, n) && i.push(o);
|
|
3238
|
-
} return i; }; }, t.
|
|
3235
|
+
} return i; }; }, t.Og = function () { var e = []; return e.add = function (e) { this.push(e); }, e.isFree = function (e, t, n) { for (var i = e + t - 1, a = this.length, o = 0; o < a; o++) {
|
|
3239
3236
|
var r = this[o];
|
|
3240
3237
|
if (!(i < r.part.left || e > r.part.left + r.part.width - 1)) {
|
|
3241
3238
|
if (DayPilot.contains(n, r.data))
|
|
@@ -3246,99 +3243,102 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3246
3243
|
var a = this.lines[i];
|
|
3247
3244
|
if (a.isFree(e, n))
|
|
3248
3245
|
return i;
|
|
3249
|
-
} var a = t.
|
|
3246
|
+
} var a = t.Og(); return this.lines.push(a), this.lines.length - 1; }, t.putIntoLine = function (e) { var n = t.findFreeLine(e.part.left, e.part.width); return this.lines[n].add(e), n; }, t; }, this.Ng = function (e) { if (e)
|
|
3250
3247
|
for (var t = l.rowlist, n = 0; n < e.length; n++)
|
|
3251
3248
|
if (e[n]) {
|
|
3252
3249
|
var i = {};
|
|
3253
3250
|
i.index = n;
|
|
3254
|
-
var a = this.
|
|
3251
|
+
var a = this.Kg(e[n], i), o = l.Lg(a, parent);
|
|
3255
3252
|
o.index = n, t.push(o);
|
|
3256
|
-
} }, this.
|
|
3253
|
+
} }, this.Ag = function (e) { var t = {}; return t.row = this.Cg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Kg = function (e, t) { var n = { get $data() { return this.Ce; } }; for (var i in t)
|
|
3257
3254
|
n[i] = t[i]; for (var i in e)
|
|
3258
|
-
n[i] = e[i]; return n.html = l
|
|
3255
|
+
n[i] = e[i]; return n.html = l.ab(e.name, e.html), n.Ce = e, n; }, this.Pg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = h.Qg, this.nav.top.ontouchmove = h.Rg, this.nav.top.ontouchend = h.Sg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.gb()), t.appendChild(n), t.appendChild(this.Tg()); var i = r(); i.style.position = "absolute", i.style.left = e + "px", i.style.width = "1px", i.style.height = this.Ge() + this.Za() + "px", i.className = this.L("_splitter"), this.nav.divider = i; var a = r(); a.style.marginLeft = e + 1 + "px", a.style.position = "relative", this.nav.right = a; var o = r(); o.style.position = "absolute", o.style.top = this.Ge() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, a.appendChild(l.Ug()), a.appendChild(l.Vg()), a.appendChild(o); var s = r(); s.style.clear = "left"; var d = r(); d.style.height = "1px", d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.display = "none", d.className = this.L("_divider_horizontal"), this.nav.dividerTop = d; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = c, this.nav.top.appendChild(t), this.nav.top.appendChild(i), this.nav.top.appendChild(a), this.nav.top.appendChild(s), this.nav.top.appendChild(d), this.nav.top.appendChild(c); }, this.ia = function () { var e = this.Ge(); this.nav.corner && (this.nav.corner.style.height = e + "px"), this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px"; }, this.Wg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Xg = function () { var e = this.rowHeaderWidth, t = this.divHeader; t.style.width = e + "px"; for (var n = l.sg(), i = n.start; i < n.end; i++) {
|
|
3259
3256
|
var a = t.rows[i];
|
|
3260
3257
|
if (a) {
|
|
3261
3258
|
var o = l.rowHeaderWidth;
|
|
3262
3259
|
a.style.width = o + "px";
|
|
3263
3260
|
a.firstChild.style.width = o + "px";
|
|
3264
3261
|
}
|
|
3265
|
-
} l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px"); }, this.
|
|
3266
|
-
var a = function () { var t = l
|
|
3267
|
-
t ? n.
|
|
3262
|
+
} l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px"); }, this.cf = function () { this.Wg(), this.Xg(); }, this.gb = function () { var e = this.rowHeaderWidth, t = r(); l.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ge() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = " ", this.divCorner = n, t.appendChild(n), t; }, this.Ge = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Yg = null, this.Tg = function () { var e = r(); e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Za() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = l.L("_rowheader_scroll"); var i = l.ca.zg(); i && (e.style.overflowY = "auto"), e.ontouchstart = function () { n.Zg = !0; }, e.oncontextmenu = function () { return !1; }, e.onscroll = function () { if (l.Yg && clearTimeout(l.Yg), i) {
|
|
3263
|
+
var a = function () { var t = l.$g() - l.nav.scroll.offsetHeight; e.scrollTop = Math.min(e.scrollTop, t), l.nav.scroll.scrollTop = e.scrollTop; };
|
|
3264
|
+
t ? n.Zg && (l.Yg = setTimeout(a, 10)) : l.Yg = setTimeout(a, 10);
|
|
3268
3265
|
}
|
|
3269
3266
|
else
|
|
3270
|
-
l.
|
|
3271
|
-
if (!l.
|
|
3272
|
-
return l.
|
|
3273
|
-
l.
|
|
3274
|
-
} }; if (!l
|
|
3267
|
+
l.Yg = setTimeout(function () { l.nav.scroll.scrollTop = e.scrollTop; }, 500); }, e.setAttribute("role", "region"), e.setAttribute("aria-label", "scheduler rows"); var a = r(); return this.divHeader = a, e.appendChild(a), this.divResScroll = e, this.He = e, e; }, this._g = null, this.ah = null, this.bh = function () { var e = function () { l.ch(), l.hf(); }, t = function () { var t = l.nav.top; if (t) {
|
|
3268
|
+
if (!l._g)
|
|
3269
|
+
return l._g = {}, void (l._g.width = t.offsetWidth);
|
|
3270
|
+
l._g.width !== t.offsetWidth && (l._g.width = t.offsetWidth, e());
|
|
3271
|
+
} }; if (!l.ah) {
|
|
3275
3272
|
var n = new ResizeObserver(DayPilot.debounce(t, 100));
|
|
3276
|
-
n.observe(l.nav.top), l
|
|
3277
|
-
} }, this.
|
|
3278
|
-
var e =
|
|
3279
|
-
|
|
3280
|
-
|
|
3273
|
+
n.observe(l.nav.top), l.ah = n;
|
|
3274
|
+
} }, this.ch = function () { l.Q || (l.ma(), l.dh(), l.zb.drawArea = null); }, this.dh = function () { var e = l.Bf; l.clearSelection(), l.Bf = e, l.Cf(e, { "justDraw": !0 }); }, this.Ug = function () {
|
|
3275
|
+
var e = r();
|
|
3276
|
+
e.style.overflow = "hidden", e.style.display = "block", e.style.position = "absolute", e.style.top = "0px", e.style.width = "100%", e.style.height = this.Ge() + "px", e.style.overflow = "hidden", e.className = l.L("_timeheader_scroll"),
|
|
3277
|
+
this.divTimeScroll = e;
|
|
3278
|
+
var t = r();
|
|
3279
|
+
return t.style.width = this.Ee() + 5e3 + "px", this.divNorth = t, e.appendChild(t), e;
|
|
3280
|
+
}, this.Za = function () { var e = 0, t = l.heightSpec; return "Fixed" === t ? this.height ? this.height : 0 : (e = l.$g(), "Max" === t && e > l.height ? l.height : e); }, this.$g = function () { var e; return this.he !== -1 ? (e = this.he, this.he > 0 && "auto" === l.nav.scroll.style.overflowX && (e += DayPilot.sh(l.nav.scroll) + 1)) : e = this.rowlist.length * l.eventHeight, e; }, this.Vg = function () { var e = r(); e.style.overflow = "auto", e.style.overflowX = "auto", e.style.overflowY = "auto", e.style.height = this.Za() + "px", e.style.top = this.Ge() + 1 + "px", e.style.position = "absolute", e.style.width = "100%", e.className = this.L("_scrollable"), e.oncontextmenu = function () { return !1; }, this.nav.scroll = e, this.le = r(); var t = this.le; t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute"; var n = this.Ee(); return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.eh, t.onmousemove = this.fh, t.onmouseup = this.gh, t.oncontextmenu = this.hh, t.className = this.L("_matrix"), this.divStretch = r(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = r(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.hh, t.appendChild(this.divCells), this.divLines = r(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.hh, t.appendChild(this.divLines), this.divSeparators = r(), this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.hh, t.appendChild(this.divSeparators), this.divRange = r(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.hh, t.appendChild(this.divRange), this.divEvents = r(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = r(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e; }, this.rb = function () { n.ih || (n.ih = !0, DayPilot.re(document, "mouseup", n.ge), DayPilot.re(document, "touchmove", n.jh), DayPilot.re(document, "touchend", n.kh)); }, this.lh = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.hf, l.mh = this.nav.scroll.scrollLeft, l.nh = this.nav.scroll.scrollTop, this.divNorth && (l.oh = this.divNorth.clientWidth); }, this.ph = {}, this.ph.step = 300, this.ph.delay = 10, this.ph.mode = "display", this.ph.layers = !1, this.Jg = function (e) { for (var t = 0, n = 0; n < e.lines.length; n++) {
|
|
3281
3281
|
for (var i = e.lines[n], a = 0; a < i.length; a++) {
|
|
3282
3282
|
var o = i[a];
|
|
3283
3283
|
o.part.line = n, o.part.top = t + l.rowMarginTop, o.part.right = o.part.left + o.part.width;
|
|
3284
3284
|
}
|
|
3285
3285
|
t += l.eventHeight;
|
|
3286
|
-
} }, this.
|
|
3287
|
-
var t = this.
|
|
3288
|
-
"display" === this.
|
|
3289
|
-
var n = "Progressive" === this.dynamicEventRendering, i = this.
|
|
3290
|
-
l.rowlist.filter(function (e) { var t = e.top - l.dynamicEventRenderingMargin, i = t + e.height + 2 * l.dynamicEventRenderingMargin; return !n || !(o <= t || a >= i); }).forEach(function (n) { l.
|
|
3286
|
+
} }, this.Xe = null, this.na = function (e) { if (!l.Q) {
|
|
3287
|
+
var t = this.ph.step;
|
|
3288
|
+
"display" === this.ph.mode ? this.divEvents.style.display = "none" : "visibility" === this.ph.mode && (this.divEvents.style.visibility = "hidden"), this.divEvents.setAttribute("role", "region"), this.divEvents.setAttribute("aria-label", "scheduler events");
|
|
3289
|
+
var n = "Progressive" === this.dynamicEventRendering, i = this.pe(), a = i.pixels.top, o = i.pixels.bottom;
|
|
3290
|
+
l.rowlist.filter(function (e) { var t = e.top - l.dynamicEventRenderingMargin, i = t + e.height + 2 * l.dynamicEventRenderingMargin; return !n || !(o <= t || a >= i); }).forEach(function (n) { l.Jg(n); for (var i = 0; i < n.lines.length; i++)
|
|
3291
3291
|
for (var a = n.lines[i], o = 0; o < a.length; o++) {
|
|
3292
|
-
var r = a[o], s = l.
|
|
3292
|
+
var r = a[o], s = l.Va(r);
|
|
3293
3293
|
if (e && s && (t--, t <= 0))
|
|
3294
|
-
return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.
|
|
3295
|
-
} }), this.divEvents.style.display = "", this.
|
|
3296
|
-
} }, this.
|
|
3294
|
+
return l.divEvents.style.visibility = "", l.divEvents.style.display = "", void (l.Xe = setTimeout(function () { l.na(e); }, l.ph.delay));
|
|
3295
|
+
} }), this.divEvents.style.display = "", this.ve();
|
|
3296
|
+
} }, this.qf = function (e) { var t = l.rowlist[e]; this.Jg(t); for (var n = 0; n < t.lines.length; n++)
|
|
3297
3297
|
for (var i = t.lines[n], a = 0; a < i.length; a++) {
|
|
3298
3298
|
var o = i[a];
|
|
3299
|
-
this.
|
|
3299
|
+
this.Va(o);
|
|
3300
3300
|
} }, this.Y = function () { if (this.elements.events)
|
|
3301
3301
|
for (var e = this.elements.events.length, t = 0; t < e; t++) {
|
|
3302
3302
|
var n = this.elements.events[t];
|
|
3303
|
-
this.
|
|
3304
|
-
} this.elements.events = []; }, this.
|
|
3303
|
+
this.Pa(n);
|
|
3304
|
+
} this.elements.events = []; }, this.pf = function (e) { if (this.elements.events) {
|
|
3305
3305
|
for (var t = this.elements.events.length, n = [], i = 0; i < t; i++) {
|
|
3306
3306
|
var a = this.elements.events[i];
|
|
3307
|
-
a.event.part.dayIndex === e && (this.
|
|
3307
|
+
a.event.part.dayIndex === e && (this.Pa(a), n.push(i));
|
|
3308
3308
|
}
|
|
3309
3309
|
for (var i = n.length - 1; i >= 0; i--)
|
|
3310
3310
|
this.elements.events.splice(n[i], 1);
|
|
3311
|
-
} }, this.
|
|
3311
|
+
} }, this.Pa = function (e) { e.remove(), e.onclick = null, e.oncontextmenu = null, e.onmouseover = null, e.onmouseout = null, e.onmousemove = null, e.onmousedown = null, e.ondblclick = null, e.event && (e.event.rendered = null, e.event = null); }, this.qh = function () { if ("Progressive" === this.dynamicEventRendering) {
|
|
3312
3312
|
if (l.dynamicEventRenderingCacheSweeping) {
|
|
3313
3313
|
var e = l.dynamicEventRenderingCacheSize || 0;
|
|
3314
3314
|
this.divEvents.style.display = "none";
|
|
3315
3315
|
for (var t = [], n = 0, i = this.elements.events.length, a = i - 1; a >= 0; a--) {
|
|
3316
3316
|
var o = this.elements.events[a];
|
|
3317
|
-
this.
|
|
3317
|
+
this.rh(o.event) ? e > 0 ? (e--, t.unshift(o)) : (this.Pa(o), n++) : t.unshift(o);
|
|
3318
3318
|
}
|
|
3319
3319
|
this.elements.events = t, this.divEvents.style.display = "";
|
|
3320
3320
|
}
|
|
3321
|
-
} }, this.
|
|
3321
|
+
} }, this.uh = function (e) { for (var t = this.pe(), n = this.elements.cells.length, i = n - 1; i >= 0; i--) {
|
|
3322
3322
|
var a = this.elements.cells[i];
|
|
3323
|
-
t.xStart < a.coords.x && a.coords.x <= t.xEnd && t.yStart < a.coords.y && a.coords.y <= t.yEnd || (e > 0 ? e-- : this.
|
|
3324
|
-
} }, this.
|
|
3323
|
+
t.xStart < a.coords.x && a.coords.x <= t.xEnd && t.yStart < a.coords.y && a.coords.y <= t.yEnd || (e > 0 ? e-- : this.hb(a));
|
|
3324
|
+
} }, this.hb = function (e) { if (e && e.coords) {
|
|
3325
3325
|
var t = e.coords.x, n = e.coords.y;
|
|
3326
|
-
DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.
|
|
3327
|
-
} }, this.
|
|
3326
|
+
DayPilot.rfa(l.elements.cells, e), DayPilot.de(e), l.zb.cells[t + "_" + n] = null;
|
|
3327
|
+
} }, this.vh = function () { var e = "Progressive" === this.dynamicEventRendering; if (!this.nav.scroll)
|
|
3328
3328
|
return !1; for (var t = this.nav.scroll.scrollTop, n = t + this.nav.scroll.clientHeight, i = 0; i < this.rowlist.length; i++) {
|
|
3329
3329
|
var a = this.rowlist[i], o = a.top, r = a.top + a.height;
|
|
3330
3330
|
if (!e || !(n <= o || t >= r))
|
|
3331
3331
|
for (var s = 0; s < a.lines.length; s++)
|
|
3332
3332
|
for (var l = a.lines[s], d = 0; d < l.length; d++) {
|
|
3333
3333
|
var c = l[d];
|
|
3334
|
-
if (this.
|
|
3334
|
+
if (this.wh(c))
|
|
3335
3335
|
return !0;
|
|
3336
3336
|
}
|
|
3337
|
-
} return !1; }, this.
|
|
3338
|
-
return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, i = n + this.nav.scroll.clientWidth, a = e.part.left, o = e.part.left + e.part.width; return !t || !(i <= a || n >= o); }, this.
|
|
3339
|
-
return !0; var t = this.
|
|
3340
|
-
return !1; var i = "Progressive" === this.dynamicEventRendering, a = e.part.dayIndex, o = l.divEvents, s = l.rowlist, d = s[a], c = d.top, u = this.
|
|
3341
|
-
return !1; var _ = e.part.width, C = l.eventHeight, k = e.cache || e.data; _ = DayPilot.Util.atLeast(0, _), C = DayPilot.Util.atLeast(0, C); var P = r(); P.style.position = "absolute", P.style.left = e.part.left + "px", P.style.top = c + e.part.top + "px", P.style.width = _ + "px", P.style.height = C + "px", l.eventTextWrappingEnabled || (P.style.whiteSpace = "nowrap"), P.style.overflow = "hidden", P.className = this.L("_event"), k.cssClass && DayPilot.Util.addClass(P, k.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(P, this.L("_event_line" + e.part.line)), this.showToolTip && (P.title = e.client.toolTip() || ""), P.onmousemove = this.
|
|
3337
|
+
} return !1; }, this.wh = function (e) { if (e.rendered)
|
|
3338
|
+
return !1; var t = "Progressive" === this.dynamicEventRendering, n = this.nav.scroll.scrollLeft, i = n + this.nav.scroll.clientWidth, a = e.part.left, o = e.part.left + e.part.width; return !t || !(i <= a || n >= o); }, this.rh = function (e) { if (!e.rendered)
|
|
3339
|
+
return !0; var t = this.pe(), n = t.pixels.top, i = t.pixels.bottom, a = t.pixels.left - this.dynamicEventRenderingMargin, o = t.pixels.right + this.dynamicEventRenderingMargin, r = e.part.left, s = e.part.right, d = e.part.top, c = e.part.top + l.eventHeight; return o <= r || a >= s || (i <= d || n >= c); }, this.Va = function (e, t) { t = t || {}; var n = t.forced; if (e.rendered)
|
|
3340
|
+
return !1; var i = "Progressive" === this.dynamicEventRendering, a = e.part.dayIndex, o = l.divEvents, s = l.rowlist, d = s[a], c = d.top, u = this.pe(), f = u.pixels.left - this.dynamicEventRenderingMargin, v = u.pixels.right + this.dynamicEventRenderingMargin, p = u.pixels.top, m = u.pixels.bottom, g = e.part.left, y = e.part.left + e.part.width, b = e.part.top + c, w = b + l.eventHeight, D = v <= g || f >= y, x = m <= b || p >= w; if (!n && i && (D || x))
|
|
3341
|
+
return !1; var _ = e.part.width, C = l.eventHeight, k = e.cache || e.data; _ = DayPilot.Util.atLeast(0, _), C = DayPilot.Util.atLeast(0, C); var P = r(); P.style.position = "absolute", P.style.left = e.part.left + "px", P.style.top = c + e.part.top + "px", P.style.width = _ + "px", P.style.height = C + "px", l.eventTextWrappingEnabled || (P.style.whiteSpace = "nowrap"), P.style.overflow = "hidden", P.className = this.L("_event"), k.cssClass && DayPilot.Util.addClass(P, k.cssClass); "number" == typeof e.part.line && DayPilot.Util.addClass(P, this.L("_event_line" + e.part.line)), this.showToolTip && (P.title = e.client.toolTip() || ""), P.onmousemove = this.xh, P.onmousedown = this.yh, P.onmouseup = this.zh, P.ontouchstart = h.Ah, P.ontouchmove = h.Bh, P.ontouchend = h.Ch, e.client.clickEnabled() && (P.onclick = this.Qe), "undefined" != typeof k.ariaLabel ? P.setAttribute("aria-label", k.ariaLabel) : P.setAttribute("aria-label", k.text), P.setAttribute("tabindex", "-1"); var S = r(); S.className = l.L("_event_inner"), k.backColor && (S.style.background = k.backColor), k.fontColor && (S.style.color = k.fontColor), "darker" === k.borderColor && k.backColor ? S.style.borderColor = DayPilot.ColorUtil.darker(k.backColor, 2) : S.style.borderColor = k.borderColor, k.backImage && (S.style.backgroundImage = "url(" + k.backImage + ")", k.backRepeat && (S.style.backgroundRepeat = k.backRepeat)), P.appendChild(S); var M = e.start().getTime() === e.part.start.getTime(), T = e.rawend().getTime() === e.part.end.getTime(); if (M || DayPilot.Util.addClass(P, this.L("_event_continueleft")), T || DayPilot.Util.addClass(P, this.L("_event_continueright")), e.client.barVisible() && _ > 0) {
|
|
3342
3342
|
var A = 100 * e.part.barLeft / _, E = Math.ceil(100 * e.part.barWidth / _), H = r();
|
|
3343
3343
|
H.className = this.L("_event_bar"), H.style.position = "absolute", k.barBackColor && (H.style.backgroundColor = k.barBackColor);
|
|
3344
3344
|
var N = r();
|
|
@@ -3346,95 +3346,95 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3346
3346
|
} P.row = a, P.event = e, S.innerHTML = e.client.innerHTML(); var I = []; return function () { if ("Disabled" !== l.eventDeleteHandling && !k.deleteDisabled) {
|
|
3347
3347
|
var e = l.durationBarVisible ? l.durationBarHeight : 0;
|
|
3348
3348
|
I.push({ v: "Hover", w: 17, h: 17, top: e + 2, right: 2, css: l.L("_event_delete"), onClick: function (e) { l.ya(e.source); } });
|
|
3349
|
-
} }(), k.areas && (I = I.concat(k.areas)), DayPilot.Areas.attach(P, e, { areas: I }), this.elements.events.push(P), o.appendChild(P), e.rendered = !0, !0; }, this
|
|
3349
|
+
} }(), k.areas && (I = I.concat(k.areas)), DayPilot.Areas.attach(P, e, { areas: I }), this.elements.events.push(P), o.appendChild(P), e.rendered = !0, !0; }, this.ab = function (e, t) { return l.ca.da() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.rf = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
3350
3350
|
var t = this.elements.events[e], n = t.event, i = n.part.dayIndex, a = l.rowlist[i], o = a.top, r = o + n.part.top, s = a.height, d = l.eventHeight, c = !1;
|
|
3351
3351
|
n.part.top + d > s && (d = Math.max(0, s - n.part.top), c = !0), t.style.top = r + "px", t.style.height = d + "px";
|
|
3352
|
-
} }, this.
|
|
3352
|
+
} }, this.Dh = function (e) { if (!e)
|
|
3353
3353
|
return null; for (var t = 0; t < l.elements.events.length; t++) {
|
|
3354
3354
|
var n = l.elements.events[t];
|
|
3355
3355
|
if (n.event === e || n.event.data === e.data)
|
|
3356
3356
|
return n;
|
|
3357
|
-
} return null; }, this.
|
|
3358
|
-
return null; var n = l.rowlist[t.part.dayIndex]; return l.
|
|
3359
|
-
t = t.parentNode; t.event; l.
|
|
3360
|
-
var h = l.
|
|
3361
|
-
"undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.
|
|
3362
|
-
t.stopPropagation(), h.
|
|
3357
|
+
} return null; }, this.Of = function (e) { var t = l.events.Tf(e.data); if (!t)
|
|
3358
|
+
return null; var n = l.rowlist[t.part.dayIndex]; return l.Jg(n), l.Va(t, { "forced": !0 }), l.Dh(t); }, this.xh = function (e) { for (var t = this; t && !t.event;)
|
|
3359
|
+
t = t.parentNode; t.event; l.Eh(t, e), l.Ue(e); }, this.Se = {}, this.yh = function (e) { l.Ue(e); var t = DayPilot.Util.mouseButton(e); e.preventDefault(), e.stopPropagation(), t.left && ("w-resize" === this.style.cursor || "e-resize" === this.style.cursor ? (n.Re = !0, n.ig = this, n.mg = this.event, n.Fh = DayPilot.mc(e), o().style.cursor = this.style.cursor) : ("move" === this.style.cursor || this.event.client.moveEnabled()) && l.Gh(this, e)); }, this.zh = function (e) { DayPilot.Util.mouseButton(e).right && l.xa.call(this, e); }, this.Gh = function (e, t) { var n = l.Se; l.Ue(t), n.Hh = !0, n.Se = e, n.pg = e.event, n.Fh = DayPilot.mc(t), n.Ih = DayPilot.mo3(e, t).x, n.hg = l.getDate(l.coords.x, !0); }, this.Jh = {};
|
|
3360
|
+
var h = l.Jh;
|
|
3361
|
+
"undefined" == typeof DayPilot.Global.touch && (DayPilot.Global.touch = {}), DayPilot.Global.touch.active = !1, DayPilot.Global.touch.start = !1, h.Kf = [], h.Ah = function (t) { if (!DayPilot.Global.touch.active && !DayPilot.Global.touch.start) {
|
|
3362
|
+
t.stopPropagation(), h.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
|
|
3363
3363
|
var n = this;
|
|
3364
|
-
l.coords = h.
|
|
3364
|
+
l.coords = h.Lh(t);
|
|
3365
3365
|
var i = l.tapAndHoldTimeout;
|
|
3366
|
-
h.
|
|
3366
|
+
h.Kf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, t.preventDefault(); var i = n.event; switch (l.eventTapAndHoldHandling) {
|
|
3367
3367
|
case "Move": if (i.client.moveEnabled()) {
|
|
3368
3368
|
var a = e(t);
|
|
3369
|
-
h.
|
|
3369
|
+
h.Gh(n, a);
|
|
3370
3370
|
}
|
|
3371
3371
|
} }, i));
|
|
3372
|
-
} }, h.
|
|
3373
|
-
if (h.
|
|
3372
|
+
} }, h.Bh = function (e) { h.Kh(), DayPilot.Global.touch.start = !1; }, h.Ch = function (e) { if (!DayPilot.Util.isMouseEvent(e)) {
|
|
3373
|
+
if (h.Kh(), DayPilot.Global.touch.start) {
|
|
3374
3374
|
DayPilot.Global.touch.start = !1, e.preventDefault(), e.stopPropagation();
|
|
3375
3375
|
var t = this;
|
|
3376
|
-
setTimeout(function () { l.
|
|
3376
|
+
setTimeout(function () { l.Te(t, e); });
|
|
3377
3377
|
}
|
|
3378
3378
|
setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500);
|
|
3379
|
-
} }, h.
|
|
3380
|
-
h.
|
|
3379
|
+
} }, h.Qg = function (e) { if (!(DayPilot.Global.touch.active || DayPilot.Global.touch.start || e.touches.length > 1 || "Disabled" === l.timeRangeSelectedHandling)) {
|
|
3380
|
+
h.Kh(), DayPilot.Global.touch.start = !0, DayPilot.Global.touch.active = !1;
|
|
3381
3381
|
var t = l.tapAndHoldTimeout;
|
|
3382
|
-
h.
|
|
3383
|
-
l.coords = h.
|
|
3384
|
-
} }, h.
|
|
3385
|
-
return e.preventDefault(), void h.
|
|
3386
|
-
if (e.preventDefault(), l.coords = h.
|
|
3387
|
-
return void h.
|
|
3388
|
-
if (h.
|
|
3389
|
-
var t = h.
|
|
3390
|
-
t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.
|
|
3382
|
+
h.Kf.push(setTimeout(function () { DayPilot.Global.touch.active = !0, DayPilot.Global.touch.start = !1, e.preventDefault(), l.coords = h.Lh(e), h.Mh = l.Nh(); }, t));
|
|
3383
|
+
l.coords = h.Lh(e);
|
|
3384
|
+
} }, h.Rg = function (e) { if (h.Kh(), DayPilot.Global.touch.start = !1, n.ig)
|
|
3385
|
+
return e.preventDefault(), void h.Oh(); if (DayPilot.Global.touch.active) {
|
|
3386
|
+
if (e.preventDefault(), l.coords = h.Lh(e), n.Se)
|
|
3387
|
+
return void h.Ph();
|
|
3388
|
+
if (h.Mh) {
|
|
3389
|
+
var t = h.Mh;
|
|
3390
|
+
t.end = { x: Math.floor(l.coords.x / l.cellWidth), "time": l.getDate(l.coords.x, !0) }, l.Cf(t);
|
|
3391
3391
|
}
|
|
3392
|
-
} }, h.debug = function (e) { }, h.
|
|
3393
|
-
if (n.
|
|
3392
|
+
} }, h.debug = function (e) { }, h.Sg = function (e) { h.Kh(); if (DayPilot.Global.touch.active) {
|
|
3393
|
+
if (n.Se) {
|
|
3394
3394
|
e.preventDefault();
|
|
3395
|
-
var t = n.
|
|
3396
|
-
if (l !== n.
|
|
3395
|
+
var t = n.pg;
|
|
3396
|
+
if (l !== n.qg.calendar)
|
|
3397
3397
|
return;
|
|
3398
|
-
var i = n.
|
|
3399
|
-
DayPilot.Util.removeClass(n.
|
|
3398
|
+
var i = n.qg.start, a = n.qg.end, r = n.qg.row.id;
|
|
3399
|
+
DayPilot.Util.removeClass(n.Se, l.L("_event_moving_source")), DayPilot.de(n.qg), n.qg.calendar = null, o().style.cursor = "", n.Se = null, n.pg = null, n.qg = null, l.M(t, i, a, r);
|
|
3400
3400
|
}
|
|
3401
|
-
if (h.
|
|
3402
|
-
var s = h.
|
|
3403
|
-
h.
|
|
3401
|
+
if (h.Mh) {
|
|
3402
|
+
var s = h.Mh;
|
|
3403
|
+
h.Mh = null;
|
|
3404
3404
|
var d = l.elements.range2;
|
|
3405
|
-
d && d.overlapping ? l.clearSelection() : l.
|
|
3405
|
+
d && d.overlapping ? l.clearSelection() : l.yf(s);
|
|
3406
3406
|
}
|
|
3407
3407
|
}
|
|
3408
3408
|
else if (DayPilot.Global.touch.start) {
|
|
3409
3409
|
if (l.coords.x < l.getScrollX())
|
|
3410
3410
|
return;
|
|
3411
|
-
var s = l.
|
|
3412
|
-
l.
|
|
3411
|
+
var s = l.Nh();
|
|
3412
|
+
l.Cf(s);
|
|
3413
3413
|
var d = l.elements.range2;
|
|
3414
|
-
d && d.overlapping ? l.clearSelection() : l.
|
|
3415
|
-
} setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, h.
|
|
3416
|
-
clearTimeout(h.
|
|
3417
|
-
var e = n.
|
|
3418
|
-
n.
|
|
3419
|
-
} l.
|
|
3420
|
-
var e = n.
|
|
3421
|
-
n.
|
|
3422
|
-
} n.
|
|
3414
|
+
d && d.overlapping ? l.clearSelection() : l.yf(s);
|
|
3415
|
+
} setTimeout(function () { DayPilot.Global.touch.start = !1, DayPilot.Global.touch.active = !1; }, 500); }, h.Kh = function () { for (var e = 0; e < h.Kf.length; e++)
|
|
3416
|
+
clearTimeout(h.Kf[e]); h.Kf = []; }, h.Lh = function (e) { function t(e, t, n) { var i = DayPilot.abs(n); return { x: e - i.x, y: t - i.y, toString: function () { return "x: " + this.x + ", y:" + this.y; } }; } var n = l.le, i = e.touches ? e.touches[0] : e; return t(i.pageX, i.pageY, n); }, h.Gh = function (e, t) { n.Se = e, n.pg = e.event, n.Fh = t; var i = DayPilot.abs(e); n.Ih = t.x - i.x, n.hg = l.getDate(l.coords.x, !0), n.qg = l.ba(e), l.og(); }, h.Oh = function () { if (!n.lg) {
|
|
3417
|
+
var e = n.ig;
|
|
3418
|
+
n.lg = l.ba(e);
|
|
3419
|
+
} l.ng(); }, h.Ph = function () { if (!n.qg) {
|
|
3420
|
+
var e = n.Se;
|
|
3421
|
+
n.qg = l.ba(e);
|
|
3422
|
+
} n.qg.calendar.og(); }, this.Eh = function (e, t) { var i = this.eventResizeMargin, a = e; if ("undefined" != typeof n) {
|
|
3423
3423
|
var o = DayPilot.mo3(e, t);
|
|
3424
|
-
if (o && (l.eventOffset = o, !n.
|
|
3424
|
+
if (o && (l.eventOffset = o, !n.ig && !n.Se)) {
|
|
3425
3425
|
var r = a.event.part.start.toString() === a.event.start().toString(), s = a.event.part.end.toString() === a.event.rawend().toString();
|
|
3426
|
-
o.x <= i && a.event.client.resizeEnabled() ? r ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - o.x <= i && a.event.client.resizeEnabled() ? s ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : n.
|
|
3426
|
+
o.x <= i && a.event.client.resizeEnabled() ? r ? (e.style.cursor = "w-resize", e.dpBorder = "left") : e.style.cursor = "not-allowed" : e.offsetWidth - o.x <= i && a.event.client.resizeEnabled() ? s ? (e.style.cursor = "e-resize", e.dpBorder = "right") : e.style.cursor = "not-allowed" : n.ig || n.Se || (a.event.client.clickEnabled() ? e.style.cursor = "pointer" : e.style.cursor = "default");
|
|
3427
3427
|
}
|
|
3428
|
-
} }, this.
|
|
3428
|
+
} }, this.Df = function () { var e = l.Pe(); return l.days * (1440 / e); }, this.zf = function (e) { var e = e || n.Mh || l.Bf; if (!e)
|
|
3429
3429
|
return null; var t = l.rowlist[e.start.y]; if (!t)
|
|
3430
|
-
return null; var i, a, o = e, r = o.end.time > o.start.time, s = t.id, d = r ? o.start.x : o.end.x, c = r ? o.end.x : o.start.x, u = l.snapToGrid; u ? (i = l.
|
|
3430
|
+
return null; var i, a, o = e, r = o.end.time > o.start.time, s = t.id, d = r ? o.start.x : o.end.x, c = r ? o.end.x : o.start.x, u = l.snapToGrid; u ? (i = l.Ne(d).start, a = l.Ne(c).end) : r ? (i = o.start.time, a = o.end.time) : (i = o.end.time, a = o.start.time); var h = new DayPilot.Selection(i, a, s, l); return h.allowed = !e.div || !e.div.overlapping, h; }, this.af = function () { this.zb.timeHeader = {}, l.elements.timeHeader.length > 0 && (l.elements.timeHeader = []); var e = r(); e.style.position = "relative", this.nav.timeHeader = e; for (var t = 0; t < this.timeHeader.length; t++)
|
|
3431
3431
|
for (var n = this.timeHeader[t], i = 0; i < n.length; i++)
|
|
3432
|
-
this.
|
|
3432
|
+
this.Qh(i, t); var a = this.divNorth; 1 === a.childNodes.length ? a.replaceChild(e, a.childNodes[0]) : (a.innerHTML = "", a.appendChild(e)); var o = this.Ee(); a.style.width = o + 5e3 + "px", o > 0 && (this.divStretch.style.width = o + "px"); }, this.Le = function (e, t) { var n = null, i = this.ca.Ke(), t = t || this.cellGroupBy, a = e.start; switch (t) {
|
|
3433
3433
|
case "Minute":
|
|
3434
3434
|
n = a.toString("m");
|
|
3435
3435
|
break;
|
|
3436
3436
|
case "Hour":
|
|
3437
|
-
n = "Clock12Hours" === l.ca.
|
|
3437
|
+
n = "Clock12Hours" === l.ca.Rh() ? a.toString("h tt", i) : a.toString("H", i);
|
|
3438
3438
|
break;
|
|
3439
3439
|
case "Day":
|
|
3440
3440
|
n = a.toString(i.datePattern);
|
|
@@ -3456,10 +3456,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3456
3456
|
break;
|
|
3457
3457
|
case "Cell":
|
|
3458
3458
|
var o = (e.end.ticks - e.start.ticks) / 6e4;
|
|
3459
|
-
n = this.
|
|
3459
|
+
n = this.Sh(a, o);
|
|
3460
3460
|
break;
|
|
3461
3461
|
default: throw new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
3462
|
-
} return n; }, this.
|
|
3462
|
+
} return n; }, this.Sh = function (e, t) { var n = this.ca.Ke(), t = t || this.cellDuration; return t < 1 ? e.toString("ss") : t < 60 ? e.toString("mm") : t < 1440 ? "Clock12Hours" === l.ca.Rh() ? e.toString("h tt", n) : e.toString("H", n) : t < 10080 ? e.toString("d") : 10080 === t ? 1 === f.ea() ? e.weekNumberISO() : e.weekNumber() : e.toString("MMMM yyyy", n); }, this.Je = function (e, t, n) { var i, a = l.startDate.addDays(l.days); t = t || this.cellGroupBy; var o = 60; switch (t) {
|
|
3463
3463
|
case "Minute":
|
|
3464
3464
|
e.getMinutes() + e.getSeconds() + e.getMilliseconds() > 0 && (e = e.getDatePart().addHours(e.getHours()).addMinutes(e.getMinutes())), i = e.addMinutes(1);
|
|
3465
3465
|
break;
|
|
@@ -3493,53 +3493,53 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3493
3493
|
i = a;
|
|
3494
3494
|
break;
|
|
3495
3495
|
case "Cell":
|
|
3496
|
-
var s = this.
|
|
3496
|
+
var s = this.Oe(e);
|
|
3497
3497
|
s.current && (i = s.current.end);
|
|
3498
3498
|
break;
|
|
3499
3499
|
default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
3500
|
-
} return i.getTime() > a.getTime() && (i = a), i; }, this.
|
|
3500
|
+
} return i.getTime() > a.getTime() && (i = a), i; }, this.Qh = function (e, t) { var n = this.nav.timeHeader, i = this.timeHeader[t][e], a = t < this.timeHeader.length - 1, o = i.left, s = i.width, d = t * l.headerHeight, c = l.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = s + "px", u.style.height = c + "px", i.toolTip && (u.title = i.toolTip), u.setAttribute("aria-hidden", "true"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = i.start, u.cell.end = i.end, u.cell.level = t, u.cell.th = i, u.onclick = this.Dg, u.oncontextmenu = this.Eg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", l.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = l.ab(i.text, i.innerHTML), i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); a && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, l.L("_timeheader_cell")), DayPilot.Util.addClass(h, l.L("_timeheader_cell_inner")), u.appendChild(h), this.zb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.dg = function () { l.rowlist.forEach(function (e) { var t = e.getHeight() + l.rowMarginTop + l.rowMarginBottom; e.height !== t && (l.of = !0), e.height = t; }), l.of && (l.zb.drawArea = null); }, this.bf = function () { l.rowlist.forEach(function (e) { var t = l.divHeader; if (t) {
|
|
3501
3501
|
var n = e.index;
|
|
3502
3502
|
if (t.rows[n]) {
|
|
3503
3503
|
var i = t.rows[n];
|
|
3504
|
-
l.
|
|
3504
|
+
l.ug && (i.style.top = e.top + "px");
|
|
3505
3505
|
var a = e.height;
|
|
3506
3506
|
i && i.firstChild && parseInt(i.firstChild.style.height, 10) !== a && (i.firstChild.style.height = a + "px");
|
|
3507
3507
|
}
|
|
3508
|
-
} }), l.
|
|
3509
|
-
n.
|
|
3508
|
+
} }), l.ug && l.nav.resScrollSpace && (l.nav.resScrollSpace.style.top = l.he + "px"); }, this.eh = function (e) { if (!DayPilot.Global.touch.start && !DayPilot.Global.touch.active) {
|
|
3509
|
+
n.Th, 1, l.Ue(e);
|
|
3510
3510
|
var t = DayPilot.Util.mouseButton(e);
|
|
3511
|
-
if (l.
|
|
3511
|
+
if (l.Uh())
|
|
3512
3512
|
return !1;
|
|
3513
3513
|
if (t.middle || t.right)
|
|
3514
3514
|
return !1;
|
|
3515
|
-
if (l.
|
|
3515
|
+
if (l.Vh(l.coords))
|
|
3516
3516
|
return !1;
|
|
3517
3517
|
var i = t.left ? "left" : t.right ? "right" : t.middle ? "middle" : "unknown";
|
|
3518
|
-
return l.
|
|
3519
|
-
} }, this.
|
|
3518
|
+
return l.Wh = i, n.Mh = l.Nh(), n.Mh && (n.Xh = l), !1;
|
|
3519
|
+
} }, this.Nh = function () { var e = {}, t = l.Me(l.coords.x).x, n = l.getDate(l.coords.x, !0); return e.start = { y: l.Jf(l.coords.y).i, x: t, "time": n }, e.end = { x: t, "time": n }, e.calendar = l, l.Cf(e), e; }, this.gh = function (e) { if (l.Se = {}, l.Bf) {
|
|
3520
3520
|
if (DayPilot.Util.mouseButton(e).left) {
|
|
3521
|
-
var t = l.
|
|
3522
|
-
if (l.
|
|
3523
|
-
var i = function (e) { return function () { n.
|
|
3521
|
+
var t = l.Bf;
|
|
3522
|
+
if (l.Vh(l.coords)) {
|
|
3523
|
+
var i = function (e) { return function () { n.Th = null; var t = l.zf(e); if (t) {
|
|
3524
3524
|
var i = {};
|
|
3525
3525
|
i.start = t.start, i.end = t.end, i.resource = t.resource, i.preventDefault = function () { i.preventDefault.value = !0; }, "function" == typeof l.onTimeRangeClick && l.onTimeRangeClick(i), i.preventDefault.value || "function" == typeof l.onTimeRangeClicked && l.onTimeRangeClicked(i);
|
|
3526
3526
|
} }; };
|
|
3527
3527
|
"Disabled" !== l.timeRangeClickHandling && i(t)();
|
|
3528
3528
|
}
|
|
3529
3529
|
}
|
|
3530
|
-
} }, this.
|
|
3530
|
+
} }, this.Uh = function () { return !!(n.ig || n.Se || n.Mh) || !!l.Se.Hh; }, this.dragInProgress = function () { return l.Uh(); }, this.Ue = function (e) { var t = DayPilot.mo3(l.le, e); t = t || {}, t.stamp = t.x + "_" + t.y, l.coords && l.coords.stamp === t.stamp || (l.coords = t); }, this.fh = function (e) { if (!DayPilot.Global.touch.active) {
|
|
3531
3531
|
var t = DayPilot.mc(e);
|
|
3532
|
-
if (l.
|
|
3533
|
-
DayPilot.distance(l.
|
|
3532
|
+
if (l.Ue(e), l.Se.Hh) {
|
|
3533
|
+
DayPilot.distance(l.Se.Fh, t) > 2 && (DayPilot.Util.copyProps(l.Se, n), o().style.cursor = "move", l.Se = {});
|
|
3534
3534
|
}
|
|
3535
|
-
n.
|
|
3536
|
-
} }, this
|
|
3537
|
-
DayPilot.Util.addClass(n.
|
|
3538
|
-
var e = n.
|
|
3539
|
-
n.
|
|
3540
|
-
} l.
|
|
3541
|
-
return !1; var n = this.
|
|
3542
|
-
var h = d ? e.start.x : e.end.x, f = d ? e.end.x : e.start.x, v = l.
|
|
3535
|
+
n.ig && n.mg.calendar === l ? (n.ig.event || (n.ig.event = n.mg), l.Yh()) : n.pg ? l.Zh() : n.Mh && n.Mh.calendar === l && (n.Mh.moved = !0, l.$h());
|
|
3536
|
+
} }, this.$h = function () { var e = n.Mh, t = l.Me(l.coords.x).x, i = l.getDate(l.coords.x, !0); e.end = { x: t, "time": i }, l.Cf(e); }, this.Yh = function () { n.lg || (n.lg = l.ba(n.ig)), l.ng(); }, this.Zh = function () { if (!n.qg) {
|
|
3537
|
+
DayPilot.Util.addClass(n.Se, l.L("_event_moving_source"));
|
|
3538
|
+
var e = n.pg;
|
|
3539
|
+
n.qg = l.ba(e);
|
|
3540
|
+
} l.og(); }, this.hh = function (e) { return e.cancelBubble = !0, !1; }, this.Vh = function (e) { var t = l.Bf; if (!t || !t.start || !t.end)
|
|
3541
|
+
return !1; var n = this.Mf(t.start.y), i = t.start.x < t.end.x, a = (i ? t.start.x : t.end.x) * this.cellWidth, o = (i ? t.end.x : t.start.x) * this.cellWidth + this.cellWidth, r = n.top, s = n.bottom; return e.x >= a && e.x <= o && e.y >= r && e.y <= s; }, this.Cf = function (e) { function t(e) { var t, n, o, s, d = e.end.time > e.start.time, c = e.start.y, u = e.start.time && e.end.time; if (i || !u) {
|
|
3542
|
+
var h = d ? e.start.x : e.end.x, f = d ? e.end.x : e.start.x, v = l.Ne(h), p = l.Ne(f);
|
|
3543
3543
|
t = v.left, n = p.left + p.width;
|
|
3544
3544
|
}
|
|
3545
3545
|
else
|
|
@@ -3547,65 +3547,65 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3547
3547
|
g = r(), g.style.position = "absolute";
|
|
3548
3548
|
var y = r();
|
|
3549
3549
|
y.className = l.L("_shadow_inner"), g.appendChild(y), l.divShadow.appendChild(g);
|
|
3550
|
-
} return g.className = l.L("_shadow"), g.firstChild.innerHTML = "", g.style.left = t + "px", g.style.top = a[c].top + "px", g.style.width = m + "px", g.style.height = a[c].height - 1 + "px", g.calendar = l, l.elements.range2 = g, g; } if (e = e || n.
|
|
3550
|
+
} return g.className = l.L("_shadow"), g.firstChild.innerHTML = "", g.style.left = t + "px", g.style.top = a[c].top + "px", g.style.width = m + "px", g.style.height = a[c].height - 1 + "px", g.calendar = l, l.elements.range2 = g, g; } if (e = e || n.Mh) {
|
|
3551
3551
|
var i = l.snapToGrid, a = l.rowlist;
|
|
3552
3552
|
t(e);
|
|
3553
|
-
} }, this.
|
|
3554
|
-
l.
|
|
3553
|
+
} }, this._h = function (e) { return { "start": { "x": e.start.x, "y": e.start.y, "time": e.start.time }, "end": { "x": e.end.x, "time": e.end.time }, "calendar": e.calendar, "args": e.args }; }, this.Kf = {}, this.Kf.na = null, this.Kf.drawCells = null, this.Kf.drawRows = null, this.Kf.click = null, this.Kf.resClick = [], this.Kf.updateFloats = null, this.hf = function () { if (!l.Q) {
|
|
3554
|
+
l.ff();
|
|
3555
3555
|
var e = l.nav.scroll;
|
|
3556
|
-
if (l.
|
|
3557
|
-
l.
|
|
3556
|
+
if (l.mh = e.scrollLeft, l.nh = e.scrollTop, l.oh = e.clientWidth, l.divTimeScroll && (l.divTimeScroll.scrollLeft = l.mh), t && n.Zg ? i() : l.divResScroll.scrollTop = l.nh, l.progressiveRowRendering && (l.Kf.drawRows && (clearTimeout(l.Kf.drawRows), l.Kf.drawRows = null), l.scrollDelayRows > 0 ? l.Kf.drawRows = setTimeout(function () { l.xg(); }, l.scrollDelayRows) : l.xg()), l.Kf.drawCells && (clearTimeout(l.Kf.drawCells), l.Kf.drawCells = null), l.scrollDelayCells > 0)
|
|
3557
|
+
l.Kf.drawCells = setTimeout(l.ai(), l.scrollDelayCells);
|
|
3558
3558
|
else {
|
|
3559
|
-
l
|
|
3559
|
+
l.ai()();
|
|
3560
3560
|
}
|
|
3561
|
-
l.
|
|
3562
|
-
} }, this
|
|
3561
|
+
l.Kf.na && (clearTimeout(l.Kf.na), l.Kf.na = null), l.scrollDelayEvents > 0 ? l.Kf.na = setTimeout(l.bi(), l.scrollDelayEvents) : l.na(), l.Kf.updateFloats && (clearTimeout(l.Kf.updateFloats), l.Kf.updateFloats = null), l.scrollDelayFloats > 0 ? l.Kf.updateFloats = setTimeout(function () { l.te(); }, l.scrollDelayFloats) : l.te(), l.onScrollCalled = !0;
|
|
3562
|
+
} }, this.ai = function () { return function () { l && l.gf(); }; }, this.bi = function () { return function () { l && (l.vh() ? setTimeout(function () { l.qh(), setTimeout(function () { l.na(!0); }, 50); }, 50) : l.ve()); }; }, this.ff = function () { l.zb.drawArea = null; }, this.show = function () { l.visible = !0, l.ie = !0, l.nav.top.style.display = "", l.u(), l.ch(), l.hf(); }, this.hide = function () { l.visible = !1, l.ie = !1, l.nav.top.style.display = "none"; }, this.Zf = function (e) { if (!l.events.list)
|
|
3563
3563
|
return null; for (var t = 0; t < this.events.list.length; t++) {
|
|
3564
3564
|
var n = this.events.list[t];
|
|
3565
|
-
if (l.
|
|
3565
|
+
if (l.Sf(n, e)) {
|
|
3566
3566
|
var i = {};
|
|
3567
3567
|
return i.ex = n, i.index = t, i;
|
|
3568
3568
|
}
|
|
3569
|
-
} return null; }, this.
|
|
3569
|
+
} return null; }, this.ci = function () { var e = this.pe(), t = e.xStart, n = e.xEnd - e.xStart, i = e.yStart, a = e.yEnd - e.yStart; this.cellProperties || (this.cellProperties = {}); for (var o = 0; o <= n; o++) {
|
|
3570
3570
|
for (var r = t + o, s = 0; s < a; s++) {
|
|
3571
3571
|
var l = i + s;
|
|
3572
|
-
this.
|
|
3572
|
+
this.kd(r, l);
|
|
3573
3573
|
}
|
|
3574
|
-
this.
|
|
3575
|
-
} for (var d = this.
|
|
3576
|
-
this.
|
|
3574
|
+
this.di(r);
|
|
3575
|
+
} for (var d = this.sg(), l = d.start; l < d.end; l++)
|
|
3576
|
+
this.ei(l); }, this.gf = function () { if (!l.Q) {
|
|
3577
3577
|
var e = l.rowlist;
|
|
3578
3578
|
if (e && e.length > 0) {
|
|
3579
3579
|
if (this.cellSweeping) {
|
|
3580
3580
|
var t = this.cellSweepingCacheSize;
|
|
3581
|
-
this.
|
|
3581
|
+
this.uh(t);
|
|
3582
3582
|
}
|
|
3583
|
-
this.
|
|
3583
|
+
this.ci();
|
|
3584
3584
|
}
|
|
3585
|
-
this.
|
|
3586
|
-
} }, this.
|
|
3587
|
-
return l.
|
|
3588
|
-
return null; var e = l.
|
|
3589
|
-
var a = t[e], o = a.height, s = a.top + o - 1, d = this.
|
|
3590
|
-
c.style.left = "0px", c.style.top = s + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.
|
|
3591
|
-
} }, this.
|
|
3592
|
-
var n = l.divLines, i = l.
|
|
3593
|
-
if (!this.
|
|
3585
|
+
this.of = !1;
|
|
3586
|
+
} }, this.pe = function () { if (l.zb.drawArea)
|
|
3587
|
+
return l.zb.drawArea; if (!this.nav.scroll)
|
|
3588
|
+
return null; var e = l.nh, t = {}, n = null != this.dynamicEventRenderingMarginX ? this.dynamicEventRenderingMarginX : this.dynamicEventRenderingMargin, i = null != this.dynamicEventRenderingMarginY ? this.dynamicEventRenderingMarginY : this.dynamicEventRenderingMargin, a = l.mh - n, o = a + l.oh + 2 * n, r = 0, s = 0; r = l.Me(a).x, s = l.Me(o, !0).x; var d = this.Df(); s = Math.min(s, d - 1), r = DayPilot.Util.atLeast(r, 0); var c = e - i, u = e + this.nav.scroll.offsetHeight + 2 * i, h = this.Jf(c).i, f = this.Jf(u).i; f < this.rowlist.length && f++, t.xStart = r, t.xEnd = s, t.yStart = h, t.yEnd = f; var v = l.nav.scroll; return 0 === v.clientWidth && (v = l.divTimeScroll), t.pixels = {}, t.pixels.left = v.scrollLeft, t.pixels.right = v.scrollLeft + v.clientWidth, t.pixels.top = v.scrollTop, t.pixels.bottom = v.scrollTop + v.clientHeight, t.pixels.width = v.scrollWidth, t.sw = DayPilot.sw(l.nav.scroll), l.zb.drawArea = t, t; }, this.Ee = function () { return l.Df() * l.cellWidth; }, this.ei = function (e) { var t = l.rowlist, n = l.divLines, i = "y_" + e; if (!this.zb.linesHorizontal[i]) {
|
|
3589
|
+
var a = t[e], o = a.height, s = a.top + o - 1, d = this.Ee(), c = r();
|
|
3590
|
+
c.style.left = "0px", c.style.top = s + "px", c.style.width = d + "px", c.style.height = "1px", c.style.fontSize = "1px", c.style.lineHeight = "1px", c.style.overflow = "hidden", c.style.position = "absolute", c.className = this.L("_matrix_horizontal_line"), n.appendChild(c), this.zb.linesHorizontal[i] = c;
|
|
3591
|
+
} }, this.di = function (e) { var t = l.Ne(e); if (t) {
|
|
3592
|
+
var n = l.divLines, i = l.he, a = "x_" + e;
|
|
3593
|
+
if (!this.zb.linesVertical[a]) {
|
|
3594
3594
|
var o = t.left + t.width - 1, s = r();
|
|
3595
|
-
s.style.left = o + "px", s.style.top = "0px", s.style.width = "1px", s.style.height = i + "px", s.style.fontSize = "1px", s.style.lineHeight = "1px", s.style.overflow = "hidden", s.style.position = "absolute", s.className = this.L("_matrix_vertical_line"), n.appendChild(s), this.elements.linesVertical.push(s), this.
|
|
3595
|
+
s.style.left = o + "px", s.style.top = "0px", s.style.width = "1px", s.style.height = i + "px", s.style.fontSize = "1px", s.style.lineHeight = "1px", s.style.overflow = "hidden", s.style.position = "absolute", s.className = this.L("_matrix_vertical_line"), n.appendChild(s), this.elements.linesVertical.push(s), this.zb.linesVertical[a] = s;
|
|
3596
3596
|
}
|
|
3597
|
-
} }, this
|
|
3597
|
+
} }, this.$e = function () { l.he = l.fi(l.rowlist); }, this.fi = function (e) { for (var t = 0, n = 0; n < e.length; n++) {
|
|
3598
3598
|
var i = e[n];
|
|
3599
3599
|
i.top = t, t += i.height;
|
|
3600
|
-
} return t; }, this.
|
|
3601
|
-
t.push(l.
|
|
3602
|
-
var n = l.
|
|
3600
|
+
} return t; }, this.df = function () { l.elements.cells = [], l.zb.cells = [], l.divCells.innerHTML = "", l.gi(); }, this.gi = function () { l.divLines.innerHTML = "", l.zb.linesVertical = {}, l.zb.linesHorizontal = {}, l.elements.linesVertical = []; }, this.sf = function (e) { var t = []; for (var n in l.zb.cells)
|
|
3601
|
+
t.push(l.zb.cells[n]); t.filter(function (t) { return t && t.coords && t.coords.y === e; }).forEach(function (e) { l.hb(e); }); }, this.kd = function (e, t) { if (this.Ma) {
|
|
3602
|
+
var n = l.Ne(e);
|
|
3603
3603
|
if (n) {
|
|
3604
3604
|
var i = l.rowlist, a = l.divCells, o = e + "_" + t;
|
|
3605
|
-
if (!this.
|
|
3606
|
-
var s = this.
|
|
3605
|
+
if (!this.zb.cells[o]) {
|
|
3606
|
+
var s = this.hi(e, t), d = l.ii(e, t), c = r();
|
|
3607
3607
|
if (c.style.left = n.left + "px", c.style.top = i[t].top + "px", c.style.width = n.width + "px", c.style.height = i[t].height + "px", c.style.position = "absolute", s && s.backColor && (c.style.backgroundColor = s.backColor), c.className = this.L("_cell"), c.coords = {}, c.coords.x = e, c.coords.y = t, s) {
|
|
3608
|
-
if (s.cssClass && DayPilot.Util.addClass(c, s.cssClass), c.innerHTML = l
|
|
3608
|
+
if (s.cssClass && DayPilot.Util.addClass(c, s.cssClass), c.innerHTML = l.ab(s.text, s.html), s.backImage && (c.style.backgroundImage = 'url("' + s.backImage + '")'), s.backRepeat && (c.style.backgroundRepeat = s.backRepeat), s.business && l.cellsMarkBusiness && DayPilot.Util.addClass(c, l.L("_cell_business")), s.disabled && DayPilot.Util.addClass(c, l.L("_cell_disabled")), s.backColor && (c.style.backgroundColor = s.backColor), s.fontColor && (c.style.color = s.fontColor), s.horizontalAlignment || s.verticalAlignment) {
|
|
3609
3609
|
switch (c.style.display = "flex", s.horizontalAlignment) {
|
|
3610
3610
|
case "right":
|
|
3611
3611
|
c.style.justifyContent = "flex-end";
|
|
@@ -3627,25 +3627,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3627
3627
|
}
|
|
3628
3628
|
DayPilot.Areas.attach(c, d.cell, { "areas": s.areas || d.cell.areas });
|
|
3629
3629
|
}
|
|
3630
|
-
a.appendChild(c), this.elements.cells.push(c), this.
|
|
3630
|
+
a.appendChild(c), this.elements.cells.push(c), this.zb.cells[o] = c;
|
|
3631
3631
|
}
|
|
3632
3632
|
}
|
|
3633
|
-
} }, this.
|
|
3634
|
-
return null; var i = l.rowlist[t], a = i.id, o = n.start, r = n.end, s = {}; if (s.cell = { x: e, y: t, start: o, end: r, resource: a, row: l.
|
|
3633
|
+
} }, this.ii = function (e, t) { var n = l.Ne(e); if (!n)
|
|
3634
|
+
return null; var i = l.rowlist[t], a = i.id, o = n.start, r = n.end, s = {}; if (s.cell = { x: e, y: t, start: o, end: r, resource: a, row: l.Cg(i), properties: l.hi(e, t) }, s.control = l, "function" == typeof this.onBeforeCellRender) {
|
|
3635
3635
|
var d = e + "_" + t;
|
|
3636
|
-
if (l.beforeCellRenderCaching && l.
|
|
3636
|
+
if (l.beforeCellRenderCaching && l.ef[d])
|
|
3637
3637
|
return s;
|
|
3638
|
-
l.
|
|
3639
|
-
} return s; }, this.clearSelection = function () { this.
|
|
3640
|
-
throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var o = l.
|
|
3641
|
-
throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var r = {}; return r.start = { y: i.index, x: a.i, "time": e }, r.end = { x: o.i, "time": t }, r.calendar = this, r; }, this.selectTimeRange = function (e, t, n, i) { var a = l.
|
|
3638
|
+
l.ef[d] = !0, this.onBeforeCellRender(s);
|
|
3639
|
+
} return s; }, this.clearSelection = function () { this.ji(); }, this.ki = function (e, t, n) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = l.ne(n), a = l.Oe(e); if (!a.current)
|
|
3640
|
+
throw new DayPilot.Exception("Time range selection 'start' out of timeline"); var o = l.Oe(new DayPilot.Date(t).addMilliseconds(-1)); if (!o.current)
|
|
3641
|
+
throw new DayPilot.Exception("Time range selection 'end' out of timeline"); var r = {}; return r.start = { y: i.index, x: a.i, "time": e }, r.end = { x: o.i, "time": t }, r.calendar = this, r; }, this.selectTimeRange = function (e, t, n, i) { var a = l.ki(e, t, n); l.Cf(a), i || setTimeout(function () { l.yf(a); }, 0); }, this.wf = function () { var e = n.qg && n.qg.source; e && DayPilot.Util.removeClass(e, l.L("_event_moving_source")), DayPilot.de(n.qg), n.qg = null, DayPilot.Global.movingLink && (DayPilot.Global.movingLink.clear(), DayPilot.Global.movingLink = null); }, this.ji = function () { l.divShadow && (l.divShadow.innerHTML = ""), l.elements.range = [], l.elements.range2 = null, l.Bf = null, l.li = null; }, this.ca = {};
|
|
3642
3642
|
var f = this.ca;
|
|
3643
|
-
f.
|
|
3644
|
-
var e = f.
|
|
3643
|
+
f.Od = function () { delete l.zb.headerHeight; }, f.da = function () { return "Disabled" !== l.xssProtection; }, f.Ke = function () { return DayPilot.Locale.find(l.locale); }, f.Rh = function () { return "Auto" !== l.timeFormat ? l.timeFormat : f.Ke().timeFormat; }, f.ea = function () { if ("Auto" === l.weekStarts) {
|
|
3644
|
+
var e = f.Ke();
|
|
3645
3645
|
return e ? e.weekStarts : 0;
|
|
3646
|
-
} return l.weekStarts || 0; }, f.
|
|
3646
|
+
} return l.weekStarts || 0; }, f.zg = function () { var e = navigator.userAgent.toLowerCase(); return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1; }, f.gg = function (e) { return "Always" === l.useEventBoxes || "Never" !== l.useEventBoxes && e < 60 * l.Pe() * 1e3; }, this.hi = function (e, t) { var n = e + "_" + t, i = l.rowlist; if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
|
|
3647
3647
|
return this.cellProperties[n]; if (!this.cellProperties[n]) {
|
|
3648
|
-
var a = i[t], o = a.id, r = l.
|
|
3648
|
+
var a = i[t], o = a.id, r = l.Ne(e), s = r.start, d = r.end, c = {};
|
|
3649
3649
|
c.start = s, c.end = d, c.resource = o;
|
|
3650
3650
|
var u = {};
|
|
3651
3651
|
u.business = l.isBusiness(c), this.cellProperties[n] = u;
|
|
@@ -3664,80 +3664,79 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3664
3664
|
return !0;
|
|
3665
3665
|
if (o >= s)
|
|
3666
3666
|
return !1;
|
|
3667
|
-
} return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.
|
|
3667
|
+
} return !0; }, this.u = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.mi = function (e) { this.heightSpec = "Fixed", this.height = e - (this.Ge() + 2), this.ma(); }, this.setHeight = this.mi, this.ne = function (e) { return l.Gg(e)[0]; }, this.yb = function () { if (this.id && this.id.tagName)
|
|
3668
3668
|
this.nav.top = this.id;
|
|
3669
3669
|
else {
|
|
3670
3670
|
if ("string" != typeof this.id)
|
|
3671
3671
|
throw new DayPilot.Exception("DayPilot.Scheduler() constructor requires the target element or its ID as a parameter");
|
|
3672
3672
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3673
3673
|
throw new DayPilot.Exception("DayPilot.Scheduler: The placeholder element not found: '" + a + "'.");
|
|
3674
|
-
} }, this.init = function () { if (this.
|
|
3675
|
-
throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties."); if (this.
|
|
3674
|
+
} }, this.init = function () { if (this.Ma)
|
|
3675
|
+
throw new DayPilot.Exception("This instance is already initialized. Use update() to change properties."); if (this.yb(), this.nav.top.dp) {
|
|
3676
3676
|
if (this.nav.top.dp === l)
|
|
3677
3677
|
return l;
|
|
3678
3678
|
throw new DayPilot.Exception("The target placeholder was already initialized by another DayPilot component instance.");
|
|
3679
|
-
} return this.
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3679
|
+
} return this.ni(), this.bh(), this; }, this.ni = function () { this.Pg(), this.rb(), this.aa(), this.lh(), this.sb(); var angular = l.De.enabled; l.scrollToDate ? l.scrollTo(l.scrollToDate) : l.scrollX || l.scrollY ? l.setScroll(l.scrollX, l.scrollY) : angular || l.hf(), l.scrollToResourceId && (l.scrollToResource(l.scrollToResourceId), l.scrollToResourceId = null); var e = function () { l.scrollY && l.setScroll(l.scrollX, l.scrollY); }; setTimeout(e, 200), this.ff(), this.xb(), this.Ma = !0; var t = l.ke; t ? l.scrollTo(t) : l.hf(); }, this.wb = null, this.ub = function (e) {
|
|
3680
|
+
if (e) {
|
|
3681
|
+
var t = { "resources": { "preInit": function () { var e = this.data; e && (l.resources = e); } }, "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? l.events.list = e.list : l.events.list = e); }, "postInit": function () { } }, "scrollTo": { "preInit": function () { }, "postInit": function () { this.data && l.je(this.data); } }, "scrollX": { "postInit": function () { this.data && l.me(this.data); } }, "scrollY": { "postInit": function () { this.data && l.Fe(this.data); } } };
|
|
3682
|
+
l.wb = t, l.De.scrollToRequested && (t.scrollTo.data = l.De.scrollToRequested, l.De.scrollToRequested = null), l.De.scrollXRequested && (t.scrollX.data = l.De.scrollXRequested, l.De.scrollXRequested = null), l.De.scrollYRequested && (t.scrollY.data = l.De.scrollYRequested, l.De.scrollYRequested = null);
|
|
3683
|
+
for (var n in e)
|
|
3684
|
+
t[n] || (l[n] = e[n]);
|
|
3685
|
+
for (var n in e)
|
|
3686
|
+
if (t[n]) {
|
|
3687
|
+
var i = t[n];
|
|
3688
|
+
i.data = e[n], i.preInit && i.preInit();
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
}, this.xb = function () { var e = l.wb; for (var t in e) {
|
|
3690
3692
|
var n = e[t];
|
|
3691
3693
|
n.postInit && n.postInit();
|
|
3692
|
-
} l.
|
|
3693
|
-
var
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
i.render(a, t);
|
|
3697
|
-
}
|
|
3698
|
-
}, this.Qa.Ua = function (e, t) { var n = l.Qa.Pa; if ("function" == typeof n.render) {
|
|
3694
|
+
} l.wb = {}; }, this.Sa = {}, this.Sa.Ra = null, this.Sa.Ob = function (e, t, n) { var i = l.Sa.Ra; if ("function" == typeof i.createVNode && "function" == typeof i.render) {
|
|
3695
|
+
var a = i.createVNode(e, n);
|
|
3696
|
+
i.render(a, t);
|
|
3697
|
+
} }, this.Sa.Wa = function (e, t) { var n = l.Sa.Ra; if ("function" == typeof n.render) {
|
|
3699
3698
|
var i = e;
|
|
3700
3699
|
DayPilot.isArray(e) && (i = n.h("div", null, e)), n.render(i, t);
|
|
3701
|
-
} }, this.
|
|
3700
|
+
} }, this.Sa.Ua = function (e) { var t = l.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.tf, this.internal.adjustEndNormalize = l.uf, this.internal.xssTextHtml = l.ab, this.internal.touch = l.Jh, this.internal.skipUpdate = l.De.skipUpdate, this.internal.skipped = l.De.skipped, this.internal.loadOptions = l.ub, this.internal.postInit = l.xb, this.internal.enableAngular2 = function () { l.De.enabled = !0; }, this.internal.eventsFromAttr = function () { l.De.Xf = !0; }, this.internal.resourcesFromAttr = function () { l.De.eg = !0; }, this.internal.evImmediateRefresh = function () { l.events.xf(); }, this.internal.enableReact = function (e, t) { l.ld.react = e, l.ld.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(l.ld, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { l.Sa.Ra = e; }, this.internal.vueRef = function () { return l.Sa.Ra; }, this.internal.vueRendering = function () { return l.Sa.Ta; }, this.ub(s);
|
|
3702
3701
|
}, a = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
|
|
3703
3702
|
throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
|
|
3704
|
-
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.
|
|
3705
|
-
e.push(i.
|
|
3706
|
-
var t = n.
|
|
3707
|
-
t.coords = t.
|
|
3708
|
-
} if (n.
|
|
3703
|
+
throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.oi = {}; var n = this.oi; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var i = this; i.isRow = !0, i.menuType = "resource", i.name = e.name, i.id = e.id, i.tags = e.tags, i.index = e.index, i.calendar = t, i.data = e.resource, i.pi = e, i.$ = {}, i.$.row = e, i.toJSON = function (e) { var t = {}; return t.start = this.start, t.name = this.name, t.id = this.id, t.index = this.index, t; }, i.events = {}, i.events.all = function () { for (var e = [], t = 0; t < i.pi.events.length; t++)
|
|
3704
|
+
e.push(i.pi.events[t]); return e; }, i.events.isEmpty = function () { return 0 === i.pi.events.length; }, i.events.forRange = function (e, t) { return i.pi.events.forRange(e, t); }, i.events.totalDuration = function () { var e = 0; return i.events.all().forEach(function (t) { e += t.part.end.getTime() - t.part.start.getTime(); }), new DayPilot.Duration(e); }, i.remove = function () { t.rows.remove(i); }, i.addClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.addClass(a, e), i.$.row.cssClass = DayPilot.Util.addClassToString(i.$.row.cssClass, e), i.data.cssClass = e; }, i.removeClass = function (e) { var n = t.divHeader, a = n.rows[i.index]; DayPilot.Util.removeClass(a, e), i.$.row.cssClass = DayPilot.Util.removeClassFromString(i.$.row.cssClass, e), i.data.cssClass = DayPilot.Util.removeClassFromString(i.data.cssClass, e); }; }, n.Se = null, n.pg = null, n.Fh = null, n.ig = null, n.mg = null, n.Re = !1, n.ih = !1, n.Th = null, n.qi = null, n.sc = function (e) { DayPilot.ue(document, "mouseup", n.ge), DayPilot.ue(document, "touchmove", n.jh), DayPilot.ue(document, "touchend", n.kh), n.ih = !1; }, n.jh = function (e) { if (n.ig) {
|
|
3705
|
+
var t = n.ig.event.calendar;
|
|
3706
|
+
t.coords = t.Jh.Lh(e), t.Jh.Oh(), e.preventDefault();
|
|
3707
|
+
} if (n.Se) {
|
|
3709
3708
|
e.preventDefault();
|
|
3710
|
-
var t = n.
|
|
3711
|
-
t.coords = t.
|
|
3712
|
-
} }, n.
|
|
3713
|
-
var t = function () { var e = n.
|
|
3714
|
-
if (setTimeout(function () { n.
|
|
3709
|
+
var t = n.pg.calendar;
|
|
3710
|
+
t.coords = t.Jh.Lh(e), t.Jh.Ph();
|
|
3711
|
+
} }, n.kh = function (e) { n.Zg = !1, n.ge(e); }, n.ge = function (e) { if (n.ig) {
|
|
3712
|
+
var t = function () { var e = n.mg, t = e.calendar; o().style.cursor = "", n.ig = null, n.mg = null, DayPilot.de(n.lg), n.lg = null, t && (t.ri = null); };
|
|
3713
|
+
if (setTimeout(function () { n.Re = !1; }), !n.lg)
|
|
3715
3714
|
return void t();
|
|
3716
|
-
var a = n.
|
|
3715
|
+
var a = n.mg, r = a.calendar, s = n.lg.start, l = n.lg.end, d = "left" === n.ig.dpBorder ? "start" : "end";
|
|
3717
3716
|
t(), r.K(a, s, l, d);
|
|
3718
3717
|
}
|
|
3719
|
-
else if (n.
|
|
3720
|
-
var t = function () { DayPilot.Global.movingAreaData = null; var e = n.
|
|
3721
|
-
if (!n.
|
|
3718
|
+
else if (n.pg) {
|
|
3719
|
+
var t = function () { DayPilot.Global.movingAreaData = null; var e = n.qg && n.qg.calendar; n.qg && (DayPilot.de(n.qg), n.qg.calendar = null), o().style.cursor = "", n.Se = null, n.pg = null, e && (e.vf = null); };
|
|
3720
|
+
if (!n.qg)
|
|
3722
3721
|
return void t();
|
|
3723
|
-
var a = n.
|
|
3722
|
+
var a = n.pg, r = n.qg.calendar;
|
|
3724
3723
|
if (!r)
|
|
3725
3724
|
return void t();
|
|
3726
|
-
if (n.
|
|
3725
|
+
if (n.qg.source = n.Se, !n.qg.row)
|
|
3727
3726
|
return void t();
|
|
3728
|
-
var s = n.
|
|
3729
|
-
n.
|
|
3727
|
+
var s = n.qg.start, l = n.qg.end, c = n.qg.row.id;
|
|
3728
|
+
n.qg.calendar = null, o().style.cursor = "", n.Se = null, n.pg = null, r.M(a, s, l, c, e), DayPilot.Global.movingAreaData = null;
|
|
3730
3729
|
}
|
|
3731
|
-
else if (n.
|
|
3732
|
-
var u = DayPilot.Util.mouseButton(e), h = n.
|
|
3733
|
-
r.
|
|
3730
|
+
else if (n.Mh) {
|
|
3731
|
+
var u = DayPilot.Util.mouseButton(e), h = n.Mh, r = h.calendar, t = function () { };
|
|
3732
|
+
r.li = null;
|
|
3734
3733
|
e.ctrlKey || e.metaKey;
|
|
3735
|
-
if (n.
|
|
3736
|
-
return clearTimeout(n.
|
|
3737
|
-
r.
|
|
3738
|
-
var f = function (e) { return function () { n.
|
|
3739
|
-
return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.
|
|
3740
|
-
} n.
|
|
3734
|
+
if (n.Th)
|
|
3735
|
+
return clearTimeout(n.Th), n.Th = null, void t();
|
|
3736
|
+
r.Bf = h, n.Mh = null;
|
|
3737
|
+
var f = function (e) { return function () { n.Th = null, r.yf(e), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling ? i() : r.Bf = e; }; }, v = r._h(h);
|
|
3738
|
+
return t(), u.left ? (f(v)(), e.cancelBubble = !0, !1) : void (n.Th = null);
|
|
3739
|
+
} n.Ih = null, n.hg = null; };
|
|
3741
3740
|
}
|
|
3742
3741
|
}(DayPilot);
|
|
3743
3742
|
|