@daypilot/daypilot-lite-angular 3.32.1 → 3.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/daypilot-core.mjs +589 -576
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +623 -616
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +590 -577
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2025.
|
|
133
|
+
Version: 2025.2.643-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -233,7 +233,7 @@ if (function () {
|
|
|
233
233
|
if (e.hasOwnProperty(i)) {
|
|
234
234
|
var a = {};
|
|
235
235
|
a.key = i, a.val = e[i], t.push(a);
|
|
236
|
-
} return t; }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) { var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0; n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) { if (DayPilot.Areas.isVisible(a)) {
|
|
236
|
+
} return t; }, DayPilot.Util.replaceCharAt = function (e, t, i) { return e.substr(0, t) + i + e.substr(t + i.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Util.overlaps = function (e, t, i, a) { return !(t <= i || e >= a); }, DayPilot.Util.isVueVNode = function (e) { return !!e && (DayPilot.isArray(e) ? DayPilot.Util.isVueVNode(e[0]) : e["__v_isVNode"]); }, DayPilot.Util.atLeast = function (e, t) { return Math.max(e, t); }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, i) { var i = i || {}, n = i.areas, o = i.allowed || function () { return !0; }, r = i.offsetX || 0; n = a(t, n), n && DayPilot.isArray(n) && 0 !== n.length && (DayPilot.re(e, "mousemove", function (a) { e.active || e.areasDisabled || !o() || DayPilot.Areas.showAreas(e, t, a, n, { "offsetX": r, "eventDiv": i.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), n.forEach(function (a) { if (DayPilot.Areas.isVisible(a)) {
|
|
237
237
|
var n = DayPilot.Areas.createArea(e, t, a, { "offsetX": r, "eventDiv": i.eventDiv });
|
|
238
238
|
e.appendChild(n);
|
|
239
239
|
} })); }, DayPilot.Areas.disable = function (e) { e.areasDisabled = !0, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c = e.style.display, e.style.display = "none"; }); }, DayPilot.Areas.enable = function (e) { e.areasDisabled = !1, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c ? e.style.display = e.c : e.style.display = ""; }); }, DayPilot.Areas.remove = function (e) { var t = Array.from(e.childNodes).filter(function (e) { return e.isActiveArea; }); DayPilot.de(t); }, DayPilot.Areas.isVisible = function (e) { var t = e.visibility || e.v || "Visible"; return "Visible" === t || "TouchVisible" === t && !DayPilot.browser.hover; }, DayPilot.Areas.copy = function (e) { return DayPilot.isArray(e) ? e.map(function (e) { return DayPilot.Util.copyProps(e, {}); }) : []; };
|
|
@@ -612,7 +612,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
612
612
|
var e = function () { };
|
|
613
613
|
if ("undefined" == typeof DayPilot.Calendar || !DayPilot.Calendar.events) {
|
|
614
614
|
var t = {};
|
|
615
|
-
t.selectedCells = [], t.topSelectedCell = null, t.bottomSelectedCell = null, t.
|
|
615
|
+
t.selectedCells = [], t.topSelectedCell = null, t.bottomSelectedCell = null, t.column = null, t.firstSelected = null, t.firstMousePos = null, t.originalMouse = null, t.originalHeight = null, t.originalTop = null, t.resizing = null, t.globalHandlers = !1, t.moving = null, t.register = function (e) { t.registered || (t.registered = []); for (var i = t.registered, a = 0; a < i.length; a++)
|
|
616
616
|
if (i[a] === e)
|
|
617
617
|
return; i.push(e); }, t.unregister = function (e) { var i = t.registered; if (i) {
|
|
618
618
|
var a = DayPilot.indexOf(i, e);
|
|
@@ -640,49 +640,48 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
640
640
|
var s = t.movingShadow.column;
|
|
641
641
|
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, a.calendar.nav.top.style.cursor = "auto", a.calendar.L(a, s, o, i);
|
|
642
642
|
}
|
|
643
|
-
else if (
|
|
644
|
-
var l =
|
|
645
|
-
|
|
643
|
+
else if (DayPilot.Global.selecting) {
|
|
644
|
+
var l = DayPilot.Global.selecting.calendar;
|
|
645
|
+
l.M = DayPilot.Global.selecting, DayPilot.Global.selecting = null;
|
|
646
646
|
var d = l.getSelection();
|
|
647
|
-
l.
|
|
647
|
+
l.N(d.start, d.end, d.resource), "Hold" !== l.timeRangeSelectedHandling && "HoldForever" !== l.timeRangeSelectedHandling && e();
|
|
648
648
|
}
|
|
649
649
|
else
|
|
650
650
|
t.selecting = !1; }, t.deleteShadow = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, t.moveShadow = function (e) { var i = t.movingShadow, a = i.parentNode; a.style.display = "none", i.parentNode.removeChild(i), e.firstChild.appendChild(i), i.style.left = "0px", a.style.display = "", i.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"; };
|
|
651
651
|
var i = DayPilot.Util.isVueVNode, a = DayPilot.Util.overlaps;
|
|
652
652
|
t.Calendar = function (e, n) {
|
|
653
653
|
var o = !1;
|
|
654
|
-
if (this instanceof t.Calendar && !this.
|
|
654
|
+
if (this instanceof t.Calendar && !this.O && (o = !0, this.O = !0), !o)
|
|
655
655
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
656
656
|
var r = this;
|
|
657
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.
|
|
657
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.2.643-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.P = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.Q(); }, this.Q = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.T = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.V, 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.P || (e.P = !0, clearInterval(e.W), e.X(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Y(), e.Z(), 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.P; }, this._ = function () { this.nav.top.dispose = this.dispose; }, this.U = function (e) { r.V(e.responseText); }, this.S = 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.aa = function (e, t) {
|
|
658
658
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
659
659
|
i = i.parentNode;
|
|
660
660
|
var a = r.eventBorderRadius;
|
|
661
661
|
"number" == typeof a && (a += "px");
|
|
662
662
|
var n = document.createElement("div");
|
|
663
|
-
n.setAttribute("unselectable", "on"), n.style.position = "absolute",
|
|
664
|
-
n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = r.K("_shadow");
|
|
663
|
+
n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = r.K("_shadow");
|
|
665
664
|
var o = document.createElement("div");
|
|
666
665
|
return o.className = r.K("_shadow_inner"), a && (o.style.borderRadius = a, n.style.borderRadius = a), n.appendChild(o), i.firstChild.appendChild(n), n;
|
|
667
|
-
}, this.
|
|
666
|
+
}, this.ba = {}, this.ba.locale = function () { var e = DayPilot.Locale.find(r.locale); return e ? e : DayPilot.Locale.US; }, this.ba.timeFormat = function () { return "Auto" !== r.timeFormat ? r.timeFormat : this.locale().timeFormat; }, this.ba.ca = function () { return "Disabled" !== r.xssProtection; }, this.ba.da = function () { if ("Auto" === r.weekStarts) {
|
|
668
667
|
var e = s.locale();
|
|
669
668
|
return e ? e.weekStarts : 0;
|
|
670
|
-
} return r.weekStarts || 0; }, this.
|
|
669
|
+
} return r.weekStarts || 0; }, this.ba.ea = function () { var e = r.cellDuration; if (e <= 1)
|
|
671
670
|
return 1; if (e >= 60)
|
|
672
671
|
return 60; var t = [1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60], i = Math.floor(e); return Math.max.apply(null, t.filter(function (e) { return e <= i; })); };
|
|
673
|
-
var s = this.
|
|
674
|
-
this.
|
|
672
|
+
var s = this.ba;
|
|
673
|
+
this.V = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
|
|
675
674
|
if (!window.console)
|
|
676
675
|
throw "Error received from the server side: " + e;
|
|
677
676
|
return void console.log("Error received from the server side: " + e);
|
|
678
677
|
} var e = JSON.parse(e); if (e.CallBackRedirect)
|
|
679
678
|
return void (document.location.href = e.CallBackRedirect); if ("None" === e.UpdateType)
|
|
680
|
-
return r.loadingStop(), void r.t(); if (r.
|
|
679
|
+
return r.loadingStop(), void r.t(); if (r.X(), "Full" === e.UpdateType && (r.columns = e.Columns, r.days = e.Days, r.startDate = new DayPilot.Date(e.StartDate), r.heightSpec = e.HeightSpec ? e.HeightSpec : r.heightSpec, r.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : r.businessBeginsHour, r.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : r.businessEndsHour, r.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : r.headerDateFormat, r.viewType = e.ViewType, r.backColor = e.BackColor ? e.BackColor : r.backColor, r.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : r.eventHeaderVisible, r.timeFormat = e.TimeFormat ? e.TimeFormat : r.timeFormat, r.locale = e.Locale ? e.Locale : r.locale, r.fa()), e.Hashes)
|
|
681
680
|
for (var i in e.Hashes)
|
|
682
|
-
r.hashes[i] = e.Hashes[i]; r.events.list = e.Events, r.
|
|
683
|
-
if (r.
|
|
681
|
+
r.hashes[i] = e.Hashes[i]; r.events.list = e.Events, r.ga(), r.ha(), "Full" === e.UpdateType && (r.ia(), r.ja(), r.ka(), r.la()), r.t(), r.ma(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop(); }, this.na = function () { return this.oa() / 36e5; }, this.pa = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.qa = function () { return this.oa() / (60 * s.ea() * 1e3); }, this.oa = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.pa() : 24, 60 * e * 60 * 1e3; }, this.ra = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.sa = function () { return 2 === r.api; }, this.eventClickCallBack = function (e, t) { this.T("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.R("EventClick", t, e); }, this.ta = function (e) { var t = this, i = t.event; if (i.client.clickEnabled())
|
|
682
|
+
if (r.sa()) {
|
|
684
683
|
var a = {};
|
|
685
|
-
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventClick && (r.
|
|
684
|
+
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventClick && (r.ua.apply(function () { r.onEventClick(a); }), a.preventDefault.value))
|
|
686
685
|
return;
|
|
687
686
|
switch (r.eventClickHandling) {
|
|
688
687
|
case "CallBack":
|
|
@@ -695,7 +694,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
695
694
|
var n = i.client.contextMenu();
|
|
696
695
|
n ? n.show(i) : r.contextMenu && r.contextMenu.show(i);
|
|
697
696
|
}
|
|
698
|
-
"function" == typeof r.onEventClicked && r.
|
|
697
|
+
"function" == typeof r.onEventClicked && r.ua.apply(function () { r.onEventClicked(a); });
|
|
699
698
|
}
|
|
700
699
|
else
|
|
701
700
|
switch (r.eventClickHandling) {
|
|
@@ -706,15 +705,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
706
705
|
r.eventClickCallBack(i);
|
|
707
706
|
break;
|
|
708
707
|
case "JavaScript": r.onEventClick(i);
|
|
709
|
-
} }, this.
|
|
708
|
+
} }, this.va = function (e) { var t = this.event; if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
710
709
|
return !1; var i = {}; if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventRightClick && (r.onEventRightClick(i), i.preventDefault.value))
|
|
711
710
|
return !1; switch (r.eventRightClickHandling) {
|
|
712
711
|
case "ContextMenu":
|
|
713
712
|
var a = t.client.contextMenu();
|
|
714
713
|
a ? a.show(t) : r.contextMenu && r.contextMenu.show(this.event);
|
|
715
|
-
} return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.
|
|
714
|
+
} return "function" == typeof r.onEventRightClicked && r.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1; }, this.eventDeleteCallBack = function (e, t) { this.T("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.R("EventDelete", t, e); }, this.wa = function (e) { if (r.sa()) {
|
|
716
715
|
var t = {};
|
|
717
|
-
if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.
|
|
716
|
+
if (t.e = e, t.control = r, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventDelete && (r.ua.apply(function () { r.onEventDelete(t); }), t.preventDefault.value))
|
|
718
717
|
return;
|
|
719
718
|
switch (r.eventDeleteHandling) {
|
|
720
719
|
case "CallBack":
|
|
@@ -725,7 +724,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
725
724
|
break;
|
|
726
725
|
case "Update": r.events.remove(e);
|
|
727
726
|
}
|
|
728
|
-
"function" == typeof r.onEventDeleted && r.
|
|
727
|
+
"function" == typeof r.onEventDeleted && r.ua.apply(function () { r.onEventDeleted(t); });
|
|
729
728
|
}
|
|
730
729
|
else
|
|
731
730
|
switch (r.eventDeleteHandling) {
|
|
@@ -738,18 +737,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
738
737
|
case "JavaScript": r.onEventDelete(e);
|
|
739
738
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
740
739
|
throw "newStart is null"; if (!i)
|
|
741
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
740
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.T("EventResize", a, n); }, this.eventResizePostBack = function (e, t, i, a) { if (!t)
|
|
742
741
|
throw "newStart is null"; if (!i)
|
|
743
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
744
|
-
var u = d.getDatePart(), h = Math.floor((i - n) / r.cellHeight)
|
|
742
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.R("EventResize", a, n); }, this.J = function (e, t, i, a) { var n = 1, o = new Date, l = new Date, d = e.start(), c = e.end(); s.ea(); if ("top" === a) {
|
|
743
|
+
var u = d.getDatePart(), h = Math.floor((i - n) / r.cellHeight);
|
|
744
|
+
r.snapToGrid || (h = (i - n) / r.cellHeight);
|
|
745
|
+
var f = h * s.ea(), m = 60 * f * 1e3, p = 60 * r.ra() * 60 * 1e3;
|
|
745
746
|
o = u.addTime(m + p), l = e.end();
|
|
746
747
|
}
|
|
747
748
|
else if ("bottom" === a) {
|
|
748
|
-
var u = c.getDatePart(), h = Math.floor((i + t - n) / r.cellHeight)
|
|
749
|
+
var u = c.getDatePart(), h = Math.floor((i + t - n) / r.cellHeight);
|
|
750
|
+
r.snapToGrid || (h = (i + t - n) / r.cellHeight);
|
|
751
|
+
var f = h * s.ea(), m = 60 * f * 1e3, p = 60 * r.ra() * 60 * 1e3;
|
|
749
752
|
o = d, l = u.addTime(m + p);
|
|
750
|
-
} if (r.
|
|
753
|
+
} if (r.sa()) {
|
|
751
754
|
var v = {};
|
|
752
|
-
if (v.e = e, v.control = r, v.newStart = o, v.newEnd = l, v.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.
|
|
755
|
+
if (v.e = e, v.control = r, v.newStart = o, v.newEnd = l, v.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventResize && (r.ua.apply(function () { r.onEventResize(v); }), v.preventDefault.value))
|
|
753
756
|
return;
|
|
754
757
|
switch (r.eventResizeHandling) {
|
|
755
758
|
case "PostBack":
|
|
@@ -760,7 +763,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
760
763
|
break;
|
|
761
764
|
case "Update": e.start(o), e.end(l), r.events.update(e);
|
|
762
765
|
}
|
|
763
|
-
"function" == typeof r.onEventResized && r.
|
|
766
|
+
"function" == typeof r.onEventResized && r.ua.apply(function () { r.onEventResized(v); });
|
|
764
767
|
}
|
|
765
768
|
else
|
|
766
769
|
switch (r.eventResizeHandling) {
|
|
@@ -773,11 +776,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
773
776
|
case "JavaScript": r.onEventResize(e, o, l);
|
|
774
777
|
} }, this.eventMovePostBack = function (e, t, i, a, n) { if (!t)
|
|
775
778
|
throw "newStart is null"; if (!i)
|
|
776
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
779
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.R("EventMove", n, o); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
777
780
|
throw "newStart is null"; if (!i)
|
|
778
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.
|
|
779
|
-
var
|
|
780
|
-
if (
|
|
781
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, this.T("EventMove", n, o); }, this.L = function (e, t, i, a) { var n = 1, o = Math.floor((i - n) / r.cellHeight); r.snapToGrid || (o = (i - n) / r.cellHeight); var l = s.ea(), 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 m = u.getTime() - c.getTime(), p = this.xa[t], v = p.id; r.snapToGrid || (f = 0); var y = p.start.getTime(), g = new Date; g.setTime(y + d + f); var b = new DayPilot.Date(g), D = b.addTime(m); if (r.sa()) {
|
|
782
|
+
var x = {};
|
|
783
|
+
if (x.e = e, x.newStart = b, x.newEnd = D, x.newResource = v, x.ctrl = a.ctrlKey, x.shift = a.shiftKey, x.control = r, x.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onEventMove && (r.ua.apply(function () { r.onEventMove(x); }), x.preventDefault.value))
|
|
781
784
|
return;
|
|
782
785
|
switch (r.eventMoveHandling) {
|
|
783
786
|
case "PostBack":
|
|
@@ -788,7 +791,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
788
791
|
break;
|
|
789
792
|
case "Update": e.start(b), e.end(D), e.resource(v), r.events.update(e);
|
|
790
793
|
}
|
|
791
|
-
"function" == typeof r.onEventMoved && r.
|
|
794
|
+
"function" == typeof r.onEventMoved && r.ua.apply(function () { r.onEventMoved(x); });
|
|
792
795
|
}
|
|
793
796
|
else
|
|
794
797
|
switch (r.eventMoveHandling) {
|
|
@@ -799,9 +802,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
799
802
|
r.eventMoveCallBack(e, b, D, p.id);
|
|
800
803
|
break;
|
|
801
804
|
case "JavaScript": r.onEventMove(e, b, D, p.id, !1);
|
|
802
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.
|
|
805
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.T("TimeRangeSelected", a, n); }, this.N = function (e, t, i) { if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.sa()) {
|
|
803
806
|
var a = {};
|
|
804
|
-
if (a.start = e, a.end = t, a.resource = i, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onTimeRangeSelect && (r.
|
|
807
|
+
if (a.start = e, a.end = t, a.resource = i, a.control = r, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onTimeRangeSelect && (r.ua.apply(function () { r.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
805
808
|
return;
|
|
806
809
|
switch (r.timeRangeSelectedHandling) {
|
|
807
810
|
case "PostBack":
|
|
@@ -809,7 +812,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
809
812
|
break;
|
|
810
813
|
case "CallBack": r.timeRangeSelectedCallBack(e, t);
|
|
811
814
|
}
|
|
812
|
-
"function" == typeof r.onTimeRangeSelected && r.
|
|
815
|
+
"function" == typeof r.onTimeRangeSelected && r.ua.apply(function () { r.onTimeRangeSelected(a); });
|
|
813
816
|
}
|
|
814
817
|
else
|
|
815
818
|
switch (r.timeRangeSelectedHandling) {
|
|
@@ -820,27 +823,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
820
823
|
r.timeRangeSelectedCallBack(e, t);
|
|
821
824
|
break;
|
|
822
825
|
case "JavaScript": r.onTimeRangeSelected(e, t);
|
|
823
|
-
} }, this.
|
|
824
|
-
var
|
|
825
|
-
if (1 ===
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
var
|
|
832
|
-
|
|
833
|
-
var u = function () { if (r.nav.activeSelection)
|
|
834
|
-
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.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[a].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }();
|
|
835
|
-
u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px";
|
|
836
|
-
} }(); }, this.za = function (e) { if ("undefined" != typeof t && t.selecting) {
|
|
837
|
-
var i = DayPilot.mc(e);
|
|
838
|
-
t.getColumn(this) === t.column && (r.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.ya());
|
|
839
|
-
} }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, r); }, this.Aa = function (e) { if (e < 0)
|
|
826
|
+
} }, this.ya = function (e) { if (!DayPilot.Global.selecting && "Disabled" !== r.timeRangeSelectedHandling) {
|
|
827
|
+
var t = e.which;
|
|
828
|
+
if (1 === t || 0 === t) {
|
|
829
|
+
DayPilot.Global.selecting = { calendar: r, start: r.coords };
|
|
830
|
+
var i = DayPilot.Global.selecting;
|
|
831
|
+
return i.start.time = r.za(r.coords.x, r.coords.y), i.start.columnIndex = r.Aa(r.coords.x), i.start.column = r.xa[i.start.columnIndex], r.Ba(), r.Ca(), !1;
|
|
832
|
+
}
|
|
833
|
+
} }, this.Ca = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, i = e.start.columnIndex, a = t.start, n = r.getPixels(e.startTime, a), o = r.getPixels(e.endTime, a), s = n.boxTop, l = o.boxBottom; r.snapToGrid || (s = n.top, l = o.top); var d = l - s, c = r.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (r.nav.activeSelection)
|
|
834
|
+
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.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[i].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }(); u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px"; }(); }, this.Ba = function () { var e = DayPilot.Global.selecting; e.end = r.coords, e.end.time = r.za(e.start.x, e.end.y), e.end.column = r.xa[r.Aa(e.end.x)], r.Da && (e.end.time = r.za(e.end.x, e.end.y)), r.Ea(e); }, this.Ea = function (e) { var t, i, a; r.snapToGrid ? e.end.time < e.start.time ? (t = r.Fa(e.end.time, e.start.column.start), i = r.Ga(e.start.time, e.start.column.start), a = e.endTime) : (t = r.Fa(e.start.time, e.start.column.start), i = r.Ga(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, i = e.start.time, a = e.endTime) : (t = e.start.time, i = e.end.time, a = e.startTime), e.startTime = t, e.endTime = i, e.anchor = a; }, this.getSelection = function () { if (!r.M)
|
|
835
|
+
return null; var e = r.M; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.Aa = function (e) { if (e < 0)
|
|
840
836
|
return null; for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
841
837
|
if (t += i[a].offsetWidth, e < t)
|
|
842
838
|
return a;
|
|
843
|
-
} return null; }, this.
|
|
839
|
+
} return null; }, this.za = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var i = this.Aa(e), a = t / (60 / s.ea()) / r.cellHeight, n = 60 * a * 60 * 1e3, o = 6e4 * Math.floor(n / 6e4), l = o, d = this.xa[i]; if (!d)
|
|
840
|
+
return null; var c = d.start.addTime(l); return c = c.addHours(r.ra()); }, this.Fa = function (e, t) { var i = e.getTime(); t && (i -= t.getTime()); var a = 60 * s.ea() * 1e3, n = i % a; return e.addTime(-n); }, this.Ga = function (e, t) { var i = this.Fa(e, t); return i.getTime() === e.getTime() ? i : i.addTime(60 * s.ea() * 1e3); }, this.Ha = {}, this.Ha.getCellCoords = function () { var e = {}; if (e.x = 0, e.y = 0, !r.coords)
|
|
844
841
|
return null; e.x = r.Aa(r.coords.x); var t = 0, i = Math.floor((r.coords.y - t) / r.cellHeight); return e.y = i, e.x < 0 ? null : e; }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) { if (!e)
|
|
845
842
|
throw new DayPilot.Exception("columns.load(): 'url' parameter required"); var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) { var i, n = e.request; try {
|
|
846
843
|
i = JSON.parse(n.responseText);
|
|
@@ -852,11 +849,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
852
849
|
var s = {};
|
|
853
850
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
854
851
|
return;
|
|
855
|
-
r.columns.list = i, r.
|
|
856
|
-
} }; r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": n, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": n, "error": a }); }, this.
|
|
857
|
-
var i = this.
|
|
858
|
-
this.
|
|
859
|
-
} }, this.
|
|
852
|
+
r.columns.list = i, r.Ia && r.update();
|
|
853
|
+
} }; r.columnsLoadMethod && "POST" === r.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": n, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": n, "error": a }); }, this.fa = function () { var e; e = "Resources" !== r.viewType ? this.Ja() : r.columns.list, this.xa = []; for (var t = 0; t < e.length; t++) {
|
|
854
|
+
var i = this.Ka(e[t]);
|
|
855
|
+
this.xa.push(i);
|
|
856
|
+
} }, this.Ka = 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) {
|
|
860
857
|
var i = t.start.getDatePart();
|
|
861
858
|
t.start = i.addHours(this.businessBeginsHour);
|
|
862
859
|
} return t.putIntoBlock = function (e) { for (var t = 0; t < this.blocks.length; t++) {
|
|
@@ -879,13 +876,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
879
876
|
var o = this[n];
|
|
880
877
|
if (!(i < o.part.top || e > o.part.top + o.part.height - 1))
|
|
881
878
|
return !1;
|
|
882
|
-
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.
|
|
879
|
+
} return !0; }, i.push(e), this.lines.push(i), this.lines.length - 1; }, t; }, this.Ja = function () { var e = [], t = this.startDate.getDatePart(), i = this.days; switch (this.viewType) {
|
|
883
880
|
case "Day":
|
|
884
881
|
i = 1;
|
|
885
882
|
break;
|
|
886
883
|
case "Week":
|
|
887
884
|
i = 7;
|
|
888
|
-
var a = s.
|
|
885
|
+
var a = s.da();
|
|
889
886
|
t = t.firstDayOfWeek(a);
|
|
890
887
|
break;
|
|
891
888
|
case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
|
|
@@ -893,28 +890,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
893
890
|
var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
|
|
894
891
|
l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
|
|
895
892
|
} return e; }, this.visibleStart = function () { if ("Resources" === r.viewType) {
|
|
896
|
-
if (0 === r.
|
|
893
|
+
if (0 === r.xa.length)
|
|
897
894
|
return DayPilot.Date.today();
|
|
898
|
-
var e = r.
|
|
895
|
+
var e = r.xa.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
899
896
|
return new DayPilot.Date(t);
|
|
900
|
-
} return this.
|
|
901
|
-
if (0 === r.
|
|
897
|
+
} return this.xa[0].start; }, this.visibleEnd = function () { if ("Resources" === r.viewType) {
|
|
898
|
+
if (0 === r.xa.length)
|
|
902
899
|
return DayPilot.Date.today().addDays(1);
|
|
903
|
-
var e = r.
|
|
900
|
+
var e = r.xa.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
904
901
|
return new DayPilot.Date(t).addDays(1);
|
|
905
|
-
} var t = this.
|
|
902
|
+
} var t = this.xa.length - 1; return this.xa[t].start.addDays(1); }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.X = function () { if (this.elements.events)
|
|
906
903
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
907
904
|
var t = this.elements.events[e];
|
|
908
|
-
r.
|
|
909
|
-
} this.elements.events = []; }, this.
|
|
910
|
-
var a = t && t.
|
|
905
|
+
r.La(t);
|
|
906
|
+
} this.elements.events = []; }, this.La = function (e) { !function () { var t = e.domArgs; if (e.domArgs = null, t && "function" == typeof r.onBeforeEventDomRemove && r.onBeforeEventDomRemove(t), t && "function" == typeof r.onBeforeEventDomAdd) {
|
|
907
|
+
var a = t && t.Ma;
|
|
911
908
|
if (a) {
|
|
912
|
-
r.
|
|
909
|
+
r.Oa.Na && i(t.element) && (r.Oa.Pa = !0, r.Oa.Qa(a), r.Oa.Pa = !1);
|
|
913
910
|
}
|
|
914
911
|
} }(); 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()) {
|
|
915
912
|
var a = e.firstChild.firstChild;
|
|
916
913
|
a.onmousedown = null, a.onmousemove = null, a.onclick = null;
|
|
917
|
-
} e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.
|
|
914
|
+
} e.helper = null, e.data = null, e.event = null, DayPilot.de(e); }, this.Ra = function (e) { var a = e.cache || e.data, n = this.nav.events, o = a.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.K("_event"), a.cssClass && DayPilot.Util.addClass(s, a.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.ta, DayPilot.re(s, "contextmenu", this.va), s.onmouseout = function (e) { s.deleteIcon && (s.deleteIcon.style.display = "none"); }, s.onmousemove = function (i) { var a = 5; if ("undefined" != typeof t) {
|
|
918
915
|
var n = DayPilot.mo3(s, i);
|
|
919
916
|
if (n && !t.resizing && !t.moving) {
|
|
920
917
|
s.deleteIcon && (s.deleteIcon.style.display = "");
|
|
@@ -925,7 +922,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
925
922
|
if (1 === a && e.client.moveEnabled()) {
|
|
926
923
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
927
924
|
var n = t.moving.helper = {};
|
|
928
|
-
n.oldColumn = r.
|
|
925
|
+
n.oldColumn = r.xa[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
929
926
|
var o = DayPilot.mo3(this, i);
|
|
930
927
|
o ? t.moveOffsetY = o.y : t.moveOffsetY = 0, r.nav.top.style.cursor = "move";
|
|
931
928
|
}
|
|
@@ -938,18 +935,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
938
935
|
f.setAttribute("unselectable", "on"), f.className = this.K("_event_bar_inner"), f.style.top = c + "%", 0 < u && u <= 1 ? f.style.height = "1px" : f.style.height = u + "%", a.barColor && (f.style.backgroundColor = a.barColor), h.appendChild(f), s.appendChild(h);
|
|
939
936
|
} if (e.client.deleteEnabled()) {
|
|
940
937
|
var m = document.createElement("div");
|
|
941
|
-
m.style.position = "absolute", m.style.right = "2px", m.style.top = "2px", m.style.width = "17px", m.style.height = "17px", m.className = r.K("_event_delete"), m.onmousedown = function (e) { e.stopPropagation(); }, m.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && r.
|
|
938
|
+
m.style.position = "absolute", m.style.right = "2px", m.style.top = "2px", m.style.width = "17px", m.style.height = "17px", m.className = r.K("_event_delete"), m.onmousedown = function (e) { e.stopPropagation(); }, m.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && r.wa(t); }, m.style.display = "none", s.deleteIcon = m, s.appendChild(m);
|
|
942
939
|
} var p = a.areas ? DayPilot.Areas.copy(a.areas) : []; if (DayPilot.Areas.attach(s, e, { "areas": p }), "function" == typeof r.onAfterEventRender) {
|
|
943
940
|
var v = {};
|
|
944
941
|
v.e = s.event, v.div = s, r.onAfterEventRender(v);
|
|
945
942
|
} 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) {
|
|
946
943
|
var a = l;
|
|
947
944
|
if (a) {
|
|
948
|
-
t.
|
|
945
|
+
t.Ma = a;
|
|
949
946
|
if (i(t.element)) {
|
|
950
|
-
if (!r.
|
|
947
|
+
if (!r.Oa.Na)
|
|
951
948
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
952
|
-
r.
|
|
949
|
+
r.Oa.Pa = !0, r.Oa.Sa(t.element, a), r.Oa.Pa = !1;
|
|
953
950
|
}
|
|
954
951
|
else
|
|
955
952
|
a.appendChild(t.element);
|
|
@@ -957,14 +954,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
957
954
|
}
|
|
958
955
|
else
|
|
959
956
|
l.innerHTML = e.client.innerHTML(); }(), n.rows[0].cells[e.part.dayIndex]) {
|
|
960
|
-
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.
|
|
961
|
-
} r.elements.events.push(s); }, this.
|
|
957
|
+
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(s), r.Ta(s);
|
|
958
|
+
} r.elements.events.push(s); }, this.Ta = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
962
959
|
try {
|
|
963
960
|
var a = e.childNodes[i];
|
|
964
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
961
|
+
1 === a.nodeType && (a.unselectable = "on", this.Ta(a));
|
|
965
962
|
}
|
|
966
|
-
catch (e) { } }, this.
|
|
967
|
-
var t = this.
|
|
963
|
+
catch (e) { } }, this.ma = function () { for (var e = 0; e < this.xa.length; e++) {
|
|
964
|
+
var t = this.xa[e];
|
|
968
965
|
if (t.blocks)
|
|
969
966
|
for (var i = 0; i < t.blocks.length; i++)
|
|
970
967
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -972,133 +969,140 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
972
969
|
var s = o[r];
|
|
973
970
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
974
971
|
var l = n === a.lines.length - 1;
|
|
975
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
972
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ra(s);
|
|
976
973
|
}
|
|
977
|
-
} }, this.
|
|
974
|
+
} }, this.Ua = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.K("_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.Va() + "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.Wa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Xa(); 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.Ya(r.loadingLabelText, r.loadingLabelHtml), this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ka = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Za(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Xa = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, a = t.insertRow(-1); i = a.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.Za(), i.appendChild(this.nav.hourTable), i = a.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var n = document.createElement("div"); return n.style.position = "relative", i.appendChild(n), n.appendChild(this.$a()), n.appendChild(this._a()), e.appendChild(t), this.nav.zoom = e, e; }, this.$a = 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._a = 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.xa, i = t.length, a = e.insertRow(-1), n = 0; n < i; n++) {
|
|
978
975
|
var o = a.insertCell(-1);
|
|
979
976
|
o.style.padding = "0px", o.style.border = "0px none", o.style.height = "0px", o.style.overflow = "visible", r.rtl || (o.style.textAlign = "left");
|
|
980
977
|
var s = document.createElement("div");
|
|
981
978
|
s.style.marginRight = r.columnMarginRight + "px", s.style.marginLeft = r.columnMarginLeft + "px", s.style.position = "relative", s.style.height = "1px", s.style.marginTop = "-1px";
|
|
982
979
|
var l = document.createElement("div");
|
|
983
980
|
o.selection = l, o.appendChild(s), o.appendChild(l);
|
|
984
|
-
} return e; }, this.
|
|
985
|
-
this.
|
|
981
|
+
} return e; }, this.Za = 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.na(), i = 0; i < t; i++)
|
|
982
|
+
this.ab(e, i); return e; }, this.ab = function (e, t) { var i = 60 * r.cellHeight / s.ea(), a = e.insertRow(-1); a.style.height = i + "px"; var n = a.insertCell(-1); n.valign = "bottom", n.unselectable = "on", n.style.cursor = "default", n.style.padding = "0px", n.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.K("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var l = document.createElement("div"); l.className = this.K("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(r.ra()), u = c.getHours(), h = u < 12, f = s.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.K("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), o.appendChild(l), n.appendChild(o); }, this.Va = function () { var e = s.ea(), t = 60 / e; switch (this.heightSpec) {
|
|
986
983
|
case "Full": return 24 * t * this.cellHeight;
|
|
987
984
|
case "BusinessHours":
|
|
988
|
-
var i = this.
|
|
985
|
+
var i = this.pa();
|
|
989
986
|
return i * this.cellHeight * t;
|
|
990
987
|
case "BusinessHoursNoScroll":
|
|
991
|
-
var i = this.
|
|
988
|
+
var i = this.pa();
|
|
992
989
|
return i * this.cellHeight * t;
|
|
993
990
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
994
|
-
} }, this.
|
|
991
|
+
} }, this.bb = function () { var e = r.nav.corner ? r.nav.corner.parentNode : null; if (e) {
|
|
995
992
|
e.innerHTML = "";
|
|
996
|
-
var t = this.
|
|
993
|
+
var t = this.cb();
|
|
997
994
|
e.appendChild(t), r.nav.corner = t;
|
|
998
|
-
} }, this.
|
|
995
|
+
} }, this.Wa = function () { var e = document.createElement("div"); e.style.overflow = "auto"; var t = document.createElement("table"); t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none"; var i = t.insertRow(-1), a = i.insertCell(-1); a.style.padding = "0px", a.style.border = "0px none"; var n = this.cb(); a.appendChild(n), this.nav.corner = n, a = i.insertCell(-1), a.style.width = "100%", a.valign = "top", a.style.position = "relative", a.style.padding = "0px", a.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; }; var o = "hidden" !== this.nav.scroll.style.overflow; if (a.appendChild(this.nav.header), o) {
|
|
999
996
|
a = i.insertCell(-1), a.unselectable = "on";
|
|
1000
997
|
var r = document.createElement("div");
|
|
1001
998
|
r.unselectable = "on", r.style.position = "relative", r.style.width = "16px", r.style.height = this.headerHeight + "px", r.className = this.K("_cornerright");
|
|
1002
999
|
var s = document.createElement("div");
|
|
1003
1000
|
s.className = this.K("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
1004
|
-
} return e.appendChild(t), e; }, this.
|
|
1001
|
+
} return e.appendChild(t), e; }, this.cb = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.K("_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.K("_corner_inner"), e.appendChild(t), e; }, this.Y = function () { var e = this.nav.main; e.root = null, e.onmouseup = null; for (var t = 0; t < e.rows.length; t++)
|
|
1005
1002
|
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
1006
1003
|
var n = i.cells[a];
|
|
1007
|
-
r.
|
|
1008
|
-
} this.fasterDispose || DayPilot.pu(e); }, this.
|
|
1009
|
-
var n = a && a.
|
|
1004
|
+
r.db(n);
|
|
1005
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.db = function (e) { e && (!function () { var t = e, a = t.domArgs; if (t.domArgs = null, a && "function" == typeof r.onBeforeCellDomRemove && r.onBeforeCellDomRemove(a), a && "function" == typeof r.onBeforeCellDomAdd) {
|
|
1006
|
+
var n = a && a.Ma;
|
|
1010
1007
|
if (n) {
|
|
1011
|
-
r.
|
|
1012
|
-
}
|
|
1013
|
-
} }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
var
|
|
1019
|
-
|
|
1020
|
-
var
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
var u = a.insertRow(-1);
|
|
1024
|
-
u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
|
|
1025
|
-
for (var h = 0; h < d; h++) {
|
|
1026
|
-
var y = this.wa[h], f = u.insertCell(-1);
|
|
1027
|
-
f.start = y.start.addTime(v * n), f.end = f.start.addTime(n), f.resource = y.id, f.onmousedown = this.xa, 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";
|
|
1008
|
+
r.Oa.Na && i(a.element) && (r.Oa.Pa = !0, r.Oa.Qa(n), r.Oa.Pa = !1);
|
|
1009
|
+
}
|
|
1010
|
+
} }(), e.root = null, e.onmousedown = null, e.onmousemove = null, e.onmouseout = null, e.onmouseup = null); }, this.ja = function () {
|
|
1011
|
+
var e = s.ea(), a = this.nav.main, n = 60 * e * 1e3, o = this.qa(), l = r.xa;
|
|
1012
|
+
for (a && this.Y(); a && a.rows && a.rows.length > 0;)
|
|
1013
|
+
this.fasterDispose || DayPilot.pu(a.rows[0]), a.deleteRow(0);
|
|
1014
|
+
this.tableCreated = !0;
|
|
1015
|
+
for (var d = l.length, c = this.nav.events; c && c.rows && c.rows.length > 0;)
|
|
1016
|
+
this.fasterDispose || DayPilot.pu(c.rows[0]), c.deleteRow(0);
|
|
1017
|
+
for (var d = l.length, u = c.insertRow(-1), h = 0; h < d; h++) {
|
|
1018
|
+
var f = u.insertCell(-1);
|
|
1019
|
+
f.style.padding = "0px", f.style.border = "0px none", f.style.height = "0px", f.style.overflow = "visible", r.rtl || (f.style.textAlign = "left");
|
|
1028
1020
|
var m = document.createElement("div");
|
|
1029
|
-
m.
|
|
1030
|
-
var
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
var
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1021
|
+
m.style.marginRight = r.columnMarginRight + "px", m.style.marginLeft = r.columnMarginLeft + "px", m.style.position = "relative", m.style.height = "1px", m.style.marginTop = "-1px";
|
|
1022
|
+
var p = document.createElement("div");
|
|
1023
|
+
p.style.position = "relative", f.selection = p, f.appendChild(m), f.appendChild(p);
|
|
1024
|
+
}
|
|
1025
|
+
for (var v = 0; v < o; v++) {
|
|
1026
|
+
var u = a.insertRow(-1);
|
|
1027
|
+
u.style.MozUserSelect = "none", u.style.KhtmlUserSelect = "none";
|
|
1028
|
+
for (var h = 0; h < d; h++) {
|
|
1029
|
+
var y = this.xa[h], f = u.insertCell(-1);
|
|
1030
|
+
f.start = y.start.addTime(v * n), f.end = f.start.addTime(n), f.resource = y.id, f.onmousedown = this.ya, 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";
|
|
1031
|
+
var m = document.createElement("div");
|
|
1032
|
+
m.unselectable = "on", m.style.height = r.cellHeight + "px", m.style.position = "relative", m.className = this.K("_cell");
|
|
1033
|
+
var g = this.eb(f.start, f.end), b = { "business": g, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, D = { "start": f.start, "end": f.end, "resource": f.resource, "properties": b, "x": h, "y": v };
|
|
1034
|
+
!function () { if ("function" == typeof r.onBeforeCellRender) {
|
|
1035
|
+
var e = {};
|
|
1036
|
+
e.cell = D, r.onBeforeCellRender(e);
|
|
1037
|
+
} }(), b.business && DayPilot.Util.addClass(m, r.K("_cell_business")), b.cssClass && DayPilot.Util.addClass(m, b.cssClass);
|
|
1038
|
+
var x = document.createElement("div");
|
|
1039
|
+
x.setAttribute("unselectable", "on"), x.className = this.K("_cell_inner");
|
|
1040
|
+
var w = DayPilot.Util.escapeTextHtml(b.text, b.html);
|
|
1041
|
+
w && (x.innerHTML = w), b.backColor && (x.style.backgroundColor = b.backColor), b.backImage && (x.style.backgroundImage = "url(" + b.backImage + ")"), b.backRepeat && (x.style.backgroundRepeat = b.backRepeat), b.fontColor && (x.style.color = b.fontColor), m.appendChild(x), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
|
|
1042
|
+
var e = {};
|
|
1043
|
+
if (e.control = r, e.cell = D, e.element = null, f.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
|
|
1044
|
+
var t = x;
|
|
1045
|
+
if (t) {
|
|
1046
|
+
e.Ma = t;
|
|
1047
|
+
if (i(e.element)) {
|
|
1048
|
+
if (!r.Oa.Na)
|
|
1049
|
+
throw new DayPilot.Exception("Can't reach Vue");
|
|
1050
|
+
r.Oa.Pa = !0, r.Oa.Sa(e.element, t), r.Oa.Pa = !1;
|
|
1051
|
+
}
|
|
1052
|
+
else
|
|
1053
|
+
t.appendChild(e.element);
|
|
1048
1054
|
}
|
|
1049
|
-
else
|
|
1050
|
-
t.appendChild(e.element);
|
|
1051
1055
|
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
} a.root = this, r.nav.scrollable.onmousemove = function (e) { var i = r.nav.scrollable; r.coords = DayPilot.mo3(i, e); var a = DayPilot.mc(e); if (t.resizing) {
|
|
1056
|
-
t.resizingShadow || (t.resizingShadow = r._(t.resizing, !1, r.shadow));
|
|
1057
|
-
var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
|
|
1058
|
-
if ("bottom" === t.resizing.dpBorder) {
|
|
1059
|
-
var l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o;
|
|
1060
|
-
l < n && (l = n);
|
|
1061
|
-
var d = r.nav.main.clientHeight;
|
|
1062
|
-
t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
|
|
1063
|
-
}
|
|
1064
|
-
else if ("top" === t.resizing.dpBorder) {
|
|
1065
|
-
var c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o;
|
|
1066
|
-
c < o && (c = o), c > t.originalTop + t.originalHeight - n && (c = t.originalTop + t.originalHeight - n);
|
|
1067
|
-
var l = t.originalHeight - (c - t.originalTop);
|
|
1068
|
-
l < n ? l = n : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
|
|
1056
|
+
} }(), f.appendChild(m);
|
|
1057
|
+
}
|
|
1069
1058
|
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
var c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o;
|
|
1083
|
-
c < o && (c = o);
|
|
1084
|
-
var m = r.nav.events, d = r.nav.main.clientHeight + o, p = parseInt(t.movingShadow.style.height);
|
|
1085
|
-
c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, r.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
1086
|
-
var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((r.coords.x - 45) / v);
|
|
1087
|
-
y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
|
|
1088
|
-
}
|
|
1089
|
-
else if (t.selecting) {
|
|
1090
|
-
var a = DayPilot.mc(e), g = r.Ba.getCellCoords(), b = t.column, D = r.nav.main.rows[g.y].cells[b];
|
|
1091
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(D), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(D), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), r.ya();
|
|
1092
|
-
} }, r.nav.scrollable.style.display = ""; }, this.$a = 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.Y = function () {
|
|
1093
|
-
var e = this.nav.header;
|
|
1094
|
-
if (e && e.rows)
|
|
1095
|
-
for (var t = 0; t < e.rows.length; t++)
|
|
1096
|
-
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
1097
|
-
var n = i.cells[a];
|
|
1098
|
-
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1059
|
+
a.root = this, r.nav.scrollable.onmousemove = function (e) {
|
|
1060
|
+
var i = r.nav.scrollable;
|
|
1061
|
+
r.coords = DayPilot.mo3(i, e);
|
|
1062
|
+
var a = DayPilot.mc(e);
|
|
1063
|
+
if (t.resizing) {
|
|
1064
|
+
t.resizingShadow || (t.resizingShadow = r.aa(t.resizing, !1, r.shadow));
|
|
1065
|
+
var n = r.cellHeight, o = 1, s = a.y - t.originalMouse.y;
|
|
1066
|
+
if ("bottom" === t.resizing.dpBorder) {
|
|
1067
|
+
var l = t.originalHeight + s;
|
|
1068
|
+
r.snapToGrid && (l = Math.floor((t.originalHeight + t.originalTop + s + n / 2) / n) * n - t.originalTop + o), l < n && (l = n);
|
|
1069
|
+
var d = r.nav.main.clientHeight;
|
|
1070
|
+
t.originalTop + l > d && (l = d - t.originalTop), t.resizingShadow.style.height = l + "px";
|
|
1099
1071
|
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1072
|
+
else if ("top" === t.resizing.dpBorder) {
|
|
1073
|
+
var c = t.originalTop + s;
|
|
1074
|
+
r.snapToGrid && (c = Math.floor((t.originalTop + s - o + n / 2) / n) * n + o), c < o && (c = o), c > t.originalTop + t.originalHeight - n && (c = t.originalTop + t.originalHeight - n);
|
|
1075
|
+
var l = t.originalHeight - (c - t.originalTop);
|
|
1076
|
+
l < n ? l = n : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = l + "px";
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
else if (t.moving) {
|
|
1080
|
+
if (!r.coords)
|
|
1081
|
+
return;
|
|
1082
|
+
if (!t.movingShadow) {
|
|
1083
|
+
var u = 3, a = DayPilot.mc(e), h = Math.abs(a.x - t.originalMouse.x) + Math.abs(a.y - t.originalMouse.y);
|
|
1084
|
+
if (h <= u)
|
|
1085
|
+
return;
|
|
1086
|
+
t.movingShadow = r.aa(t.moving, !0, r.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px";
|
|
1087
|
+
}
|
|
1088
|
+
var n = r.cellHeight, o = 1, f = t.moveOffsetY;
|
|
1089
|
+
f || (f = n / 2);
|
|
1090
|
+
var c = r.coords.y - f;
|
|
1091
|
+
r.snapToGrid && (c = Math.floor((r.coords.y - f - o + n / 2) / n) * n + o), c < o && (c = o);
|
|
1092
|
+
var m = r.nav.events, d = r.nav.main.clientHeight + o, p = parseInt(t.movingShadow.style.height);
|
|
1093
|
+
c + p > d && (c = d - p), DayPilot.Util.addClass(t.moving, r.K("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
1094
|
+
var v = m.clientWidth / m.rows[0].cells.length, y = Math.floor((r.coords.x - 45) / v);
|
|
1095
|
+
y < 0 && (y = 0), y < m.rows[0].cells.length && y >= 0 && t.movingShadow.column !== y && (t.movingShadow.column = y, t.moveShadow(m.rows[0].cells[y]));
|
|
1096
|
+
}
|
|
1097
|
+
else
|
|
1098
|
+
DayPilot.Global.selecting && (r.Ba(), r.Ca());
|
|
1099
|
+
}, r.nav.scrollable.style.display = "";
|
|
1100
|
+
}, this.eb = 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.Z = function () { var e = this.nav.header; if (e && e.rows)
|
|
1101
|
+
for (var t = 0; t < e.rows.length; t++)
|
|
1102
|
+
for (var i = e.rows[t], a = 0; a < i.cells.length; a++) {
|
|
1103
|
+
var n = i.cells[a];
|
|
1104
|
+
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1105
|
+
} this.fasterDispose || DayPilot.pu(e); }, this.fb = function (e) { function t(t) { var n = a[t], o = e ? i.insertCell(-1) : i.cells[t]; o.data = n, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r.gb; 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.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_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.hb(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n); var c = n.verticalAlignment; if (c)
|
|
1102
1106
|
switch (s.style.display = "flex", c) {
|
|
1103
1107
|
case "center":
|
|
1104
1108
|
s.style.alignItems = "center";
|
|
@@ -1116,18 +1120,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1116
1120
|
s.style.justifyContent = "flex-start";
|
|
1117
1121
|
break;
|
|
1118
1122
|
case "right": s.style.justifyContent = "flex-end";
|
|
1119
|
-
} l.firstChild.innerHTML = r.
|
|
1120
|
-
t(o); }, this.
|
|
1121
|
-
var t = this.data, i = r.
|
|
1123
|
+
} l.firstChild.innerHTML = r.Ya(n.name, n.html); } for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.xa, n = a.length, o = 0; o < n; o++)
|
|
1124
|
+
t(o); }, this.gb = function (e) { if ("Disabled" !== r.headerClickHandling) {
|
|
1125
|
+
var t = this.data, i = r.hb(t), a = {};
|
|
1122
1126
|
a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onHeaderClick && (r.onHeaderClick(a), a.preventDefault.value) || "function" == typeof r.onHeaderClicked && r.onHeaderClicked(a);
|
|
1123
|
-
} }, this.
|
|
1124
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.
|
|
1127
|
+
} }, this.hb = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.ib = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ia = function () { var e = this.nav.header, t = !0, i = this.xa; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1128
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.fb(t); }, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.T("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.jb = function () { var e = this.nav.scroll; e.root = this, r.kb(), e.onscroll || (e.onscroll = function () { r.lb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.mb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.nb = 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)
|
|
1125
1129
|
t = e.data;
|
|
1126
1130
|
else {
|
|
1127
1131
|
if ("object" != typeof e)
|
|
1128
1132
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1129
1133
|
t = e;
|
|
1130
|
-
} r.events.list || (r.events.list = []), r.events.list.push(t), r.
|
|
1134
|
+
} r.events.list || (r.events.list = []), r.events.list.push(t), r.ob({ "eventsOnly": !0 }), r.ua.notify(); }, this.events.find = function (e) { if (!r.events.list)
|
|
1131
1135
|
return null; if ("function" == typeof e) {
|
|
1132
1136
|
for (var t = e, i = 0; i < r.events.list.length; i++) {
|
|
1133
1137
|
var a = new DayPilot.Event(r.events.list[i], r);
|
|
@@ -1147,7 +1151,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1147
1151
|
var i = DayPilot.indexOf(r.events.list, t.data);
|
|
1148
1152
|
r.events.list.splice(i, 1, e);
|
|
1149
1153
|
}
|
|
1150
|
-
} r.
|
|
1154
|
+
} r.ob({ "eventsOnly": !0 }), r.ua.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1151
1155
|
t = e.data;
|
|
1152
1156
|
else if ("object" == typeof e) {
|
|
1153
1157
|
var i = r.events.find(e.id);
|
|
@@ -1156,7 +1160,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1156
1160
|
else if ("string" == typeof e || "number" == typeof e) {
|
|
1157
1161
|
var i = r.events.find(e);
|
|
1158
1162
|
i && (t = i.data);
|
|
1159
|
-
} var a = DayPilot.indexOf(r.events.list, t); r.events.list.splice(a, 1), r.
|
|
1163
|
+
} var a = DayPilot.indexOf(r.events.list, t); r.events.list.splice(a, 1), r.ob({ "eventsOnly": !0 }), r.ua.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, n = function (e) { var i, n = e.request; try {
|
|
1160
1164
|
i = JSON.parse(n.responseText);
|
|
1161
1165
|
}
|
|
1162
1166
|
catch (e) {
|
|
@@ -1166,25 +1170,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1166
1170
|
var s = {};
|
|
1167
1171
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1168
1172
|
return;
|
|
1169
|
-
r.events.list = i, r.
|
|
1173
|
+
r.events.list = i, r.Ia && r.ob({ "eventsOnly": !0 });
|
|
1170
1174
|
} }; if (r.eventsLoadMethod && "POST" === r.eventsLoadMethod.toUpperCase())
|
|
1171
1175
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": r.visibleStart().toString(), "end": r.visibleEnd().toString() }, "url": e, "success": n, "error": a });
|
|
1172
1176
|
else {
|
|
1173
1177
|
var o = e, s = "start=" + r.visibleStart().toString() + "&end=" + r.visibleEnd().toString();
|
|
1174
1178
|
o += o.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": o, "success": n, "error": a });
|
|
1175
|
-
} }, this.
|
|
1179
|
+
} }, this.pb = function () { if (r.nav.top.className !== r.K("_main")) {
|
|
1176
1180
|
r.nav.top.className = r.K("_main");
|
|
1177
1181
|
var e = r.nav.corner;
|
|
1178
1182
|
e.className = r.K("_corner"), e.firstChild.className = r.K("_corner_inner");
|
|
1179
1183
|
var t = r.nav.cornerRight;
|
|
1180
1184
|
t && (t.className = r.K("_cornerright"), t.firstChild.className = r.K("_cornerright_inner"));
|
|
1181
|
-
} }, this.update = function (e) { if (r.
|
|
1182
|
-
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.
|
|
1185
|
+
} }, this.update = function (e) { if (r.P)
|
|
1186
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Calendar instance that has been disposed."); r.qb(e), r.ob(); }, this.ob = function (e) { if (this.Ia) {
|
|
1183
1187
|
var e = e || {}, t = !e.eventsOnly;
|
|
1184
|
-
r.
|
|
1185
|
-
} }, this.
|
|
1188
|
+
r.rb(), r.X(), r.nav.top.style.cursor = "auto", t && (r.fa(), r.ia(), r.ja(), r.ka(), r.la(), r.bb(), r.mb(), r.pb(), r.kb()), r.ga(), r.ha(), r.ma(), r.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1189
|
+
} }, this.sb = null, this.qb = function (e) { if (e) {
|
|
1186
1190
|
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; } } };
|
|
1187
|
-
this.
|
|
1191
|
+
this.sb = t;
|
|
1188
1192
|
for (var i in e)
|
|
1189
1193
|
if (t[i]) {
|
|
1190
1194
|
var a = t[i];
|
|
@@ -1192,21 +1196,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1192
1196
|
}
|
|
1193
1197
|
else
|
|
1194
1198
|
r[i] = e[i];
|
|
1195
|
-
} }, this.
|
|
1199
|
+
} }, this.tb = function () { var e = this.sb; for (var t in e) {
|
|
1196
1200
|
var i = e[t];
|
|
1197
1201
|
i.postInit && i.postInit();
|
|
1198
|
-
} }, this.
|
|
1202
|
+
} }, this.ub = function () { if (this.id && this.id.tagName)
|
|
1199
1203
|
this.nav.top = this.id;
|
|
1200
1204
|
else {
|
|
1201
1205
|
if ("string" != typeof this.id)
|
|
1202
1206
|
throw "DayPilot.Calendar() constructor requires the target element or its ID as a parameter";
|
|
1203
1207
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1204
1208
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1205
|
-
} }, this.
|
|
1209
|
+
} }, this.vb = {}, this.vb.events = [], this.wb = function (e) { var t = this.vb.events, i = this.events.list[e], a = {}; for (var n in i)
|
|
1206
1210
|
a[n] = i[n]; if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
|
|
1207
1211
|
var o = {};
|
|
1208
1212
|
o.control = r, o.data = a, this.onBeforeEventRender(o);
|
|
1209
|
-
} t[e] = a; }, this.
|
|
1213
|
+
} t[e] = a; }, this.ga = function () { var e = this.events.list; if (r.vb.events = [], e) {
|
|
1210
1214
|
if (!DayPilot.isArray(e))
|
|
1211
1215
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1212
1216
|
var t = e.length, i = 864e5;
|
|
@@ -1226,11 +1230,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1226
1230
|
}
|
|
1227
1231
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1228
1232
|
for (var n = 0; n < t; n++)
|
|
1229
|
-
this.
|
|
1230
|
-
for (var n = 0; n < this.
|
|
1233
|
+
this.wb(n);
|
|
1234
|
+
for (var n = 0; n < this.xa.length; n++) {
|
|
1231
1235
|
var l = {};
|
|
1232
1236
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1233
|
-
var d = this.
|
|
1237
|
+
var d = this.xa[n];
|
|
1234
1238
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1235
1239
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1236
1240
|
if (!a[m]) {
|
|
@@ -1240,100 +1244,100 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1240
1244
|
if ("Resources" === r.viewType && (b = b && d.id === o.resource), b) {
|
|
1241
1245
|
var D = new DayPilot.Event(o, r);
|
|
1242
1246
|
D.part.dayIndex = n, D.part.start = u < y ? p : c, D.part.end = f > g ? v : h;
|
|
1243
|
-
var
|
|
1244
|
-
if (C === P && (
|
|
1247
|
+
var x = this.getPixels(D.part.start, d.start), w = this.getPixels(D.part.end, d.start), C = x.top, P = w.top;
|
|
1248
|
+
if (C === P && (x.cut || w.cut))
|
|
1245
1249
|
continue;
|
|
1246
|
-
var k =
|
|
1247
|
-
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1250
|
+
var k = w.boxBottom, _ = "Always" === r.useEventBoxes;
|
|
1251
|
+
_ ? (D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1) : (D.part.top = C + 1, D.part.height = P - C + 1), D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1248
1252
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1249
|
-
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.
|
|
1253
|
+
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.vb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1250
1254
|
}
|
|
1251
1255
|
}
|
|
1252
1256
|
}
|
|
1253
1257
|
}
|
|
1254
|
-
for (var n = 0; n < this.
|
|
1255
|
-
var d = this.
|
|
1256
|
-
d.events.sort(this.
|
|
1258
|
+
for (var n = 0; n < this.xa.length; n++) {
|
|
1259
|
+
var d = this.xa[n];
|
|
1260
|
+
d.events.sort(this.xb);
|
|
1257
1261
|
for (var m = 0; m < d.events.length; m++) {
|
|
1258
1262
|
var o = d.events[m];
|
|
1259
1263
|
d.putIntoBlock(o);
|
|
1260
1264
|
}
|
|
1261
1265
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1262
|
-
var
|
|
1263
|
-
|
|
1264
|
-
for (var
|
|
1265
|
-
var o =
|
|
1266
|
-
|
|
1266
|
+
var S = d.blocks[m];
|
|
1267
|
+
S.events.sort(this.xb);
|
|
1268
|
+
for (var M = 0; M < S.events.length; M++) {
|
|
1269
|
+
var o = S.events[M];
|
|
1270
|
+
S.putIntoLine(o);
|
|
1267
1271
|
}
|
|
1268
1272
|
}
|
|
1269
1273
|
}
|
|
1270
|
-
} }, this.
|
|
1271
|
-
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (r.debugMessages || (r.debugMessages = []), r.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = s.
|
|
1272
|
-
return o; i = t.getTime(); var r = 60 * n * 1e3, l = a - i, d = l % r, c = l - d, u = c + r; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.
|
|
1273
|
-
var e = r.nav.scroll.scrollTop, t = e / (
|
|
1274
|
-
r.
|
|
1275
|
-
} }, this.
|
|
1274
|
+
} }, this.xb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1275
|
+
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.debug = function (e, t) { this.debuggingEnabled && (r.debugMessages || (r.debugMessages = []), r.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.getPixels = function (e, t) { t || (t = this.startDate); var i = t.getTime(), a = e.getTime(), n = s.ea(), o = this.cache.pixels[a + "_" + i]; if (o)
|
|
1276
|
+
return o; i = t.getTime(); var r = 60 * n * 1e3, l = a - i, d = l % r, c = l - d, u = c + r; 0 === d && (u = c); var h = {}; return h.cut = !1, h.top = this.yb(l), h.boxTop = this.yb(c), h.boxBottom = this.yb(u), this.cache.pixels[a + "_" + i] = h, h; }, this.yb = function (e) { return Math.floor(this.cellHeight * e / (6e4 * s.ea())); }, this.zb = function (e) { var t = Math.floor((shadowTop - _startOffset) / r.cellHeight); r.snapToGrid || (t = (shadowTop - _startOffset) / r.cellHeight); s.ea(); }, this.rb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.ha = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.la = function () { var e = this.Va(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.ua = {}, this.ua.scope = null, this.ua.notify = function () { r.ua.scope && r.ua.scope["$apply"](); }, this.ua.apply = function (e) { e(); }, this.lb = function () { if (r.nav.scroll && r.Ab()) {
|
|
1277
|
+
var e = r.nav.scroll.scrollTop, t = s.ea(), i = 60 / t, a = e / (i * r.cellHeight);
|
|
1278
|
+
r.Bb.scrollHour = a;
|
|
1279
|
+
} }, this.kb = function () { var e = 0, t = 60 / s.ea(); e = "number" == typeof r.Bb.scrollHour ? t * r.cellHeight * r.Bb.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? t * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var i = r.nav.top; "none" === i.style.display ? (i.style.display = "", r.nav.scroll.scrollTop = e, i.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.lb(); }, this.Cb = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.t = 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.mb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.Db = function () { this.rb(), this.fa(), this.Ua(), this.ia(), this.ja(), this.mb(), this.jb(), this.nb(), t.register(this), this.Eb(), this.T("Init"); }, this.Bb = {}, this.Fb = function () { this.Bb.themes = [], this.Bb.themes.push(this.theme || this.cssClassPrefix); }, this.Gb = function () { for (var e = this.Bb.themes, t = 0; t < e.length; t++) {
|
|
1276
1280
|
var i = e[t];
|
|
1277
1281
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1278
|
-
} this.
|
|
1282
|
+
} this.Bb.themes = []; }, this.Hb = function () { if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1279
1283
|
var e = {};
|
|
1280
1284
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1281
|
-
} }, this.
|
|
1282
|
-
this.
|
|
1285
|
+
} }, this.Ib = function () { if ("function" == typeof this.onInit && !this.Jb) {
|
|
1286
|
+
this.Jb = !0;
|
|
1283
1287
|
var e = {};
|
|
1284
1288
|
this.onInit(e);
|
|
1285
|
-
} }, this.
|
|
1289
|
+
} }, this.Ab = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.Eb = function () { var e = r.Ab; e() || (r.W = setInterval(function () { e() && (r.jb(), r.mb(), clearInterval(r.W)); }, 100)); }, this.Ya = function (e, t) { return r.ba.ca() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) { var a = r.Oa.Na; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
1286
1290
|
var n = a.createVNode(e, i);
|
|
1287
1291
|
a.render(n, t);
|
|
1288
|
-
} }, this.
|
|
1292
|
+
} }, this.Oa.Sa = function (e, t) { var i = r.Oa.Na; if ("function" == typeof i.render) {
|
|
1289
1293
|
var a = e;
|
|
1290
1294
|
DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
|
|
1291
|
-
} }, this.
|
|
1295
|
+
} }, this.Oa.Qa = function (e) { var t = r.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.qb, this.internal.xssTextHtml = r.Ya, this.internal.enableVue = function (e) { r.Oa.Na = e; }, this.internal.vueRef = function () { return r.Oa.Na; }, this.internal.vueRendering = function () { return r.Oa.Pa; }, this.init = function () { this.ub(); var e = this.Cb(); return this.Fb(), e ? void this.Db() : (this.rb(), this.fa(), this.ga(), this.Ua(), this.ia(), this.ja(), this.t(), this.mb(), this.jb(), this.nb(), t.register(this), this.events && (this.ha(), this.ma()), this.Hb(), this.Ib(), this.Eb(), this.Ia = !0, this); }, this.Init = this.init, this.qb(n);
|
|
1292
1296
|
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotCalendar = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
1293
1297
|
var i = new DayPilot.Calendar(this.id);
|
|
1294
1298
|
this.daypilot = i;
|
|
1295
1299
|
for (name in e)
|
|
1296
1300
|
i[name] = e[name];
|
|
1297
1301
|
i.init(), t || (t = i);
|
|
1298
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.
|
|
1302
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotCalendar", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Calendar(i[0]); n.ua.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
1299
1303
|
(0, e(r).assign)(t, n);
|
|
1300
1304
|
} for (var s in a)
|
|
1301
1305
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
1302
|
-
n[t] = e[t]; n.update(), n.
|
|
1306
|
+
n[t] = e[t]; n.update(), n.Ib(); }, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0); } }; }]); }();
|
|
1303
1307
|
}
|
|
1304
1308
|
}(), "undefined" == typeof DayPilot)
|
|
1305
1309
|
var DayPilot = {};
|
|
1306
|
-
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2025.
|
|
1310
|
+
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2025.2.643-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.ba.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1307
1311
|
for (var t in e)
|
|
1308
|
-
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.Lb(); this.resetTarget && !e ? this.Mb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Lb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.Ab && (this.Ab = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.Mb(this.date); }, this.Lb = function () { var e = this.C(); if (!e)
|
|
1309
1313
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
1310
1314
|
return null; for (var a = DayPilot.Date.parse(t, i.pattern), n = 0; n < i.patterns.length; n++) {
|
|
1311
1315
|
if (a)
|
|
1312
1316
|
return a;
|
|
1313
1317
|
a = DayPilot.Date.parse(t, i.patterns[n]);
|
|
1314
|
-
} return a; }, this.
|
|
1318
|
+
} return a; }, this.Mb = function (e) { var t = this.C(); if (t) {
|
|
1315
1319
|
var a = e.toString(i.pattern, i.locale);
|
|
1316
1320
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1317
|
-
} }, this.
|
|
1321
|
+
} }, this.ba = {}, this.ba.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.Ab; } }), this.show = function () { if (!this.Ab) {
|
|
1318
1322
|
var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1319
|
-
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.
|
|
1323
|
+
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.Nb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.Mb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1320
1324
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
1321
1325
|
s.style.position = "absolute", "left" === r && (s.style.left = n.x + "px"), s.style.top = n.y + o + "px", i.zIndex && (s.style.zIndex = i.zIndex);
|
|
1322
1326
|
var l = document.createElement("div");
|
|
1323
1327
|
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;
|
|
1324
|
-
var d = i.
|
|
1325
|
-
if (a.startDate = d, a.
|
|
1328
|
+
var d = i.Lb() || (new DayPilot.Date).getDatePart();
|
|
1329
|
+
if (a.startDate = d, a.Nb = d.getTimePart(), a.selectionDay = d.getDatePart(), a.init(), "right" === r) {
|
|
1326
1330
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1327
1331
|
s.style.left = c + "px";
|
|
1328
1332
|
}
|
|
1329
|
-
this.
|
|
1333
|
+
this.Ab = !0, this.onShow && this.onShow();
|
|
1330
1334
|
} }, this.prepare(), this.init(); }); }(), "undefined" == typeof DayPilot)
|
|
1331
1335
|
var DayPilot = {};
|
|
1332
1336
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1333
1337
|
"use strict";
|
|
1334
1338
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1335
1339
|
var e = function () { }, t = {};
|
|
1336
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2025.
|
|
1340
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2025.2.643-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.Ob = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Ob.submenu = null, null !== t.mouse) {
|
|
1337
1341
|
a.cssOnly || (a.cssOnly = !0);
|
|
1338
1342
|
var s = null;
|
|
1339
1343
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1342,15 +1346,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1342
1346
|
return;
|
|
1343
1347
|
}
|
|
1344
1348
|
var d = document.createElement("div");
|
|
1345
|
-
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.
|
|
1349
|
+
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.Pb("main"), d.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (d.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, d.onmouseleave = function (e) { a.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1346
1350
|
throw "No menu items defined.";
|
|
1347
1351
|
if (this.showMenuTitle) {
|
|
1348
1352
|
var c = document.createElement("div");
|
|
1349
|
-
c.innerHTML = this.menuTitle, c.className = this.
|
|
1353
|
+
c.innerHTML = this.menuTitle, c.className = this.Pb("title"), d.appendChild(c);
|
|
1350
1354
|
}
|
|
1351
1355
|
for (var u = 0; u < this.items.length; u++) {
|
|
1352
1356
|
var h = this.items[u], f = document.createElement("div");
|
|
1353
|
-
if (DayPilot.Util.addClass(f, this.
|
|
1357
|
+
if (DayPilot.Util.addClass(f, this.Pb("item")), h.items && (DayPilot.Util.addClass(f, this.Pb("item_haschildren")), DayPilot.Util.addClass(d, this.Pb("withchildren"))), "undefined" != typeof h && !h.hidden) {
|
|
1354
1358
|
if ("-" === h.text) {
|
|
1355
1359
|
var m = document.createElement("div");
|
|
1356
1360
|
m.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(m);
|
|
@@ -1358,7 +1362,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1358
1362
|
else {
|
|
1359
1363
|
var p = document.createElement("a");
|
|
1360
1364
|
if (p.style.position = "relative", p.style.display = "block", h.cssClass && DayPilot.Util.addClass(p, h.cssClass), h.disabled)
|
|
1361
|
-
DayPilot.Util.addClass(p, a.
|
|
1365
|
+
DayPilot.Util.addClass(p, a.Pb("item_disabled"));
|
|
1362
1366
|
else {
|
|
1363
1367
|
if (h.onclick || h.onClick) {
|
|
1364
1368
|
p.item = h, p.onclick = function (e, t) { return function (i) { if ("function" == typeof e.onClick) {
|
|
@@ -1374,7 +1378,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1374
1378
|
DayPilot.reNonPassive(p, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), p.source.calendar && (p.source.calendar.internal.touch.active = !0); }), DayPilot.reNonPassive(p, "touchend", v(h, p));
|
|
1375
1379
|
}
|
|
1376
1380
|
if (h.items && !h.disabled) {
|
|
1377
|
-
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.
|
|
1381
|
+
var y = function (e, t) { return function (i) { i.preventDefault(), i.stopPropagation(), a.Qb(e, t); }; };
|
|
1378
1382
|
p.ontouchend = y(h, p);
|
|
1379
1383
|
}
|
|
1380
1384
|
if (h.onclick)
|
|
@@ -1397,83 +1401,83 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1397
1401
|
}
|
|
1398
1402
|
h.items && p.addEventListener("click", function (e) { e.stopPropagation(); }), p.source = s, p.menuSource = i;
|
|
1399
1403
|
var g = document.createElement("span");
|
|
1400
|
-
if (g.className = a.
|
|
1404
|
+
if (g.className = a.Pb("item_text"), g.innerHTML = DayPilot.Util.escapeTextHtml(h.text, h.html), p.appendChild(g), h.image) {
|
|
1401
1405
|
var b = document.createElement("img");
|
|
1402
1406
|
b.src = h.image, b.style.position = "absolute", b.style.top = "0px", b.style.left = "0px", p.appendChild(b);
|
|
1403
1407
|
}
|
|
1404
1408
|
if (h.icon) {
|
|
1405
1409
|
var D = document.createElement("span");
|
|
1406
|
-
D.className = a.
|
|
1407
|
-
var
|
|
1408
|
-
|
|
1410
|
+
D.className = a.Pb("item_icon");
|
|
1411
|
+
var x = document.createElement("i");
|
|
1412
|
+
x.className = h.icon, D.appendChild(x), p.appendChild(D);
|
|
1409
1413
|
}
|
|
1410
1414
|
if (h.symbol) {
|
|
1411
|
-
var
|
|
1415
|
+
var w = "http://www.w3.org/2000/svg", C = document.createElementNS(w, "svg");
|
|
1412
1416
|
C.setAttribute("width", "100%"), C.setAttribute("height", "100%");
|
|
1413
|
-
var P = document.createElementNS(
|
|
1417
|
+
var P = document.createElementNS(w, "use");
|
|
1414
1418
|
P.setAttribute("href", h.symbol), C.appendChild(P);
|
|
1415
1419
|
var k = document.createElement("span");
|
|
1416
|
-
k.className = a.
|
|
1420
|
+
k.className = a.Pb("item_symbol"), k.style.position = "absolute", k.style.top = "0px", k.style.left = "0px", k.appendChild(C), p.appendChild(k);
|
|
1417
1421
|
}
|
|
1418
1422
|
var _ = function (e, i) { return function () { var n = (i.source, e), o = t.waitingSubmenu; if (o) {
|
|
1419
1423
|
if (o.parent === n)
|
|
1420
1424
|
return;
|
|
1421
1425
|
clearTimeout(o.timeout), t.waitingSubmenu = null;
|
|
1422
|
-
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.
|
|
1426
|
+
} e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = n, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, a.Qb(n, i); }, 300)); }; };
|
|
1423
1427
|
p.onmouseover = _(h, p), f.appendChild(p);
|
|
1424
1428
|
}
|
|
1425
1429
|
d.appendChild(f);
|
|
1426
1430
|
}
|
|
1427
1431
|
}
|
|
1428
1432
|
var S = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1429
|
-
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.
|
|
1430
|
-
var M = d.offsetHeight,
|
|
1433
|
+
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Ob.visible = !0, a.Ob.source = i, d.style.display = "";
|
|
1434
|
+
var M = d.offsetHeight, T = d.offsetWidth;
|
|
1431
1435
|
d.style.display = "none";
|
|
1432
|
-
var
|
|
1436
|
+
var A = document.documentElement.clientHeight, H = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
1433
1437
|
if (function () { var e = o.initiator; if (e) {
|
|
1434
1438
|
var t = e.div, i = e.e, a = e.area, r = a.visibility || a.v || "Visible", s = e.a;
|
|
1435
1439
|
if ("Visible" !== r && (s = DayPilot.Areas.createArea(t, i, a), t.appendChild(s), n = s), s) {
|
|
1436
1440
|
var l = DayPilot.abs(s);
|
|
1437
1441
|
o.x = l.x, o.y = l.y + l.h + 2;
|
|
1438
1442
|
}
|
|
1439
|
-
} }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, n = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (i - n >
|
|
1440
|
-
s = i - (i - n - (
|
|
1443
|
+
} }(), function () { var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, n = document.body.scrollTop || document.documentElement.scrollTop, r = document.body.scrollLeft || document.documentElement.scrollLeft, s = 0, l = 0; if (i - n > A - M && 0 !== A) {
|
|
1444
|
+
s = i - (i - n - (A - M) + E);
|
|
1441
1445
|
}
|
|
1442
1446
|
else
|
|
1443
|
-
s = i; if (a.
|
|
1444
|
-
l = e - (e - r - (H -
|
|
1447
|
+
s = i; if (a.Ob.y = s, d.style.top = s + "px", "right" === o.align && (e -= T), e - r > H - T && 0 !== H) {
|
|
1448
|
+
l = e - (e - r - (H - T) + E);
|
|
1445
1449
|
}
|
|
1446
1450
|
else
|
|
1447
|
-
l = e; a.
|
|
1448
|
-
var
|
|
1449
|
-
|
|
1450
|
-
var
|
|
1451
|
-
|
|
1452
|
-
}
|
|
1453
|
-
d.style.display = "", this.addShadow(d), this.
|
|
1454
|
-
} }, this.update = function () { if (a.
|
|
1455
|
-
var e = a.
|
|
1456
|
-
a.hide(), a.show(e, { "x": a.
|
|
1457
|
-
} }, this.
|
|
1451
|
+
l = e; a.Ob.x = l, d.style.left = l + "px"; }(), o.parentLink) {
|
|
1452
|
+
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), O = DayPilot.abs(o.parentLink.parentNode), R = O.x + N.offsetWidth, B = O.y - I;
|
|
1453
|
+
R + T > H && (R = Math.max(0, O.x - T));
|
|
1454
|
+
var U = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1455
|
+
B + M - U > A && (B = Math.max(0, A - M + U)), d.style.left = R + "px", d.style.top = B + "px";
|
|
1456
|
+
}
|
|
1457
|
+
d.style.display = "", this.addShadow(d), this.Ob.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
1458
|
+
} }, this.update = function () { if (a.Ob.visible) {
|
|
1459
|
+
var e = a.Ob.source;
|
|
1460
|
+
a.hide(), a.show(e, { "x": a.Ob.x, "y": a.Ob.y });
|
|
1461
|
+
} }, this.Qb = function (e, t) { var i = e, n = t.source; if ((!a.Ob.submenu || a.Ob.submenu.item !== e) && (a.Ob.submenu && a.Ob.submenu.item !== e && (DayPilot.Util.removeClass(a.Ob.submenu.link.parentNode, a.Pb("item_haschildren_active")), a.Ob.submenu.menu.hide(), a.Ob.submenu = null), e.items)) {
|
|
1458
1462
|
var o = a.cloneOptions();
|
|
1459
|
-
o.items = e.items, a.
|
|
1460
|
-
} }, this.
|
|
1463
|
+
o.items = e.items, a.Ob.submenu = {}, a.Ob.submenu.menu = new DayPilot.Menu(o), a.Ob.submenu.menu.Rb = a, a.Ob.submenu.menu.show(n, { "submenu": !0, "parentLink": t, "parentItem": i }), a.Ob.submenu.item = e, a.Ob.submenu.link = t, DayPilot.Util.addClass(t.parentNode, a.Pb("item_haschildren_active"));
|
|
1464
|
+
} }, this.Pb = function (e) { var t = this.theme || this.cssClassPrefix, i = this.cssOnly ? "_" : ""; return t ? t + i + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(o, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) { e = e || {}, this.Ob.submenu && this.Ob.submenu.menu.hide(); var i = t.waitingSubmenu; if (i && (t.waitingSubmenu = null, clearTimeout(i.timeout)), this.removeShadow(), this.Ob.div && this.Ob.div.parentNode === document.body && document.body.removeChild(this.Ob.div), n && (DayPilot.de(n), n = null), a.Ob.visible = !1, a.Ob.source = null, a.Rb && e.hideParent && a.Rb.hide(e), DayPilot.Menu.active === a && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
1461
1465
|
var o = {};
|
|
1462
1466
|
this.onHide(o);
|
|
1463
1467
|
} }, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { a.hide(e); }, a.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { }; var o = DayPilot.isArray(i) ? null : i; if (o)
|
|
1464
1468
|
for (var r in o)
|
|
1465
|
-
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
1466
|
-
this[a] = t[a]; this.
|
|
1467
|
-
i.
|
|
1469
|
+
this[r] = o[r]; }, DayPilot.MenuBar = function (e, t) { var i = this; t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.Ia = !1; for (var a in t)
|
|
1470
|
+
this[a] = t[a]; this.Sb = function (e) { return this.theme + "_" + e; }, this.t = function () { this.nav.top = document.getElementById(e); var t = this.nav.top; t.className = this.Sb("main"), DayPilot.list(i.items).forEach(function (e) { var a = document.createElement("span"); a.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), a.className = i.Sb("item"), e.cssClass && a.classList.add(e.cssClass), a.data = e, a.onclick = function (t) { if (i.active && i.active.item === e)
|
|
1471
|
+
i.Tb();
|
|
1468
1472
|
else if (e.children)
|
|
1469
|
-
return void i.
|
|
1473
|
+
return void i.Ub(a); if ("function" == typeof e.onClick) {
|
|
1470
1474
|
var n = {};
|
|
1471
1475
|
n.item = e, n.originalEvent = t, e.onClick(n);
|
|
1472
|
-
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.
|
|
1473
|
-
i.
|
|
1476
|
+
} }, a.onmousedown = function (e) { e.stopPropagation(); }, a.onmouseover = function () { i.active && i.active.item !== e && i.Ub(a); }, t.appendChild(a), i.elements.items.push(a); }); }, this.Tb = function () { var e = i.Sb("item_active"); i.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), i.active && i.active.menu && i.active.menu.hide(), i.active = null; }, this.Vb = function (e) { return !!i.active && i.active.item === e.data; }, this.Ub = function (e) { if (!i.Vb(e)) {
|
|
1477
|
+
i.Tb();
|
|
1474
1478
|
var t = e.data, a = i.active = {};
|
|
1475
1479
|
a.item = t, a.div = e;
|
|
1476
|
-
var n = i.
|
|
1480
|
+
var n = i.Sb("item_active");
|
|
1477
1481
|
DayPilot.Util.addClass(e, n);
|
|
1478
1482
|
var o = DayPilot.abs(e);
|
|
1479
1483
|
if (t.children) {
|
|
@@ -1482,11 +1486,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1482
1486
|
"right" === t.align && (r += o.w), a.menu.show(null, { "x": r, "y": o.y + o.h, "align": t.align, "windowMargin": i.windowMargin });
|
|
1483
1487
|
}
|
|
1484
1488
|
DayPilot.MenuBar.active = i;
|
|
1485
|
-
} }, this.init = function () { return this.t(), this.
|
|
1489
|
+
} }, this.init = function () { return this.t(), this.Ia = !0, this; }, this.dispose = function () { this.Ia && (this.nav.top.innerHTML = "", this.elements.items = []); }; }, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.Tb(), 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)
|
|
1486
1490
|
return null; var t = e.touches[0], i = {}; return i.x = t.pageX, i.y = t.pageY, i; }, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) { if (e = e || {}, e.calendar) {
|
|
1487
1491
|
var i = DayPilot.Menu.active;
|
|
1488
1492
|
if (i) {
|
|
1489
|
-
var a = i.
|
|
1493
|
+
var a = i.Ob.source;
|
|
1490
1494
|
a && a.calendar === e.calendar && t.menuClean();
|
|
1491
1495
|
}
|
|
1492
1496
|
}
|
|
@@ -1505,20 +1509,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1505
1509
|
"object" == typeof o ? "[object Array]" === Object.prototype.toString.call(o) ? i[a + n] = o : o && o.toJSON ? i[a + n] = o.toJSON() : t(o, i, a + n + ".") : i[a + n] = o;
|
|
1506
1510
|
} return i; }
|
|
1507
1511
|
if (!DayPilot.ModalStatic) {
|
|
1508
|
-
DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [],
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
+
DayPilot.ModalStatic = {}, DayPilot.ModalStatic.list = [],
|
|
1513
|
+
DayPilot.ModalStatic.hide = function () { if (this.list.length > 0) {
|
|
1514
|
+
var e = this.list.pop();
|
|
1515
|
+
e && e.hide();
|
|
1516
|
+
} }, DayPilot.ModalStatic.remove = function (e) { for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
|
|
1512
1517
|
if (t[i] === e)
|
|
1513
1518
|
return void t.splice(i, 1); }, DayPilot.ModalStatic.close = function (e) { DayPilot.ModalStatic.result(e), DayPilot.ModalStatic.hide(); }, DayPilot.ModalStatic.result = function (e) { var t = DayPilot.ModalStatic.list; t.length > 0 && (t[t.length - 1].result = e); }, DayPilot.ModalStatic.displayed = function (e) { for (var t = DayPilot.ModalStatic.list, i = 0; i < t.length; i++)
|
|
1514
1519
|
if (t[i] === e)
|
|
1515
1520
|
return !0; return !1; }, DayPilot.ModalStatic.stretch = function () { if (this.list.length > 0) {
|
|
1516
1521
|
var e = this.list[this.list.length - 1];
|
|
1517
1522
|
e && e.stretch();
|
|
1518
|
-
} }, DayPilot.ModalStatic.last = function () {
|
|
1519
|
-
var e = DayPilot.ModalStatic.list;
|
|
1520
|
-
return e.length > 0 ? e[e.length - 1] : null;
|
|
1521
|
-
};
|
|
1523
|
+
} }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
|
|
1522
1524
|
var i = function () { if ("undefined" == typeof window) {
|
|
1523
1525
|
var e = {};
|
|
1524
1526
|
return e.add = function () { }, e.commit = function () { }, e;
|
|
@@ -1533,23 +1535,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1533
1535
|
throw "No CSS registration method found";
|
|
1534
1536
|
t.sheet.addRule(e, a, n);
|
|
1535
1537
|
} }, e; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
|
|
1536
|
-
n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Pb = !1, this.Qb = null, this.Rb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1537
|
-
throw "This modal dialog is already displayed."; if (this.div || this.
|
|
1538
|
+
n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgICAgIHdpZHRoPSIxLjUzNDQxMzYiCiAgICAgICBoZWlnaHQ9IjIuMjE5ODI1IgogICAgICAgeD0iMi4xNTU4NDgzIgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHJ5PSIwLjY3MTc4OTE3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iMS41MjM5NTA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QxOTQ4IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjY3MTc4OTE3IgogICAgICAgeT0iLTQuMzkzNzAwMSIKICAgICAgIHg9IjYuNDUyNzIzNSIKICAgICAgIGhlaWdodD0iMi4yMTk4MjUiCiAgICAgICB3aWR0aD0iMS41MzQ0MTM2IgogICAgICAgaWQ9InJlY3QyMDAzIgogICAgICAgc3R5bGU9ImZpbGw6I2NjY2NjYztmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS41OTgxNDAxMjtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAwNSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIHk9Ii0xLjE2NTg0NjYiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSItMS4xNjU4NDY2IgogICAgICAgeD0iNi45OTI3MDA2IgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDA3IgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MjAxMyIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHg9IjEuNTIzOTUwNiIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHJ5PSIwLjI5NjAxNDciIC8+CiAgICA8cmVjdAogICAgICAgcnk9IjAuMjk2MDE0NyIKICAgICAgIHk9IjEuODAyOTAzNCIKICAgICAgIHg9IjQuMjE5MjYzMSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGlkPSJyZWN0MjAxNSIKICAgICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNDIxODkxOTM7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIgLz4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDIwMTciCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB4PSI2Ljk5MjcwMDYiCiAgICAgICB5PSIxLjgwMjkwMzQiCiAgICAgICByeT0iMC4yOTYwMTQ3IiAvPgogICAgPHJlY3QKICAgICAgIHJ5PSIwLjI5NjAxNDciCiAgICAgICB5PSI0LjczMjU5MDciCiAgICAgICB4PSIxLjU2MzAxMzEiCiAgICAgICBoZWlnaHQ9IjEuODI5OTA5MSIKICAgICAgIHdpZHRoPSIxLjgzNDIyNTEiCiAgICAgICBpZD0icmVjdDIwMTkiCiAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjQyMTg5MTkzO3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiIC8+CiAgICA8cmVjdAogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIgogICAgICAgaWQ9InJlY3QyMDIxIgogICAgICAgd2lkdGg9IjEuODM0MjI1MSIKICAgICAgIGhlaWdodD0iMS44Mjk5MDkxIgogICAgICAgeD0iNC4yNTgzMjU2IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgcnk9IjAuMjk2MDE0NyIgLz4KICAgIDxyZWN0CiAgICAgICByeT0iMC4yOTYwMTQ3IgogICAgICAgeT0iNC43MzI1OTA3IgogICAgICAgeD0iNy4wMzE3NjMxIgogICAgICAgaGVpZ2h0PSIxLjgyOTkwOTEiCiAgICAgICB3aWR0aD0iMS44MzQyMjUxIgogICAgICAgaWQ9InJlY3QyMDIzIgogICAgICAgc3R5bGU9ImZpbGw6I2ZmZmZmZjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Wb = !1, this.Xb = null, this.Yb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1539
|
+
throw "This modal dialog is already displayed."; if (this.div || this.Zb(), this.ob(), this.useIframe) {
|
|
1538
1540
|
var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
|
|
1539
1541
|
window.setTimeout(t(this, e), 0);
|
|
1540
1542
|
}
|
|
1541
1543
|
else
|
|
1542
|
-
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.
|
|
1544
|
+
e.nodeType ? this.div.appendChild(e) : this.div.innerHTML = e; this.ob(), this.$b(), this._b(); }, this.showUrl = function (e) { if (DayPilot.ModalStatic.displayed(this))
|
|
1543
1545
|
throw "This modal dialog is already displayed."; if (this.useIframe) {
|
|
1544
|
-
this.div || this.
|
|
1546
|
+
this.div || this.Zb();
|
|
1545
1547
|
var i = this.loadingHtml;
|
|
1546
|
-
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.
|
|
1548
|
+
i && (this.iframe.src = "about:blank", this.setInnerHTML(this.id + "iframe", i)), this.re(this.iframe, "load", this.bc), this.iframe.src = e, this.ob(), this.$b(), this._b();
|
|
1547
1549
|
}
|
|
1548
1550
|
else
|
|
1549
|
-
t.
|
|
1551
|
+
t.cc({ "url": e, "success": function (e) { var i = e.request.responseText; t.showHtml(i); }, "error": function (e) { t.showHtml("Error loading the modal dialog"); } }); }, this._b = function () { if ("function" == typeof t.onShow) {
|
|
1550
1552
|
var e = {};
|
|
1551
|
-
e.root = t.
|
|
1552
|
-
} }, this.
|
|
1553
|
+
e.root = t.dc(), e.modal = t, t.onShow(e);
|
|
1554
|
+
} }, this.dc = function () { return t.iframe ? t.iframe.contentWindow.document : t.div; }, this.cc = function (e) { var t = new XMLHttpRequest; if (t) {
|
|
1553
1555
|
var i = e.method || "GET", a = e.success || function () { }, n = e.error || function () { }, o = e.data, r = e.url;
|
|
1554
1556
|
t.open(i, r, !0), t.setRequestHeader("Content-type", "text/plain"), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
1555
1557
|
if (200 === t.status || 304 === t.status) {
|
|
@@ -1562,45 +1564,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1562
1564
|
}
|
|
1563
1565
|
else
|
|
1564
1566
|
window.console && console.log("HTTP error " + t.status); }, 4 !== t.readyState && ("object" == typeof o && (o = JSON.stringify(o)), t.send(o));
|
|
1565
|
-
} }, this.
|
|
1566
|
-
for (var a = i() - 40, n = this.width; n < a && this
|
|
1567
|
+
} }, this.ob = function () { delete this.result; var e = window, i = document, a = e.pageYOffset ? e.pageYOffset : i.documentElement && i.documentElement.scrollTop ? i.documentElement.scrollTop : i.body.scrollTop; this.theme && (this.hideDiv.className = this.theme + "_background"), this.zIndex && (this.hideDiv.style.zIndex = this.zIndex), this.hideDiv.style.display = "", window.setTimeout(function () { t.hideDiv && (t.hideDiv.onclick = function () { t.hide({ "backgroundClick": !0 }); }); }, 500), this.theme ? this.div.className = this.theme + "_main" : this.div.className = "", this.className && (this.div.className += " " + this.className), this.left ? this.div.style.left = this.left + "px" : this.div.style.marginLeft = "-" + Math.floor(this.width / 2) + "px", this.div.style.position = "absolute", this.div.style.boxSizing = "content-box", this.div.style.top = a + this.top + "px", this.div.style.width = this.width + "px", this.zIndex && (this.div.style.zIndex = this.zIndex), this.height && (this.useIframe || !this.autoStretch ? this.div.style.height = this.height + "px" : this.div.style.height = ""), this.useIframe && this.height && (this.iframe.style.height = this.height + "px"), this.div.style.display = "", this.fc(), DayPilot.ModalStatic.remove(this), DayPilot.ModalStatic.list.push(this); }, this.bc = function () { t.iframe.contentWindow.modal = t, t.autoStretch && t.stretch(); }, this.stretch = function () { var e = function () { return t.ec().y; }, i = function () { return t.ec().x; }; if (this.useIframe) {
|
|
1568
|
+
for (var a = i() - 40, n = this.width; n < a && this.gc(); n += 10)
|
|
1567
1569
|
this.div.style.width = n + "px", this.div.style.marginLeft = "-" + Math.floor(n / 2) + "px";
|
|
1568
|
-
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.
|
|
1570
|
+
for (var o = this.maxHeight || e() - 2 * this.top, r = this.height; r < o && this.hc(); r += 10)
|
|
1569
1571
|
this.iframe.style.height = r + "px", this.div.style.height = r + "px";
|
|
1570
|
-
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.
|
|
1572
|
+
this.autoStretchFirstLoadOnly && this.ue(this.iframe, "load", this.bc);
|
|
1571
1573
|
}
|
|
1572
1574
|
else
|
|
1573
|
-
this.div.style.height = ""; }, this
|
|
1575
|
+
this.div.style.height = ""; }, this.gc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollWidth, a = e.body.children, n = 0; n < a.length; n++) {
|
|
1574
1576
|
var o = a[n].offsetLeft + a[n].offsetWidth;
|
|
1575
1577
|
i = Math.max(i, o);
|
|
1576
|
-
} return i > t.clientWidth; }, this.
|
|
1578
|
+
} return i > t.clientWidth; }, this.hc = function () { for (var e = this.iframe.contentWindow.document, t = "BackCompat" === e.compatMode ? e.body : e.documentElement, i = t.scrollHeight, a = e.body.children, n = 0; n < a.length; n++) {
|
|
1577
1579
|
var o = a[n].offsetTop + a[n].offsetHeight;
|
|
1578
1580
|
i = Math.max(i, o);
|
|
1579
|
-
} return i > t.clientHeight; }, this.
|
|
1581
|
+
} return i > t.clientHeight; }, this.ec = function () { var e = document; if ("CSS1Compat" === e.compatMode && e.documentElement && e.documentElement.clientWidth) {
|
|
1580
1582
|
var t = e.documentElement.clientWidth, i = e.documentElement.clientHeight;
|
|
1581
1583
|
return { x: t, y: i };
|
|
1582
|
-
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this
|
|
1583
|
-
var e = e || window.event, i = t.mc(e), a = i.x - t.
|
|
1584
|
-
t.div.style.marginLeft = "0px", t.div.style.top = t.
|
|
1585
|
-
} }, this.
|
|
1584
|
+
} var t = e.body.clientWidth, i = e.body.clientHeight; return { x: t, y: i }; }, this.$b = function () { this.Wb || (this.re(window, "resize", this.ic), this.re(window, "scroll", this.jc), this.dragDrop && (this.re(document, "mousemove", this.kc), this.re(document, "mouseup", this.lc)), this.Wb = !0); }, this.nc = function () { this.ue(window, "resize", this.ic), this.ue(window, "scroll", this.jc), this.dragDrop && (this.ue(document, "mousemove", this.kc), this.ue(document, "mouseup", this.lc)), this.Wb = !1; }, this.oc = function (e) { e.target === t.div && (e.preventDefault(), t.div.style.cursor = "move", t.pc(), t.Yb = t.mc(e || window.event), t.Xb = { x: t.div.offsetLeft, y: t.div.offsetTop }); }, this.kc = function (e) { if (t.Yb) {
|
|
1585
|
+
var e = e || window.event, i = t.mc(e), a = i.x - t.Yb.x, n = i.y - t.Yb.y;
|
|
1586
|
+
t.div.style.marginLeft = "0px", t.div.style.top = t.Xb.y + n + "px", t.div.style.left = t.Xb.x + a + "px";
|
|
1587
|
+
} }, this.lc = function (e) { t.Yb && (t.qc(), t.div.style.cursor = null, t.Yb = null); }, this.pc = function () { if (this.useIframe) {
|
|
1586
1588
|
var e = document.createElement("div");
|
|
1587
1589
|
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;
|
|
1588
|
-
} }, this.
|
|
1590
|
+
} }, this.qc = function () { this.useIframe && (this.div.removeChild(this.mask), this.mask = null); }, this.ic = function () { t.rc(), t.fc(); }, this.jc = function () { t.rc(); }, this.fc = function () { if (!t.left && t.div) {
|
|
1589
1591
|
var e = t.div.offsetWidth;
|
|
1590
1592
|
t.div.style.marginLeft = "-" + Math.floor(e / 2) + "px";
|
|
1591
|
-
} }, this.
|
|
1592
|
-
var e = t.
|
|
1593
|
+
} }, this.rc = function () { if (t.hideDiv && t.div && "none" !== t.hideDiv.style.display && "none" !== t.div.style.display) {
|
|
1594
|
+
var e = t.sc.scrollY();
|
|
1593
1595
|
t.scrollWithPage || (t.div.style.top = e + t.top + "px");
|
|
1594
|
-
} }, this.
|
|
1595
|
-
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.
|
|
1596
|
+
} }, this.sc = {}, this.sc.container = function () { return t.container || document.body; }, this.sc.scrollY = function () { var e = t.sc.container(); return e === document.body ? window.pageYOffset ? window.pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop : e.scrollTop; }, this.re = function (e, t, i) { e.addEventListener ? e.addEventListener(t, i, !1) : e.attachEvent && e.attachEvent("on" + t, i); }, this.ue = function (e, t, i) { e.removeEventListener ? e.removeEventListener(t, i, !1) : e.detachEvent && e.detachEvent("on" + t, i); }, this.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, this.abs = function (e) { for (var t = { x: e.offsetLeft, y: e.offsetTop }; e.offsetParent;)
|
|
1597
|
+
e = e.offsetParent, t.x += e.offsetLeft, t.y += e.offsetTop; return t; }, this.Zb = function () { var e = t.sc.container(), i = e === document.body, a = i ? "fixed" : "absolute", n = document.createElement("div"); n.id = this.id + "hide", n.style.position = a, n.style.left = "0px", n.style.top = "0px", n.style.right = "0px", n.style.bottom = "0px", n.oncontextmenu = function () { return !1; }, n.onmousedown = function () { return !1; }, e.appendChild(n); var o = document.createElement("div"); o.id = this.id + "popup", o.style.position = a, o.style.left = "50%", o.style.top = "0px", o.style.backgroundColor = "white", o.style.width = "50px", o.style.height = "50px", this.dragDrop && (o.onmousedown = this.oc), o.addEventListener("keydown", function (e) { e.stopPropagation(); }); var r = null; this.useIframe && (r = document.createElement("iframe"), r.id = this.id + "iframe", r.name = this.id + "iframe", r.frameBorder = "0", r.style.width = "100%", r.style.height = "50px", o.appendChild(r)), e.appendChild(o), this.div = o, this.iframe = r, this.hideDiv = n; }, this.setInnerHTML = function (e, i) { var a = window.frames[e], n = a.contentWindow || a.document || a.contentDocument; n.document && (n = n.document), null == n.body && n.write("<body></body>"), i.nodeType ? n.body.appendChild(i) : n.body.innerHTML = i, t.autoStretch && (t.autoStretchFirstLoadOnly && t.tc || (t.stretch(), t.tc = !0)); }, this.close = function (e) { this.result = e, this.hide(); }, this.closeSerialized = function () { for (var e = t.dc(), i = e.querySelectorAll("input, textarea, select"), a = {}, n = 0; n < i.length; n++) {
|
|
1596
1598
|
var o = i[n], r = o.name;
|
|
1597
1599
|
if (r) {
|
|
1598
1600
|
var s = o.value;
|
|
1599
1601
|
a[r] = s;
|
|
1600
1602
|
}
|
|
1601
|
-
} t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.
|
|
1603
|
+
} t.close(a); }, this.hide = function (e) { e = e || {}; var i = {}; i.backgroundClick = !!e.backgroundClick, i.result = this.result, i.canceled = "undefined" == typeof this.result, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof this.onClose && (this.onClose(i), i.preventDefault.value) || (this.div && (this.div.style.display = "none", this.hideDiv.style.display = "none", this.useIframe || (this.div.innerHTML = null)), window.focus(), DayPilot.ModalStatic.remove(this), "function" == typeof this.onClosed ? this.onClosed(i) : this.closed && this.closed(), delete this.result, this.disposeOnClose && (t.nc(), t.uc(t.div), t.uc(t.hideDiv), t.div = null, t.hideDiv = null, t.iframe = null)); }, this.uc = function (e) { e && e.parentNode && e.parentNode.removeChild(e); }, this.vc = function () { if (e)
|
|
1602
1604
|
for (var t in e)
|
|
1603
|
-
this[t] = e[t]; }, this.
|
|
1605
|
+
this[t] = e[t]; }, this.vc(); }, DayPilot.Modal.alert = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK"; t.cancelText || "Cancel"; return DayPilot.getPromise(function (a, n) { t.onClosed = function (e) { a(e); }; var o = new DayPilot.Modal(t), r = document.createElement("div"); r.className = o.theme + "_inner"; var s = document.createElement("div"); s.className = o.theme + "_content", s.innerHTML = e; var l = document.createElement("div"); l.className = o.theme + "_buttons"; var d = document.createElement("button"); d.innerText = i, d.className = o.theme + "_ok", d.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }, l.appendChild(d), r.appendChild(s), r.appendChild(l), o.showHtml(r), o.autoFocus && d.focus(); }); }, DayPilot.Modal.confirm = function (e, t) { t = t || {}, t.height = t.height || 40, t.useIframe = !1; var i = t.okText || "OK", a = t.cancelText || "Cancel"; return DayPilot.getPromise(function (n, o) { t.onClosed = function (e) { n(e); }; var r = new DayPilot.Modal(t), s = document.createElement("div"); s.className = r.theme + "_inner"; var l = document.createElement("div"); l.className = r.theme + "_content", l.innerHTML = e; var d = document.createElement("div"); d.className = r.theme + "_buttons"; var c = document.createElement("button"); c.innerText = i, c.className = r.theme + "_ok", c.onclick = function (e) { DayPilot.ModalStatic.close("OK"); }; var u = document.createTextNode(" "), h = document.createElement("button"); h.innerText = a, h.className = r.theme + "_cancel", h.onclick = function (e) { DayPilot.ModalStatic.close(); }, d.appendChild(c), d.appendChild(u), d.appendChild(h), s.appendChild(l), s.appendChild(d), r.showHtml(s), r.autoFocus && c.focus(); }); }, DayPilot.Modal.prompt = function (e, t, i) { "object" == typeof t && (i = t, t = ""), i = i || {}, i.height = i.height || 40, i.useIframe = !1; var a = i.okText || "OK", n = i.cancelText || "Cancel", o = t || ""; return DayPilot.getPromise(function (t, r) { i.onClosed = function (e) { t(e); }; var s = new DayPilot.Modal(i), l = document.createElement("div"); l.className = s.theme + "_inner"; var d = document.createElement("div"); d.className = s.theme + "_content", d.innerHTML = e; var c = document.createElement("div"); c.className = s.theme + "_input"; var u = document.createElement("input"); u.value = o, u.style.width = "100%", u.onkeydown = function (e) { var t = !1; switch (e.keyCode) {
|
|
1604
1606
|
case 13:
|
|
1605
1607
|
s.close(this.value);
|
|
1606
1608
|
break;
|
|
@@ -1650,72 +1652,73 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1650
1652
|
g && g.focus();
|
|
1651
1653
|
}
|
|
1652
1654
|
else {
|
|
1653
|
-
var
|
|
1654
|
-
o.autoFocus &&
|
|
1655
|
+
var x = h.firstFocusable();
|
|
1656
|
+
o.autoFocus && x ? x.focus() : o.div.focus();
|
|
1655
1657
|
} }); }, 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)
|
|
1656
1658
|
throw "Unable to find the opener DayPilot.Modal instance."; t.stretch(); }, DayPilot.Modal.closeSerialized = function () { var e = DayPilot.Modal.opener() || DayPilot.ModalStatic.last(); e && e.closeSerialized(); }, DayPilot.Modal.opener = function () { return "undefined" != typeof DayPilot && "undefined" != typeof DayPilot.ModalStatic && DayPilot.ModalStatic.list.length > 0 ? DayPilot.ModalStatic.list[DayPilot.ModalStatic.list.length - 1] : parent && parent.DayPilot && parent.DayPilot.ModalStatic && parent.DayPilot.ModalStatic.list[parent.DayPilot.ModalStatic.list.length - 1]; }, DayPilot.Modal.Experimental = {}, DayPilot.Modal.Experimental.Form = r, "undefined" == typeof DayPilot.getPromise && (DayPilot.getPromise = function (e) { return "undefined" != typeof Promise ? new Promise(e) : (DayPilot.Promise = function (e) { var t = this; this.then = function (t, i) { return t = t || function () { }, i = i || function () { }, e(t, i), DayPilot.getPromise(e); }, this["catch"] = function (i) { return t.then(null, i), DayPilot.getPromise(e); }; }, new DayPilot.Promise(e)); });
|
|
1657
|
-
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.
|
|
1659
|
+
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.wc = [], this.xc = null, this.canceling = !1, this.yc = [], this.f = [], this.zc = null, e = e || {}; for (var t in e)
|
|
1658
1660
|
this[t] = e[t]; };
|
|
1659
|
-
r.prototype.create = function () { return this.load(), this.render(), this.
|
|
1660
|
-
var
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1661
|
+
r.prototype.create = function () { return this.load(), this.render(), this.zc; }, r.prototype.render = function () { var e = this; this.zc = document.createElement("div"), this.wc.forEach(function (t) { e.createView(t); }), this.applyState(); }, r.prototype.createView = function (e) {
|
|
1662
|
+
var t = this.theme, i = this, a = document.createElement("div");
|
|
1663
|
+
if (a.className = t + "_form_item " + t + "_form_item_level" + e.level, e.interactive || "title" !== e.type ? a.className += " " + t + "_form_item_" + e.type : a.className += " " + t + "_form_title", e.data.cssClass && (a.className += " " + e.data.cssClass), !e.isValue) {
|
|
1664
|
+
var n = document.createElement("div");
|
|
1665
|
+
n.className = t + "_form_item_label", n.innerText = e.text, a.appendChild(n);
|
|
1666
|
+
}
|
|
1667
|
+
var o = this.createInteractive(e);
|
|
1668
|
+
o.onInput = function (e) {
|
|
1669
|
+
if (e = e || {}, i.Ac(o, { "debounce": !e.immediate
|
|
1670
|
+
}), "function" == typeof i.onChange) {
|
|
1671
|
+
var t = {};
|
|
1672
|
+
t.result = i.serialize(), i.onChange(t);
|
|
1673
|
+
}
|
|
1674
|
+
}, o.onBlur = function () { i.canceling || i.Ac(o); }, o.apply(e), o.zc = a, o.row = e, o.element && a.appendChild(o.element), this.f.push(o), this.zc.appendChild(a);
|
|
1675
|
+
}, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (i) { var a = e.Ac(i); t = t && a; }), t; }, r.prototype.Ac = function (e, t) { function i() { e.Bc && (e.Bc.remove(), e.Bc = null), e.zc.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Bc = t, e.zc.appendChild(t); } t = t || {}; var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l; if (d) {
|
|
1676
|
+
var c = {};
|
|
1677
|
+
c.valid = !0, c.value = e.save()[o.field], c.message = "Error", c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
1678
|
+
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
1679
|
+
if (c.valid)
|
|
1680
|
+
clearTimeout(this.yc[o.field]), e.Bc && (e.Bc.remove(), e.Bc = null), e.zc.classList.remove(u);
|
|
1681
|
+
else if (!n)
|
|
1682
|
+
if (a) {
|
|
1683
|
+
var f = 1e3;
|
|
1684
|
+
clearTimeout(this.yc[o.field]), this.yc[o.field] = setTimeout(function () { i(); }, f);
|
|
1685
|
+
}
|
|
1686
|
+
else
|
|
1687
|
+
i();
|
|
1688
|
+
r = c.valid;
|
|
1689
|
+
} return r; }, r.prototype.load = function () { var e = this; this.form.forEach(function (t) { e.processFormItem(t, 0); }); var i; try {
|
|
1687
1690
|
var a = JSON.stringify(this.data);
|
|
1688
1691
|
i = t(JSON.parse(a));
|
|
1689
1692
|
}
|
|
1690
1693
|
catch (e) {
|
|
1691
1694
|
throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
|
|
1692
1695
|
} for (var n in i)
|
|
1693
|
-
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.
|
|
1696
|
+
this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.wc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.xc ? this.xc : this.wc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
|
|
1694
1697
|
if (e.name) {
|
|
1695
1698
|
var o = new s;
|
|
1696
|
-
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.
|
|
1699
|
+
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.wc.push(o), n.push(o);
|
|
1697
1700
|
}
|
|
1698
|
-
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.
|
|
1701
|
+
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.wc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
|
|
1699
1702
|
}
|
|
1700
1703
|
else if ("title" === a) {
|
|
1701
1704
|
var o = new s;
|
|
1702
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.
|
|
1705
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.wc.push(o), n.push(o);
|
|
1703
1706
|
}
|
|
1704
1707
|
else if ("image" === a) {
|
|
1705
1708
|
var o = new s;
|
|
1706
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1709
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.wc.push(o), n.push(o);
|
|
1707
1710
|
}
|
|
1708
1711
|
else if ("html" === a) {
|
|
1709
1712
|
var o = new s;
|
|
1710
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1713
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.wc.push(o), n.push(o);
|
|
1711
1714
|
}
|
|
1712
1715
|
else if ("scrollable" === a) {
|
|
1713
1716
|
var o = new s;
|
|
1714
|
-
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.
|
|
1717
|
+
o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.wc.push(o), n.push(o);
|
|
1715
1718
|
}
|
|
1716
1719
|
else {
|
|
1717
1720
|
var o = new s;
|
|
1718
|
-
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.
|
|
1721
|
+
o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.wc.push(o), n.push(o);
|
|
1719
1722
|
} return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
|
|
1720
1723
|
var t = { key: e };
|
|
1721
1724
|
this.onKey(t);
|
|
@@ -1746,11 +1749,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1746
1749
|
n.close(), i = !0;
|
|
1747
1750
|
break;
|
|
1748
1751
|
default: i = !0;
|
|
1749
|
-
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "time": function () { return t.
|
|
1750
|
-
return {}; var t = n.
|
|
1752
|
+
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.element = a, i.picker = n, i.canFocus = function () { return !i.element.disabled; }, i.focus = function () { i.element.focus(); }, i.save = function () { var t = n.date ? n.date.toString() : null, i = {}; return i[e.field] = t, i; }, i; }, "time": function () { return t.Cc(e); }, "datetime": function () { return t.Dc(e); }, "select": function () { var t = new l; t.apply = function (e) { t.row = e; var i = t.element; i.value = e.value, i.disabled = !e.enabled; }; var i = document.createElement("select"); return i.name = e.field, e.data.options && e.data.options.forEach && e.data.options.forEach(function (e) { var t = document.createElement("option"); t.innerText = e.name || e.id, t.value = e.id, t.Ec = e.id, i.appendChild(t); }), i.onchange = function (e) { t.onInput({ "immediate": !0 }); }, i.onblur = function (e) { t.onBlur(); }, t.element = i, t.canFocus = function () { return !t.element.disabled; }, t.focus = function () { t.element.focus(); }, t.save = function () { var t = null, a = i.options[i.selectedIndex]; a && "undefined" != typeof a.Ec && (t = a.Ec); var n = {}; return n[e.field] = t, n; }, t; }, "searchable": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = new d({ data: e.data.options || [], name: e.field, theme: t.theme + "_form_item_searchable", listZIndex: t.zIndex + 1, onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), n = a.create(); return i.element = n, i.searchable = a, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = a.selected && a.selected.id, i = {}; return i[e.field] = t, i; }, i; }, "radio": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.radio; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "radio", n.name = e.field, n.Ec = e.resolved, n.onchange = function (e) { var a = i.row; t.findRowsByField(a.field).forEach(function (e) { t.updateState(e, { checked: !1 }); }), t.updateState(a, { checked: !0 }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.radio = n, i.canFocus = function () { return !1; }, i.focus = function () { i.radio.focus(); }, i.save = function () { if (!n.checked)
|
|
1753
|
+
return {}; var t = n.Ec, i = {}; return i[e.field] = t, i; }, i; }, "checkbox": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.checkbox; t.checked = e.checked, t.disabled = !e.enabled; }; var a = document.createElement("label"), n = document.createElement("input"); n.type = "checkbox", n.name = e.field, n.Ec = e.resolved, n.onchange = function (e) { var a = i.row; t.updateState(a, { checked: this.checked }), t.applyState(), i.onInput({ "immediate": !0 }); }, n.onblur = function (e) { i.onBlur(); }, a.appendChild(n); var o = document.createTextNode(e.text); return a.append(o), i.element = a, i.checkbox = n, i.canFocus = function () { return !1; }, i.focus = function () { i.checkbox.focus(); }, i.save = function () { var t = n.checked, i = {}; return i[e.field] = t, i; }, i; }, "table": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.table; t.disabled = !e.enabled, t.load(e.value || []); }; var a = new c({ name: e.field, form: t, theme: t.theme + "_form_item_tabular", item: e.data, onInput: function (e) { i.onInput(); } }), n = a.create(); return i.element = n, i.table = a, i.canFocus = function () { return !1; }, i.focus = function () { i.table.focus(); }, i.save = function () { var t = a.save(), i = {}; return i[e.field] = t, i; }, i; } }; return t.plugins && t.plugins[e.type] ? t.plugins[e.type](e) : i[e.type](); }, r.prototype.Cc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var t = i.searchable; t.disabled = !e.enabled, t.select(e.value); }; var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, c = DayPilot.Date.today(), u = 0; u < 24 * o; u++) {
|
|
1751
1754
|
var h = c.addMinutes(n * u), f = {};
|
|
1752
1755
|
f.name = h.toString(e.data.timeFormat || s.timePattern, s), f.id = h.toString("HH:mm"), a.push(f);
|
|
1753
|
-
} var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create(); return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i; }, r.prototype.
|
|
1756
|
+
} var m = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }), p = m.create(); return i.element = p, i.searchable = m, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.searchable.focus(); }, i.save = function () { var t = m.selected && m.selected.id, i = {}; return i[e.field] = t, i; }, i; }, r.prototype.Dc = function (e) { var t = this, i = new l; i.apply = function (e) { i.row = e; var a = i.searchable; a.disabled = !e.enabled; var n = new DayPilot.Date(e.value).toString("HH:mm"); a.select(n); var o = i.dateInput, r = i.picker; e.data.dateFormat && (r.pattern = e.data.dateFormat); var s = e.data.locale || t.locale; if (s) {
|
|
1754
1757
|
var l = DayPilot.Locale.find(s) || DayPilot.Locale.US;
|
|
1755
1758
|
r.locale = s, r.pattern = l.datePattern;
|
|
1756
1759
|
} o.disabled = !e.enabled, r.date = new DayPilot.Date(e.value); var d = new DayPilot.Date(e.value).toString(e.data.dateFormat || r.pattern, r.locale); o.value = d; }; var a = function () { var a = document.createElement("input"); a.name = e.field; var n = new DayPilot.DatePicker({ target: a, theme: "navigator_modal", zIndex: t.zIndex + 1, resetTarget: !1, targetAlignment: "left", onTimeRangeSelect: function (e) { i.onInput({ "immediate": !0 }); } }); return a.picker = n, a.className = t.theme + "_input_date", a.type = "text", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
|
|
@@ -1767,11 +1770,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1767
1770
|
} i || (e.preventDefault(), e.stopPropagation()); }, a.onfocus = function () { n.show(); }, a.onclick = function () { n.show(); }, a.oninput = function (e) { i.onInput(); }, a.onblur = function (e) { i.onBlur(); }, i.dateInput = a, i.picker = n, a; }(), n = function () { var a = [], n = e.data.timeInterval || 15; [1, 5, 10, 15, 20, 30, 60].includes(n) || (n = 15); for (var o = 60 / n, r = e.data.locale || t.locale, s = DayPilot.Locale.find(r) || DayPilot.Locale.US, l = DayPilot.Date.today(), c = 0; c < 24 * o; c++) {
|
|
1768
1771
|
var u = l.addMinutes(n * c), h = {};
|
|
1769
1772
|
h.name = u.toString(e.data.timeFormat || s.timePattern, s), h.id = u.toString("HH:mm"), a.push(h);
|
|
1770
|
-
} var f = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i; }, r.prototype.findRowsByField = function (e) { return this.
|
|
1773
|
+
} var f = new d({ data: a, name: e.field, theme: t.theme + "_form_item_time", listZIndex: t.zIndex + 1, strategy: "startsWith", onSelect: function (e) { e.ui && i.onInput({ "immediate": !0 }); } }); return i.searchable = f, f.create(); }(), o = document.createElement("div"); return o.className = t.theme + "_form_item_datetime_parent", o.appendChild(a), o.appendChild(n), i.element = o, i.canFocus = function () { return !i.searchable.disabled; }, i.focus = function () { i.dateInput.focus(); }, i.save = function () { var t = i.searchable.selected && i.searchable.selected.id, a = i.picker.date ? i.picker.date.toString() : null, n = new DayPilot.Date(a).getDatePart(), o = DayPilot.Date.parse(n.toString("yyyy-dd-MM ") + t, "yyyy-dd-MM HH:mm"), r = {}; return r[e.field] = o, r; }, i; }, r.prototype.findRowsByField = function (e) { return this.wc.filter(function (t) { return t.field === e; }); }, r.prototype.findViewById = function (e, t) { return this.f.find(function (i) { return i.row.field === e && ("radio" !== i.row.type || i.row.resolved === t); }); }, r.prototype.firstFocusable = function () { return this.f.find(function (e) { return e.canFocus && e.canFocus(); }); }, r.prototype.updateState = function (e, t) { var i = this.xc ? this.xc : this.wc, a = i.indexOf(e); return this.xc = i.map(function (i) { if (i !== e)
|
|
1771
1774
|
return i; if (e.propsEqual(t))
|
|
1772
1775
|
return e; var a = e.clone(); for (var n in t)
|
|
1773
|
-
a[n] = t[n]; return a; }), this.
|
|
1774
|
-
this.
|
|
1776
|
+
a[n] = t[n]; return a; }), this.xc[a]; }, r.prototype.updateInteractive = function (e) { var t = this.xc.indexOf(e); this.f[t].apply(e); }, r.prototype.applyState = function () { var e = this; if (this.updateDependentState(), this.xc) {
|
|
1777
|
+
this.xc.filter(function (t, i) { return e.wc[i] !== t; }).forEach(function (t) { e.updateInteractive(t); }), this.wc = this.xc, this.xc = null;
|
|
1775
1778
|
} }, r.prototype.getFieldType = function (e) { return ["text", "date", "select", "searchable", "radio", "checkbox", "table", "title", "image", "html", "textarea", "scrollable", "time", "datetime"].indexOf(e.type) !== -1 ? e.type : e.type && this.plugins && this.plugins[e.type] ? e.type : e.image ? "image" : e.html || e.text ? "html" : e.id ? e.options ? "searchable" : e.dateFormat ? "date" : e.columns ? "table" : "text" : "title"; }, r.prototype.serialize = function () { var e = {}; return this.f.forEach(function (t) { var i = t.save(); for (var a in i)
|
|
1776
1779
|
e[a] = i[a]; }), e; };
|
|
1777
1780
|
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; };
|
|
@@ -1779,45 +1782,45 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1779
1782
|
"id" !== t && (e[t] = this[t]); return e; }, s.prototype.propsEqual = function (e) { for (var t in e)
|
|
1780
1783
|
if (this[t] !== e[t])
|
|
1781
1784
|
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)); };
|
|
1782
|
-
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.
|
|
1785
|
+
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.Fc = !1, this.listZIndex = 1e5, this.onSelect = null, this.Gc = null, this.Hc = null, this.Ic = !1, this.Jc = null, this.Kc = null, this.p = [], this.Lc = null, e = e || {}; var t = this, i = { "selected": { post: function (e) { "object" == typeof e && e.id ? t.Gc = e : "string" != typeof e && "number" != typeof e || t.select(e); } } }; Object.defineProperty(this, "selected", { get: function () { return this.Gc; } }), Object.defineProperty(this, "disabled", { get: function () { return this.Fc; }, set: function (e) { this.Fc = e, this.Jc && (this.Jc.disabled = e, e && this.Mc()); } }); for (var a in e)
|
|
1783
1786
|
i[a] || (this[a] = e[a]); for (var a in e)
|
|
1784
1787
|
i[a] && i[a].post(e[a]); };
|
|
1785
|
-
d.prototype.select = function (e) { return this.
|
|
1788
|
+
d.prototype.select = function (e) { return this.Gc = this.data.find(function (t) { return t.id === e; }), this.Nc(!1), this; }, d.prototype.create = function () { function e(e) { var i = l.strategy; "includes" !== l.strategy && "startsWith" !== l.strategy && (i = "includes"), e = e || i || "includes", h.style.display = "", h.style.top = m.offsetHeight + "px", h.style.left = "0px", h.style.width = m.offsetWidth + "px", h.innerHTML = "", h.addEventListener("mousedown", function (e) { e.preventDefault(); }), l.Hc = null, l.p = []; var n = null; l.data.forEach(function (i) { var o = i.name || i.id; if ("includes" === e) {
|
|
1786
1789
|
if (o.toLowerCase().indexOf(m.value.toLowerCase()) === -1)
|
|
1787
1790
|
return;
|
|
1788
1791
|
}
|
|
1789
1792
|
else if ("startsWith" === e && 0 !== o.toLowerCase().indexOf(m.value.toLowerCase()))
|
|
1790
|
-
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.
|
|
1793
|
+
return; var r = document.createElement("div"); r.className = l.theme + "_list_item", r.innerText = o, r.item = i, i === l.Gc && (l.Hc = r), n || (n = r), r.addEventListener("mousedown", function (e) { a(r), e.preventDefault(); }), r.addEventListener("mousemove", function (e) { l.Hc !== r && (l.Hc = r, t({ dontScroll: !0 })); }), h.appendChild(r), l.p.push(r); }), l.Hc || (l.Hc = n), t(); } function t(e) { e = e || {}; var t = !e.dontScroll; document.querySelectorAll("." + l.theme + "_list_item_highlight").forEach(function (e) { e.className = e.className.replace(l.theme + "_list_item_highlight", ""); }), l.Hc && (l.Hc.className += " " + l.theme + "_list_item_highlight", t && !i(l.Hc, h) && l.Hc.scrollIntoView()); } function i(e, t) { var i = e.getBoundingClientRect(), a = t.getBoundingClientRect(); return i.top >= a.top && i.bottom <= a.bottom; } function a(e) { var t = e.item; l.Gc = t, l.Nc(!0), o(), r(); } function n() { l.Mc(); } function o() { l.q(); } function r() { l.Ic = !0, m.setAttribute("readonly", "readonly"), m.focus(); } function s() { l.Ic = !1, m.removeAttribute("readonly"), m.select(), e("all"); } var l = this, d = this, c = document.createElement("div"); c.className = this.theme + "_main", c.style.position = "relative"; var u = document.createElement("div"); u.className = this.theme + "_icon", u.style.position = "absolute", u.style.right = "0", u.style.top = "0", u.style.bottom = "0", u.style.width = "20px", u.addEventListener("mousedown", function (e) { e.preventDefault(), l.Ic ? (l.focus(), s()) : (n(), r()); }); var h = document.createElement("div"); h.className = this.theme + "_list", h.style.display = "none", h.style.position = "absolute", h.style.zIndex = this.listZIndex; var f = document.createElement("input"); f.type = "hidden", f.name = this.name, f.searchable = d, this.Lc = f; var m = document.createElement("input"); return m.type = "text", m.className = this.theme + "_input", m.disabled = this.Fc, m.addEventListener("click", function (e) { s(); }), m.addEventListener("focus", function (t) { e("all"); }), m.addEventListener("input", function (t) { e(); }), m.addEventListener("blur", function (e) { m.removeAttribute("readonly"), n(); }), m.addEventListener("keydown", function (e) { if (l.Ic) {
|
|
1791
1794
|
if ("Enter" === e.key)
|
|
1792
1795
|
return;
|
|
1793
1796
|
if ("Esc" === e.key || "Escape" === e.key)
|
|
1794
1797
|
return;
|
|
1795
1798
|
s();
|
|
1796
1799
|
} if ("ArrowDown" === e.key) {
|
|
1797
|
-
var i = d.p.indexOf(d.
|
|
1798
|
-
i + 1 < d.p.length && (d.
|
|
1800
|
+
var i = d.p.indexOf(d.Hc);
|
|
1801
|
+
i + 1 < d.p.length && (d.Hc = d.p[i + 1]), t();
|
|
1799
1802
|
}
|
|
1800
1803
|
else if ("ArrowUp" === e.key) {
|
|
1801
|
-
var i = d.p.indexOf(d.
|
|
1802
|
-
i - 1 >= 0 && (d.
|
|
1804
|
+
var i = d.p.indexOf(d.Hc);
|
|
1805
|
+
i - 1 >= 0 && (d.Hc = d.p[i - 1]), t();
|
|
1803
1806
|
}
|
|
1804
1807
|
else
|
|
1805
|
-
"Enter" === e.key ? l.
|
|
1808
|
+
"Enter" === e.key ? l.Hc ? (e.stopPropagation(), a(l.Hc)) : (e.stopPropagation(), n(), r()) : "Esc" !== e.key && "Escape" !== e.key || (e.stopPropagation(), n(), r()); }), this.Jc = m, this.Kc = h, this.Gc || (this.Gc = this.data[0], this.Gc && (m.value = this.Gc.name)), c.appendChild(m), c.appendChild(u), c.appendChild(f), c.appendChild(h), c; }, d.prototype.Mc = function () { this.q(), this.Gc ? this.Jc.value = this.Gc.name : (this.Jc.value = "", this.Nc(!0)); }, d.prototype.focus = function () { this.Ic = !0, this.Jc.setAttribute("readonly", "readonly"), this.Jc.focus(), this.Mc(); }, d.prototype.q = function () { this.Kc.style.display = "none"; }, d.prototype.Nc = function (e) { if (this.Lc.value = this.selected ? this.selected.id : null, this.Gc ? this.Jc.value = this.Gc.name : this.Jc.value = "", "function" == typeof this.onSelect) {
|
|
1806
1809
|
var t = { control: this, ui: e };
|
|
1807
1810
|
this.onSelect(t);
|
|
1808
1811
|
} };
|
|
1809
|
-
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.
|
|
1812
|
+
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.Oc = null, this.wc = [], e = e || {}; for (var t in e)
|
|
1810
1813
|
this[t] = e[t]; };
|
|
1811
|
-
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.
|
|
1814
|
+
c.prototype.create = function () { var e = this, t = document.createElement("div"); t.className = this.theme + "_main", t.style.position = "relative"; var i = document.createElement("input"); i.type = "hidden", i.name = e.name, i.table = this, t.appendChild(i); var a = document.createElement("div"); a.className = this.theme + "_table"; var n = this.Pc(); a.appendChild(n); var o = e.Qc({}); o.spacer = !0; var r = this.Rc(o); r.classList.add(e.theme + "_spacer"), a.appendChild(r); var s = document.createElement("div"); s.className = e.theme + "_tbody", a.appendChild(s), t.appendChild(a); var l = document.createElement("div"); t.appendChild(l), this.nav.body = s, this.nav.table = a, this.nav.main = t, this.nav.after = l; var d = document.createElement("div"), c = document.createElement("span"); return c.className = this.theme + "_plus", c.addEventListener("click", function (t) { if (!e.disabled) {
|
|
1812
1815
|
var i = e.item.onNewRow, a = {};
|
|
1813
1816
|
if ("function" == typeof i) {
|
|
1814
1817
|
var n = {};
|
|
1815
1818
|
n.result = e.form.serialize(), n.value = {}, i(n), a = n.value;
|
|
1816
1819
|
}
|
|
1817
|
-
var o = e.
|
|
1818
|
-
e.
|
|
1819
|
-
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.
|
|
1820
|
-
throw new Error("Array expected"); this.data = e, this.
|
|
1820
|
+
var o = e.Qc(a);
|
|
1821
|
+
e.wc.push(o), e.Sc(), e.Tc();
|
|
1822
|
+
} }), this.nav.plus = c, d.appendChild(c), t.appendChild(d), t; }, c.prototype.Pc = function () { var e = this, t = document.createElement("div"); return t.classList.add(this.theme + "_row"), t.classList.add(this.theme + "_header"), this.item.columns.forEach(function (i) { var a = document.createElement("div"); a.classList.add(e.theme + "_cell"), a.innerText = i.name, t.appendChild(a); }), t; }, c.prototype.Uc = function () { var e = this.item.max || 0; return !!(e && this.wc.length >= e); }, c.prototype.save = function () { var e = this, t = []; return e.wc.forEach(function (e) { var i = {}; e.cells.forEach(function (e) { i[e.id] = e.value; }), t.push(i); }), t; }, c.prototype.load = function (e) { if ("[object Array]" !== Object.prototype.toString.call(e))
|
|
1823
|
+
throw new Error("Array expected"); this.data = e, this.Vc(), this.Sc(); }, c.prototype.Wc = function () { this.disabled ? this.nav.main.classList.add(this.theme + "_disabled") : this.nav.main.classList.remove(this.theme + "_disabled"), this.Uc() ? this.nav.plus.classList.add(this.theme + "_plus_max") : this.nav.plus.classList.remove(this.theme + "_plus_max"); }, c.prototype.Vc = function () { var e = this; this.wc = [], this.data.forEach(function (t) { var i = e.Qc(t); e.wc.push(i); }); }, c.prototype.Xc = function (e) { var t = this, i = t.wc.indexOf(e); t.wc.splice(i, 1); }, c.prototype.Qc = function (e) { var t = this, i = {}; return i.data = e, i.cells = [], t.item.columns.forEach(function (a) { var n = a.id, o = e[n], r = t.Yc(a); if ("undefined" == typeof o)
|
|
1821
1824
|
if ("text" === r)
|
|
1822
1825
|
o = "";
|
|
1823
1826
|
else if ("number" === r)
|
|
@@ -1825,23 +1828,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1825
1828
|
else if ("select" === r) {
|
|
1826
1829
|
var s = a.options;
|
|
1827
1830
|
o = s && s[0].id;
|
|
1828
|
-
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.
|
|
1829
|
-
var t = e.
|
|
1831
|
+
} var l = {}; l.id = n, l.value = o, l.type = r, l.data = a, i.cells.push(l); }), i; }, c.prototype.Yc = function (e) { var t = e.type; return t || (t = e.options ? "select" : "text"), t; }, c.prototype.Sc = function () { var e = this; if (this.nav.body.innerHTML = "", this.nav.after.innerHTML = "", this.wc.forEach(function (t) { var i = e.Rc(t); e.nav.body.appendChild(i); }), 0 === this.wc.length) {
|
|
1832
|
+
var t = e.Zc();
|
|
1830
1833
|
e.nav.after.appendChild(t);
|
|
1831
|
-
} this.
|
|
1834
|
+
} this.Wc(); }, c.prototype.Zc = function () { var e = document.createElement("div"); return e.className = this.theme + "_empty", e; }, c.prototype.Rc = function (e) { var t = this, i = document.createElement("div"); i.className = t.theme + "_row", e.cells.forEach(function (a) { var n = document.createElement("div"); n.className = t.theme + "_cell"; var o = t.$c(a); if (e.spacer) {
|
|
1832
1835
|
var r = document.createElement("div");
|
|
1833
1836
|
r.style.height = "0px", r.style.overflow = "hidden", r.appendChild(o), n.appendChild(r);
|
|
1834
1837
|
}
|
|
1835
1838
|
else
|
|
1836
|
-
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.
|
|
1839
|
+
n.appendChild(o); i.appendChild(n); }); var a = document.createElement("div"); a.classList.add(t.theme + "_cell"), a.classList.add(t.theme + "_rowaction"); var n = document.createElement("span"); return n.className = this.theme + "_delete", n.addEventListener("click", function (i) { t.disabled || (t.Xc(e), t.Sc(), t.Tc()); }), e.spacer || a.appendChild(n), i.appendChild(a), i; }, c.prototype.Tc = function () { var e = this; if ("function" == typeof e.onInput) {
|
|
1837
1840
|
var t = {};
|
|
1838
1841
|
e.onInput(t);
|
|
1839
|
-
} }, c.prototype
|
|
1842
|
+
} }, c.prototype.$c = function (e) { var t = this, i = e.type; if ("text" === i || "number" === i) {
|
|
1840
1843
|
var a = document.createElement("input");
|
|
1841
|
-
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.
|
|
1844
|
+
return a.type = i, t.disabled && (a.disabled = !0), e.value && (a.value = e.value), a.addEventListener("keyup", function (a) { "number" === i ? e.value = Number(this.value) : e.value = this.value, t.Tc(); }), a;
|
|
1842
1845
|
} if ("select" === i) {
|
|
1843
1846
|
var n = document.createElement("select");
|
|
1844
|
-
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.
|
|
1847
|
+
return t.disabled && (n.disabled = !0), e.data.options.forEach(function (t) { var i = document.createElement("option"); i.innerText = t.name, i.value = t.id, i.Ec = t.id, n.appendChild(i), e.value === t.id && i.setAttribute("selected", !0); }), n.addEventListener("change", function (i) { var a = n.options[n.selectedIndex]; a && "undefined" != typeof a.Ec && (e.value = a.Ec), t.Tc(); }), n;
|
|
1845
1848
|
} throw new Error("Unsupported item type: " + i); }, c.prototype.focus = function () { };
|
|
1846
1849
|
}
|
|
1847
1850
|
}(DayPilot), "undefined" == typeof DayPilot)
|
|
@@ -1850,15 +1853,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1850
1853
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1851
1854
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
1852
1855
|
e.Month = function (i, a) {
|
|
1853
|
-
this.v = "2025.
|
|
1856
|
+
this.v = "2025.2.643-lite", this.nav = {};
|
|
1854
1857
|
var n = this;
|
|
1855
|
-
this.id = i, 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.
|
|
1858
|
+
this.id = i, 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.P = !1, this.V = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void n.fireAfterRenderDetached(e.CallBackData, !0) : (n.events.list = e.Events, "Full" === e.UpdateType && (n.startDate = e.StartDate, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, "undefined" != typeof e.WeekStarts && (n.weekStarts = e.WeekStarts), n.hashes = e.Hashes), n.X(), n._c(), n.ga(), "Full" === e.UpdateType && (n.ad(), n.bd()), n.la(), n.show(), n.ma(), void n.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { n.afterRender && n.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
|
|
1856
1859
|
t = e.data;
|
|
1857
1860
|
else {
|
|
1858
1861
|
if ("object" != typeof e)
|
|
1859
1862
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
1860
1863
|
t = e;
|
|
1861
|
-
} n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.
|
|
1864
|
+
} n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.ua.notify(); }, this.events.find = function (e) { if (!n.events.list)
|
|
1862
1865
|
return null; if ("function" == typeof e) {
|
|
1863
1866
|
for (var t = e, i = 0; i < n.events.list.length; i++) {
|
|
1864
1867
|
var a = new DayPilot.Event(n.events.list[i], n);
|
|
@@ -1878,7 +1881,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1878
1881
|
var i = DayPilot.indexOf(n.events.list, t.data);
|
|
1879
1882
|
n.events.list.splice(i, 1, e);
|
|
1880
1883
|
}
|
|
1881
|
-
} n.update(), n.
|
|
1884
|
+
} n.update(), n.ua.notify(); }, this.events.remove = function (e) { var t; if (e instanceof DayPilot.Event)
|
|
1882
1885
|
t = e.data;
|
|
1883
1886
|
else if ("object" == typeof e) {
|
|
1884
1887
|
var i = n.events.find(e.id);
|
|
@@ -1887,7 +1890,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1887
1890
|
else if ("string" == typeof e || "number" == typeof e) {
|
|
1888
1891
|
var i = n.events.find(e);
|
|
1889
1892
|
i && (t = i.data);
|
|
1890
|
-
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.update(), n.
|
|
1893
|
+
} var a = DayPilot.indexOf(n.events.list, t); n.events.list.splice(a, 1), n.update(), n.ua.notify(); }, this.events.load = function (e, t, i) { var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) { var i, o = e.request; try {
|
|
1891
1894
|
i = JSON.parse(o.responseText);
|
|
1892
1895
|
}
|
|
1893
1896
|
catch (e) {
|
|
@@ -1897,21 +1900,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1897
1900
|
var s = {};
|
|
1898
1901
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1899
1902
|
return;
|
|
1900
|
-
n.events.list = i, n.
|
|
1903
|
+
n.events.list = i, n.Ia && n.update();
|
|
1901
1904
|
} }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
1902
1905
|
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": e, "success": o, "error": a });
|
|
1903
1906
|
else {
|
|
1904
1907
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1905
1908
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1906
|
-
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.
|
|
1907
|
-
if (n.
|
|
1909
|
+
} }, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.xb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) { if (n.qb(e), this.Ia) {
|
|
1910
|
+
if (n.P)
|
|
1908
1911
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
1909
1912
|
if (this.cells) {
|
|
1910
|
-
n.
|
|
1913
|
+
n.X(), n._c(), n.ga(), n.ad(), n.bd(), n.la(), n.t(), n.ma(), this.visible ? this.show() : this.hide();
|
|
1911
1914
|
}
|
|
1912
|
-
} }, this.
|
|
1915
|
+
} }, this.sb = null, this.qb = function (e) { if (e) {
|
|
1913
1916
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
|
|
1914
|
-
this.
|
|
1917
|
+
this.sb = t;
|
|
1915
1918
|
for (var i in e)
|
|
1916
1919
|
if (t[i]) {
|
|
1917
1920
|
var a = t[i];
|
|
@@ -1919,19 +1922,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1919
1922
|
}
|
|
1920
1923
|
else
|
|
1921
1924
|
n[i] = e[i];
|
|
1922
|
-
} }, this.
|
|
1925
|
+
} }, this.tb = function () { var e = this.sb; for (var t in e) {
|
|
1923
1926
|
var i = e[t];
|
|
1924
1927
|
i.postInit && i.postInit();
|
|
1925
|
-
} }, this.
|
|
1928
|
+
} }, this.vb = {}, this.vb.events = [], this.wb = function (e) { var t = this.vb.events, i = this.events.list[e], a = {}; for (var o in i)
|
|
1926
1929
|
a[o] = i[o]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1927
1930
|
var r = {};
|
|
1928
1931
|
r.control = n, r.data = a, this.onBeforeEventRender(r);
|
|
1929
|
-
} t[e] = a; }, this.
|
|
1932
|
+
} t[e] = a; }, this.ga = function () { var e = this.events.list; if (e) {
|
|
1930
1933
|
if (!DayPilot.isArray(e))
|
|
1931
1934
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
1932
1935
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1933
1936
|
for (var t = 0; t < e.length; t++)
|
|
1934
|
-
this.
|
|
1937
|
+
this.wb(t);
|
|
1935
1938
|
for (var i = 0; i < e.length; i++) {
|
|
1936
1939
|
var a = e[i];
|
|
1937
1940
|
if ("object" != typeof a)
|
|
@@ -1944,48 +1947,58 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1944
1947
|
if (!(n.getTime() > o.getTime()))
|
|
1945
1948
|
for (var t = 0; t < this.rows.length; t++) {
|
|
1946
1949
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
1947
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
1950
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.vb.events[i]));
|
|
1948
1951
|
}
|
|
1949
1952
|
}
|
|
1950
1953
|
for (var l = 0; l < this.rows.length; l++) {
|
|
1951
1954
|
var r = this.rows[l];
|
|
1952
|
-
r.events.sort(this.
|
|
1955
|
+
r.events.sort(this.xb);
|
|
1953
1956
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
1954
1957
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
1955
1958
|
r.putIntoLine(c, u, h, l);
|
|
1956
1959
|
}
|
|
1957
1960
|
}
|
|
1958
|
-
} }, this.
|
|
1961
|
+
} }, this.X = function () { for (var e = 0; e < this.elements.events.length; e++) {
|
|
1959
1962
|
var t = this.elements.events[e];
|
|
1960
|
-
n.
|
|
1961
|
-
} this.elements.events = []; }, this.
|
|
1962
|
-
var a = i && i.
|
|
1963
|
+
n.La(t);
|
|
1964
|
+
} this.elements.events = []; }, this.La = function (e) { !function () { var i = e.domArgs; if (e.domArgs = null, i && "function" == typeof n.onBeforeEventDomRemove && n.onBeforeEventDomRemove(i), i && "function" == typeof n.onBeforeEventDomAdd) {
|
|
1965
|
+
var a = i && i.Ma;
|
|
1963
1966
|
if (a) {
|
|
1964
|
-
n.
|
|
1967
|
+
n.Oa.Na && t(i.element) && (n.Oa.Pa = !0, n.Oa.Qa(a), n.Oa.Pa = !1);
|
|
1965
1968
|
}
|
|
1966
|
-
} }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.
|
|
1969
|
+
} }(), e.event = null, e.click = null, e.parentNode.removeChild(e); }, this.ma = function () { this.cd(); }, this.cd = function () { this.elements.events = []; for (var e = 0; e < this.rows.length; e++)
|
|
1967
1970
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
1968
1971
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
1969
|
-
this.
|
|
1970
|
-
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, a, o, r, s) {
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1972
|
+
this.Ra(a[n]); }, this.xb = function (e, t) { if (!(e && t && e.start && t.start))
|
|
1973
|
+
return 0; var i = e.start().getTime() - t.start().getTime(); return 0 !== i ? i : t.end().getTime() - e.end().getTime(); }, this.drawShadow = function (t, i, a, o, r, s) {
|
|
1974
|
+
r || (r = 0);
|
|
1975
|
+
var l = o;
|
|
1976
|
+
this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: t, y: i }, this.shadow.width = o;
|
|
1977
|
+
var d = 7 * i + t - r;
|
|
1978
|
+
d < 0 && (l += d, t = 0, i = 0);
|
|
1979
|
+
for (var c = r; c >= 7;)
|
|
1980
|
+
i--, c -= 7;
|
|
1981
|
+
if (c > t) {
|
|
1982
|
+
c > t + (7 - this.getColCount()) ? (i--, t = t + 7 - c) : (l = l - c + t, t = 0);
|
|
1983
|
+
}
|
|
1984
|
+
else
|
|
1985
|
+
t -= c;
|
|
1986
|
+
i < 0 && (i = 0, t = 0);
|
|
1987
|
+
var u = null;
|
|
1988
|
+
e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u;
|
|
1989
|
+
var h = n.eventBorderRadius;
|
|
1990
|
+
for ("number" == typeof h && (h += "px"); l > 0 && i < this.rows.length;) {
|
|
1991
|
+
var f = Math.min(this.getColCount() - t, l), m = this.rows[i], p = this.getRowTop(i), v = m.getHeight(), y = document.createElement("div");
|
|
1992
|
+
y.setAttribute("unselectable", "on"), y.style.position = "absolute", y.style.left = this.getCellWidth() * t + "%", y.style.width = this.getCellWidth() * f + "%", y.style.top = p + "px", y.style.height = v + "px", y.style.cursor = u, y.classList.add(n.K("_shadow"));
|
|
1993
|
+
var g = document.createElement("div");
|
|
1994
|
+
g.setAttribute("unselectable", "on"), y.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.classList.add(n.K("_shadow_inner")), h && (l === o && (y.style.borderTopLeftRadius = h, y.style.borderBottomLeftRadius = h, g.style.borderTopLeftRadius = h, g.style.borderBottomLeftRadius = h), l <= f && (y.style.borderTopRightRadius = h, y.style.borderBottomRightRadius = h, g.style.borderTopRightRadius = h, g.style.borderBottomRightRadius = h)), this.nav.top.appendChild(y), this.shadow.list.push(y), l -= f + 7 - this.getColCount(), t = 0, i++;
|
|
1995
|
+
}
|
|
1996
|
+
}, this.clearShadow = function () { if (this.shadow) {
|
|
1981
1997
|
for (var e = 0; e < this.shadow.list.length; e++)
|
|
1982
1998
|
this.nav.top.removeChild(this.shadow.list[e]);
|
|
1983
1999
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1984
|
-
} }, this.getEventTop = function (e, t) {
|
|
1985
|
-
|
|
1986
|
-
i += this.rows[a].getHeight();
|
|
1987
|
-
return i += this.cellHeaderHeight, i += t * this.lineHeight();
|
|
1988
|
-
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.La = function (i) { var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius; "number" == typeof o && (o += "px"); var r = i.part.row, s = i.part.line, l = i.part.colStart, d = i.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(r, s), f = document.createElement("div"); f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.sa, f.oncontextmenu = n.Yc, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
|
|
2000
|
+
} }, this.getEventTop = function (e, t) { for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
2001
|
+
i += this.rows[a].getHeight(); return i += this.cellHeaderHeight, i += t * this.lineHeight(); }, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ra = function (i) { var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius; "number" == typeof o && (o += "px"); var r = i.part.row, s = i.part.line, l = i.part.colStart, d = i.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(r, s), f = document.createElement("div"); f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.ta, f.oncontextmenu = n.dd, f.onmousedown = function (t) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
|
|
1989
2002
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
1990
2003
|
var o = {};
|
|
1991
2004
|
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, o.direction = this.style.cursor, e.resizingEvent = o;
|
|
@@ -2013,25 +2026,25 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2013
2026
|
v.setAttribute("unselectable", "on"), v.className = this.K("_event_bar_inner"), v.style.top = "0%", v.style.height = "100%", a.barColor && (v.style.backgroundColor = a.barColor), p.appendChild(v), f.appendChild(p);
|
|
2014
2027
|
} if (i.client.deleteEnabled()) {
|
|
2015
2028
|
var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
|
|
2016
|
-
g.style.position = "absolute", g.style.right = "2px", g.style.top = y + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.K("_event_delete"), g.onmousedown = function (e) { e.stopPropagation(); }, g.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.
|
|
2029
|
+
g.style.position = "absolute", g.style.right = "2px", g.style.top = y + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.K("_event_delete"), g.onmousedown = function (e) { e.stopPropagation(); }, g.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.wa(t); }, g.style.display = "none", f.deleteIcon = g, f.appendChild(g);
|
|
2017
2030
|
} var b = a.areas ? DayPilot.Areas.copy(a.areas) : []; if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
|
|
2018
2031
|
var D = {};
|
|
2019
2032
|
D.e = f.event, D.div = f, n.onAfterEventRender(D);
|
|
2020
2033
|
} !function () { var e = {}; if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
|
|
2021
2034
|
var a = m;
|
|
2022
2035
|
if (a) {
|
|
2023
|
-
e.
|
|
2036
|
+
e.Ma = a;
|
|
2024
2037
|
if (t(e.element)) {
|
|
2025
|
-
if (!n.
|
|
2038
|
+
if (!n.Oa.Na)
|
|
2026
2039
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
2027
|
-
n.
|
|
2040
|
+
n.Oa.Pa = !0, n.Oa.Sa(e.element, a, { "style": { "flexGrow": 1 } }), n.Oa.Pa = !1;
|
|
2028
2041
|
}
|
|
2029
2042
|
else
|
|
2030
2043
|
a.appendChild(e.element);
|
|
2031
2044
|
}
|
|
2032
2045
|
}
|
|
2033
2046
|
else
|
|
2034
|
-
m.innerHTML = i.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.
|
|
2047
|
+
m.innerHTML = i.client.innerHTML(); }(), this.elements.events.push(f), this.nav.events.appendChild(f); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this._c = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1; e = Math.ceil(i / 7), this.days = 7 * e, this.rows = []; for (var a = 0; a < e; a++) {
|
|
2035
2048
|
var o = {};
|
|
2036
2049
|
o.start = this.firstDate.addDays(7 * a), o.end = o.start.addDays(this.getColCount()), o.events = [], o.lines = [], o.index = a, o.minHeight = this.cellHeight, o.calendar = this, o.belongsHere = function (e) { return e.end().getTime() === e.start().getTime() && e.start().getTime() === this.start.getTime() || !(e.end().getTime() <= this.start.getTime() || e.start().getTime() >= this.end.getTime()); }, o.getPartStart = function (e) { return DayPilot.DateUtil.max(this.start, e.start()); }, o.getPartEnd = function (e) { return DayPilot.DateUtil.min(this.end, e.end()); }, o.getStartColumn = function (e) { var t = this.getPartStart(e); return DayPilot.DateUtil.daysDiff(this.start, t); }, o.getWidth = function (e) { return DayPilot.DateUtil.daysSpan(this.getPartStart(e), this.getPartEnd(e)) + 1; }, o.putIntoLine = function (e, t, i, a) { for (var n = this, o = 0; o < this.lines.length; o++) {
|
|
2037
2050
|
var r = this.lines[o];
|
|
@@ -2041,7 +2054,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2041
2054
|
e + t - 1 < this[a].part.colStart || e > this[a].part.colStart + this[a].part.colWidth - 1 || (i = !1); return i; }, r.addEvent = function (e, t, i, a, o) { e.part.colStart = t, e.part.colWidth = i, e.part.row = a, e.part.line = o, e.part.startsHere = n.start.getTime() <= e.start().getTime(), e.part.endsHere = n.end.getTime() >= e.end().getTime(), this.push(e); }, r.addEvent(e, t, i, a, this.lines.length), this.lines.push(r), this.lines.length - 1; }, o.getStart = function () { for (var e = 0, t = 0; t < n.rows.length && t < this.index; t++)
|
|
2042
2055
|
e += n.rows[t].getHeight(); }, o.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight + n.cellMarginBottom, this.calendar.cellHeight); }, this.rows.push(o);
|
|
2043
2056
|
} this.endDate = this.firstDate.addDays(7 * e); }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () { for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
2044
|
-
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.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
2057
|
+
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.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ua = 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.K("_main"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), t.appendChild(i); var a = document.createElement("div"); this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), t.appendChild(a), t.onmousemove = function (t) { if (e.resizingEvent) {
|
|
2045
2058
|
var i = DayPilot.mo3(n.nav.top, t);
|
|
2046
2059
|
if (!i)
|
|
2047
2060
|
return;
|
|
@@ -2084,7 +2097,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2084
2097
|
o < 1 && (o = 1);
|
|
2085
2098
|
var v = m < p ? r : a;
|
|
2086
2099
|
e.timeRangeSelecting.from = { x: v.x, y: v.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, n.drawShadow(v.x, v.y, 0, o, 0, null);
|
|
2087
|
-
} }; }, this.
|
|
2100
|
+
} }; }, this.la = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var e = 0; e < this.cells.length; e++)
|
|
2088
2101
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
2089
2102
|
this.cells[e][t].style.top = this.getRowTop(t) + "px", this.cells[e][t].style.height = this.rows[t].getHeight() + "px"; }, this.getCellBelowPoint = function (e, t) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), a = Math.min(Math.floor(e / i), this.getColCount() - 1), n = null, o = this.headerHeight, r = 0, s = 0; s < this.rows.length; s++) {
|
|
2090
2103
|
var l = o;
|
|
@@ -2093,7 +2106,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2093
2106
|
break;
|
|
2094
2107
|
}
|
|
2095
2108
|
} null === n && (n = this.rows.length - 1); var d = {}; return d.x = a, d.y = n, d.relativeY = r, d; }, this.getCellFromDate = function (e) { for (var t = DayPilot.DateUtil.daysDiff(this.firstDate, e), i = { x: 0, y: 0 }; t >= 7;)
|
|
2096
|
-
i.y++, t -= 7; return i.x = t, i; }, this.
|
|
2109
|
+
i.y++, t -= 7; return i.x = t, i; }, this.bd = 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++) {
|
|
2097
2110
|
this.cells[t] = [];
|
|
2098
2111
|
var i = document.createElement("div");
|
|
2099
2112
|
i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * t + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
|
|
@@ -2102,21 +2115,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2102
2115
|
var n = document.createElement("div");
|
|
2103
2116
|
n.setAttribute("unselectable", "on"), n.innerHTML = o.locale().dayNames[a], i.appendChild(n), n.style.position = "absolute", n.style.top = "0px", n.style.bottom = "0px", n.style.left = "0px", n.style.right = "0px", n.className = this.K("_header_inner"), n.innerHTML = o.locale().dayNames[a], e.appendChild(i);
|
|
2104
2117
|
for (var r = 0; r < this.rows.length; r++)
|
|
2105
|
-
this.
|
|
2106
|
-
} }, this.
|
|
2118
|
+
this.ed(t, r, e);
|
|
2119
|
+
} }, this.ad = function () { for (var e = 0; e < this.cells.length; e++)
|
|
2107
2120
|
for (var t = 0; t < this.cells[e].length; t++) {
|
|
2108
2121
|
var i = n.cells[e][t];
|
|
2109
|
-
n.
|
|
2110
|
-
} this.nav.cells.innerHTML = ""; }, this.
|
|
2111
|
-
var a = i && i.
|
|
2122
|
+
n.db(i);
|
|
2123
|
+
} this.nav.cells.innerHTML = ""; }, this.db = function (e) { !function () { var i = e.domArgs; if (e.domArgs = null, i && "function" == typeof n.onBeforeCellDomRemove && n.onBeforeCellDomRemove(i), i && "function" == typeof n.onBeforeCellDomAdd) {
|
|
2124
|
+
var a = i && i.Ma;
|
|
2112
2125
|
if (a) {
|
|
2113
|
-
var o = n
|
|
2114
|
-
o ? n
|
|
2126
|
+
var o = n.fd.reactDOM && isReactCmp(i.element), r = n.Oa.Na && (isVueCmp(i.element) || t(i.element));
|
|
2127
|
+
o ? n.fd.gd(a) : r && (n.Oa.Pa = !0, n.Oa.Qa(a), n.Oa.Pa = !1);
|
|
2115
2128
|
}
|
|
2116
|
-
} }(), e.onclick = null; }, this.
|
|
2129
|
+
} }(), e.onclick = null; }, this.sa = function () { return 2 === n.api; }, this.ed = function (i, a, r) { var s = this.rows[a], l = this.firstDate.addDays(7 * a + i), d = l.getDay(), c = null; c = 1 === d ? o.locale().monthNames[l.getMonth()] + " " + d : "" + d; var u = !n.isWeekend(l), h = { "start": l, "end": l.addDays(1), "properties": { "headerHtml": c, "backColor": null, "business": u, "html": null } }, f = {}; f.control = n, f.cell = h, "function" == typeof n.onBeforeCellRender && n.onBeforeCellRender(f); var m = 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() * i + "%", p.style.width = this.getCellWidth() + "%", p.style.top = this.getRowTop(a) + "px", p.style.height = s.getHeight() + "px", p.className = this.K("_cell"), m.business) {
|
|
2117
2130
|
var u = this.K("_cell_business");
|
|
2118
2131
|
DayPilot.Util.addClass(p, u);
|
|
2119
|
-
} var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); v.setAttribute("unselectable", "on"), p.appendChild(v), v.style.position = "absolute", v.style.left = "0px", v.style.right = "0px", v.style.top = "0px", v.style.bottom = "0px", v.className = this.K("_cell_inner"), m.backColor && (v.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), e.timeRangeSelecting = { "root": n, "x": i, "y": a, "from": { x: i, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.
|
|
2132
|
+
} var v = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); v.setAttribute("unselectable", "on"), p.appendChild(v), v.style.position = "absolute", v.style.left = "0px", v.style.right = "0px", v.style.top = "0px", v.style.bottom = "0px", v.className = this.K("_cell_inner"), m.backColor && (v.style.backgroundColor = f.cell.properties.backColor), p.onmousedown = function (t) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), e.timeRangeSelecting = { "root": n, "x": i, "y": a, "from": { x: i, y: a }, "width": 1 }); }, p.onclick = function () { var e = function (e) { var t = new DayPilot.Date(e), i = t.addDays(1); n.N(t, i); }; if ("Disabled" !== n.timeRangeSelectedHandling)
|
|
2120
2133
|
return void e(l); }; var y = document.createElement("div"); if (y.setAttribute("unselectable", "on"), y.style.height = this.cellHeaderHeight + "px", y.className = this.K("_cell_header"), y.onclick = function (e) { if ("Enabled" === n.cellHeaderClickHandling) {
|
|
2121
2134
|
e.stopPropagation();
|
|
2122
2135
|
var t = {};
|
|
@@ -2129,11 +2142,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2129
2142
|
if (e.control = n, e.cell = h, e.element = null, p.domArgs = e, "function" == typeof n.onBeforeCellDomAdd && n.onBeforeCellDomAdd(e), e.element) {
|
|
2130
2143
|
var i = v;
|
|
2131
2144
|
if (i) {
|
|
2132
|
-
e.
|
|
2145
|
+
e.Ma = i;
|
|
2133
2146
|
if (t(e.element)) {
|
|
2134
|
-
if (!n.
|
|
2147
|
+
if (!n.Oa.Na)
|
|
2135
2148
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
2136
|
-
n.
|
|
2149
|
+
n.Oa.Pa = !0, n.Oa.Sa(e.element, i), n.Oa.Pa = !1;
|
|
2137
2150
|
}
|
|
2138
2151
|
else
|
|
2139
2152
|
i.appendChild(e.element);
|
|
@@ -2143,10 +2156,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2143
2156
|
var e = o.locale();
|
|
2144
2157
|
return e ? e.weekStarts : 0;
|
|
2145
2158
|
} return n.weekStarts || 0; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (e) { for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
2146
|
-
t += this.rows[i].getHeight(); return t; }, this.
|
|
2147
|
-
if (n.
|
|
2159
|
+
t += this.rows[i].getHeight(); return t; }, this.T = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.U, n, this.ajaxError); }, this.U = function (e) { n.V(e.responseText); }, this.S = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = n.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.T("EventClick", t, e); }, this.ta = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), n.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) { var i = e.event; if (i && i.client.clickEnabled())
|
|
2160
|
+
if (n.sa()) {
|
|
2148
2161
|
var a = {};
|
|
2149
|
-
if (a.e = i, a.control = n, a.div = e, a.originalEvent = t, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.
|
|
2162
|
+
if (a.e = i, a.control = n, a.div = e, a.originalEvent = t, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.ua.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
2150
2163
|
return;
|
|
2151
2164
|
switch (n.eventClickHandling) {
|
|
2152
2165
|
case "CallBack":
|
|
@@ -2156,7 +2169,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2156
2169
|
var o = i.client.contextMenu();
|
|
2157
2170
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
2158
2171
|
}
|
|
2159
|
-
"function" == typeof n.onEventClicked && n.
|
|
2172
|
+
"function" == typeof n.onEventClicked && n.ua.apply(function () { n.onEventClicked(a); });
|
|
2160
2173
|
}
|
|
2161
2174
|
else
|
|
2162
2175
|
switch (n.eventClickHandling) {
|
|
@@ -2164,7 +2177,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2164
2177
|
n.eventClickCallBack(i);
|
|
2165
2178
|
break;
|
|
2166
2179
|
case "JavaScript": n.onEventClick(i);
|
|
2167
|
-
} }, this.
|
|
2180
|
+
} }, this.dd = function () { var e = this; return n.va(e.event), !1; }, this.va = function (e) { if (this.event = e, !e.client.rightClickEnabled())
|
|
2168
2181
|
return !1; var t = {}; if (t.e = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof n.onEventRightClick || (n.onEventRightClick(t), !t.preventDefault.value)) {
|
|
2169
2182
|
switch (n.eventRightClickHandling) {
|
|
2170
2183
|
case "ContextMenu":
|
|
@@ -2172,9 +2185,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2172
2185
|
i ? i.show(e) : n.contextMenu && n.contextMenu.show(this.event);
|
|
2173
2186
|
}
|
|
2174
2187
|
return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(t), !1;
|
|
2175
|
-
} }, this.
|
|
2188
|
+
} }, this.wa = function (e) { if (n.sa()) {
|
|
2176
2189
|
var t = {};
|
|
2177
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
2190
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.ua.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
2178
2191
|
return;
|
|
2179
2192
|
switch (n.eventDeleteHandling) {
|
|
2180
2193
|
case "CallBack":
|
|
@@ -2185,7 +2198,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2185
2198
|
break;
|
|
2186
2199
|
case "Update": n.events.remove(e);
|
|
2187
2200
|
}
|
|
2188
|
-
"function" == typeof n.onEventDeleted && n.
|
|
2201
|
+
"function" == typeof n.onEventDeleted && n.ua.apply(function () { n.onEventDeleted(t); });
|
|
2189
2202
|
}
|
|
2190
2203
|
else
|
|
2191
2204
|
switch (n.eventDeleteHandling) {
|
|
@@ -2196,11 +2209,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2196
2209
|
n.eventDeleteCallBack(e);
|
|
2197
2210
|
break;
|
|
2198
2211
|
case "JavaScript": n.onEventDelete(e);
|
|
2199
|
-
} }, this.eventDeleteCallBack = function (e, t) { this.
|
|
2212
|
+
} }, this.eventDeleteCallBack = function (e, t) { this.T("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventMoveCallBack = function (e, t, i, a, n) { if (!t)
|
|
2200
2213
|
throw "newStart is null"; if (!i)
|
|
2201
|
-
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.
|
|
2214
|
+
throw "newEnd is null"; var o = {}; o.e = e, o.newStart = t, o.newEnd = i, o.position = n, this.T("EventMove", a, o); }, this.L = function (e, t, i, a, o, r) { var s = e.start().getTimePart(), l = e.end().getDatePart(); l.getTime() !== e.end().getTime() && (l = l.addDays(1)); var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i); c = c.addDays(-a); var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d); if (n.sa()) {
|
|
2202
2215
|
var p = {};
|
|
2203
|
-
if (p.e = e, p.control = n, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.
|
|
2216
|
+
if (p.e = e, p.control = n, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.ua.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
|
|
2204
2217
|
return;
|
|
2205
2218
|
switch (n.eventMoveHandling) {
|
|
2206
2219
|
case "CallBack":
|
|
@@ -2208,7 +2221,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2208
2221
|
break;
|
|
2209
2222
|
case "Update": e.start(f), e.end(m), n.events.update(e);
|
|
2210
2223
|
}
|
|
2211
|
-
"function" == typeof n.onEventMoved && n.
|
|
2224
|
+
"function" == typeof n.onEventMoved && n.ua.apply(function () { n.onEventMoved(p); });
|
|
2212
2225
|
}
|
|
2213
2226
|
else
|
|
2214
2227
|
switch (n.eventMoveHandling) {
|
|
@@ -2218,9 +2231,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2218
2231
|
case "JavaScript": n.onEventMove(e, f, m);
|
|
2219
2232
|
} }, this.eventResizeCallBack = function (e, t, i, a) { if (!t)
|
|
2220
2233
|
throw "newStart is null"; if (!i)
|
|
2221
|
-
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.
|
|
2234
|
+
throw "newEnd is null"; var n = {}; n.e = e, n.newStart = t, n.newEnd = i, this.T("EventResize", a, n); }, this.J = function (e, t, i) { var a = e.start().getTimePart(), o = e.end().getDatePart(); o.getTime() !== e.end().getTime() && (o = o.addDays(1)); var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(a), c = l.addTime(r); if (n.sa()) {
|
|
2222
2235
|
var u = {};
|
|
2223
|
-
if (u.e = e, u.control = n, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.
|
|
2236
|
+
if (u.e = e, u.control = n, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.ua.apply(function () { n.onEventResize(u); }), u.preventDefault.value))
|
|
2224
2237
|
return;
|
|
2225
2238
|
switch (n.eventResizeHandling) {
|
|
2226
2239
|
case "CallBack":
|
|
@@ -2228,7 +2241,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2228
2241
|
break;
|
|
2229
2242
|
case "Update": e.start(d), e.end(c), n.events.update(e);
|
|
2230
2243
|
}
|
|
2231
|
-
"function" == typeof n.onEventResized && n.
|
|
2244
|
+
"function" == typeof n.onEventResized && n.ua.apply(function () { n.onEventResized(u); });
|
|
2232
2245
|
}
|
|
2233
2246
|
else
|
|
2234
2247
|
switch (n.eventResizeHandling) {
|
|
@@ -2236,14 +2249,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2236
2249
|
n.eventResizeCallBack(e, d, c);
|
|
2237
2250
|
break;
|
|
2238
2251
|
case "JavaScript": n.onEventResize(e, d, c);
|
|
2239
|
-
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.
|
|
2252
|
+
} }, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.T("TimeRangeSelected", i, a); }, this.N = function (e, t) { if (this.sa()) {
|
|
2240
2253
|
var i = {};
|
|
2241
|
-
if (i.control = n, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.
|
|
2254
|
+
if (i.control = n, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.ua.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
2242
2255
|
return;
|
|
2243
2256
|
switch (n.timeRangeSelectedHandling) {
|
|
2244
2257
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
2245
2258
|
}
|
|
2246
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
2259
|
+
"function" == typeof n.onTimeRangeSelected && n.ua.apply(function () { n.onTimeRangeSelected(i); });
|
|
2247
2260
|
}
|
|
2248
2261
|
else
|
|
2249
2262
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -2251,22 +2264,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2251
2264
|
n.timeRangeSelectedCallBack(e, t);
|
|
2252
2265
|
break;
|
|
2253
2266
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
2254
|
-
} }, this.
|
|
2255
|
-
var o = this.
|
|
2256
|
-
this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = n; e.
|
|
2267
|
+
} }, this.ua = {}, this.ua.scope = null, this.ua.notify = function () { n.ua.scope && n.ua.scope["$apply"](); }, this.ua.apply = function (e) { e(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.T("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.ba = {}, this.ba.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.ba.ca = function () { return "Disabled" !== n.xssProtection; };
|
|
2268
|
+
var o = this.ba;
|
|
2269
|
+
this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = n; e.P || (e.P = !0, e.ad(), e.X(), 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.P; }, this.nb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.ub = function () { if (this.id && this.id.tagName)
|
|
2257
2270
|
this.nav.top = this.id;
|
|
2258
2271
|
else {
|
|
2259
2272
|
if ("string" != typeof this.id)
|
|
2260
2273
|
throw "DayPilot.Month() constructor requires the target element or its ID as a parameter";
|
|
2261
2274
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2262
2275
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2263
|
-
} }, this.
|
|
2276
|
+
} }, this.Db = function () { this._c(), this.Ua(), this.bd(), this.nb(), this.T("Init"); }, this.Ya = function (e, t) { return n.ba.ca() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) { var a = n.Oa.Na; if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
2264
2277
|
var o = a.createVNode(e, i);
|
|
2265
2278
|
a.render(o, t);
|
|
2266
|
-
} }, this.
|
|
2279
|
+
} }, this.Oa.Sa = function (e, t, i) { var a = n.Oa.Na; if ("function" == typeof a.render) {
|
|
2267
2280
|
var o = e;
|
|
2268
2281
|
DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
|
|
2269
|
-
} }, this.
|
|
2282
|
+
} }, this.Oa.Qa = function (e) { var t = n.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.qb, this.internal.xssTextHtml = n.Ya, this.internal.enableVue = function (e) { n.Oa.Na = e; }, this.internal.vueRef = function () { return n.Oa.Na; }, this.internal.vueRendering = function () { return n.Oa.Pa; }, this.init = function () { return this.ub(), this.loadFromServer() ? void this.Db() : (this._c(), this.ga(), this.Ua(), this.bd(), this.t(), this.ma(), this.nb(), this.fireAfterRenderDetached(null, !1), this.Ia = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.qb(a);
|
|
2270
2283
|
}, e.gMouseUp = function (t) { if (e.movingEvent) {
|
|
2271
2284
|
var i = e.movingEvent;
|
|
2272
2285
|
if (!i.event)
|
|
@@ -2296,7 +2309,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2296
2309
|
} if (e.timeRangeSelecting) {
|
|
2297
2310
|
if (e.timeRangeSelecting.moved) {
|
|
2298
2311
|
var d = e.timeRangeSelecting, a = d.root, o = new DayPilot.Date(a.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
|
|
2299
|
-
a.
|
|
2312
|
+
a.N(o, c), a.clearShadow();
|
|
2300
2313
|
}
|
|
2301
2314
|
e.timeRangeSelecting = null;
|
|
2302
2315
|
} }, DayPilot.Month = e.Month, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotMonth = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
@@ -2305,7 +2318,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2305
2318
|
for (name in e)
|
|
2306
2319
|
i[name] = e[name];
|
|
2307
2320
|
i.Init(), t || (t = i);
|
|
2308
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.
|
|
2321
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotMonth", ["$parse", function (e) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) { var n = new DayPilot.Month(i[0]); n.ua.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2309
2322
|
(0, e(r).assign)(t, n);
|
|
2310
2323
|
} for (var s in a)
|
|
2311
2324
|
0 === s.indexOf("on") && !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s); var l = t["$watch"], d = a["config"] || a["daypilotConfig"], c = a["events"] || a["daypilotEvents"]; l.call(t, d, function (e) { for (var t in e)
|
|
@@ -2318,21 +2331,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2318
2331
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
2319
2332
|
var e = DayPilot.Util.isVueVNode;
|
|
2320
2333
|
DayPilot.Navigator = function (t, i) {
|
|
2321
|
-
this.v = "2025.
|
|
2334
|
+
this.v = "2025.2.643-lite";
|
|
2322
2335
|
var a = this;
|
|
2323
|
-
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.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.
|
|
2324
|
-
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.
|
|
2336
|
+
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.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.vb = {}, this.hd = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.jd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.kd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.jd() || (this.root.style.width = 7 * r.cellWidth() + this.kd() + "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 = a.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.sa = function () { return 2 === a.api; }, this.ad = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.ld = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.md = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.nd = function () { if (!r.jd())
|
|
2337
|
+
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.od = function () { return r.jd() ? null : r.cellWidth(); }, this.pd = function (e) { return "number" != typeof e && (e = 1), r.jd() ? this.nd() * e : this.od() * e; }, this.qd = function (e) { var t = r.jd() ? "%" : "px"; return this.pd(e) + t; }, this.bd = function (t, i) {
|
|
2325
2338
|
var n = {};
|
|
2326
2339
|
n.cells = [], n.days = [], n.weeks = [];
|
|
2327
2340
|
var o = this.startDate.addMonths(t), s = i.before, l = i.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;
|
|
2328
2341
|
n.rowCount = f;
|
|
2329
|
-
var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.
|
|
2342
|
+
var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.kd();
|
|
2330
2343
|
n.width = p;
|
|
2331
2344
|
var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
|
|
2332
2345
|
n.height = v;
|
|
2333
2346
|
var y = document.createElement("div");
|
|
2334
|
-
if (r.
|
|
2335
|
-
y.style.position = "absolute", r.
|
|
2347
|
+
if (r.jd() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
|
|
2348
|
+
y.style.position = "absolute", r.jd() ? (y.style.left = 100 / a.showMonths * t + "%", n.leftPct = 100 / a.showMonths * t) : y.style.left = p * t + "px", y.style.top = "0px", n.top = 0, n.left = p * t;
|
|
2336
2349
|
else {
|
|
2337
2350
|
y.style.position = "relative";
|
|
2338
2351
|
var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
|
|
@@ -2340,12 +2353,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2340
2353
|
}
|
|
2341
2354
|
y.className = this.K("_month"), y.style.cursor = "default", y.style.MozUserSelect = "none", y.style.KhtmlUserSelect = "none", y.style.WebkitUserSelect = "none", y.month = n, n.div = y, this.root.appendChild(y);
|
|
2342
2355
|
var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
|
|
2343
|
-
D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.
|
|
2344
|
-
var w = document.createElement("div");
|
|
2345
|
-
w.style.position = "absolute", w.style.left = a.jd(), w.style.top = "0px", w.style.width = a.jd(a.showWeekNumbers ? 6 : 5), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_title"), w.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(w), this.ti = w;
|
|
2356
|
+
D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.qd(), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_titleleft"), i.left && (D.style.cursor = "pointer", D.innerHTML = "<span><</span>", D.onclick = this.rd), y.appendChild(D), this.tl = D;
|
|
2346
2357
|
var x = document.createElement("div");
|
|
2347
|
-
x.style.position = "absolute", x.style.left = a.
|
|
2348
|
-
var
|
|
2358
|
+
x.style.position = "absolute", x.style.left = a.qd(), x.style.top = "0px", x.style.width = a.qd(a.showWeekNumbers ? 6 : 5), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_title"), x.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(x), this.ti = x;
|
|
2359
|
+
var w = document.createElement("div");
|
|
2360
|
+
w.style.position = "absolute", w.style.left = a.qd(a.showWeekNumbers ? 7 : 6), w.style.right = a.qd(a.showWeekNumbers ? 7 : 6), w.style.top = "0px", w.style.width = a.qd(), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_titleright"), i.right && (w.style.cursor = "pointer", w.innerHTML = "<span>></span>", w.onclick = this.sd), y.appendChild(w), this.tr = w;
|
|
2361
|
+
var C = (this.kd(), a.showWeekNumbers ? 1 : 0);
|
|
2349
2362
|
if (this.showWeekNumbers)
|
|
2350
2363
|
for (var P = 0; P < f; P++) {
|
|
2351
2364
|
var k = c.addDays(7 * P), _ = null;
|
|
@@ -2362,67 +2375,67 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2362
2375
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
2363
2376
|
}
|
|
2364
2377
|
var S = document.createElement("div");
|
|
2365
|
-
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.
|
|
2378
|
+
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.qd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_weeknumber"), S.innerHTML = "<span>" + _ + "</span>", y.appendChild(S), n.weeks.push(S);
|
|
2366
2379
|
}
|
|
2367
2380
|
for (var M = 0; M < 7; M++) {
|
|
2368
2381
|
n.cells[M] = [];
|
|
2369
2382
|
var S = document.createElement("div");
|
|
2370
|
-
S.style.position = "absolute", S.style.left = a.
|
|
2383
|
+
S.style.position = "absolute", S.style.left = a.qd(M + C), S.style.right = a.qd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.qd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_dayheader"), S.innerHTML = "<span>" + this.td(M) + "</span>", y.appendChild(S), n.days.push(S);
|
|
2371
2384
|
for (var P = 0; P < f; P++) {
|
|
2372
|
-
var k = c.addDays(7 * P + M),
|
|
2373
|
-
if ("month" === this.
|
|
2374
|
-
|
|
2375
|
-
else if ("day" === this.
|
|
2376
|
-
|
|
2377
|
-
else if ("week" === this.
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2385
|
+
var k = c.addDays(7 * P + M), T = this.ud(k) && "none" !== this.vd(), A = k.firstDayOfMonth() === o, H = k < o, E = k >= o.addMonths(1);
|
|
2386
|
+
if ("month" === this.vd())
|
|
2387
|
+
T = T && A;
|
|
2388
|
+
else if ("day" === this.vd())
|
|
2389
|
+
T = T && (A || s && H || l && E);
|
|
2390
|
+
else if ("week" === this.vd()) {
|
|
2391
|
+
var N = k.firstDayOfMonth() === o;
|
|
2392
|
+
T = T && (N || s && H || l && E);
|
|
2380
2393
|
}
|
|
2381
|
-
var
|
|
2382
|
-
n.cells[M][P] =
|
|
2383
|
-
var
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2394
|
+
var I = document.createElement("div");
|
|
2395
|
+
n.cells[M][P] = I;
|
|
2396
|
+
var O = a.wd(M, P), R = O.x, B = O.y, U = r.jd() ? "%" : "px";
|
|
2397
|
+
I.day = k, I.x = M, I.y = P, I.left = R, I.top = B, I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = H, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.ld(I, "cell"), k.getTime() === m.getTime() && A && this.ld(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.ld(I, "weekend"), I.style.position = "absolute",
|
|
2398
|
+
I.style.left = R + U, I.style.right = R + U, I.style.top = B + "px", I.style.width = a.qd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
2399
|
+
var z = document.createElement("div");
|
|
2400
|
+
z.style.position = "absolute", z.className = k.getTime() === m.getTime() && A ? this.K("_todaybox") : this.K("_daybox"), a.ld(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", I.appendChild(z);
|
|
2401
|
+
var j = null;
|
|
2402
|
+
this.cells && this.cells[k.toStringSortable()] && (j = this.cells[k.toStringSortable()]);
|
|
2403
|
+
var L = j || {};
|
|
2404
|
+
if (L.day = k, L.isCurrentMonth = A, L.isToday = k.getTime() === m.getTime() && A, L.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), j ? (L.html = j.html || k.getDay(), L.cssClass = j.css) : (L.html = k.getDay(), L.cssClass = null), "function" == typeof a.onBeforeCellRender) {
|
|
2391
2405
|
var W = {};
|
|
2392
|
-
W.cell = j
|
|
2393
|
-
a.onBeforeCellRender(W), L = W.cell;
|
|
2406
|
+
W.cell = L, a.onBeforeCellRender(W), j = W.cell;
|
|
2394
2407
|
}
|
|
2395
|
-
if (
|
|
2408
|
+
if (j && DayPilot.Util.addClass(I, j.cssClass || j.css), A || s && H || l && E) {
|
|
2396
2409
|
var F = document.createElement("div");
|
|
2397
|
-
F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", a.
|
|
2410
|
+
F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", a.ld(F, "cell_text"), I.isClickable = !0, j && j.html && (F.innerHTML = j.html), I.appendChild(F);
|
|
2398
2411
|
}
|
|
2399
|
-
|
|
2412
|
+
I.setAttribute("unselectable", "on"), I.onclick = this.xd, function () { if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
|
|
2400
2413
|
var t = {};
|
|
2401
|
-
if (t.control = a, t.cell =
|
|
2402
|
-
var i =
|
|
2414
|
+
if (t.control = a, t.cell = L, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
|
|
2415
|
+
var i = z;
|
|
2403
2416
|
if (i) {
|
|
2404
|
-
t.
|
|
2417
|
+
t.Ma = i;
|
|
2405
2418
|
if (e(t.element)) {
|
|
2406
|
-
if (!a.
|
|
2419
|
+
if (!a.Oa.Na)
|
|
2407
2420
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
2408
|
-
a.
|
|
2421
|
+
a.Oa.Pa = !0, a.Oa.Sa(t.element, i), a.Oa.Pa = !1;
|
|
2409
2422
|
}
|
|
2410
2423
|
else
|
|
2411
2424
|
i.appendChild(t.element);
|
|
2412
2425
|
}
|
|
2413
2426
|
}
|
|
2414
|
-
} }(), y.appendChild(
|
|
2427
|
+
} }(), y.appendChild(I), T && (a.yd(y, M, P), this.selected.push(I));
|
|
2415
2428
|
}
|
|
2416
2429
|
}
|
|
2417
2430
|
var J = document.createElement("div");
|
|
2418
|
-
J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.
|
|
2419
|
-
}, this.
|
|
2431
|
+
J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.qd(7 + C), J.style.height = "1px", J.style.fontSize = "1px", J.style.lineHeight = "1px", J.className = this.K("_line"), y.appendChild(J), this.months.push(n);
|
|
2432
|
+
}, this.wd = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.kd(), this.showWeekNumbers ? 1 : 0); return { "x": a.pd(e + n), "y": t * this.cellHeight + i }; }, this.yd = function (e, t, i) { var n = e.month.cells[t][i]; a.ld(n, "select"); }, this.zd = function (e, t, i) { var n = e.month.cells[t][i]; a.md(n, "select"); }, this.kd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.Ad = function () { if (this.items)
|
|
2420
2433
|
for (var e = 0; e < this.showMonths; e++)
|
|
2421
2434
|
for (var t = 0; t < 7; t++)
|
|
2422
2435
|
for (var i = 0; i < 6; i++) {
|
|
2423
2436
|
var a = this.months[e].cells[t][i];
|
|
2424
|
-
a && (1 === this.items[a.day.toStringSortable()] ? (this.
|
|
2425
|
-
} }, this.
|
|
2437
|
+
a && (1 === this.items[a.day.toStringSortable()] ? (this.ld(a, "busy"), this.md(a, "free")) : (this.md(a, "busy"), this.ld(a, "free")));
|
|
2438
|
+
} }, this.Bd = function () { var e = {}; e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1), a.state.value = JSON.stringify(e); }, this.vd = function () { return (this.selectMode || "").toLowerCase(); }, this.Cd = function () { var e = this.selectionDay || this.selectionStart; switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.vd()) {
|
|
2426
2439
|
case "day":
|
|
2427
2440
|
this.selectionStart = e, this.selectionDay = e, this.selectionEnd = e;
|
|
2428
2441
|
break;
|
|
@@ -2436,19 +2449,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2436
2449
|
this.selectionEnd = e;
|
|
2437
2450
|
break;
|
|
2438
2451
|
default: throw "Unknown selectMode value.";
|
|
2439
|
-
} }, this.
|
|
2440
|
-
return void (this.
|
|
2452
|
+
} }, this.Dd = null, this.select = function (e, t, i) { var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : i; if (!this.Ia)
|
|
2453
|
+
return void (this.Dd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
|
|
2441
2454
|
var m = this.startDate;
|
|
2442
|
-
(this.selectionStart < this.
|
|
2443
|
-
} s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.
|
|
2444
|
-
if (a.
|
|
2455
|
+
(this.selectionStart < this.Ed() || this.selectionStart >= this.Fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
2456
|
+
} s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.Cd(), this.ad(), this.hd(), this.Gd(), this.Ad(), this.Bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.N(), f && this.Hd(); }, this.update = function (e) { if (a.qb(e), this.Ia) {
|
|
2457
|
+
if (a.P)
|
|
2445
2458
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2446
|
-
a.
|
|
2459
|
+
a.Id();
|
|
2447
2460
|
var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
|
|
2448
|
-
a.
|
|
2449
|
-
} }, this.
|
|
2461
|
+
a.ob(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.N();
|
|
2462
|
+
} }, this.ob = function () { this.ad(), this.hd(), this.Cd(), this.Gd(), this.ga(), this.Ad(), this.Bd(), this.visible ? this.show() : this.hide(); }, this.Id = function () { a.vb = {}; }, this.sb = null, this.qb = function (e) { if (e) {
|
|
2450
2463
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
|
|
2451
|
-
this.
|
|
2464
|
+
this.sb = t;
|
|
2452
2465
|
for (var i in e)
|
|
2453
2466
|
if (t[i]) {
|
|
2454
2467
|
var n = t[i];
|
|
@@ -2456,15 +2469,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2456
2469
|
}
|
|
2457
2470
|
else
|
|
2458
2471
|
a[i] = e[i];
|
|
2459
|
-
} }, this.
|
|
2472
|
+
} }, this.tb = function () { var e = this.sb; for (var t in e) {
|
|
2460
2473
|
var i = e[t];
|
|
2461
2474
|
i.postInit && i.postInit();
|
|
2462
|
-
} }, this.
|
|
2475
|
+
} }, this.T = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.Jd) : WebForm_DoCallback(this.uniqueID, n, this.V, null, this.callbackError, !0); }, this.Jd = function (e) { if ("function" == typeof a.onAjaxError) {
|
|
2463
2476
|
var t = {};
|
|
2464
2477
|
t.request = e, a.onAjaxError(t);
|
|
2465
2478
|
}
|
|
2466
2479
|
else
|
|
2467
|
-
"function" == typeof a.ajaxError && a.ajaxError(e); }, this.
|
|
2480
|
+
"function" == typeof a.ajaxError && a.ajaxError(e); }, this.U = function (e) { a.V(e.responseText); }, this.R = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.S(); var o = "JSON" + JSON.stringify(n); __doPostBack(a.uniqueID, o); }, this.S = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Kd = function (e, t) { "refresh" === e && this.Hd(); }, this.td = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.ud = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Ld = function (e) { for (var t = 0; t < a.months.length; t++) {
|
|
2468
2481
|
var i = a.months[t];
|
|
2469
2482
|
if (!i)
|
|
2470
2483
|
return null;
|
|
@@ -2475,19 +2488,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2475
2488
|
if (i.top <= e.y && e.y < i.top + i.height)
|
|
2476
2489
|
return t;
|
|
2477
2490
|
}
|
|
2478
|
-
} return null; }, this.
|
|
2479
|
-
return void (a.
|
|
2491
|
+
} return null; }, this.Md = function (e) { }, this.Nd = function () { if (!r.jd())
|
|
2492
|
+
return void (a.Od = a.cellWidth); var e = a.months[0].cells[0][0], t = e.clientWidth; a.Od = t, a.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === a.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); }); }, this.Pd = function (e) { a.Nd(); var t = DayPilot.mo3(a.nav.top, e), i = a.Ld(t); if (null === i)
|
|
2480
2493
|
return null; var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
|
|
2481
2494
|
return { "month": i, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
|
|
2482
2495
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
2483
2496
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
2484
|
-
if (c <= t.x && t.x < c + a.
|
|
2497
|
+
if (c <= t.x && t.x < c + a.Od && d <= t.y && t.y < d + a.cellHeight)
|
|
2485
2498
|
return { "month": i, "x": r, "y": s, "coords": t };
|
|
2486
|
-
} return null; }, this.
|
|
2487
|
-
var t = a.
|
|
2499
|
+
} return null; }, this.Qd = function (e) { if (a.freeHandSelectionEnabled) {
|
|
2500
|
+
var t = a.Pd(e);
|
|
2488
2501
|
t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
2489
|
-
} }, this.
|
|
2490
|
-
var t = a.
|
|
2502
|
+
} }, this.Rd = function (e) { if (n.start) {
|
|
2503
|
+
var t = a.Pd(e);
|
|
2491
2504
|
if (n.end)
|
|
2492
2505
|
n.end = t;
|
|
2493
2506
|
else if (t) {
|
|
@@ -2495,11 +2508,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2495
2508
|
o > i && (n.end = t);
|
|
2496
2509
|
}
|
|
2497
2510
|
n.end && (n.clear(), n.draw());
|
|
2498
|
-
} }, this.
|
|
2499
|
-
var n = this.
|
|
2500
|
-
n.start = null, n.drawCell = function (e) { var t = a.months[e.month], i = a.
|
|
2511
|
+
} }, this.Sd = {};
|
|
2512
|
+
var n = this.Sd;
|
|
2513
|
+
n.start = null, n.drawCell = function (e) { var t = a.months[e.month], i = a.wd(e.x, e.y), o = t.top + i.y, s = t.left + i.x, l = "px", d = a.qd(); if (r.jd()) {
|
|
2501
2514
|
var c = "Horizontal" === a.orientation ? a.showMonths : 1;
|
|
2502
|
-
s = t.leftPct + i.x / c, l = "%", d = a.
|
|
2515
|
+
s = t.leftPct + i.x / c, l = "%", d = a.qd(1 / c);
|
|
2503
2516
|
} var u = document.createElement("div"); u.style.position = "absolute", u.style.left = s + l, u.style.top = o + "px", u.style.height = a.cellHeight + "px", u.style.width = d, u.style.backgroundColor = "#ccc", u.style.opacity = .5, u.style.cursor = "default", a.nav.preselection.appendChild(u), n.cells.push(u); }, n.clear = function () { if (n.cells) {
|
|
2504
2517
|
for (var e = 0; e < n.cells.length; e++)
|
|
2505
2518
|
a.nav.preselection.removeChild(n.cells[e]);
|
|
@@ -2542,49 +2555,49 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2542
2555
|
return null;
|
|
2543
2556
|
e = new o(t);
|
|
2544
2557
|
} return e; }, this.cell = function () { return a.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(); }; };
|
|
2545
|
-
this.
|
|
2558
|
+
this.xd = function (e) { var t = this.parentNode, i = this.parentNode.month, n = this.x, o = this.y, r = i.cells[n][o].day; if (i.cells[n][o].isClickable) {
|
|
2546
2559
|
a.clearSelection(), a.selectionDay = r;
|
|
2547
2560
|
var r = a.selectionDay;
|
|
2548
|
-
switch (a.
|
|
2561
|
+
switch (a.vd()) {
|
|
2549
2562
|
case "none":
|
|
2550
2563
|
a.selectionStart = r, a.selectionEnd = r;
|
|
2551
2564
|
break;
|
|
2552
2565
|
case "day":
|
|
2553
2566
|
if (a.autoFocusOnClick) {
|
|
2554
2567
|
var s = r;
|
|
2555
|
-
if (r < a.
|
|
2568
|
+
if (r < a.Ed() || r >= a.Fd())
|
|
2556
2569
|
return void a.select(r);
|
|
2557
2570
|
}
|
|
2558
2571
|
var l = i.cells[n][o];
|
|
2559
|
-
a.
|
|
2572
|
+
a.yd(t, n, o), a.selected.push(l), a.selectionStart = l.day, a.selectionEnd = l.day;
|
|
2560
2573
|
break;
|
|
2561
2574
|
case "week":
|
|
2562
2575
|
if (a.autoFocusOnClick) {
|
|
2563
2576
|
var s = i.cells[0][o].day, d = i.cells[6][o].day;
|
|
2564
|
-
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.
|
|
2577
|
+
if (s.firstDayOfMonth() === d.firstDayOfMonth() && (s < a.Ed() || d >= a.Fd()))
|
|
2565
2578
|
return void a.select(r);
|
|
2566
2579
|
}
|
|
2567
2580
|
for (var c = 0; c < 7; c++)
|
|
2568
|
-
a.
|
|
2581
|
+
a.yd(t, c, o), a.selected.push(i.cells[c][o]);
|
|
2569
2582
|
a.selectionStart = i.cells[0][o].day, a.selectionEnd = i.cells[6][o].day;
|
|
2570
2583
|
break;
|
|
2571
2584
|
case "month":
|
|
2572
2585
|
if (a.autoFocusOnClick) {
|
|
2573
2586
|
var s = r;
|
|
2574
|
-
if (r < a.
|
|
2587
|
+
if (r < a.Ed() || r >= a.Fd())
|
|
2575
2588
|
return void a.select(r);
|
|
2576
2589
|
}
|
|
2577
2590
|
for (var s = null, d = null, o = 0; o < 6; o++)
|
|
2578
2591
|
for (var n = 0; n < 7; n++) {
|
|
2579
2592
|
var l = i.cells[n][o];
|
|
2580
|
-
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (a.
|
|
2593
|
+
l && l.day.getYear() === r.getYear() && l.day.getMonth() === r.getMonth() && (a.yd(t, n, o), a.selected.push(l), null === s && (s = l.day), d = l.day);
|
|
2581
2594
|
}
|
|
2582
2595
|
a.selectionStart = s, a.selectionEnd = d;
|
|
2583
2596
|
break;
|
|
2584
2597
|
default: throw "unknown selectMode";
|
|
2585
2598
|
}
|
|
2586
|
-
a.
|
|
2587
|
-
} }, this.
|
|
2599
|
+
a.Bd(), a.N();
|
|
2600
|
+
} }, this.N = function (e) { var t = a.selectionStart, i = a.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, i), o = a.selectionDay; if (e = e || {}, a.sa()) {
|
|
2588
2601
|
var r = {};
|
|
2589
2602
|
if (r.start = t, r.end = i, r.day = o, r.days = n, r.mode = e.mode || a.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.onTimeRangeSelect(r), r.preventDefault.value))
|
|
2590
2603
|
return;
|
|
@@ -2613,7 +2626,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2613
2626
|
break;
|
|
2614
2627
|
case "None": break;
|
|
2615
2628
|
case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
|
|
2616
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.
|
|
2629
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.R("TimeRangeSelected", i, n); }, this.sd = function (e) { a.Td(a.skipMonths); }, this.rd = function (e) { a.Td(-a.skipMonths); }, this.Td = function (e) { this.startDate = this.startDate.addMonths(e), this.ad(), this.hd(), this.Gd(), this.Bd(), this.Hd(), this.Ad(); }, this.Ed = function () { return a.startDate.firstDayOfMonth(); }, this.Fd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return a.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Hd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (a.sa()) {
|
|
2617
2630
|
var i = {};
|
|
2618
2631
|
if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
|
|
2619
2632
|
return;
|
|
@@ -2640,10 +2653,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2640
2653
|
this.onVisibleRangeChanged(e, t);
|
|
2641
2654
|
break;
|
|
2642
2655
|
case "Disabled":
|
|
2643
|
-
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.
|
|
2644
|
-
var t = this.
|
|
2645
|
-
this.
|
|
2646
|
-
} this.root.style.height = this.
|
|
2656
|
+
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.V = function (e, t) { var e = JSON.parse(e); a.items = e.Items, a.cells = e.Cells, a.cells ? a.update() : a.Ad(); }, this.Gd = function () { for (var e = 0; e < this.showMonths; e++) {
|
|
2657
|
+
var t = this.Ud(e);
|
|
2658
|
+
this.bd(e, t);
|
|
2659
|
+
} this.root.style.height = this.Vd() + "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.Vd = function () { if ("Horizontal" === this.orientation) {
|
|
2647
2660
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
2648
2661
|
var i = this.months[t];
|
|
2649
2662
|
i.height > e && (e = i.height);
|
|
@@ -2652,70 +2665,70 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2652
2665
|
} for (var a = 0, t = 0; t < this.months.length; t++) {
|
|
2653
2666
|
var i = this.months[t];
|
|
2654
2667
|
a += i.height;
|
|
2655
|
-
} return a; }, this.
|
|
2656
|
-
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.
|
|
2668
|
+
} return a; }, this.Ud = function (e) { if (this.internal.showLinks)
|
|
2669
|
+
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.ua = {}, this.ua.scope = null, this.ua.notify = function () { a.ua.scope && a.ua.scope["$apply"](); }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) { var n = a.Oa.Na; if ("function" == typeof n.createVNode && "function" == typeof n.render) {
|
|
2657
2670
|
var o = n.createVNode(e, i);
|
|
2658
2671
|
n.render(o, t);
|
|
2659
|
-
} }, this.
|
|
2672
|
+
} }, this.Oa.Sa = function (e, t) { var i = a.Oa.Na; if ("function" == typeof i.render) {
|
|
2660
2673
|
var n = e;
|
|
2661
2674
|
DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
|
|
2662
|
-
} }, this.
|
|
2663
|
-
var r = this.
|
|
2675
|
+
} }, this.Oa.Qa = function (e) { var t = a.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.qb, this.internal.initialized = function () { return a.Ia; }, this.internal.vueRendering = function () { return !1; }, this.internal.enableVue = function (e) { a.Oa.Na = e; }, this.internal.vueRef = function () { return a.Oa.Na; }, this.internal.vueRendering = function () { return a.Oa.Pa; }, this.ba = {};
|
|
2676
|
+
var r = this.ba;
|
|
2664
2677
|
r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () { if ("Auto" === a.weekStarts) {
|
|
2665
2678
|
var e = r.locale();
|
|
2666
2679
|
return e ? e.weekStarts : 0;
|
|
2667
|
-
} return a.weekStarts; }, r.cellWidth = function () { if (a.
|
|
2668
|
-
return a.
|
|
2680
|
+
} return a.weekStarts; }, r.cellWidth = function () { if (a.vb.cellWidth)
|
|
2681
|
+
return a.vb.cellWidth; var e = a.Wd("_cell_dimensions").width; return e || (e = a.cellWidth), a.vb.cellWidth = e, e; }, r.jd = function () { return "Auto" === a.ba.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2669
2682
|
var t = this.selected[e];
|
|
2670
|
-
a.
|
|
2671
|
-
} this.selected = []; }, this.
|
|
2683
|
+
a.zd(t.parentNode, t.x, t.y);
|
|
2684
|
+
} this.selected = []; }, this.Xd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ga = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2672
2685
|
this.items = {};
|
|
2673
2686
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2674
2687
|
var t = this.events.list[e];
|
|
2675
2688
|
if (!t.hidden) {
|
|
2676
|
-
var i = this.
|
|
2689
|
+
var i = this.Yd(t);
|
|
2677
2690
|
for (var a in i)
|
|
2678
2691
|
this.items[a] = 1;
|
|
2679
2692
|
}
|
|
2680
2693
|
}
|
|
2681
|
-
} }, this.
|
|
2682
|
-
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.
|
|
2694
|
+
} }, this.Wd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var i = a.root || document.body; i.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; i.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Yd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
2695
|
+
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.ub = function () { if (this.id && this.id.tagName)
|
|
2683
2696
|
this.nav.top = this.id;
|
|
2684
2697
|
else {
|
|
2685
2698
|
if ("string" != typeof this.id)
|
|
2686
2699
|
throw "DayPilot.Navigator() constructor requires the target element or its ID as a parameter";
|
|
2687
2700
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2688
2701
|
throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
|
|
2689
|
-
} this.root = this.nav.top; }, this.init = function () { if (this.
|
|
2690
|
-
this.
|
|
2691
|
-
if (this.
|
|
2692
|
-
var e = this.
|
|
2693
|
-
this.select(e.date1, e.date2, e.options), this.
|
|
2702
|
+
} this.root = this.nav.top; }, this.init = function () { if (this.ub(), !this.root.dp) {
|
|
2703
|
+
this.Cd(), this.hd(), this.Gd(), this.ga(), this.Ad(), this._(), this.Zd(), this.nb();
|
|
2704
|
+
if (this.Xd() && this.Hd(), this.Ia = !0, this.tb(), this.Dd) {
|
|
2705
|
+
var e = this.Dd;
|
|
2706
|
+
this.select(e.date1, e.date2, e.options), this.Dd = null;
|
|
2694
2707
|
}
|
|
2695
2708
|
return this;
|
|
2696
|
-
} }, this.
|
|
2709
|
+
} }, this.Zd = function () { a.nav.top.onmousedown = this.Qd, a.nav.top.onmousemove = this.Rd; }, this.nb = function () { DayPilot.re(document, "mouseup", a.$d); }, this.$d = function (e) { if (n.start && n.end) {
|
|
2697
2710
|
var t = DayPilot.mo3(a.nav.top, e);
|
|
2698
2711
|
if (t.x === n.start.coords.x && t.y === n.start.coords.y)
|
|
2699
2712
|
return n.start = null, void n.clear();
|
|
2700
2713
|
n.clear();
|
|
2701
2714
|
var i = n.ordered();
|
|
2702
|
-
i.start = new o(i.start).nextVisible(), i.end = new o(i.end).previousVisible(), a.selectionDay = new o(i.start).date(), a.selectionStart = a.selectionDay, a.selectionEnd = new o(i.end).date(), n.start = null, n.end = null, a.
|
|
2703
|
-
a.
|
|
2704
|
-
} n.start = null, n.end = null; }, this.dispose = function () { var e = a; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.
|
|
2715
|
+
i.start = new o(i.start).nextVisible(), i.end = new o(i.end).previousVisible(), a.selectionDay = new o(i.start).date(), a.selectionStart = a.selectionDay, a.selectionEnd = new o(i.end).date(), n.start = null, n.end = null, a.ad(), a.hd(), a.Gd(), a.Ad(), a.Bd();
|
|
2716
|
+
a.N({ "mode": "FreeHand" });
|
|
2717
|
+
} n.start = null, n.end = null; }, this.dispose = function () { var e = a; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.P = !0); }, this._ = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.qb(i);
|
|
2705
2718
|
}, "undefined" != typeof jQuery && !function (e) { e.fn.daypilotNavigator = function (e) { var t = null, i = this.each(function () { if (!this.daypilot) {
|
|
2706
2719
|
var i = new DayPilot.Navigator(this.id);
|
|
2707
2720
|
this.daypilot = i;
|
|
2708
2721
|
for (var a in e)
|
|
2709
2722
|
i[a] = e[a];
|
|
2710
2723
|
i.Init(), t || (t = i);
|
|
2711
|
-
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.
|
|
2724
|
+
} }); return 1 === this.length ? t : i; }; }(jQuery), function () { var e = DayPilot.am(); e && e.directive("daypilotNavigator", ["$parse", function (e) { return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) { return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) { var n = new DayPilot.Navigator(i[0]); n.ua.scope = t, n.init(); var o = a["id"]; o && (t[o] = n); var r = a["publishAs"]; if (r) {
|
|
2712
2725
|
(0, e(r).assign)(t, n);
|
|
2713
2726
|
} for (var s in a)
|
|
2714
2727
|
if (0 === s.indexOf("on")) {
|
|
2715
2728
|
var l = DayPilot.Util.shouldApply(s);
|
|
2716
2729
|
l ? !function (i) { n[i] = function (n) { var o = e(a[i]); t["$apply"](function () { o(t, { "args": n }); }); }; }(s) : !function (i) { n[i] = function (n) { e(a[i])(t, { "args": n }); }; }(s);
|
|
2717
2730
|
} var d = t["$watch"], c = a["config"] || a["daypilotConfig"], u = a["events"] || a["daypilotEvents"]; d.call(t, c, function (e, t) { for (var i in e)
|
|
2718
|
-
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
2731
|
+
n[i] = e[i]; n.update(); }, !0), d.call(t, u, function (e) { n.events.list = e, n.ga(), n.Ad(); }, !0); }; } }; }]); }(), DayPilot.Navigator.def = {}, "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
2719
2732
|
}
|
|
2720
2733
|
}(DayPilot);
|
|
2721
2734
|
|