@daypilot/daypilot-lite-angular 3.13.0 → 3.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/daypilot-core.mjs +186 -186
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +219 -219
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +185 -185
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2023 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2023.2.
|
|
133
|
+
Version: 2023.2.463-lite
|
|
134
134
|
*/
|
|
135
135
|
if ("undefined" == typeof DayPilot)
|
|
136
136
|
var DayPilot = {};
|
|
@@ -978,15 +978,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
978
978
|
if (this instanceof t.Calendar && !this.M && (a = !0, this.M = !0), !a)
|
|
979
979
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
980
980
|
var n = this;
|
|
981
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.
|
|
981
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.2.463-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.N(); }, this.N = function () { DayPilot.de(n.elements.selection), n.elements.selection = [], n.nav.activeSelection = null; }, this.O = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.P = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(n.uniqueID, o); }, this.R = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { n.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var o = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.S, o, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, o, this.T, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = n; clearInterval(e.U), e.V(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.W(), e.X(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.Y = function () { this.nav.top.dispose = this.dispose; }, this.S = function (e) { n.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = n.days, e.startDate = n.startDate, e.heightSpec = n.heightSpec, e.businessBeginsHour = n.businessBeginsHour, e.businessEndsHour = n.businessEndsHour, e.hashes = n.hashes, e.timeFormat = n.timeFormat, e.viewType = n.viewType, e.locale = n.locale, e; }, this.Z = function (e, t) {
|
|
982
982
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
983
983
|
i = i.parentNode;
|
|
984
984
|
var a = document.createElement("div");
|
|
985
985
|
a.setAttribute("unselectable", "on"), a.style.position = "absolute", a.style.width = e.offsetWidth + "px", a.style.height = e.offsetHeight + "px", a.style.left = e.offsetLeft + "px", a.style.top = e.offsetTop + "px", a.style.boxSizing = "border-box", a.style.zIndex = 101, a.className = n.J("_shadow");
|
|
986
986
|
var o = document.createElement("div");
|
|
987
987
|
return o.className = n.J("_shadow_inner"), a.appendChild(o), i.firstChild.appendChild(a), a;
|
|
988
|
-
}, this.
|
|
989
|
-
var o = this.
|
|
988
|
+
}, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this._.timeFormat = function () { return "Auto" !== n.timeFormat ? n.timeFormat : this.locale().timeFormat; }, this._.aa = function () { return "Disabled" !== n.xssProtection; };
|
|
989
|
+
var o = this._;
|
|
990
990
|
this.T = function (e, t) {
|
|
991
991
|
if (e && 0 === e.indexOf("$$$")) {
|
|
992
992
|
if (!window.console)
|
|
@@ -998,15 +998,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
998
998
|
return void (document.location.href = e.CallBackRedirect);
|
|
999
999
|
if ("None" === e.UpdateType)
|
|
1000
1000
|
return n.loadingStop(), void n.s();
|
|
1001
|
-
if (n.
|
|
1001
|
+
if (n.V(), "Full" === e.UpdateType && (n.columns = e.Columns, n.days = e.Days, n.startDate = new DayPilot.Date(e.StartDate), n.heightSpec = e.HeightSpec ? e.HeightSpec : n.heightSpec, n.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : n.businessBeginsHour, n.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : n.businessEndsHour, n.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : n.headerDateFormat, n.viewType = e.ViewType, n.backColor = e.BackColor ? e.BackColor : n.backColor, n.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : n.eventHeaderVisible, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, n.locale = e.Locale ? e.Locale : n.locale, n.ba()), e.Hashes)
|
|
1002
1002
|
for (var i in e.Hashes)
|
|
1003
1003
|
n.hashes[i] = e.Hashes[i];
|
|
1004
|
-
n.events.list = e.Events, n.
|
|
1005
|
-
}, this.
|
|
1004
|
+
n.events.list = e.Events, n.ca(), n.da(), "Full" === e.UpdateType && (n.ea(), n.fa(), n.ga(), n.ha()), n.s(), n.ia(), n.clearSelection(), n.afterRender(e.CallBackData, !0), n.loadingStop();
|
|
1005
|
+
}, this.ja = function () { return this.ka() / 36e5; }, this.la = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.ma = function () { return this.ka() / 18e5; }, this.ka = function () { var e = 0; return e = "BusinessHoursNoScroll" === this.heightSpec ? this.la() : 24, 60 * e * 60 * 1e3; }, this.na = function () { return "BusinessHoursNoScroll" === this.heightSpec ? this.businessBeginsHour : 0; }, this.oa = function () { return 2 === n.api; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.P("EventClick", t, e); }, this.pa = function (e) {
|
|
1006
1006
|
var t = this, i = t.event;
|
|
1007
|
-
if (n.
|
|
1007
|
+
if (n.oa()) {
|
|
1008
1008
|
var a = {};
|
|
1009
|
-
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.
|
|
1009
|
+
if (a.e = i, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.qa.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
1010
1010
|
return;
|
|
1011
1011
|
switch (n.eventClickHandling) {
|
|
1012
1012
|
case "CallBack":
|
|
@@ -1019,7 +1019,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1019
1019
|
var o = i.client.contextMenu();
|
|
1020
1020
|
o ? o.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
1021
1021
|
}
|
|
1022
|
-
"function" == typeof n.onEventClicked && n.
|
|
1022
|
+
"function" == typeof n.onEventClicked && n.qa.apply(function () { n.onEventClicked(a); });
|
|
1023
1023
|
}
|
|
1024
1024
|
else
|
|
1025
1025
|
switch (n.eventClickHandling) {
|
|
@@ -1031,7 +1031,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1031
1031
|
break;
|
|
1032
1032
|
case "JavaScript": n.onEventClick(i);
|
|
1033
1033
|
}
|
|
1034
|
-
}, this.
|
|
1034
|
+
}, this.ra = function (e) {
|
|
1035
1035
|
var t = this.event;
|
|
1036
1036
|
if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
1037
1037
|
return !1;
|
|
@@ -1044,10 +1044,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1044
1044
|
a ? a.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
1045
1045
|
}
|
|
1046
1046
|
return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
|
|
1047
|
-
}, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.
|
|
1048
|
-
if (n.
|
|
1047
|
+
}, this.eventDeleteCallBack = function (e, t) { this.R("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.P("EventDelete", t, e); }, this.sa = function (e) {
|
|
1048
|
+
if (n.oa()) {
|
|
1049
1049
|
var t = {};
|
|
1050
|
-
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.
|
|
1050
|
+
if (t.e = e, t.control = n, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.qa.apply(function () { n.onEventDelete(t); }), t.preventDefault.value))
|
|
1051
1051
|
return;
|
|
1052
1052
|
switch (n.eventDeleteHandling) {
|
|
1053
1053
|
case "CallBack":
|
|
@@ -1058,7 +1058,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1058
1058
|
break;
|
|
1059
1059
|
case "Update": n.events.remove(e);
|
|
1060
1060
|
}
|
|
1061
|
-
"function" == typeof n.onEventDeleted && n.
|
|
1061
|
+
"function" == typeof n.onEventDeleted && n.qa.apply(function () { n.onEventDeleted(t); });
|
|
1062
1062
|
}
|
|
1063
1063
|
else
|
|
1064
1064
|
switch (n.eventDeleteHandling) {
|
|
@@ -1087,16 +1087,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1087
1087
|
}, this.I = function (e, t, i, a) {
|
|
1088
1088
|
var o = 1, r = new Date, s = new Date, l = e.start(), d = e.end();
|
|
1089
1089
|
if ("top" === a) {
|
|
1090
|
-
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
1090
|
+
var c = l.getDatePart(), u = Math.floor((i - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
1091
1091
|
r = c.addTime(f + m), s = e.end();
|
|
1092
1092
|
}
|
|
1093
1093
|
else if ("bottom" === a) {
|
|
1094
|
-
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.
|
|
1094
|
+
var c = d.getDatePart(), u = Math.floor((i + t - o) / n.cellHeight), h = 30 * u, f = 60 * h * 1e3, m = 60 * n.na() * 60 * 1e3;
|
|
1095
1095
|
r = l, s = c.addTime(f + m);
|
|
1096
1096
|
}
|
|
1097
|
-
if (n.
|
|
1097
|
+
if (n.oa()) {
|
|
1098
1098
|
var p = {};
|
|
1099
|
-
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.
|
|
1099
|
+
if (p.e = e, p.control = n, p.newStart = r, p.newEnd = s, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.qa.apply(function () { n.onEventResize(p); }), p.preventDefault.value))
|
|
1100
1100
|
return;
|
|
1101
1101
|
switch (n.eventResizeHandling) {
|
|
1102
1102
|
case "PostBack":
|
|
@@ -1107,7 +1107,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1107
1107
|
break;
|
|
1108
1108
|
case "Update": e.start(r), e.end(s), n.events.update(e);
|
|
1109
1109
|
}
|
|
1110
|
-
"function" == typeof n.onEventResized && n.
|
|
1110
|
+
"function" == typeof n.onEventResized && n.qa.apply(function () { n.onEventResized(p); });
|
|
1111
1111
|
}
|
|
1112
1112
|
else
|
|
1113
1113
|
switch (n.eventResizeHandling) {
|
|
@@ -1136,12 +1136,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1136
1136
|
}, this.K = function (e, t, i, a) {
|
|
1137
1137
|
var o = 1, r = Math.floor((i - o) / n.cellHeight), s = 30 * r * 60 * 1e3, l = e.start(), d = e.end(), c = new Date;
|
|
1138
1138
|
l instanceof DayPilot.Date && (l = l.toDate()), c.setTime(Date.UTC(l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()));
|
|
1139
|
-
var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.
|
|
1139
|
+
var u = l.getTime() - (c.getTime() + 3600 * l.getUTCHours() * 1e3 + 30 * Math.floor(l.getUTCMinutes() / 30) * 60 * 1e3), h = d.getTime() - l.getTime(), f = this.ta[t], m = f.id, p = f.start.getTime(), v = new Date;
|
|
1140
1140
|
v.setTime(p + s + u);
|
|
1141
1141
|
var y = new DayPilot.Date(v), g = y.addTime(h);
|
|
1142
|
-
if (n.
|
|
1142
|
+
if (n.oa()) {
|
|
1143
1143
|
var b = {};
|
|
1144
|
-
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.
|
|
1144
|
+
if (b.e = e, b.newStart = y, b.newEnd = g, b.newResource = m, b.ctrl = a.ctrlKey, b.shift = a.shiftKey, b.control = n, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.qa.apply(function () { n.onEventMove(b); }), b.preventDefault.value))
|
|
1145
1145
|
return;
|
|
1146
1146
|
switch (n.eventMoveHandling) {
|
|
1147
1147
|
case "PostBack":
|
|
@@ -1152,7 +1152,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1152
1152
|
break;
|
|
1153
1153
|
case "Update": e.start(y), e.end(g), e.resource(m), n.events.update(e);
|
|
1154
1154
|
}
|
|
1155
|
-
"function" == typeof n.onEventMoved && n.
|
|
1155
|
+
"function" == typeof n.onEventMoved && n.qa.apply(function () { n.onEventMoved(b); });
|
|
1156
1156
|
}
|
|
1157
1157
|
else
|
|
1158
1158
|
switch (n.eventMoveHandling) {
|
|
@@ -1165,9 +1165,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1165
1165
|
case "JavaScript": n.onEventMove(e, y, g, f.id, !1);
|
|
1166
1166
|
}
|
|
1167
1167
|
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.P("TimeRangeSelected", a, n); }, this.timeRangeSelectedCallBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, this.R("TimeRangeSelected", a, n); }, this.L = function (e, t, i) {
|
|
1168
|
-
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.
|
|
1168
|
+
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.oa()) {
|
|
1169
1169
|
var a = {};
|
|
1170
|
-
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.
|
|
1170
|
+
if (a.start = e, a.end = t, a.resource = i, a.control = n, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.qa.apply(function () { n.onTimeRangeSelect(a); }), a.preventDefault.value))
|
|
1171
1171
|
return;
|
|
1172
1172
|
switch (n.timeRangeSelectedHandling) {
|
|
1173
1173
|
case "PostBack":
|
|
@@ -1175,7 +1175,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1175
1175
|
break;
|
|
1176
1176
|
case "CallBack": n.timeRangeSelectedCallBack(e, t);
|
|
1177
1177
|
}
|
|
1178
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
1178
|
+
"function" == typeof n.onTimeRangeSelected && n.qa.apply(function () { n.onTimeRangeSelected(a); });
|
|
1179
1179
|
}
|
|
1180
1180
|
else
|
|
1181
1181
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -1187,13 +1187,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1187
1187
|
break;
|
|
1188
1188
|
case "JavaScript": n.onTimeRangeSelected(e, t);
|
|
1189
1189
|
}
|
|
1190
|
-
}, this.
|
|
1190
|
+
}, this.ua = function (e) {
|
|
1191
1191
|
if (!t.selecting && "Disabled" !== n.timeRangeSelectedHandling) {
|
|
1192
1192
|
var i = e.which;
|
|
1193
1193
|
if (1 === i || 0 === i)
|
|
1194
|
-
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.
|
|
1194
|
+
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = n, t.selectedCells && (n.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, n.va(), !1;
|
|
1195
1195
|
}
|
|
1196
|
-
}, this.
|
|
1196
|
+
}, this.va = function () {
|
|
1197
1197
|
this.getSelection();
|
|
1198
1198
|
!function () {
|
|
1199
1199
|
var e = t.topSelectedCell, i = t.bottomSelectedCell, a = function () {
|
|
@@ -1203,7 +1203,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1203
1203
|
if (t[i] === e)
|
|
1204
1204
|
return i;
|
|
1205
1205
|
return -1;
|
|
1206
|
-
}(), o = n.
|
|
1206
|
+
}(), o = n.ta[a];
|
|
1207
1207
|
if (o) {
|
|
1208
1208
|
var r = o.start, s = n.getPixels(e.start, r).boxTop, l = n.getPixels(i.end, r).boxBottom, d = l - s, c = function () {
|
|
1209
1209
|
if (n.nav.activeSelection)
|
|
@@ -1216,12 +1216,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1216
1216
|
c.className = n.J("_shadow"), c.firstChild.innerHTML = "", c.style.top = s + "px", c.style.height = d + "px";
|
|
1217
1217
|
}
|
|
1218
1218
|
}();
|
|
1219
|
-
}, this.
|
|
1219
|
+
}, this.wa = function (e) {
|
|
1220
1220
|
if ("undefined" != typeof t && t.selecting) {
|
|
1221
1221
|
var i = DayPilot.mc(e);
|
|
1222
|
-
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1222
|
+
t.getColumn(this) === t.column && (n.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va());
|
|
1223
1223
|
}
|
|
1224
|
-
}, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.
|
|
1224
|
+
}, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, a = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, a, n); }, this.xa = function (e) {
|
|
1225
1225
|
if (e < 0)
|
|
1226
1226
|
return null;
|
|
1227
1227
|
for (var t = 0, i = n.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
@@ -1229,11 +1229,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1229
1229
|
return a;
|
|
1230
1230
|
}
|
|
1231
1231
|
return null;
|
|
1232
|
-
}, this.
|
|
1232
|
+
}, this.ya = {}, this.ya.getCellCoords = function () {
|
|
1233
1233
|
var e = {};
|
|
1234
1234
|
if (e.x = 0, e.y = 0, !n.coords)
|
|
1235
1235
|
return null;
|
|
1236
|
-
e.x = n.
|
|
1236
|
+
e.x = n.xa(n.coords.x);
|
|
1237
1237
|
var t = 0, i = Math.floor((n.coords.y - t) / n.cellHeight);
|
|
1238
1238
|
return e.y = i, e.x < 0 ? null : e;
|
|
1239
1239
|
}, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
|
|
@@ -1252,18 +1252,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1252
1252
|
var s = {};
|
|
1253
1253
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1254
1254
|
return;
|
|
1255
|
-
n.columns.list = i, n.
|
|
1255
|
+
n.columns.list = i, n.za && n.update();
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
1258
|
n.columnsLoadMethod && "POST" === n.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": o, "error": a }) : DayPilot.ajax({ "method": "GET", "url": e, "success": o, "error": a });
|
|
1259
|
-
}, this.
|
|
1259
|
+
}, this.ba = function () {
|
|
1260
1260
|
var e;
|
|
1261
|
-
e = "Resources" !== n.viewType ? this.
|
|
1261
|
+
e = "Resources" !== n.viewType ? this.Aa() : n.columns.list, this.ta = [];
|
|
1262
1262
|
for (var t = 0; t < e.length; t++) {
|
|
1263
|
-
var i = this.
|
|
1264
|
-
this.
|
|
1263
|
+
var i = this.Ba(e[t]);
|
|
1264
|
+
this.ta.push(i);
|
|
1265
1265
|
}
|
|
1266
|
-
}, this.
|
|
1266
|
+
}, this.Ba = function (e) {
|
|
1267
1267
|
var t = {};
|
|
1268
1268
|
return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(n.startDate), t.putIntoBlock = function (e) {
|
|
1269
1269
|
for (var t = 0; t < this.blocks.length; t++) {
|
|
@@ -1304,7 +1304,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1304
1304
|
return !0;
|
|
1305
1305
|
}, i.push(e), this.lines.push(i), this.lines.length - 1;
|
|
1306
1306
|
}, t;
|
|
1307
|
-
}, this.
|
|
1307
|
+
}, this.Aa = function () {
|
|
1308
1308
|
var e = [], t = this.startDate.getDatePart(), i = this.days;
|
|
1309
1309
|
switch (this.viewType) {
|
|
1310
1310
|
case "Day":
|
|
@@ -1323,22 +1323,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1323
1323
|
return e;
|
|
1324
1324
|
}, this.visibleStart = function () {
|
|
1325
1325
|
if ("Resources" === n.viewType) {
|
|
1326
|
-
if (0 === n.
|
|
1326
|
+
if (0 === n.ta.length)
|
|
1327
1327
|
return DayPilot.Date.today();
|
|
1328
|
-
var e = n.
|
|
1328
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
1329
1329
|
return new DayPilot.Date(t);
|
|
1330
1330
|
}
|
|
1331
|
-
return this.
|
|
1331
|
+
return this.ta[0].start;
|
|
1332
1332
|
}, this.visibleEnd = function () {
|
|
1333
1333
|
if ("Resources" === n.viewType) {
|
|
1334
|
-
if (0 === n.
|
|
1334
|
+
if (0 === n.ta.length)
|
|
1335
1335
|
return DayPilot.Date.today().addDays(1);
|
|
1336
|
-
var e = n.
|
|
1336
|
+
var e = n.ta.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
1337
1337
|
return new DayPilot.Date(t).addDays(1);
|
|
1338
1338
|
}
|
|
1339
|
-
var t = this.
|
|
1340
|
-
return this.
|
|
1341
|
-
}, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
1339
|
+
var t = this.ta.length - 1;
|
|
1340
|
+
return this.ta[t].start.addDays(1);
|
|
1341
|
+
}, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.V = function () {
|
|
1342
1342
|
if (this.elements.events)
|
|
1343
1343
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
1344
1344
|
var t = this.elements.events[e], i = t.event;
|
|
@@ -1349,9 +1349,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1349
1349
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
1350
1350
|
}
|
|
1351
1351
|
this.elements.events = [];
|
|
1352
|
-
}, this.
|
|
1352
|
+
}, this.Ca = function (e) {
|
|
1353
1353
|
var i = e.cache || e.data, a = this.nav.events, o = document.createElement("div");
|
|
1354
|
-
o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.
|
|
1354
|
+
o.style.position = "absolute", o.style.left = e.part.left + "%", o.style.top = e.part.top + "px", o.style.width = e.part.width + "%", o.style.height = Math.max(e.part.height, 2) + "px", o.style.overflow = "hidden", o.data = e, o.event = e, o.unselectable = "on", o.style.MozUserSelect = "none", o.style.KhtmlUserSelect = "none", o.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(o, i.cssClass), o.isFirst = e.part.start.getTime() === e.start().getTime(), o.isLast = e.part.end.getTime() === e.end().getTime(), o.onclick = this.pa, DayPilot.re(o, "contextmenu", this.ra), o.onmouseout = function (e) { o.deleteIcon && (o.deleteIcon.style.display = "none"); }, o.onmousemove = function (i) {
|
|
1355
1355
|
var a = 5;
|
|
1356
1356
|
if ("undefined" != typeof t) {
|
|
1357
1357
|
var r = DayPilot.mo3(o, i);
|
|
@@ -1367,7 +1367,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1367
1367
|
if (1 === a && e.client.moveEnabled()) {
|
|
1368
1368
|
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
1369
1369
|
var o = t.moving.helper = {};
|
|
1370
|
-
o.oldColumn = n.
|
|
1370
|
+
o.oldColumn = n.ta[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
1371
1371
|
var r = DayPilot.mo3(this, i);
|
|
1372
1372
|
r ? t.moveOffsetY = r.y : t.moveOffsetY = 0, n.nav.top.style.cursor = "move";
|
|
1373
1373
|
}
|
|
@@ -1385,23 +1385,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1385
1385
|
}
|
|
1386
1386
|
if (e.client.deleteEnabled()) {
|
|
1387
1387
|
var h = document.createElement("div");
|
|
1388
|
-
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.
|
|
1388
|
+
h.style.position = "absolute", h.style.right = "2px", h.style.top = "2px", h.style.width = "17px", h.style.height = "17px", h.className = n.J("_event_delete"), h.onmousedown = function (e) { e.stopPropagation(); }, h.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.sa(t); }, h.style.display = "none", o.deleteIcon = h, o.appendChild(h);
|
|
1389
1389
|
}
|
|
1390
1390
|
var f = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
1391
1391
|
if (DayPilot.Areas.attach(o, e, { "areas": f }), a.rows[0].cells[e.part.dayIndex]) {
|
|
1392
|
-
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.
|
|
1392
|
+
a.rows[0].cells[e.part.dayIndex].firstChild.appendChild(o), n.Da(o);
|
|
1393
1393
|
}
|
|
1394
1394
|
n.elements.events.push(o);
|
|
1395
|
-
}, this.
|
|
1395
|
+
}, this.Da = function (e) {
|
|
1396
1396
|
for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
1397
1397
|
try {
|
|
1398
1398
|
var a = e.childNodes[i];
|
|
1399
|
-
1 === a.nodeType && (a.unselectable = "on", this.
|
|
1399
|
+
1 === a.nodeType && (a.unselectable = "on", this.Da(a));
|
|
1400
1400
|
}
|
|
1401
1401
|
catch (e) { }
|
|
1402
|
-
}, this.
|
|
1403
|
-
for (var e = 0; e < this.
|
|
1404
|
-
var t = this.
|
|
1402
|
+
}, this.ia = function () {
|
|
1403
|
+
for (var e = 0; e < this.ta.length; e++) {
|
|
1404
|
+
var t = this.ta[e];
|
|
1405
1405
|
if (t.blocks)
|
|
1406
1406
|
for (var i = 0; i < t.blocks.length; i++)
|
|
1407
1407
|
for (var a = t.blocks[i], n = 0; n < a.lines.length; n++)
|
|
@@ -1409,13 +1409,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1409
1409
|
var s = o[r];
|
|
1410
1410
|
s.part.width = 100 / a.lines.length, s.part.left = s.part.width * n;
|
|
1411
1411
|
var l = n === a.lines.length - 1;
|
|
1412
|
-
l || (s.part.width = 1.5 * s.part.width), this.
|
|
1412
|
+
l || (s.part.width = 1.5 * s.part.width), this.Ca(s);
|
|
1413
1413
|
}
|
|
1414
1414
|
}
|
|
1415
|
-
}, this.
|
|
1415
|
+
}, this.Ea = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.J("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.Fa() + "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.Ga(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.Ha(); 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.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.ga = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.Ia(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.Ha = 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.Ia(), 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.Ja()), n.appendChild(this.Ka()), e.appendChild(t), this.nav.zoom = e, e; }, this.Ja = 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.Ka = function () {
|
|
1416
1416
|
var e = document.createElement("table");
|
|
1417
1417
|
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;
|
|
1418
|
-
for (var t = this.
|
|
1418
|
+
for (var t = this.ta, i = t.length, a = e.insertRow(-1), o = 0; o < i; o++) {
|
|
1419
1419
|
var r = a.insertCell(-1);
|
|
1420
1420
|
r.style.padding = "0px", r.style.border = "0px none", r.style.height = "0px", r.style.overflow = "visible", n.rtl || (r.style.textAlign = "left");
|
|
1421
1421
|
var s = document.createElement("div");
|
|
@@ -1424,38 +1424,38 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1424
1424
|
r.selection = l, r.appendChild(s), r.appendChild(l);
|
|
1425
1425
|
}
|
|
1426
1426
|
return e;
|
|
1427
|
-
}, this.
|
|
1427
|
+
}, this.Ia = function () {
|
|
1428
1428
|
var e = document.createElement("table");
|
|
1429
1429
|
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; };
|
|
1430
|
-
for (var t = n.
|
|
1431
|
-
this.
|
|
1430
|
+
for (var t = n.ja(), i = 0; i < t; i++)
|
|
1431
|
+
this.La(e, i);
|
|
1432
1432
|
return e;
|
|
1433
|
-
}, this.
|
|
1433
|
+
}, this.La = function (e, t) { var i = 2 * this.cellHeight, a = e.insertRow(-1); a.style.height = i + "px"; var r = a.insertCell(-1); r.valign = "bottom", r.unselectable = "on", r.style.cursor = "default", r.style.padding = "0px", r.style.border = "0px none"; var s = document.createElement("div"); s.style.position = "relative", s.className = this.J("_rowheader"), s.style.width = this.hourWidth + "px", s.style.height = i + "px", s.style.overflow = "hidden", s.unselectable = "on"; var l = document.createElement("div"); l.className = this.J("_rowheader_inner"), l.unselectable = "on"; var d = document.createElement("div"); d.unselectable = "on"; var c = this.startDate.addHours(t).addHours(n.na()), u = c.getHours(), h = u < 12, f = o.timeFormat(); "Clock12Hours" === f && (u %= 12, 0 === u && (u = 12)), d.innerHTML = u; var m = document.createElement("span"); m.unselectable = "on", m.className = this.J("_rowheader_minutes"); var p; p = "Clock12Hours" === f ? h ? "AM" : "PM" : "00", m.innerHTML = p, d.appendChild(m), l.appendChild(d), s.appendChild(l), r.appendChild(s); }, this.Fa = function () {
|
|
1434
1434
|
switch (this.heightSpec) {
|
|
1435
1435
|
case "Full": return 48 * this.cellHeight;
|
|
1436
1436
|
case "BusinessHours":
|
|
1437
|
-
var e = this.
|
|
1437
|
+
var e = this.la();
|
|
1438
1438
|
return e * this.cellHeight * 2;
|
|
1439
1439
|
case "BusinessHoursNoScroll":
|
|
1440
|
-
var e = this.
|
|
1440
|
+
var e = this.la();
|
|
1441
1441
|
return e * this.cellHeight * 2;
|
|
1442
1442
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
1443
1443
|
}
|
|
1444
|
-
}, this.
|
|
1444
|
+
}, this.Ma = function () {
|
|
1445
1445
|
var e = n.nav.corner ? n.nav.corner.parentNode : null;
|
|
1446
1446
|
if (e) {
|
|
1447
1447
|
e.innerHTML = "";
|
|
1448
|
-
var t = this.
|
|
1448
|
+
var t = this.Na();
|
|
1449
1449
|
e.appendChild(t), n.nav.corner = t;
|
|
1450
1450
|
}
|
|
1451
|
-
}, this.
|
|
1451
|
+
}, this.Ga = function () {
|
|
1452
1452
|
var e = document.createElement("div");
|
|
1453
1453
|
e.style.overflow = "auto";
|
|
1454
1454
|
var t = document.createElement("table");
|
|
1455
1455
|
t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
|
|
1456
1456
|
var i = t.insertRow(-1), a = i.insertCell(-1);
|
|
1457
1457
|
a.style.padding = "0px", a.style.border = "0px none";
|
|
1458
|
-
var n = this.
|
|
1458
|
+
var n = this.Na();
|
|
1459
1459
|
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; };
|
|
1460
1460
|
var o = "hidden" !== this.nav.scroll.style.overflow;
|
|
1461
1461
|
if (a.appendChild(this.nav.header), o) {
|
|
@@ -1466,7 +1466,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1466
1466
|
s.className = this.J("_cornerright_inner"), r.appendChild(s), a.appendChild(r), this.nav.cornerRight = r;
|
|
1467
1467
|
}
|
|
1468
1468
|
return e.appendChild(t), e;
|
|
1469
|
-
}, this.
|
|
1469
|
+
}, this.Na = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.J("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.J("_corner_inner"), e.appendChild(t), e; }, this.W = function () {
|
|
1470
1470
|
var e = this.nav.main;
|
|
1471
1471
|
e.root = null, e.onmouseup = null;
|
|
1472
1472
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1475,9 +1475,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1475
1475
|
n.root = null, n.onmousedown = null, n.onmousemove = null, n.onmouseout = null, n.onmouseup = null;
|
|
1476
1476
|
}
|
|
1477
1477
|
this.fasterDispose || DayPilot.pu(e);
|
|
1478
|
-
}, this.
|
|
1479
|
-
var e = this.nav.main, i = 18e5, a = this.
|
|
1480
|
-
for (e && this.
|
|
1478
|
+
}, this.fa = function () {
|
|
1479
|
+
var e = this.nav.main, i = 18e5, a = this.ma(), o = n.ta;
|
|
1480
|
+
for (e && this.W(); e && e.rows && e.rows.length > 0;)
|
|
1481
1481
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1482
1482
|
this.tableCreated = !0;
|
|
1483
1483
|
for (var r = o.length, s = this.nav.events; s && s.rows && s.rows.length > 0;)
|
|
@@ -1494,11 +1494,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1494
1494
|
var l = e.insertRow(-1);
|
|
1495
1495
|
l.style.MozUserSelect = "none", l.style.KhtmlUserSelect = "none";
|
|
1496
1496
|
for (var d = 0; d < r; d++) {
|
|
1497
|
-
var m = this.
|
|
1498
|
-
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.
|
|
1497
|
+
var m = this.ta[d], c = l.insertCell(-1);
|
|
1498
|
+
c.start = m.start.addTime(f * i), c.end = c.start.addTime(i), c.resource = m.id, c.onmousedown = this.ua, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = n.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
1499
1499
|
var u = document.createElement("div");
|
|
1500
1500
|
u.unselectable = "on", u.style.height = n.cellHeight + "px", u.style.position = "relative", u.className = this.J("_cell");
|
|
1501
|
-
this.
|
|
1501
|
+
this.Oa(c.start, c.end) && DayPilot.Util.addClass(u, n.J("_cell_business"));
|
|
1502
1502
|
var p = document.createElement("div");
|
|
1503
1503
|
p.setAttribute("unselectable", "on"), p.className = this.J("_cell_inner"), u.appendChild(p), c.appendChild(u), c.appendChild(u);
|
|
1504
1504
|
}
|
|
@@ -1508,7 +1508,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1508
1508
|
n.coords = DayPilot.mo3(i, e);
|
|
1509
1509
|
var a = DayPilot.mc(e);
|
|
1510
1510
|
if (t.resizing) {
|
|
1511
|
-
t.resizingShadow || (t.resizingShadow = n.
|
|
1511
|
+
t.resizingShadow || (t.resizingShadow = n.Z(t.resizing, !1, n.shadow));
|
|
1512
1512
|
var o = n.cellHeight, r = 1, s = a.y - t.originalMouse.y;
|
|
1513
1513
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1514
1514
|
var l = Math.floor((t.originalHeight + t.originalTop + s + o / 2) / o) * o - t.originalTop + r;
|
|
@@ -1524,7 +1524,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
1526
|
else if (t.moving) {
|
|
1527
|
-
if (t.movingShadow || (t.movingShadow = n.
|
|
1527
|
+
if (t.movingShadow || (t.movingShadow = n.Z(t.moving, !n.O, n.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !n.coords)
|
|
1528
1528
|
return;
|
|
1529
1529
|
var o = n.cellHeight, r = 1, u = t.moveOffsetY;
|
|
1530
1530
|
u || (u = o / 2);
|
|
@@ -1536,11 +1536,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1536
1536
|
p < 0 && (p = 0), p < h.rows[0].cells.length && p >= 0 && t.movingShadow.column !== p && (t.movingShadow.column = p, t.moveShadow(h.rows[0].cells[p]));
|
|
1537
1537
|
}
|
|
1538
1538
|
else if (t.selecting) {
|
|
1539
|
-
var a = DayPilot.mc(e), v = n.
|
|
1540
|
-
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.
|
|
1539
|
+
var a = DayPilot.mc(e), v = n.ya.getCellCoords(), y = t.column, g = n.nav.main.rows[v.y].cells[y];
|
|
1540
|
+
a.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(g), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(g), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), n.va();
|
|
1541
1541
|
}
|
|
1542
1542
|
}, n.nav.scrollable.style.display = "";
|
|
1543
|
-
}, this.
|
|
1543
|
+
}, this.Oa = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.X = function () {
|
|
1544
1544
|
var e = this.nav.header;
|
|
1545
1545
|
if (e && e.rows)
|
|
1546
1546
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1549,10 +1549,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1549
1549
|
n.onclick = null, n.onmousemove = null, n.onmouseout = null;
|
|
1550
1550
|
}
|
|
1551
1551
|
this.fasterDispose || DayPilot.pu(e);
|
|
1552
|
-
}, this.
|
|
1553
|
-
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.
|
|
1552
|
+
}, this.Pa = function (e) {
|
|
1553
|
+
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.ta, a = i.length, o = 0; o < a; o++) {
|
|
1554
1554
|
var r = i[o], s = e ? t.insertCell(-1) : t.cells[o];
|
|
1555
|
-
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.
|
|
1555
|
+
s.data = r, s.style.overflow = "hidden", s.style.padding = "0px", s.style.border = "0px none", s.style.height = this.headerHeight + "px", s.onclick = n.Qa;
|
|
1556
1556
|
var l = e ? document.createElement("div") : s.firstChild;
|
|
1557
1557
|
if (e) {
|
|
1558
1558
|
l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = n.J("_colheader"), l.style.height = this.headerHeight + "px", n.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap");
|
|
@@ -1561,20 +1561,20 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1561
1561
|
}
|
|
1562
1562
|
r.toolTip && (d.title = r.toolTip);
|
|
1563
1563
|
var d = l.firstChild;
|
|
1564
|
-
d.innerHTML = n.
|
|
1564
|
+
d.innerHTML = n.Ra(r.name, r.html);
|
|
1565
1565
|
}
|
|
1566
|
-
}, this.
|
|
1566
|
+
}, this.Qa = function (e) {
|
|
1567
1567
|
if ("Disabled" !== n.headerClickHandling) {
|
|
1568
|
-
var t = this.data, i = n.
|
|
1568
|
+
var t = this.data, i = n.Sa(t), a = {};
|
|
1569
1569
|
a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onHeaderClick && (n.onHeaderClick(a), a.preventDefault.value) || "function" == typeof n.onHeaderClicked && n.onHeaderClicked(a);
|
|
1570
1570
|
}
|
|
1571
|
-
}, this.
|
|
1572
|
-
var e = this.nav.header, t = !0, i = this.
|
|
1571
|
+
}, this.Sa = function (e) { return new DayPilot.CalendarColumn(e, n); }, this.Ta = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ea = function () {
|
|
1572
|
+
var e = this.nav.header, t = !0, i = this.ta;
|
|
1573
1573
|
for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1574
1574
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1575
1575
|
this.headerCreated = !0;
|
|
1576
|
-
this.
|
|
1577
|
-
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.
|
|
1576
|
+
this.Pa(t);
|
|
1577
|
+
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.Ua = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { n.Va(); }); var t = "undefined" != typeof this.Wa.scrollpos ? this.Wa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.Xa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.Ya = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
|
|
1578
1578
|
var t = null;
|
|
1579
1579
|
if (e instanceof DayPilot.Event)
|
|
1580
1580
|
t = e.data;
|
|
@@ -1583,7 +1583,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1583
1583
|
throw "DayPilot.Calendar.events.add() expects an object or DayPilot.Event instance.";
|
|
1584
1584
|
t = e;
|
|
1585
1585
|
}
|
|
1586
|
-
n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.
|
|
1586
|
+
n.events.list || (n.events.list = []), n.events.list.push(t), n.update(), n.qa.notify();
|
|
1587
1587
|
}, this.events.find = function (e) {
|
|
1588
1588
|
if (!n.events.list)
|
|
1589
1589
|
return null;
|
|
@@ -1603,7 +1603,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1603
1603
|
n.events.list.splice(i, 1, e);
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
|
-
n.update(), n.
|
|
1606
|
+
n.update(), n.qa.notify();
|
|
1607
1607
|
}, this.events.remove = function (e) {
|
|
1608
1608
|
var t;
|
|
1609
1609
|
if (e instanceof DayPilot.Event)
|
|
@@ -1617,7 +1617,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1617
1617
|
i && (t = i.data);
|
|
1618
1618
|
}
|
|
1619
1619
|
var a = DayPilot.indexOf(n.events.list, t);
|
|
1620
|
-
n.events.list.splice(a, 1), n.update(), n.
|
|
1620
|
+
n.events.list.splice(a, 1), n.update(), n.qa.notify();
|
|
1621
1621
|
}, this.events.load = function (e, t, i) {
|
|
1622
1622
|
var a = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
1623
1623
|
var i, o = e.request;
|
|
@@ -1632,7 +1632,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1632
1632
|
var s = {};
|
|
1633
1633
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
1634
1634
|
return;
|
|
1635
|
-
n.events.list = i, n.
|
|
1635
|
+
n.events.list = i, n.za && n.update();
|
|
1636
1636
|
}
|
|
1637
1637
|
};
|
|
1638
1638
|
if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
@@ -1641,7 +1641,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1641
1641
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1642
1642
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
1643
1643
|
}
|
|
1644
|
-
}, this.
|
|
1644
|
+
}, this.Za = function () {
|
|
1645
1645
|
if (n.nav.top.className !== n.J("_main")) {
|
|
1646
1646
|
n.nav.top.className = n.J("_main");
|
|
1647
1647
|
var e = n.nav.corner;
|
|
@@ -1650,14 +1650,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1650
1650
|
t && (t.className = n.J("_cornerright"), t.firstChild.className = n.J("_cornerright_inner"));
|
|
1651
1651
|
}
|
|
1652
1652
|
}, this.update = function (e) {
|
|
1653
|
-
if (n
|
|
1654
|
-
n
|
|
1655
|
-
n.
|
|
1653
|
+
if (n.$a(e), this.za) {
|
|
1654
|
+
n._a(), n.V(), n.nav.top.style.cursor = "auto";
|
|
1655
|
+
n.ba(), n.ea(), n.fa(), n.ga(), n.ha(), n.Ma(), n.Za(), n.ab(), n.ca(), n.da(), n.s(), n.ia(), n.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1656
1656
|
}
|
|
1657
|
-
}, this.
|
|
1657
|
+
}, this.bb = null, this.$a = function (e) {
|
|
1658
1658
|
if (e) {
|
|
1659
1659
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } }, "columns": { "preInit": function () { n.columns.list = this.data; } } };
|
|
1660
|
-
this.
|
|
1660
|
+
this.bb = t;
|
|
1661
1661
|
for (var i in e)
|
|
1662
1662
|
if (t[i]) {
|
|
1663
1663
|
var a = t[i];
|
|
@@ -1666,13 +1666,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1666
1666
|
else
|
|
1667
1667
|
n[i] = e[i];
|
|
1668
1668
|
}
|
|
1669
|
-
}, this.
|
|
1670
|
-
var e = this.
|
|
1669
|
+
}, this.cb = function () {
|
|
1670
|
+
var e = this.bb;
|
|
1671
1671
|
for (var t in e) {
|
|
1672
1672
|
var i = e[t];
|
|
1673
1673
|
i.postInit && i.postInit();
|
|
1674
1674
|
}
|
|
1675
|
-
}, this.
|
|
1675
|
+
}, this.db = function () {
|
|
1676
1676
|
if (this.id && this.id.tagName)
|
|
1677
1677
|
this.nav.top = this.id;
|
|
1678
1678
|
else {
|
|
@@ -1681,8 +1681,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1681
1681
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1682
1682
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1683
1683
|
}
|
|
1684
|
-
}, this.
|
|
1685
|
-
var t = this.
|
|
1684
|
+
}, this.eb = {}, this.eb.events = [], this.fb = function (e) {
|
|
1685
|
+
var t = this.eb.events, i = this.events.list[e], a = {};
|
|
1686
1686
|
for (var n in i)
|
|
1687
1687
|
a[n] = i[n];
|
|
1688
1688
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -1690,9 +1690,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1690
1690
|
o.data = a, this.onBeforeEventRender(o);
|
|
1691
1691
|
}
|
|
1692
1692
|
t[e] = a;
|
|
1693
|
-
}, this.
|
|
1693
|
+
}, this.ca = function () {
|
|
1694
1694
|
var e = this.events.list;
|
|
1695
|
-
if (n.
|
|
1695
|
+
if (n.eb.events = [], e) {
|
|
1696
1696
|
if (!DayPilot.isArray(e))
|
|
1697
1697
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1698
1698
|
var t = e.length, i = 864e5;
|
|
@@ -1713,11 +1713,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1713
1713
|
}
|
|
1714
1714
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1715
1715
|
for (var o = 0; o < t; o++)
|
|
1716
|
-
this.
|
|
1717
|
-
for (var o = 0; o < this.
|
|
1716
|
+
this.fb(o);
|
|
1717
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1718
1718
|
var l = {};
|
|
1719
1719
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
1720
|
-
var d = this.
|
|
1720
|
+
var d = this.ta[o];
|
|
1721
1721
|
d.events = [], d.lines = [], d.blocks = [];
|
|
1722
1722
|
for (var c = new DayPilot.Date(d.start), u = c.getTime(), h = c.addTime(i), f = h.getTime(), m = 0; m < t; m++)
|
|
1723
1723
|
if (!a[m]) {
|
|
@@ -1733,21 +1733,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1733
1733
|
var _ = w.boxBottom;
|
|
1734
1734
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(_ / 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);
|
|
1735
1735
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1736
|
-
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.
|
|
1736
|
+
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.eb.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
1739
|
}
|
|
1740
1740
|
}
|
|
1741
|
-
for (var o = 0; o < this.
|
|
1742
|
-
var d = this.
|
|
1743
|
-
d.events.sort(this.
|
|
1741
|
+
for (var o = 0; o < this.ta.length; o++) {
|
|
1742
|
+
var d = this.ta[o];
|
|
1743
|
+
d.events.sort(this.gb);
|
|
1744
1744
|
for (var m = 0; m < d.events.length; m++) {
|
|
1745
1745
|
var r = d.events[m];
|
|
1746
1746
|
d.putIntoBlock(r);
|
|
1747
1747
|
}
|
|
1748
1748
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1749
1749
|
var k = d.blocks[m];
|
|
1750
|
-
k.events.sort(this.
|
|
1750
|
+
k.events.sort(this.gb);
|
|
1751
1751
|
for (var S = 0; S < k.events.length; S++) {
|
|
1752
1752
|
var r = k.events[S];
|
|
1753
1753
|
k.putIntoLine(r);
|
|
@@ -1755,7 +1755,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
}
|
|
1758
|
-
}, this.
|
|
1758
|
+
}, this.gb = function (e, t) {
|
|
1759
1759
|
if (!(e && t && e.start && t.start))
|
|
1760
1760
|
return 0;
|
|
1761
1761
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1769,30 +1769,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1769
1769
|
var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
|
|
1770
1770
|
0 === s && (d = l);
|
|
1771
1771
|
var c = {};
|
|
1772
|
-
return c.cut = !1, c.top = this.
|
|
1773
|
-
}, this.
|
|
1772
|
+
return c.cut = !1, c.top = this.hb(r), c.boxTop = this.hb(l), c.boxBottom = this.hb(d), this.cache.pixels[a + "_" + i] = c, c;
|
|
1773
|
+
}, this.hb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this._a = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.da = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ha = function () { var e = this.Fa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { n.qa.scope && n.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.Va = function () {
|
|
1774
1774
|
if (n.nav.scroll) {
|
|
1775
1775
|
var e = n.nav.scroll.scrollTop, t = e / (2 * n.cellHeight);
|
|
1776
|
-
n.
|
|
1776
|
+
n.Wa.scrollHour = t;
|
|
1777
1777
|
}
|
|
1778
|
-
}, this.
|
|
1779
|
-
for (var e = this.
|
|
1778
|
+
}, this.ab = function () { var e = 0; n.Wa.scrollHour ? e = 2 * n.cellHeight * n.Wa.scrollHour : "Auto" === n.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), n.nav.scroll.scrollTop = e; }, this.ib = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.jb = function () { this._a(), this.ba(), this.Ea(), this.ea(), this.fa(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.kb(), this.R("Init"); }, this.Wa = {}, this.lb = function () { this.Wa.themes = [], this.Wa.themes.push(this.theme || this.cssClassPrefix); }, this.mb = function () {
|
|
1779
|
+
for (var e = this.Wa.themes, t = 0; t < e.length; t++) {
|
|
1780
1780
|
var i = e[t];
|
|
1781
1781
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1782
1782
|
}
|
|
1783
|
-
this.
|
|
1784
|
-
}, this.
|
|
1783
|
+
this.Wa.themes = [];
|
|
1784
|
+
}, this.nb = function () {
|
|
1785
1785
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1786
1786
|
var e = {};
|
|
1787
1787
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1788
1788
|
}
|
|
1789
|
-
}, this.
|
|
1790
|
-
if ("function" == typeof this.onInit && !this.
|
|
1791
|
-
this.
|
|
1789
|
+
}, this.ob = function () {
|
|
1790
|
+
if ("function" == typeof this.onInit && !this.pb) {
|
|
1791
|
+
this.pb = !0;
|
|
1792
1792
|
var e = {};
|
|
1793
1793
|
this.onInit(e);
|
|
1794
1794
|
}
|
|
1795
|
-
}, this.
|
|
1795
|
+
}, this.qb = function () { var e = n.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.kb = function () { var e = n.qb; e() || (n.U = setInterval(function () { e() && (n.Ua(), n.Xa(), clearInterval(n.U)); }, 100)); }, this.Ra = function (e, t) { return n._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = n.$a, this.internal.xssTextHtml = n.Ra, this.init = function () { this.db(); var e = this.ib(); return this.lb(), e ? void this.jb() : (this._a(), this.ba(), this.ca(), this.Ea(), this.ea(), this.fa(), this.s(), this.Xa(), this.Ua(), this.Ya(), t.register(this), this.events && (this.da(), this.ia()), this.nb(), this.ob(), this.kb(), this.za = !0, this); }, this.Init = this.init, this.$a(i);
|
|
1796
1796
|
}, 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) {
|
|
1797
1797
|
e.fn.daypilotCalendar = function (e) {
|
|
1798
1798
|
var t = null, i = this.each(function () {
|
|
@@ -1811,7 +1811,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1811
1811
|
e && e.directive("daypilotCalendar", ["$parse", function (e) {
|
|
1812
1812
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
|
|
1813
1813
|
var n = new DayPilot.Calendar(i[0]);
|
|
1814
|
-
n.
|
|
1814
|
+
n.qa.scope = t, n.init();
|
|
1815
1815
|
var o = a["id"];
|
|
1816
1816
|
o && (t[o] = n);
|
|
1817
1817
|
var r = a["publishAs"];
|
|
@@ -1824,7 +1824,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1824
1824
|
l.call(t, d, function (e) {
|
|
1825
1825
|
for (var t in e)
|
|
1826
1826
|
n[t] = e[t];
|
|
1827
|
-
n.update(), n.
|
|
1827
|
+
n.update(), n.ob();
|
|
1828
1828
|
}, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
|
|
1829
1829
|
} };
|
|
1830
1830
|
}]);
|
|
@@ -1834,13 +1834,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1834
1834
|
var DayPilot = {};
|
|
1835
1835
|
if (function () {
|
|
1836
1836
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1837
|
-
this.v = "2023.2.
|
|
1837
|
+
this.v = "2023.2.463-lite";
|
|
1838
1838
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1839
1839
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1840
|
-
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.
|
|
1840
|
+
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this._.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1841
1841
|
for (var t in e)
|
|
1842
1842
|
this[t] = e[t];
|
|
1843
|
-
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.rb(); this.resetTarget && !e ? this.sb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.rb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.
|
|
1843
|
+
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.rb(); this.resetTarget && !e ? this.sb(this.date) : this.resetTarget || (i.date = e); var t = this.B(); return t && t.addEventListener("input", function () { i.date = i.rb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.qb && (this.qb = !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.sb(this.date); }, this.rb = function () {
|
|
1844
1844
|
var e = this.B();
|
|
1845
1845
|
if (!e)
|
|
1846
1846
|
return this.date;
|
|
@@ -1859,8 +1859,8 @@ if (function () {
|
|
|
1859
1859
|
var a = e.toString(i.pattern, i.locale);
|
|
1860
1860
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1861
1861
|
}
|
|
1862
|
-
}, this.
|
|
1863
|
-
if (!this.
|
|
1862
|
+
}, this._ = {}, this._.locale = function () { return DayPilot.Locale.find(i.locale); }, this.B = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.qb; } }), this.show = function () {
|
|
1863
|
+
if (!this.qb) {
|
|
1864
1864
|
var e = this.B(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
1865
1865
|
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.tb), 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.sb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
1866
1866
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
@@ -1872,7 +1872,7 @@ if (function () {
|
|
|
1872
1872
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
1873
1873
|
s.style.left = c + "px";
|
|
1874
1874
|
}
|
|
1875
|
-
this.
|
|
1875
|
+
this.qb = !0, this.onShow && this.onShow();
|
|
1876
1876
|
}
|
|
1877
1877
|
}, this.prepare(), this.init();
|
|
1878
1878
|
});
|
|
@@ -1884,7 +1884,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1884
1884
|
var e = function () { }, t = {};
|
|
1885
1885
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
1886
1886
|
var a = this, n = null;
|
|
1887
|
-
this.v = "2023.2.
|
|
1887
|
+
this.v = "2023.2.463-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.ub = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
1888
1888
|
o = o || {};
|
|
1889
1889
|
var r = null;
|
|
1890
1890
|
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.ub.submenu = null, null !== t.mouse) {
|
|
@@ -2066,7 +2066,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2066
2066
|
this[r] = o[r];
|
|
2067
2067
|
}, DayPilot.MenuBar = function (e, t) {
|
|
2068
2068
|
var i = this;
|
|
2069
|
-
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.
|
|
2069
|
+
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.k = null, this.za = !1;
|
|
2070
2070
|
for (var a in t)
|
|
2071
2071
|
this[a] = t[a];
|
|
2072
2072
|
this.yb = function (e) { return this.theme + "_" + e; }, this.s = function () {
|
|
@@ -2100,7 +2100,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2100
2100
|
}
|
|
2101
2101
|
DayPilot.MenuBar.active = i;
|
|
2102
2102
|
}
|
|
2103
|
-
}, this.init = function () { return this.s(), this.
|
|
2103
|
+
}, this.init = function () { return this.s(), this.za = !0, this; }, this.dispose = function () { this.za && (this.nav.top.innerHTML = "", this.elements.items = []); };
|
|
2104
2104
|
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.zb(), DayPilot.MenuBar.active = null); }, t.menuClean = function () { "undefined" != typeof DayPilot.Menu.active && DayPilot.Menu.active && (DayPilot.Menu.active.hide(), DayPilot.Menu.active = null); }, t.mouseDown = function (e) { "undefined" != typeof t && (t.menuClean(), DayPilot.MenuBar.deactivate()); }, t.mouseMove = function (e) { "undefined" != typeof t && (t.mouse = t.mousePosition(e)); }, t.touchMove = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchStart = function (e) { "undefined" != typeof t && (t.mouse = t.touchPosition(e)); }, t.touchEnd = function (e) { }, t.touchPosition = function (e) {
|
|
2105
2105
|
if (!e || !e.touches)
|
|
2106
2106
|
return null;
|
|
@@ -2832,9 +2832,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2832
2832
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2833
2833
|
var e = {};
|
|
2834
2834
|
e.Month = function (t, i) {
|
|
2835
|
-
this.v = "2023.2.
|
|
2835
|
+
this.v = "2023.2.463-lite", this.nav = {};
|
|
2836
2836
|
var a = this;
|
|
2837
|
-
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, 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.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.
|
|
2837
|
+
this.id = t, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, 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.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.T = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.V(), a.Ic(), a.ca(), "Full" === e.UpdateType && (a.Jc(), a.Kc()), a.ha(), a.show(), a.ia(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
2838
2838
|
var t = null;
|
|
2839
2839
|
if (e instanceof DayPilot.Event)
|
|
2840
2840
|
t = e.data;
|
|
@@ -2843,7 +2843,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2843
2843
|
throw "DayPilot.Month.events.add() expects an object or DayPilot.Event instance.";
|
|
2844
2844
|
t = e;
|
|
2845
2845
|
}
|
|
2846
|
-
a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.
|
|
2846
|
+
a.events.list || (a.events.list = []), a.events.list.push(t), a.update(), a.qa.notify();
|
|
2847
2847
|
}, this.events.find = function (e) {
|
|
2848
2848
|
if (!a.events.list)
|
|
2849
2849
|
return null;
|
|
@@ -2863,8 +2863,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2863
2863
|
a.events.list.splice(i, 1, e);
|
|
2864
2864
|
}
|
|
2865
2865
|
}
|
|
2866
|
-
a.update(), a.
|
|
2867
|
-
}, this.events.remove = function (e) { var t = DayPilot.indexOf(a.events.list, e.data); a.events.list.splice(t, 1), a.update(), a.
|
|
2866
|
+
a.update(), a.qa.notify();
|
|
2867
|
+
}, this.events.remove = function (e) { var t = DayPilot.indexOf(a.events.list, e.data); a.events.list.splice(t, 1), a.update(), a.qa.notify(); }, this.events.load = function (e, t, i) {
|
|
2868
2868
|
var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, o = function (e) {
|
|
2869
2869
|
var i, o = e.request;
|
|
2870
2870
|
try {
|
|
@@ -2878,7 +2878,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2878
2878
|
var s = {};
|
|
2879
2879
|
if (s.preventDefault = function () { this.preventDefault.value = !0; }, s.data = i, "function" == typeof t && t(s), s.preventDefault.value)
|
|
2880
2880
|
return;
|
|
2881
|
-
a.events.list = i, a.
|
|
2881
|
+
a.events.list = i, a.za && a.update();
|
|
2882
2882
|
}
|
|
2883
2883
|
};
|
|
2884
2884
|
if (a.eventsLoadMethod && "POST" === a.eventsLoadMethod.toUpperCase())
|
|
@@ -2888,13 +2888,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2888
2888
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": n });
|
|
2889
2889
|
}
|
|
2890
2890
|
}, this.update = function (e) {
|
|
2891
|
-
if (a
|
|
2892
|
-
a.
|
|
2891
|
+
if (a.$a(e), this.za && this.cells) {
|
|
2892
|
+
a.V(), a.Ic(), a.ca(), a.Jc(), a.Kc(), a.ha(), a.s(), a.ia(), this.visible ? this.show() : this.hide();
|
|
2893
2893
|
}
|
|
2894
|
-
}, this.
|
|
2894
|
+
}, this.bb = null, this.$a = function (e) {
|
|
2895
2895
|
if (e) {
|
|
2896
2896
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e; } } };
|
|
2897
|
-
this.
|
|
2897
|
+
this.bb = t;
|
|
2898
2898
|
for (var i in e)
|
|
2899
2899
|
if (t[i]) {
|
|
2900
2900
|
var n = t[i];
|
|
@@ -2903,14 +2903,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2903
2903
|
else
|
|
2904
2904
|
a[i] = e[i];
|
|
2905
2905
|
}
|
|
2906
|
-
}, this.
|
|
2907
|
-
var e = this.
|
|
2906
|
+
}, this.cb = function () {
|
|
2907
|
+
var e = this.bb;
|
|
2908
2908
|
for (var t in e) {
|
|
2909
2909
|
var i = e[t];
|
|
2910
2910
|
i.postInit && i.postInit();
|
|
2911
2911
|
}
|
|
2912
|
-
}, this.
|
|
2913
|
-
var t = this.
|
|
2912
|
+
}, this.eb = {}, this.eb.events = [], this.fb = function (e) {
|
|
2913
|
+
var t = this.eb.events, i = this.events.list[e], a = {};
|
|
2914
2914
|
for (var n in i)
|
|
2915
2915
|
a[n] = i[n];
|
|
2916
2916
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -2918,14 +2918,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2918
2918
|
o.data = a, this.onBeforeEventRender(o);
|
|
2919
2919
|
}
|
|
2920
2920
|
t[e] = a;
|
|
2921
|
-
}, this.
|
|
2921
|
+
}, this.ca = function () {
|
|
2922
2922
|
var e = this.events.list;
|
|
2923
2923
|
if (e) {
|
|
2924
2924
|
if (!DayPilot.isArray(e))
|
|
2925
2925
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
2926
2926
|
if ("function" == typeof this.onBeforeEventRender)
|
|
2927
2927
|
for (var t = 0; t < e.length; t++)
|
|
2928
|
-
this.
|
|
2928
|
+
this.fb(t);
|
|
2929
2929
|
for (var i = 0; i < e.length; i++) {
|
|
2930
2930
|
var a = e[i];
|
|
2931
2931
|
if ("object" != typeof a)
|
|
@@ -2938,31 +2938,31 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2938
2938
|
if (!(n.getTime() > o.getTime()))
|
|
2939
2939
|
for (var t = 0; t < this.rows.length; t++) {
|
|
2940
2940
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
2941
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
2941
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.eb.events[i]));
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
2944
2944
|
for (var l = 0; l < this.rows.length; l++) {
|
|
2945
2945
|
var r = this.rows[l];
|
|
2946
|
-
r.events.sort(this.
|
|
2946
|
+
r.events.sort(this.gb);
|
|
2947
2947
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
2948
2948
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
2949
2949
|
r.putIntoLine(c, u, h, l);
|
|
2950
2950
|
}
|
|
2951
2951
|
}
|
|
2952
2952
|
}
|
|
2953
|
-
}, this.
|
|
2953
|
+
}, this.V = function () {
|
|
2954
2954
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
2955
2955
|
var t = this.elements.events[e];
|
|
2956
2956
|
t.event = null, t.click = null, t.parentNode.removeChild(t);
|
|
2957
2957
|
}
|
|
2958
2958
|
this.elements.events = [];
|
|
2959
|
-
}, this.
|
|
2959
|
+
}, this.ia = function () { this.Lc(); }, this.Lc = function () {
|
|
2960
2960
|
this.elements.events = [];
|
|
2961
2961
|
for (var e = 0; e < this.rows.length; e++)
|
|
2962
2962
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
2963
2963
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
2964
|
-
this.
|
|
2965
|
-
}, this.
|
|
2964
|
+
this.Ca(a[n]);
|
|
2965
|
+
}, this.gb = function (e, t) {
|
|
2966
2966
|
if (!(e && t && e.start && t.start))
|
|
2967
2967
|
return 0;
|
|
2968
2968
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -2998,9 +2998,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2998
2998
|
for (var i = this.headerHeight, a = 0; a < e; a++)
|
|
2999
2999
|
i += this.rows[a].getHeight();
|
|
3000
3000
|
return i += this.cellHeaderHeight, i += t * this.lineHeight();
|
|
3001
|
-
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.
|
|
3001
|
+
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ca = function (t) {
|
|
3002
3002
|
var i = t.cache || t.data, n = t.part.row, o = t.part.line, r = t.part.colStart, s = t.part.colWidth, l = this.getCellWidth() * r, d = this.getCellWidth() * s, c = this.getEventTop(n, o), u = document.createElement("div");
|
|
3003
|
-
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.
|
|
3003
|
+
u.setAttribute("unselectable", "on"), u.style.height = this.eventHeight + "px", u.className = this.J("_event"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), t.part.startsHere || DayPilot.Util.addClass(u, this.J("_event_continueleft")), t.part.endsHere || DayPilot.Util.addClass(u, this.J("_event_continueright")), u.event = t, u.style.width = d + "%", u.style.position = "absolute", u.style.left = l + "%", u.style.top = c + "px", this.showToolTip && t.client.toolTip() && (u.title = t.client.toolTip()), u.onclick = a.pa, u.oncontextmenu = a.Mc, u.onmousedown = function (i) {
|
|
3004
3004
|
i = i || window.event;
|
|
3005
3005
|
var l = i.which || i.button;
|
|
3006
3006
|
if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === l)
|
|
@@ -3037,7 +3037,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3037
3037
|
}
|
|
3038
3038
|
if (t.client.deleteEnabled()) {
|
|
3039
3039
|
var p = Math.floor(a.eventHeight / 2 - 9), v = document.createElement("div");
|
|
3040
|
-
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.
|
|
3040
|
+
v.style.position = "absolute", v.style.right = "2px", v.style.top = p + "px", v.style.width = "18px", v.style.height = "18px", v.className = a.J("_event_delete"), v.onmousedown = function (e) { e.stopPropagation(); }, v.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && a.sa(t); }, v.style.display = "none", u.deleteIcon = v, u.appendChild(v);
|
|
3041
3041
|
}
|
|
3042
3042
|
var y = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
3043
3043
|
DayPilot.Areas.attach(u, t, { "areas": y }), this.elements.events.push(u), this.nav.events.appendChild(u);
|
|
@@ -3069,7 +3069,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3069
3069
|
for (var e = this.headerHeight, t = 0; t < this.rows.length; t++)
|
|
3070
3070
|
e += this.rows[t].getHeight();
|
|
3071
3071
|
return e;
|
|
3072
|
-
}, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.
|
|
3072
|
+
}, this.getWidth = function (e, t) { return 7 * t.y + t.x - (7 * e.y + e.x) + 1; }, this.getMinCoords = function (e, t) { return 7 * e.y + e.x < 7 * t.y + t.x ? e : t; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Ea = function () {
|
|
3073
3073
|
var t = this.nav.top;
|
|
3074
3074
|
t.setAttribute("unselectable", "on"), t.style.MozUserSelect = "none", t.style.KhtmlUserSelect = "none", t.style.WebkitUserSelect = "none", t.style.position = "relative", this.width && (t.style.width = this.width), t.style.height = this.getHeight() + "px", t.onselectstart = function (e) { return !1; }, this.hideUntilInit && (t.style.visibility = "hidden"), this.visible || (t.style.display = "none"), t.className = this.J("_main");
|
|
3075
3075
|
var i = document.createElement("div");
|
|
@@ -3118,7 +3118,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3118
3118
|
e.timeRangeSelecting.from = { x: m.x, y: m.y }, e.timeRangeSelecting.width = o, e.timeRangeSelecting.moved = !0, a.drawShadow(m.x, m.y, 0, o, 0, null);
|
|
3119
3119
|
}
|
|
3120
3120
|
};
|
|
3121
|
-
}, this.
|
|
3121
|
+
}, this.ha = function () {
|
|
3122
3122
|
this.nav.top.style.height = this.getHeight() + "px";
|
|
3123
3123
|
for (var e = 0; e < this.cells.length; e++)
|
|
3124
3124
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
@@ -3157,7 +3157,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3157
3157
|
for (var t = 0; t < this.cells[e].length; t++)
|
|
3158
3158
|
this.cells[e][t].onclick = null;
|
|
3159
3159
|
this.nav.cells.innerHTML = "";
|
|
3160
|
-
}, this.
|
|
3160
|
+
}, this.oa = function () { return 2 === a.api; }, this.Nc = function (t, i, o) {
|
|
3161
3161
|
var r = this.rows[i], s = this.firstDate.addDays(7 * i + t), l = document.createElement("div");
|
|
3162
3162
|
if (l.setAttribute("unselectable", "on"), l.style.position = "absolute", l.style.cursor = "default", l.style.left = this.getCellWidth() * t + "%", l.style.width = this.getCellWidth() + "%", l.style.top = this.getRowTop(i) + "px", l.style.height = r.getHeight() + "px",
|
|
3163
3163
|
l.className = this.J("_cell"), !this.isWeekend(s)) {
|
|
@@ -3184,12 +3184,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3184
3184
|
for (var t = this.headerHeight, i = 0; i < e; i++)
|
|
3185
3185
|
t += this.rows[i].getHeight();
|
|
3186
3186
|
return t;
|
|
3187
|
-
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.
|
|
3187
|
+
}, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.Q(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl && DayPilot.request(this.backendUrl, this.S, n, this.ajaxError); }, this.S = function (e) { a.T(e.responseText); }, this.Q = function () { var e = {}; return e.control = "dpm", e.id = this.id, e.v = this.v, e.visibleStart = new DayPilot.Date(this.firstDate), e.visibleEnd = e.visibleStart.addDays(this.days), e.startDate = a.startDate, e.timeFormat = this.timeFormat, e.weekStarts = this.weekStarts, e; }, this.eventClickCallBack = function (e, t) { this.R("EventClick", t, e); }, this.pa = function (t) { e.movingEvent = null, e.resizingEvent = null; var i = this, t = t || window.event; t.ctrlKey; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), a.eventClickSingle(i, t); }, this.eventClickSingle = function (e, t) {
|
|
3188
3188
|
var i = e.event;
|
|
3189
3189
|
if (i.client.clickEnabled())
|
|
3190
|
-
if (a.
|
|
3190
|
+
if (a.oa()) {
|
|
3191
3191
|
var n = {};
|
|
3192
|
-
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.
|
|
3192
|
+
if (n.e = i, n.control = a, n.div = e, n.originalEvent = t, n.meta = t.metaKey, n.ctrl = t.ctrlKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventClick && (a.qa.apply(function () { a.onEventClick(n); }), n.preventDefault.value))
|
|
3193
3193
|
return;
|
|
3194
3194
|
switch (a.eventClickHandling) {
|
|
3195
3195
|
case "CallBack":
|
|
@@ -3199,7 +3199,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3199
3199
|
var o = i.client.contextMenu();
|
|
3200
3200
|
o ? o.show(i) : a.contextMenu && a.contextMenu.show(i);
|
|
3201
3201
|
}
|
|
3202
|
-
"function" == typeof a.onEventClicked && a.
|
|
3202
|
+
"function" == typeof a.onEventClicked && a.qa.apply(function () { a.onEventClicked(n); });
|
|
3203
3203
|
}
|
|
3204
3204
|
else
|
|
3205
3205
|
switch (a.eventClickHandling) {
|
|
@@ -3208,7 +3208,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3208
3208
|
break;
|
|
3209
3209
|
case "JavaScript": a.onEventClick(i);
|
|
3210
3210
|
}
|
|
3211
|
-
}, this.Mc = function () { var e = this; return a.
|
|
3211
|
+
}, this.Mc = function () { var e = this; return a.ra(e.event), !1; }, this.ra = function (e) {
|
|
3212
3212
|
if (this.event = e, !e.client.rightClickEnabled())
|
|
3213
3213
|
return !1;
|
|
3214
3214
|
var t = {};
|
|
@@ -3220,10 +3220,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3220
3220
|
}
|
|
3221
3221
|
return "function" == typeof a.onEventRightClicked && a.onEventRightClicked(t), !1;
|
|
3222
3222
|
}
|
|
3223
|
-
}, this.
|
|
3224
|
-
if (a.
|
|
3223
|
+
}, this.sa = function (e) {
|
|
3224
|
+
if (a.oa()) {
|
|
3225
3225
|
var t = {};
|
|
3226
|
-
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.
|
|
3226
|
+
if (t.e = e, t.control = a, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventDelete && (a.qa.apply(function () { a.onEventDelete(t); }), t.preventDefault.value))
|
|
3227
3227
|
return;
|
|
3228
3228
|
switch (a.eventDeleteHandling) {
|
|
3229
3229
|
case "CallBack":
|
|
@@ -3234,7 +3234,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3234
3234
|
break;
|
|
3235
3235
|
case "Update": a.events.remove(e);
|
|
3236
3236
|
}
|
|
3237
|
-
"function" == typeof a.onEventDeleted && a.
|
|
3237
|
+
"function" == typeof a.onEventDeleted && a.qa.apply(function () { a.onEventDeleted(t); });
|
|
3238
3238
|
}
|
|
3239
3239
|
else
|
|
3240
3240
|
switch (a.eventDeleteHandling) {
|
|
@@ -3259,9 +3259,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3259
3259
|
var d = DayPilot.DateUtil.diff(e.end(), l), c = this.getDateFromCell(t, i);
|
|
3260
3260
|
c = c.addDays(-n);
|
|
3261
3261
|
var u = DayPilot.DateUtil.daysSpan(e.start(), e.end()) + 1, h = c.addDays(u), f = c.addTime(s), m = h.addTime(d);
|
|
3262
|
-
if (a.
|
|
3262
|
+
if (a.oa()) {
|
|
3263
3263
|
var p = {};
|
|
3264
|
-
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.
|
|
3264
|
+
if (p.e = e, p.control = a, p.newStart = f, p.newEnd = m, p.ctrl = o.ctrlKey, p.shift = o.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventMove && (a.qa.apply(function () { a.onEventMove(p); }), p.preventDefault.value))
|
|
3265
3265
|
return;
|
|
3266
3266
|
switch (a.eventMoveHandling) {
|
|
3267
3267
|
case "CallBack":
|
|
@@ -3269,7 +3269,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3269
3269
|
break;
|
|
3270
3270
|
case "Update": e.start(f), e.end(m), a.events.update(e);
|
|
3271
3271
|
}
|
|
3272
|
-
"function" == typeof a.onEventMoved && a.
|
|
3272
|
+
"function" == typeof a.onEventMoved && a.qa.apply(function () { a.onEventMoved(p); });
|
|
3273
3273
|
}
|
|
3274
3274
|
else
|
|
3275
3275
|
switch (a.eventMoveHandling) {
|
|
@@ -3289,9 +3289,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3289
3289
|
var n = e.start().getTimePart(), o = e.end().getDatePart();
|
|
3290
3290
|
o !== e.end() && (o = o.addDays(1));
|
|
3291
3291
|
var r = DayPilot.DateUtil.diff(e.end(), o), s = this.getDateFromCell(t.x, t.y), l = s.addDays(i), d = s.addTime(n), c = l.addTime(r);
|
|
3292
|
-
if (a.
|
|
3292
|
+
if (a.oa()) {
|
|
3293
3293
|
var u = {};
|
|
3294
|
-
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.
|
|
3294
|
+
if (u.e = e, u.control = a, u.newStart = d, u.newEnd = c, u.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onEventResize && (a.qa.apply(function () { a.onEventResize(u); }), u.preventDefault.value))
|
|
3295
3295
|
return;
|
|
3296
3296
|
switch (a.eventResizeHandling) {
|
|
3297
3297
|
case "CallBack":
|
|
@@ -3299,7 +3299,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3299
3299
|
break;
|
|
3300
3300
|
case "Update": e.start(d), e.end(c), a.events.update(e);
|
|
3301
3301
|
}
|
|
3302
|
-
"function" == typeof a.onEventResized && a.
|
|
3302
|
+
"function" == typeof a.onEventResized && a.qa.apply(function () { a.onEventResized(u); });
|
|
3303
3303
|
}
|
|
3304
3304
|
else
|
|
3305
3305
|
switch (a.eventResizeHandling) {
|
|
@@ -3309,14 +3309,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3309
3309
|
case "JavaScript": a.onEventResize(e, d, c);
|
|
3310
3310
|
}
|
|
3311
3311
|
}, this.timeRangeSelectedCallBack = function (e, t, i) { var a = {}; a.start = e, a.end = t, this.R("TimeRangeSelected", i, a); }, this.L = function (e, t) {
|
|
3312
|
-
if (this.
|
|
3312
|
+
if (this.oa()) {
|
|
3313
3313
|
var i = {};
|
|
3314
|
-
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.
|
|
3314
|
+
if (i.control = a, i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onTimeRangeSelect && (a.qa.apply(function () { a.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
3315
3315
|
return;
|
|
3316
3316
|
switch (a.timeRangeSelectedHandling) {
|
|
3317
3317
|
case "CallBack": a.timeRangeSelectedCallBack(e, t);
|
|
3318
3318
|
}
|
|
3319
|
-
"function" == typeof a.onTimeRangeSelected && a.
|
|
3319
|
+
"function" == typeof a.onTimeRangeSelected && a.qa.apply(function () { a.onTimeRangeSelected(i); });
|
|
3320
3320
|
}
|
|
3321
3321
|
else
|
|
3322
3322
|
switch (a.timeRangeSelectedHandling) {
|
|
@@ -3325,9 +3325,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3325
3325
|
break;
|
|
3326
3326
|
case "JavaScript": a.onTimeRangeSelected(e, t);
|
|
3327
3327
|
}
|
|
3328
|
-
}, this.
|
|
3329
|
-
var n = this.
|
|
3330
|
-
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.nav.top && (e.
|
|
3328
|
+
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { a.qa.scope && a.qa.scope["$apply"](); }, this.qa.apply = function (e) { e(); }, this.clearSelection = function () { a.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.R("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this._ = {}, this._.locale = function () { var e = DayPilot.Locale.find(a.locale); return e ? e : DayPilot.Locale.US; }, this._.aa = function () { return "Disabled" !== a.xssProtection; };
|
|
3329
|
+
var n = this._;
|
|
3330
|
+
this.debug = function (e, t) { this.debuggingEnabled && (a.debugMessages || (a.debugMessages = []), a.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = a; e.nav.top && (e.V(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.Ya = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof a.events.list || !a.events.list); }, this.s = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { a.visible = !0, a.nav.top.style.display = ""; }, this.hide = function () { a.visible = !1, a.nav.top.style.display = "none"; }, this.db = function () {
|
|
3331
3331
|
if (this.id && this.id.tagName)
|
|
3332
3332
|
this.nav.top = this.id;
|
|
3333
3333
|
else {
|
|
@@ -3336,7 +3336,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3336
3336
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3337
3337
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
3338
3338
|
}
|
|
3339
|
-
}, this.
|
|
3339
|
+
}, this.jb = function () { this.Ic(), this.Ea(), this.Kc(), this.Ya(), this.R("Init"); }, this.Ra = function (e, t) { return a._.aa() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = this.$a, this.internal.xssTextHtml = a.Ra, this.init = function () { return this.db(), this.loadFromServer() ? void this.jb() : (this.Ic(), this.ca(), this.Ea(), this.Kc(), this.s(), this.ia(), this.Ya(), this.fireAfterRenderDetached(null, !1), this.za = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return a.eventBarVisible; } }), this.$a(i);
|
|
3340
3340
|
}, e.gMouseUp = function (t) {
|
|
3341
3341
|
if (e.movingEvent) {
|
|
3342
3342
|
var i = e.movingEvent;
|
|
@@ -3391,7 +3391,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3391
3391
|
e && e.directive("daypilotMonth", ["$parse", function (e) {
|
|
3392
3392
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, a) {
|
|
3393
3393
|
var n = new DayPilot.Month(i[0]);
|
|
3394
|
-
n.
|
|
3394
|
+
n.qa.scope = t, n.init();
|
|
3395
3395
|
var o = a["id"];
|
|
3396
3396
|
o && (t[o] = n);
|
|
3397
3397
|
var r = a["publishAs"];
|
|
@@ -3415,9 +3415,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3415
3415
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3416
3416
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
3417
3417
|
DayPilot.Navigator = function (e, t) {
|
|
3418
|
-
this.v = "2023.2.
|
|
3418
|
+
this.v = "2023.2.463-lite";
|
|
3419
3419
|
var i = this;
|
|
3420
|
-
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.
|
|
3420
|
+
this.id = e, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.eb = {}, this.Oc = function () { this.root.dp = this, this.root.className = this.J("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * o.cellWidth() + this.Pc()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * o.cellWidth() + this.Pc() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.oa = function () { return 2 === i.api; }, this.Jc = function () { this.root.innerHTML = ""; }, this.J = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.Qc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.addClass(e, i); }, this.Rc = function (e, t) { var i = this.J("_" + t); DayPilot.Util.removeClass(e, i); }, this.Kc = function (e, t) {
|
|
3421
3421
|
var a = {};
|
|
3422
3422
|
a.cells = [], a.days = [], a.weeks = [];
|
|
3423
3423
|
var n = this.startDate.addMonths(e), r = t.before, s = t.after, l = n.firstDayOfMonth(), d = l.firstDayOfWeek(o.weekStarts()), c = l.addMonths(1), u = DayPilot.DateUtil.daysDiff(d, c), h = "Auto" === this.rowsPerMonth ? Math.ceil(u / 7) : 6;
|
|
@@ -3521,7 +3521,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3521
3521
|
}
|
|
3522
3522
|
}, this.cd = null, this.select = function (e, t, a) {
|
|
3523
3523
|
var n = t && (t instanceof DayPilot.Date || "string" == typeof t), o = t && "object" == typeof t || "boolean" == typeof t, r = e, s = n ? t : null, l = o ? t : a;
|
|
3524
|
-
if (!this.
|
|
3524
|
+
if (!this.za)
|
|
3525
3525
|
return void (this.cd = { "date1": r, "date2": s, "options": l });
|
|
3526
3526
|
var d = !0, c = !0;
|
|
3527
3527
|
l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l);
|
|
@@ -3534,17 +3534,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3534
3534
|
}
|
|
3535
3535
|
s && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(s) : this.bd(), this.Jc(), this.Oc(), this.fd(), this._c(), this.ad(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.L(), f && this.gd();
|
|
3536
3536
|
}, this.update = function (e) {
|
|
3537
|
-
if (i
|
|
3537
|
+
if (i.$a(e), this.za) {
|
|
3538
3538
|
if (i.hd)
|
|
3539
3539
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
3540
3540
|
i.jd();
|
|
3541
3541
|
var t = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
3542
3542
|
i.Gb(), t.start === i.selectionStart && t.end == i.selectionEnd && t.day === i.selectionDay || i.L();
|
|
3543
3543
|
}
|
|
3544
|
-
}, this.Gb = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.
|
|
3544
|
+
}, this.Gb = function () { this.Jc(), this.Oc(), this.bd(), this.fd(), this.ca(), this._c(), this.ad(), this.visible ? this.show() : this.hide(); }, this.jd = function () { i.eb = {}; }, this.bb = null, this.$a = function (e) {
|
|
3545
3545
|
if (e) {
|
|
3546
3546
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? i.events.list = e.list : i.events.list = e; } } };
|
|
3547
|
-
this.
|
|
3547
|
+
this.bb = t;
|
|
3548
3548
|
for (var a in e)
|
|
3549
3549
|
if (t[a]) {
|
|
3550
3550
|
var n = t[a];
|
|
@@ -3553,8 +3553,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3553
3553
|
else
|
|
3554
3554
|
i[a] = e[a];
|
|
3555
3555
|
}
|
|
3556
|
-
}, this.
|
|
3557
|
-
var e = this.
|
|
3556
|
+
}, this.cb = function () {
|
|
3557
|
+
var e = this.bb;
|
|
3558
3558
|
for (var t in e) {
|
|
3559
3559
|
var i = e[t];
|
|
3560
3560
|
i.postInit && i.postInit();
|
|
@@ -3726,7 +3726,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3726
3726
|
}
|
|
3727
3727
|
}, this.L = function (e) {
|
|
3728
3728
|
var t = i.selectionStart, a = i.selectionEnd.addDays(1), n = DayPilot.DateUtil.daysDiff(t, a), o = i.selectionDay;
|
|
3729
|
-
if (e = e || {}, i.
|
|
3729
|
+
if (e = e || {}, i.oa()) {
|
|
3730
3730
|
var r = {};
|
|
3731
3731
|
if (r.start = t, r.end = a, r.day = o, r.days = n, r.mode = e.mode || i.selectMode, r.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(r), r.preventDefault.value))
|
|
3732
3732
|
return;
|
|
@@ -3758,7 +3758,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3758
3758
|
}
|
|
3759
3759
|
}, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.P("TimeRangeSelected", i, n); }, this.Tc = function (e) { i.rd(i.skipMonths); }, this.Sc = function (e) { i.rd(-i.skipMonths); }, this.rd = function (e) { this.startDate = this.startDate.addMonths(e), this.Jc(), this.Oc(), this.fd(), this.ad(), this.gd(), this._c(); }, this.dd = function () { return i.startDate.firstDayOfMonth(); }, this.ed = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return i.startDate.firstDayOfMonth().firstDayOfWeek(o.weekStarts()); }, this.visibleEnd = function () { return i.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(o.weekStarts()).addDays(42); }, this.gd = function () {
|
|
3760
3760
|
var e = this.visibleStart(), t = this.visibleEnd();
|
|
3761
|
-
if (i.
|
|
3761
|
+
if (i.oa()) {
|
|
3762
3762
|
var a = {};
|
|
3763
3763
|
if (a.start = e, a.end = t, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onVisibleRangeChange && (i.onVisibleRangeChange(a), a.preventDefault.value))
|
|
3764
3764
|
return;
|
|
@@ -3810,8 +3810,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3810
3810
|
return this.internal.showLinks;
|
|
3811
3811
|
var t = {};
|
|
3812
3812
|
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;
|
|
3813
|
-
}, this.
|
|
3814
|
-
var o = this.
|
|
3813
|
+
}, this.qa = {}, this.qa.scope = null, this.qa.notify = function () { i.qa.scope && i.qa.scope["$apply"](); }, this.internal = {}, this.internal.loadOptions = i.$a, this.internal.initialized = function () { return i.za; }, this._ = {};
|
|
3814
|
+
var o = this._;
|
|
3815
3815
|
o.locale = function () { return DayPilot.Locale.find(i.locale); }, o.weekStarts = function () {
|
|
3816
3816
|
if ("Auto" === i.weekStarts) {
|
|
3817
3817
|
var e = o.locale();
|
|
@@ -3819,10 +3819,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3819
3819
|
}
|
|
3820
3820
|
return i.weekStarts;
|
|
3821
3821
|
}, o.cellWidth = function () {
|
|
3822
|
-
if (i.
|
|
3823
|
-
return i.
|
|
3822
|
+
if (i.eb.cellWidth)
|
|
3823
|
+
return i.eb.cellWidth;
|
|
3824
3824
|
var e = i.ud("_cell_dimensions").width;
|
|
3825
|
-
return e || (e = i.cellWidth), i.
|
|
3825
|
+
return e || (e = i.cellWidth), i.eb.cellWidth = e, e;
|
|
3826
3826
|
}, this.clearSelection = function () {
|
|
3827
3827
|
for (var e = 0; e < this.selected.length; e++) {
|
|
3828
3828
|
var t = this.selected[e];
|
|
@@ -3831,7 +3831,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3831
3831
|
this.selected = [];
|
|
3832
3832
|
}, this.vd = function () {
|
|
3833
3833
|
return !!this.backendUrl && ("undefined" == typeof i.items || !i.items);
|
|
3834
|
-
}, this.events = {}, this.
|
|
3834
|
+
}, this.events = {}, this.ca = function () {
|
|
3835
3835
|
if (DayPilot.isArray(this.events.list)) {
|
|
3836
3836
|
this.items = {};
|
|
3837
3837
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
@@ -3847,7 +3847,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3847
3847
|
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() < i.getTime();)
|
|
3848
3848
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
3849
3849
|
return a;
|
|
3850
|
-
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.
|
|
3850
|
+
}, this.show = function () { i.visible = !0, i.root.style.display = ""; }, this.hide = function () { i.visible = !1, i.root.style.display = "none"; }, this.db = function () {
|
|
3851
3851
|
if (this.id && this.id.tagName)
|
|
3852
3852
|
this.nav.top = this.id;
|
|
3853
3853
|
else {
|
|
@@ -3858,15 +3858,15 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3858
3858
|
}
|
|
3859
3859
|
this.root = this.nav.top;
|
|
3860
3860
|
}, this.init = function () {
|
|
3861
|
-
if (this.
|
|
3862
|
-
this.bd(), this.Oc(), this.fd(), this.
|
|
3863
|
-
if (this.vd() && this.gd(), this.
|
|
3861
|
+
if (this.db(), !this.root.dp) {
|
|
3862
|
+
this.bd(), this.Oc(), this.fd(), this.ca(), this._c(), this.Y(), this.xd(), this.Ya();
|
|
3863
|
+
if (this.vd() && this.gd(), this.za = !0, this.cb(), this.cd) {
|
|
3864
3864
|
var e = this.cd;
|
|
3865
3865
|
this.select(e.date1, e.date2, e.options), this.cd = null;
|
|
3866
3866
|
}
|
|
3867
3867
|
return this;
|
|
3868
3868
|
}
|
|
3869
|
-
}, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.
|
|
3869
|
+
}, this.xd = function () { i.nav.top.onmousedown = this.od, i.nav.top.onmousemove = this.pd; }, this.Ya = function () { DayPilot.re(document, "mouseup", i.yd); }, this.yd = function (e) {
|
|
3870
3870
|
if (a.start && a.end) {
|
|
3871
3871
|
var t = DayPilot.mo3(i.nav.top, e);
|
|
3872
3872
|
if (t.x === a.start.coords.x && t.y === a.start.coords.y)
|
|
@@ -3877,7 +3877,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3877
3877
|
i.L({ "mode": "FreeHand" });
|
|
3878
3878
|
}
|
|
3879
3879
|
a.start = null, a.end = null;
|
|
3880
|
-
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.hd = !0); }, this.
|
|
3880
|
+
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.hd = !0); }, this.Y = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.$a(t);
|
|
3881
3881
|
}, "undefined" != typeof jQuery && !function (e) {
|
|
3882
3882
|
e.fn.daypilotNavigator = function (e) {
|
|
3883
3883
|
var t = null, i = this.each(function () {
|
|
@@ -3897,7 +3897,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3897
3897
|
return { "restrict": "E", "template": "<div id='{{id}}'></div>", "compile": function (t, i) {
|
|
3898
3898
|
return t.replaceWith(this["template"].replace("{{id}}", i["id"])), function (t, i, a) {
|
|
3899
3899
|
var n = new DayPilot.Navigator(i[0]);
|
|
3900
|
-
n.
|
|
3900
|
+
n.qa.scope = t, n.init();
|
|
3901
3901
|
var o = a["id"];
|
|
3902
3902
|
o && (t[o] = n);
|
|
3903
3903
|
var r = a["publishAs"];
|
|
@@ -3914,7 +3914,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3914
3914
|
for (var i in e)
|
|
3915
3915
|
n[i] = e[i];
|
|
3916
3916
|
n.update();
|
|
3917
|
-
}, !0), d.call(t, u, function (e) { n.events.list = e, n.
|
|
3917
|
+
}, !0), d.call(t, u, function (e) { n.events.list = e, n.ca(), n._c(); }, !0);
|
|
3918
3918
|
};
|
|
3919
3919
|
} };
|
|
3920
3920
|
}]);
|