@daypilot/daypilot-lite-angular 3.7.1 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -13
- package/esm2020/lib/core/daypilot-core.mjs +519 -297
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +552 -230
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +519 -297
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +104 -2
- package/package.json +1 -1
|
@@ -33,6 +33,9 @@ var DayPilot;
|
|
|
33
33
|
class Calendar extends CalendarPropsAndEvents {
|
|
34
34
|
}
|
|
35
35
|
DayPilot.Calendar = Calendar;
|
|
36
|
+
class CalendarColumn {
|
|
37
|
+
}
|
|
38
|
+
DayPilot.CalendarColumn = CalendarColumn;
|
|
36
39
|
class MonthPropsAndEvents {
|
|
37
40
|
}
|
|
38
41
|
DayPilot.MonthPropsAndEvents = MonthPropsAndEvents;
|
|
@@ -54,6 +57,18 @@ var DayPilot;
|
|
|
54
57
|
class Locale {
|
|
55
58
|
}
|
|
56
59
|
DayPilot.Locale = Locale;
|
|
60
|
+
class MenuPropsAndEvents {
|
|
61
|
+
}
|
|
62
|
+
DayPilot.MenuPropsAndEvents = MenuPropsAndEvents;
|
|
63
|
+
class MenuConfig extends MenuPropsAndEvents {
|
|
64
|
+
}
|
|
65
|
+
DayPilot.MenuConfig = MenuConfig;
|
|
66
|
+
class Menu extends MenuPropsAndEvents {
|
|
67
|
+
}
|
|
68
|
+
DayPilot.Menu = Menu;
|
|
69
|
+
class MenuBar {
|
|
70
|
+
}
|
|
71
|
+
DayPilot.MenuBar = MenuBar;
|
|
57
72
|
class Date {
|
|
58
73
|
}
|
|
59
74
|
DayPilot.Date = Date;
|
|
@@ -101,9 +116,9 @@ var DayPilot;
|
|
|
101
116
|
/*
|
|
102
117
|
DayPilot Lite
|
|
103
118
|
Copyright (c) 2005 - 2022 Annpoint s.r.o.
|
|
104
|
-
|
|
119
|
+
https://www.daypilot.org/
|
|
105
120
|
Licensed under Apache Software License 2.0
|
|
106
|
-
Version: 2022.3.
|
|
121
|
+
Version: 2022.3.426-lite
|
|
107
122
|
*/
|
|
108
123
|
if ("undefined" == typeof DayPilot)
|
|
109
124
|
var DayPilot = {};
|
|
@@ -154,38 +169,41 @@ if ("undefined" == typeof DayPilot)
|
|
|
154
169
|
return r ? a : null;
|
|
155
170
|
}
|
|
156
171
|
return null;
|
|
157
|
-
}, DayPilot.mo3 = function (e, t
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
}, DayPilot.mo3 = function (e, t) {
|
|
173
|
+
var a, r = DayPilot.page(t);
|
|
174
|
+
if (r)
|
|
175
|
+
if (e) {
|
|
176
|
+
var o = DayPilot.abs(e);
|
|
177
|
+
if (!o)
|
|
178
|
+
throw new Error("no abs");
|
|
179
|
+
a = { x: r.x - o.x, y: r.y - o.y };
|
|
180
|
+
}
|
|
181
|
+
else
|
|
182
|
+
a = { x: r.x, y: r.y };
|
|
183
|
+
else if (a = DayPilot.mo2(e, t), !a)
|
|
184
|
+
return null;
|
|
185
|
+
return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a;
|
|
186
|
+
}, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" == typeof t.pageX || DayPilot.browser.ie ? "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null : { x: t.pageX, y: t.pageY }; }, DayPilot.abs = function (e, t) {
|
|
164
187
|
if (!e)
|
|
165
188
|
return null;
|
|
166
|
-
var a = { x: e.offsetLeft, y: e.offsetTop, w: e.clientWidth, h: e.clientHeight, toString: function () { return "x:" + this.x + " y:" + this.y + " w:" + this.w + " h:" + this.h; } };
|
|
167
189
|
if (e.getBoundingClientRect) {
|
|
168
|
-
var
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
var n = DayPilot.pageOffset();
|
|
173
|
-
if (a.x += n.x, a.y += n.y, t) {
|
|
174
|
-
var i = DayPilot.absOffsetBased(e, !1), t = DayPilot.absOffsetBased(e, !0);
|
|
175
|
-
a.x += t.x - i.x, a.y += t.y - i.y, a.w = t.w, a.h = t.h;
|
|
190
|
+
var a = DayPilot.absBoundingClientBased(e);
|
|
191
|
+
if (t) {
|
|
192
|
+
var r = DayPilot.absOffsetBased(e, !1), t = DayPilot.absOffsetBased(e, !0);
|
|
193
|
+
a.x += t.x - r.x, a.y += t.y - r.y, a.w = t.w, a.h = t.h;
|
|
176
194
|
}
|
|
177
195
|
return a;
|
|
178
196
|
}
|
|
179
197
|
return DayPilot.absOffsetBased(e, t);
|
|
180
|
-
}, DayPilot.absOffsetBased = function (e, t) {
|
|
198
|
+
}, DayPilot.absBoundingClientBased = function (e) { var t = e.getBoundingClientRect(); return { x: t.left + window.pageXOffset, y: t.top + window.pageYOffset, w: e.clientWidth, h: e.clientHeight, toString: function () { return "x:" + this.x + " y:" + this.y + " w:" + this.w + " h:" + this.h; } }; }, DayPilot.absOffsetBased = function (e, t) {
|
|
181
199
|
for (var a = { x: e.offsetLeft, y: e.offsetTop, w: e.clientWidth, h: e.clientHeight, toString: function () { return "x:" + this.x + " y:" + this.y + " w:" + this.w + " h:" + this.h; } }; e.offsetParent;)
|
|
182
200
|
e = e.offsetParent, a.x -= e.scrollLeft, a.y -= e.scrollTop, t && (a.x < 0 && (a.w += a.x, a.x = 0), a.y < 0 && (a.h += a.y, a.y = 0), e.scrollLeft > 0 && a.x + a.w > e.clientWidth && (a.w -= a.x + a.w - e.clientWidth), e.scrollTop && a.y + a.h > e.clientHeight && (a.h -= a.y + a.h - e.clientHeight)), a.x += e.offsetLeft, a.y += e.offsetTop;
|
|
183
201
|
var r = DayPilot.pageOffset();
|
|
184
202
|
return a.x += r.x, a.y += r.y, a;
|
|
185
|
-
}, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.distance = function (e, t) { return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); }, DayPilot.sheet = function () { var e = document.createElement("style"); e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e); var t = !!e.styleSheet, a = {}; return a.rules = [], a.commit = function () { t && (e.styleSheet.cssText = this.rules.join("\n")); }, a.add = function (a, r, o) { return t ? void this.rules.push(a + "{" + r + "}") : void (e.sheet.insertRule ? ("undefined" == typeof o && (o = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + r + "}", o)) : e.sheet.addRule && e.sheet.addRule(a, r, o)); }, a; }, function () {
|
|
203
|
+
}, DayPilot.isArray = function (e) { return "[object Array]" === Object.prototype.toString.call(e); }, DayPilot.distance = function (e, t) { return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)); }, DayPilot.sheet = function () { var e = document.createElement("style"); e.setAttribute("type", "text/css"), e.styleSheet || e.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(e); var t = !!e.styleSheet, a = {}; return a.rules = [], a.commit = function () { t && (e.styleSheet.cssText = this.rules.join("\n")); }, a.add = function (a, r, o) { return t ? void this.rules.push(a + "{" + r + "}") : void (e.sheet.insertRule ? ("undefined" == typeof o && (o = e.sheet.cssRules.length), e.sheet.insertRule(a + "{" + r + "}", o)) : e.sheet.addRule && e.sheet.addRule(a, r, o)); }, a; }, DayPilot.gs = function (e, t) { return window.getComputedStyle(e, null).getPropertyValue(t) || ""; }, DayPilot.StyleReader = function (e) { this.get = function (t) { return e ? DayPilot.gs(e, t) : null; }, this.getPx = function (e) { var t = this.get(e); return t.indexOf("px") === -1 ? void 0 : parseInt(t, 10); }; }, function () {
|
|
186
204
|
if (!DayPilot.Global.defaultCss) {
|
|
187
205
|
var e = DayPilot.sheet();
|
|
188
|
-
e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_shadow_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;background-color: #666666; opacity: 0.5;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "background-color: red;"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_shadow_inner", "background-color: #666666;opacity: 0.5;height: 100%;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
206
|
+
e.add(".calendar_default_main", "border: 1px solid #c0c0c0; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after", "box-sizing: content-box;"), e.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner", "color: #333;background: #f3f3f3;"), e.add(".calendar_default_cornerright_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;\tborder-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_cornerright_inner", "border-right: 1px solid #c0c0c0;"), e.add(".calendar_default_rowheader_inner", "font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; padding: 3px;"), e.add(".calendar_default_direction_rtl .calendar_default_rowheader_inner", "border-right: none;"), e.add(".calendar_default_corner_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_direction_rtl .calendar_default_corner_inner", "border-right: none;"), e.add(".calendar_default_rowheader_minutes", "font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;"), e.add(".calendar_default_colheader_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0; display: flex; align-items: center; justify-content: center; font-size: 13px;"), e.add(".calendar_default_cell_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;"), e.add(".calendar_default_cell_business .calendar_default_cell_inner", "background: #fff"), e.add(".calendar_default_alldayheader_inner", "text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".calendar_default_message", "opacity: 0.9; padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", "color: #333; border: 1px solid #999;"), e.add(".calendar_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;background-color: #9dc8e8;"), e.add(".calendar_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner", 'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_selected .calendar_default_event_inner", "background: #ddd;"), e.add(".calendar_default_alldayevent_inner", "position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;overflow:hidden;padding: 2px;margin-right: 1px; font-size: 13px;"), e.add(".calendar_default_event_withheader .calendar_default_event_inner", "padding-top: 15px;"), e.add(".calendar_default_event", "cursor: default;"), e.add(".calendar_default_event_inner", "position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 8px; font-size: 13px;"), e.add(".calendar_default_shadow_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;background-color: #666666; opacity: 0.5;"), e.add(".calendar_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".calendar_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".calendar_default_scroll_up", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAB3RJTUUH2wESDiYcrhwCiQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAARnQU1BAACxjwv8YQUAAACcSURBVHjaY2AgF9wWsTW6yGMlhi7OhC7AyMDQzMnBXIpFHAFuCtuaMTP+P8nA8P/b1x//FfW/HHuF1UQmxv+NUP1c3OxMVVhNvCVi683E8H8LXOY/w9+fTH81tF8fv4NiIpBRj+YoZtZ/LDUoJmKYhsVUpv0MDiyMDP96sIYV0FS2/8z9ICaLlOhvS4b/jC//MzC8xBG0vJeF7GQBlK0xdiUzCtsAAAAASUVORK5CYII=);"), e.add(".calendar_default_scroll_down", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAALiMAAC4jAXilP3YAAACqSURBVChTY7wpam3L9J+xmQEP+PGPKZZxP4MDi4zI78uMDIwa2NT+Z2DYovrmiC+TI8OBP/8ZmEqwGvif4e8vxr+FIDkmEKH25vBWBgbG0+iK/zEwLtF+ffwOXCGI8Y+BoRFFIdC030x/WmBiYBNhpgLdswNJ8RSYaSgmgk39z1gPUfj/29ef/9rwhQTDHRHbrbdEbLvRFcGthkkAra/9/uMvhkK8piNLAgCRpTnNn4AEmAAAAABJRU5ErkJggg==);"), e.add(".calendar_default_now", "background-color: red;"), e.add(".calendar_default_now:before", "content: ''; top: -5px; border-width: 5px; border-color: transparent transparent transparent red; border-style: solid; width: 0px; height:0px; position: absolute; -moz-transform: scale(.9999);"), e.add(".calendar_default_shadow_forbidden .calendar_default_shadow_inner", "background-color: red;"), e.add(".calendar_default_shadow_top", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_shadow_bottom", 'box-sizing: border-box; padding:2px;border:1px solid #ccc;background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".calendar_default_crosshair_vertical, .calendar_default_crosshair_horizontal, .calendar_default_crosshair_left, .calendar_default_crosshair_top", "background-color: gray; opacity: 0.2;"), e.add(".calendar_default_loading", "background-color: orange; color: white; padding: 2px;"), e.add(".calendar_default_scroll", "background-color: #f3f3f3;"), e.add(".menu_default_main", "user-select:none; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size: 13px;border: 1px solid #dddddd;background-color: white;padding: 0px;cursor: default;background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAABCAIAAABG0om7AAAAKXRFWHRDcmVhdGlvbiBUaW1lAHBvIDEwIDUgMjAxMCAyMjozMzo1OSArMDEwMGzy7+IAAAAHdElNRQfaBQoUJAesj4VUAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAABGdBTUEAALGPC/xhBQAAABVJREFUeNpj/P//PwO1weMnT2RlZAAYuwX/4oA3BgAAAABJRU5ErkJggg==);background-repeat: repeat-y;xborder-radius: 5px;-moz-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);-webkit-box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);box-shadow:0px 2px 3px rgba(000,000,000,0.3),inset 0px 0px 2px rgba(255,255,255,0.8);"), e.add(".menu_default_main, .menu_default_main *, .menu_default_main *:before, .menu_default_main *:after", "box-sizing: content-box;"), e.add(".menu_default_title", "background-color: #f2f2f2;border-bottom: 1px solid gray;padding: 4px 4px 4px 37px;"), e.add(".menu_default_main a", "padding: 2px 2px 2px 35px;color: black;text-decoration: none;cursor: default;"), e.add(".menu_default_main.menu_default_withchildren a", "padding: 2px 35px 2px 35px;"), e.add(".menu_default_main a img", "margin-left: 6px;margin-top: 2px;"), e.add(".menu_default_item_text", "display: block;height: 20px;line-height: 20px; overflow:hidden;padding-left: 2px;padding-right: 20px; white-space: nowrap;"), e.add(".menu_default_main a:hover", "background-color: #f3f3f3;"), e.add(".menu_default_main div div", "border-top: 1px solid #dddddd;margin-top: 2px;margin-bottom: 2px;margin-left: 28px;"), e.add(".menu_default_main a.menu_default_item_disabled", "color: #ccc"), e.add(".menu_default_item_haschildren.menu_default_item_haschildren_active", "background-color: #f3f3f3;"), e.add(".menu_default_item_haschildren a:before", "content: ''; border-width: 5px; border-color: transparent transparent transparent #666; border-style: solid; width: 0px; height:0px; position: absolute; right: 5px; margin-top: 5px;"), e.add(".menu_default_item_icon", "position: absolute; top:0px; left: 0px; padding: 2px 2px 2px 8px;"), e.add(".menu_default_item a i", "height: 20px;line-height: 20px;"), e.add(".menu_default_item .menu_default_item_symbol", "width: 18px; height: 18px; color: #999; margin-left: 6px;margin-top: 2px;"), e.add(".menubar_default_main", "border-bottom: 1px solid #ccc; font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px; user-select:none;"), e.add(".menubar_default_item", "display: inline-block; padding: 6px 10px; cursor: default;"), e.add(".menubar_default_item:hover", "background-color: #f2f2f2;"), e.add(".menubar_default_item_active", "background-color: #f2f2f2;"), e.add(".scheduler_default_selected .scheduler_default_event_inner", "background: #ddd;"), e.add(".scheduler_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;"), e.add(".scheduler_default_timeheader", "cursor: default;color: #333;"), e.add(".scheduler_default_message", "opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;"), e.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader,.scheduler_default_corner", "color: #333;background: #f3f3f3;"), e.add(".scheduler_default_rowheader_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;"), e.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol", "text-align: center;"), e.add(".scheduler_default_timeheadergroup_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;"), e.add(".scheduler_default_timeheadercol_inner", "position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;"), e.add(".scheduler_default_divider", "background-color: #c0c0c0;"), e.add(".scheduler_default_divider_horizontal", "background-color: #c0c0c0;"), e.add(".scheduler_default_matrix_vertical_line", "background-color: #eee;"), e.add(".scheduler_default_matrix_vertical_break", "background-color: #000;"), e.add(".scheduler_default_matrix_horizontal_line", "background-color: #eee;"), e.add(".scheduler_default_resourcedivider", "background-color: #c0c0c0;"), e.add(".scheduler_default_shadow_inner", "background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;"), e.add(".scheduler_default_event", "color:#333; font-size: 13px;"), e.add(".scheduler_default_event_inner", "position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;"), e.add(".scheduler_default_event_bar", "top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;"), e.add(".scheduler_default_event_bar_inner", "position:absolute;height:4px;background-color:#1066a8;"), e.add(".scheduler_default_event_inner", 'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");'), e.add(".scheduler_default_event_float_inner", "padding:6px 2px 2px 8px;"), e.add(".scheduler_default_event_float_inner:after", 'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;'), e.add(".scheduler_default_columnheader_inner", "font-weight: bold;"), e.add(".scheduler_default_columnheader_splitter", "background-color: #666;opacity: 0.5;filter: alpha(opacity=50);"), e.add(".scheduler_default_columnheader_cell_inner", "padding: 2px;"), e.add(".scheduler_default_cell", "background-color: #f9f9f9;"), e.add(".scheduler_default_cell.scheduler_default_cell_business", "background-color: #fff;"), e.add(".navigator_default_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), e.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after", "box-sizing: content-box;"), e.add(".navigator_default_month", "font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 12px;"), e.add(".navigator_default_day", "color: black;"), e.add(".navigator_default_weekend", "background-color: #f0f0f0;"), e.add(".navigator_default_dayheader", "color: black;"), e.add(".navigator_default_line", "border-bottom: 1px solid #c0c0c0;"), e.add(".navigator_default_dayother", "color: gray;"), e.add(".navigator_default_todaybox", "border: 1px solid red;"), e.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), e.add(".navigator_default_busy", "font-weight: bold;"), e.add(".navigator_default_cell", "text-align: center;"), e.add(".navigator_default_select .navigator_default_cell_box", "background-color: #FFE794; opacity: 0.5;"), e.add(".navigator_default_title", "text-align: center;"), e.add(".navigator_default_titleleft, .navigator_default_titleright", "text-align: center;"), e.add(".navigator_default_dayheader", "text-align: center;"), e.add(".navigator_default_weeknumber", "text-align: center; color: #999;"), e.add(".navigator_default_cell_text", "cursor: pointer;"), e.add(".month_default_main", "border: 1px solid #c0c0c0;font-family: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif; font-size: 13px;color: #333;"), e.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after", "box-sizing: content-box;"), e.add(".month_default_cell_inner", "border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;"), e.add(".month_default_cell_business .month_default_cell_inner", "background-color: #fff;"), e.add(".month_default_cell_header", "text-align: right; padding: 4px; box-sizing: border-box;"), e.add(".month_default_header_inner", "position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3; overflow:hidden; display: flex; align-items: center; justify-content: center;"), e.add(".month_default_message", "padding: 10px;opacity: 0.9; color: #ffffff;background: #ffa216;"), e.add(".month_default_event_inner", "position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 10px;color: #333;background: #fff;background: linear-gradient(to bottom, #ffffff 0%, #eeeeee);border: 1px solid #999;border-radius: 0px;display: flex; align-items: center; font-size: 13px;"), e.add(".month_default_event_continueright .month_default_event_inner", "border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;"), e.add(".month_default_event_continueleft .month_default_event_inner", "border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;"), e.add(".month_default_event_bar", "top: 0px;bottom: 0px;left: 0px;width: 6px;"), e.add(".month_default_event_bar_inner", "position: absolute;width: 6px;background-color: #1066a8;"), e.add(".month_default_event_continueleft .month_default_event_bar", "display: none;"), e.add(".month_default_selected .month_default_event_inner", "background: #ddd;"), e.add(".month_default_shadow_inner", "background-color: #666666;opacity: 0.5;height: 100%;"), e.add(".month_default_event_delete", "background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAYAAACprHcmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjExR/NCNwAAAI5JREFUKFNtkLERgCAMRbmzdK8s4gAUlhYOYEHJEJYOYOEwDmGBPxC4kOPfvePy84MGR0RJ2N1A8H3N6DATwSQ57m2ql8NBG+AEM7D+UW+wjdfUPgerYNgB5gOLRHqhcasg84C2QxPMtrUhSqQIhg7ypy9VM2EUZPI/4rQ7rGxqo9sadTegw+UdjeDLAKUfhbaQUVPIfJYAAAAASUVORK5CYII=) center center no-repeat; opacity: 0.6; cursor: pointer;"), e.add(".month_default_event_delete:hover", "opacity: 1;-ms-filter: none;"), e.add(".month_default_event_timeleft", "color: #ccc; font-size: 8pt"), e.add(".month_default_event_timeright", "color: #ccc; font-size: 8pt; text-align: right;"), e.add(".month_default_loading", "background-color: orange; color: white; padding: 2px;"), e.commit(), DayPilot.Global.defaultCss = !0;
|
|
189
207
|
}
|
|
190
208
|
}(), DayPilot.doc = function () { var e = document.documentElement; return e && e.clientHeight ? e : document.body; }, DayPilot.guid = function () { var e = function () { return (65536 * (1 + Math.random()) | 0).toString(16).substring(1); }; return "" + e() + e() + "-" + e() + "-" + e() + "-" + e() + "-" + e() + e() + e(); }, DayPilot.pageOffset = function () {
|
|
191
209
|
if ("undefined" != typeof pageXOffset)
|
|
@@ -199,7 +217,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
199
217
|
if (e[a] === t)
|
|
200
218
|
return a;
|
|
201
219
|
return -1;
|
|
202
|
-
}, DayPilot.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.Stats.print = function () { console.log("DayPilot.Stats.eventObjects: " + DayPilot.Stats.eventObjects), console.log("DayPilot.Stats.dateObjects: " + DayPilot.Stats.dateObjects), console.log("DayPilot.Stats.cacheHitsCtor: " + DayPilot.Stats.cacheHitsCtor), console.log("DayPilot.Stats.cacheHitsParsing: " + DayPilot.Stats.cacheHitsParsing), console.log("DayPilot.Stats.cacheHitsTicks: " + DayPilot.Stats.cacheHitsTicks), console.log("DayPilot.Date.Cache.Ctor keys: " + Object.keys(DayPilot.Date.Cache.Ctor).length), console.log("DayPilot.Date.Cache.Parsing keys: " + Object.keys(DayPilot.Date.Cache.Parsing).length); }, DayPilot.re = function (e, t, a) { e
|
|
220
|
+
}, DayPilot.mc = function (e) { return e.pageX || e.pageY ? { x: e.pageX, y: e.pageY } : { x: e.clientX + document.documentElement.scrollLeft, y: e.clientY + document.documentElement.scrollTop }; }, DayPilot.Stats = {}, DayPilot.Stats.eventObjects = 0, DayPilot.Stats.dateObjects = 0, DayPilot.Stats.cacheHitsCtor = 0, DayPilot.Stats.cacheHitsParsing = 0, DayPilot.Stats.cacheHitsTicks = 0, DayPilot.Stats.print = function () { console.log("DayPilot.Stats.eventObjects: " + DayPilot.Stats.eventObjects), console.log("DayPilot.Stats.dateObjects: " + DayPilot.Stats.dateObjects), console.log("DayPilot.Stats.cacheHitsCtor: " + DayPilot.Stats.cacheHitsCtor), console.log("DayPilot.Stats.cacheHitsParsing: " + DayPilot.Stats.cacheHitsParsing), console.log("DayPilot.Stats.cacheHitsTicks: " + DayPilot.Stats.cacheHitsTicks), console.log("DayPilot.Date.Cache.Ctor keys: " + Object.keys(DayPilot.Date.Cache.Ctor).length), console.log("DayPilot.Date.Cache.Parsing keys: " + Object.keys(DayPilot.Date.Cache.Parsing).length); }, DayPilot.re = function (e, t, a) { a && e && e.addEventListener(t, a, !1); }, DayPilot.rePassive = function (e, t, a) { a && e && e.addEventListener(t, a, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, a) { a && e && e.addEventListener(t, a, { "passive": !1 }); }, DayPilot.pu = function (e) {
|
|
203
221
|
var t, a, r, o = e.attributes;
|
|
204
222
|
if (o)
|
|
205
223
|
for (a = o.length, t = 0; t < a; t += 1)
|
|
@@ -254,6 +272,18 @@ if ("undefined" == typeof DayPilot)
|
|
|
254
272
|
var a = new RegExp("(^|\\s)" + t + "($|\\s)");
|
|
255
273
|
e.className = e.className.replace(a, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
|
256
274
|
}
|
|
275
|
+
}, DayPilot.Util.copyProps = function (e, t, a) {
|
|
276
|
+
if (t || (t = {}), !e)
|
|
277
|
+
return t;
|
|
278
|
+
if ("undefined" == typeof a)
|
|
279
|
+
for (var r in e)
|
|
280
|
+
e.hasOwnProperty(r) && "undefined" != typeof e[r] && (t[r] = e[r]);
|
|
281
|
+
else
|
|
282
|
+
for (var o = 0; o < a.length; o++) {
|
|
283
|
+
var r = a[o];
|
|
284
|
+
"undefined" != typeof e[r] && (t[r] = e[r]);
|
|
285
|
+
}
|
|
286
|
+
return t;
|
|
257
287
|
}, DayPilot.Util.ownPropsAsArray = function (e) {
|
|
258
288
|
var t = [];
|
|
259
289
|
if (!e)
|
|
@@ -273,8 +303,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
273
303
|
return null;
|
|
274
304
|
var t = e.toLowerCase();
|
|
275
305
|
return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
|
|
276
|
-
}, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
|
277
|
-
"monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) {
|
|
306
|
+
}, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
|
307
|
+
"dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-ch", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-de", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-lu", { "dayNames": ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], "dayNamesShort": ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"], "monthNames": ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], "monthNamesShort": ["Jan", "Feb", "Mrz", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-au", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-ca", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("en-gb", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("en-us", { "dayNames": ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], "dayNamesShort": ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], "monthNames": ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December", ""], "monthNamesShort": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", ""], "timePattern": "h:mm tt", "datePattern": "M/d/yyyy", "dateTimePattern": "M/d/yyyy h:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("es-es", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["D", "L", "M", "X", "J", "V", "S"], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("es-mx", { "dayNames": ["domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"], "dayNamesShort": ["do.", "lu.", "ma.", "mi.", "ju.", "vi.", "sá."], "monthNames": ["enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre", ""], "monthNamesShort": ["ene.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ago.", "sep.", "oct.", "nov.", "dic.", ""], "timePattern": "hh:mm tt", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy hh:mm tt", "timeFormat": "Clock12Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("eu-es", { "dayNames": ["igandea", "astelehena", "asteartea", "asteazkena", "osteguna", "ostirala", "larunbata"], "dayNamesShort": ["ig", "al", "as", "az", "og", "or", "lr"], "monthNames": ["urtarrila", "otsaila", "martxoa", "apirila", "maiatza", "ekaina", "uztaila", "abuztua", "iraila", "urria", "azaroa", "abendua", ""], "monthNamesShort": ["urt.", "ots.", "mar.", "api.", "mai.", "eka.", "uzt.", "abu.", "ira.", "urr.", "aza.", "abe.", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fi-fi", { "dayNames": ["sunnuntai", "maanantai", "tiistai", "keskiviikko", "torstai", "perjantai", "lauantai"], "dayNamesShort": ["su", "ma", "ti", "ke", "to", "pe", "la"], "monthNames": ["tammikuu", "helmikuu", "maaliskuu", "huhtikuu", "toukokuu", "kesäkuu", "heinäkuu", "elokuu", "syyskuu", "lokakuu", "marraskuu", "joulukuu", ""], "monthNamesShort": ["tammi", "helmi", "maalis", "huhti", "touko", "kesä", "heinä", "elo", "syys", "loka", "marras", "joulu", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-be", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yy", "dateTimePattern": "dd-MM-yy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-ch", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-fr", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("fr-lu", { "dayNames": ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"], "dayNamesShort": ["di", "lu", "ma", "me", "je", "ve", "sa"], "monthNames": ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre", "décembre", ""], "monthNamesShort": ["janv.", "févr.", "mars", "avr.", "mai", "juin", "juil.", "août", "sept.", "oct.", "nov.", "déc.", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("gl-es", { "dayNames": ["domingo", "luns", "martes", "mércores", "xoves", "venres", "sábado"], "dayNamesShort": ["do", "lu", "ma", "mé", "xo", "ve", "sá"], "monthNames": ["xaneiro", "febreiro", "marzo", "abril", "maio", "xuño", "xullo", "agosto", "setembro", "outubro", "novembro", "decembro", ""], "monthNamesShort": ["xan", "feb", "mar", "abr", "maio", "xuño", "xul", "ago", "set", "out", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-it", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("it-ch", { "dayNames": ["domenica", "lunedì", "martedì", "mercoledì", "giovedì", "venerdì", "sabato"], "dayNamesShort": ["do", "lu", "ma", "me", "gi", "ve", "sa"], "monthNames": ["gennaio", "febbraio", "marzo", "aprile", "maggio", "giugno", "luglio", "agosto", "settembre", "ottobre", "novembre", "dicembre", ""], "monthNamesShort": ["gen", "feb", "mar", "apr", "mag", "giu", "lug", "ago", "set", "ott", "nov", "dic", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ja-jp", { "dayNames": ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"], "dayNamesShort": ["日", "月", "火", "水", "木", "金", "土"], "monthNames": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "yyyy/MM/dd", "dateTimePattern": "yyyy/MM/dd H:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("nb-no", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-nl", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "d-M-yyyy", "dateTimePattern": "d-M-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nl-be", { "dayNames": ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"], "dayNamesShort": ["zo", "ma", "di", "wo", "do", "vr", "za"], "monthNames": ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mrt", "apr", "mei", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "H:mm", "datePattern": "d/MM/yyyy", "dateTimePattern": "d/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("nn-no", { "dayNames": ["søndag", "måndag", "tysdag", "onsdag", "torsdag", "fredag", "laurdag"], "dayNamesShort": ["sø", "må", "ty", "on", "to", "fr", "la"], "monthNames": ["januar", "februar", "mars", "april", "mai", "juni", "juli", "august", "september", "oktober", "november", "desember", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "mai", "jun", "jul", "aug", "sep", "okt", "nov", "des", ""], "timePattern": "HH:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-br", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("pl-pl", { "dayNames": ["niedziela", "poniedziałek", "wtorek", "środa", "czwartek", "piątek", "sobota"], "dayNamesShort": ["N", "Pn", "Wt", "Śr", "Cz", "Pt", "So"], "monthNames": ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień", ""], "monthNamesShort": ["sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("pt-pt", { "dayNames": ["domingo", "segunda-feira", "terça-feira", "quarta-feira", "quinta-feira", "sexta-feira", "sábado"], "dayNamesShort": ["D", "S", "T", "Q", "Q", "S", "S"], "monthNames": ["janeiro", "fevereiro", "março", "abril", "maio", "junho", "julho", "agosto", "setembro", "outubro", "novembro", "dezembro", ""], "monthNamesShort": ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez", ""], "timePattern": "HH:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 0 })), DayPilot.Locale.register(new DayPilot.Locale("ro-ro", { "dayNames": ["duminică", "luni", "marți", "miercuri", "joi", "vineri", "sâmbătă"], "dayNamesShort": ["D", "L", "Ma", "Mi", "J", "V", "S"], "monthNames": ["ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie", ""], "monthNamesShort": ["ian.", "feb.", "mar.", "apr.", "mai.", "iun.", "iul.", "aug.", "sep.", "oct.", "nov.", "dec.", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("ru-ru", { "dayNames": ["воскресенье", "понедельник", "вторник", "среда", "четверг", "пятница", "суббота"], "dayNamesShort": ["Вс", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь", ""], "monthNamesShort": ["янв", "фев", "мар", "апр", "май", "июн", "июл", "авг", "сен", "окт", "ноя", "дек", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sk-sk", { "dayNames": ["nedeľa", "pondelok", "utorok", "streda", "štvrtok", "piatok", "sobota"], "dayNamesShort": ["ne", "po", "ut", "st", "št", "pi", "so"], "monthNames": ["január", "február", "marec", "apríl", "máj", "jún", "júl", "august", "september", "október", "november", "december", ""], "monthNamesShort": ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", ""], "timePattern": "H:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("sv-se", { "dayNames": ["söndag", "måndag", "tisdag", "onsdag", "torsdag", "fredag", "lördag"], "dayNamesShort": ["sö", "må", "ti", "on", "to", "fr", "lö"], "monthNames": ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "yyyy-MM-dd", "dateTimePattern": "yyyy-MM-dd HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("tr-tr", { "dayNames": ["Pazar", "Pazartesi", "Salı", "Çarşamba", "Perşembe", "Cuma", "Cumartesi"], "dayNamesShort": ["Pz", "Pt", "Sa", "Ça", "Pe", "Cu", "Ct"], "monthNames": ["Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık", ""], "monthNamesShort": ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara", ""], "timePattern": "HH:mm", "datePattern": "d.M.yyyy", "dateTimePattern": "d.M.yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("uk-ua", { "dayNames": ["неділя", "понеділок", "вівторок", "середа", "четвер", "п'ятниця", "субота"], "dayNamesShort": ["Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"], "monthNames": ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень", ""], "monthNamesShort": ["Січ", "Лют", "Бер", "Кві", "Тра", "Чер", "Лип", "Сер", "Вер", "Жов", "Лис", "Гру", ""], "timePattern": "H:mm", "datePattern": "dd.MM.yyyy", "dateTimePattern": "dd.MM.yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("zh-cn", { "dayNames": ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], "dayNamesShort": ["日", "一", "二", "三", "四", "五", "六"], "monthNames": ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月", ""], "monthNamesShort": ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月", ""], "timePattern": "H:mm", "datePattern": "yyyy/M/d", "dateTimePattern": "yyyy/M/d H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.US = DayPilot.Locale.find("en-us"), DayPilot.Duration = function (e) {
|
|
278
308
|
var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
|
|
279
309
|
if (2 === arguments.length) {
|
|
280
310
|
var i = arguments[0], d = arguments[1];
|
|
@@ -379,8 +409,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
379
409
|
}
|
|
380
410
|
else
|
|
381
411
|
y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
|
|
382
|
-
var
|
|
383
|
-
return t || (
|
|
412
|
+
var p = new DayPilot.Date(s);
|
|
413
|
+
return t || (p = p.addMinutes(-y)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
384
414
|
}, DayPilot.DateUtil.getTzOffsetMinutes = function (e) {
|
|
385
415
|
if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
|
|
386
416
|
return 0;
|
|
@@ -399,10 +429,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
399
429
|
r = r.addDays(1), a++;
|
|
400
430
|
return a;
|
|
401
431
|
}, DayPilot.DateUtil.daysSpan = function (e, t) {
|
|
402
|
-
if (e && t || function () { throw "two parameters required"; }(), e = new DayPilot.Date(e), t = new DayPilot.Date(t), e === t)
|
|
432
|
+
if (e && t || function () { throw "two parameters required"; }(), e = new DayPilot.Date(e), t = new DayPilot.Date(t), e.getTime() === t.getTime())
|
|
403
433
|
return 0;
|
|
404
434
|
var a = DayPilot.DateUtil.daysDiff(e, t);
|
|
405
|
-
return t == t.getDatePart() && a--, a;
|
|
435
|
+
return t.getTime() == t.getDatePart().getTime() && a--, a;
|
|
406
436
|
}, DayPilot.DateUtil.diff = function (e, t) {
|
|
407
437
|
if (!(e && t && e.getTime && t.getTime))
|
|
408
438
|
throw "Both compared objects must be Date objects (DayPilot.Date.diff).";
|
|
@@ -420,7 +450,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
420
450
|
}, DayPilot.DateUtil.max = function (e, t) { return e.getTime() > t.getTime() ? e : t; }, DayPilot.DateUtil.min = function (e, t) { return e.getTime() < t.getTime() ? e : t; };
|
|
421
451
|
var r = function (e, a) {
|
|
422
452
|
"string" == typeof a && (a = DayPilot.Locale.find(a));
|
|
423
|
-
var a = a || DayPilot.Locale.US, r = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNames[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNames, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNamesShort, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) {
|
|
453
|
+
var a = a || DayPilot.Locale.US, r = [{ "seq": "yyyy", "expr": "[0-9]{4,4}", "str": function (e) { return e.getYear(); } }, { "seq": "yy", "expr": "[0-9]{2,2}", "str": function (e) { return e.getYear() % 100; } }, { "seq": "mm", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMinutes(); return t < 10 ? "0" + t : t; } }, { "seq": "m", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMinutes(); } }, { "seq": "HH", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(); return t < 10 ? "0" + t : t; } }, { "seq": "H", "expr": "[0-9]{1,2}", "str": function (e) { return e.getHours(); } }, { "seq": "hh", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getHours(), t = t % 12; 0 === t && (t = 12); var a = t; return a < 10 ? "0" + a : a; } }, { "seq": "h", "expr": "[0-9]{1,2}", "str": function (e) { var t = e.getHours(), t = t % 12; return 0 === t && (t = 12), t; } }, { "seq": "ss", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getSeconds(); return t < 10 ? "0" + t : t; } }, { "seq": "s", "expr": "[0-9]{1,2}", "str": function (e) { return e.getSeconds(); } }, { "seq": "MMMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNames[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNames, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return a.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var r = DayPilot.indexOf(a.monthNamesShort, e, t); return r < 0 ? null : r + 1; } }, { "seq": "MM", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getMonth() + 1; return t < 10 ? "0" + t : t; } }, { "seq": "M", "expr": "[0-9]{1,2}", "str": function (e) { return e.getMonth() + 1; } }, { "seq": "dddd", "expr": "[^\\s0-9]*", "str": function (e) { return a.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) {
|
|
454
|
+
return a.dayNamesShort[e.getDayOfWeek()];
|
|
455
|
+
} }, { "seq": "dd", "expr": "[0-9]{2,2}", "str": function (e) { var t = e.getDay(); return t < 10 ? "0" + t : t; } }, { "seq": "%d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "d", "expr": "[0-9]{1,2}", "str": function (e) { return e.getDay(); } }, { "seq": "tt", "expr": "(AM|PM|am|pm)", "str": function (e) { return e.getHours() < 12 ? "AM" : "PM"; }, "transform": function (e) { return e.toUpperCase(); } }], o = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
|
|
424
456
|
this.init = function () { this.year = this.findSequence("yyyy"), this.month = this.findSequence("MMMM") || this.findSequence("MMM") || this.findSequence("MM") || this.findSequence("M"), this.day = this.findSequence("dd") || this.findSequence("d"), this.hours = this.findSequence("HH") || this.findSequence("H"), this.minutes = this.findSequence("mm") || this.findSequence("m"), this.seconds = this.findSequence("ss") || this.findSequence("s"), this.ampm = this.findSequence("tt"), this.hours12 = this.findSequence("hh") || this.findSequence("h"); }, this.findSequence = function (t) {
|
|
425
457
|
function a(e) { return parseInt(e); }
|
|
426
458
|
return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
|
|
@@ -510,9 +542,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
510
542
|
r.data[n[e]] = o[n[e]];
|
|
511
543
|
o.dirty = !1;
|
|
512
544
|
}
|
|
513
|
-
}, this.dirty = function () { return o.dirty; }, this.id = function (e) { return "undefined" == typeof e ? r.data.id : void (this.temp().id = e); }, this.value = function (e) { return "undefined" == typeof e ? r.id() : void r.id(e); }, this.text = function (e) { return "undefined" == typeof e ? r.data.text : (this.temp().text = e, void this.client.innerHTML(e)); }, this.start = function (e) {
|
|
514
|
-
return "undefined" == typeof e ? new DayPilot.Date(r.data.start) : void (this.temp().start = new DayPilot.Date(e));
|
|
515
|
-
}, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.resource = function (e) { return "undefined" == typeof e ? r.data.resource : void (this.temp().resource = e); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
|
|
545
|
+
}, this.dirty = function () { return o.dirty; }, this.id = function (e) { return "undefined" == typeof e ? r.data.id : void (this.temp().id = e); }, this.value = function (e) { return "undefined" == typeof e ? r.id() : void r.id(e); }, this.text = function (e) { return "undefined" == typeof e ? r.data.text : (this.temp().text = e, void this.client.innerHTML(e)); }, this.start = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.start) : void (this.temp().start = new DayPilot.Date(e)); }, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.resource = function (e) { return "undefined" == typeof e ? r.data.resource : void (this.temp().resource = e); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
|
|
516
546
|
var t = r.data.tag;
|
|
517
547
|
if (!t)
|
|
518
548
|
return null;
|
|
@@ -529,7 +559,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
529
559
|
return a ? a(t.text, t.html) : DayPilot.Util.escapeTextHtml(t.text, t.html);
|
|
530
560
|
}
|
|
531
561
|
r.data.html = e;
|
|
532
|
-
}, this.client.html = this.client.innerHTML, this.client.header = function (e) { return "undefined" == typeof e ? r.data.header : void (r.data.header = e); }, this.client.cssClass = function (e) { return "undefined" == typeof e ? r.data.cssClass : void (r.data.cssClass = e); }, this.client.toolTip = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.toolTip ? r.cache.toolTip : "undefined" != typeof r.data.toolTip ? r.data.toolTip : r.data.text : void (r.data.toolTip = e); }, this.client.barVisible = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.barHidden ? !r.cache.barHidden : r.calendar.durationBarVisible && !r.data.barHidden : void (r.data.barHidden = !e); }, this.client.backColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.backColor ? r.cache.backColor : "undefined" != typeof r.data.backColor ? r.data.backColor : r.calendar.eventBackColor : void (r.data.backColor = e); }, this.client.borderColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.borderColor ? r.cache.borderColor : "undefined" != typeof r.data.borderColor ? r.data.borderColor : r.calendar.eventBorderColor : void (r.data.borderColor = e); }, this.client.
|
|
562
|
+
}, this.client.html = this.client.innerHTML, this.client.header = function (e) { return "undefined" == typeof e ? r.data.header : void (r.data.header = e); }, this.client.cssClass = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.cssClass ? r.cache.cssClass : r.data.cssClass : void (r.data.cssClass = e); }, this.client.toolTip = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.toolTip ? r.cache.toolTip : "undefined" != typeof r.data.toolTip ? r.data.toolTip : r.data.text : void (r.data.toolTip = e); }, this.client.barVisible = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.barHidden ? !r.cache.barHidden : r.calendar.durationBarVisible && !r.data.barHidden : void (r.data.barHidden = !e); }, this.client.backColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.backColor ? r.cache.backColor : "undefined" != typeof r.data.backColor ? r.data.backColor : r.calendar.eventBackColor : void (r.data.backColor = e); }, this.client.borderColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.borderColor ? r.cache.borderColor : "undefined" != typeof r.data.borderColor ? r.data.borderColor : r.calendar.eventBorderColor : void (r.data.borderColor = e); }, this.client.contextMenu = function (e) {
|
|
563
|
+
if ("undefined" == typeof e) {
|
|
564
|
+
if (r.oContextMenu)
|
|
565
|
+
return r.oContextMenu;
|
|
566
|
+
r.cache ? r.cache.contextMenu : r.data.contextMenu;
|
|
567
|
+
}
|
|
568
|
+
else
|
|
569
|
+
r.oContextMenu = e;
|
|
570
|
+
}, this.client.moveEnabled = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.moveDisabled ? !r.cache.moveDisabled : "Disabled" !== r.calendar.eventMoveHandling && !r.data.moveDisabled : void (r.data.moveDisabled = !e); }, this.client.resizeEnabled = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.resizeDisabled ? !r.cache.resizeDisabled : "Disabled" !== r.calendar.eventResizeHandling && !r.data.resizeDisabled : void (r.data.resizeDisabled = !e); }, this.client.clickEnabled = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.clickDisabled ? !r.cache.clickDisabled : "Disabled" !== r.calendar.eventClickHandling && !r.data.clickDisabled : void (r.data.clickDisabled = !e); }, this.client.rightClickEnabled = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.rightClickDisabled ? !r.cache.rightClickDisabled : "Disabled" !== r.calendar.eventRightClickHandling && !r.data.rightClickDisabled : void (r.data.rightClickDisabled = !e); }, this.client.deleteEnabled = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.deleteDisabled ? !r.cache.deleteDisabled : "Disabled" !== r.calendar.eventDeleteHandling && !r.data.deleteDisabled : void (r.data.deleteDisabled = !e); }, this.toJSON = function (e) {
|
|
533
571
|
var t = {};
|
|
534
572
|
if (t.value = this.id(), t.id = this.id(), t.text = this.text(), t.start = this.start(), t.end = this.end(), t.tag = {}, r.calendar && r.calendar.tagFields)
|
|
535
573
|
for (var a = r.calendar.tagFields, o = 0; o < a.length; o++)
|
|
@@ -645,7 +683,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
645
683
|
if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
|
|
646
684
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
647
685
|
var s = this;
|
|
648
|
-
this.uniqueID = null, this.v = "2022.3.
|
|
686
|
+
this.uniqueID = null, this.v = "2022.3.426-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.eventHeaderVisible = !0, 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.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
|
|
649
687
|
if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
650
688
|
return new Number(RegExp.$1) >= 10.5;
|
|
651
689
|
}
|
|
@@ -689,7 +727,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
689
727
|
case "CallBack":
|
|
690
728
|
s.eventClickCallBack(i);
|
|
691
729
|
break;
|
|
692
|
-
case "PostBack":
|
|
730
|
+
case "PostBack":
|
|
731
|
+
s.eventClickPostBack(i);
|
|
732
|
+
break;
|
|
733
|
+
case "ContextMenu":
|
|
734
|
+
var a = i.client.contextMenu();
|
|
735
|
+
a ? a.show(i) : s.contextMenu && s.contextMenu.show(i);
|
|
693
736
|
}
|
|
694
737
|
"function" == typeof s.onEventClicked && s.Q.apply(function () { s.onEventClicked(n); });
|
|
695
738
|
}
|
|
@@ -703,7 +746,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
703
746
|
break;
|
|
704
747
|
case "JavaScript": s.onEventClick(i);
|
|
705
748
|
}
|
|
706
|
-
}, this.
|
|
749
|
+
}, this.R = function (e) {
|
|
750
|
+
var t = this.event;
|
|
751
|
+
if (e.stopPropagation && e.stopPropagation(), !t.client.rightClickEnabled())
|
|
752
|
+
return !1;
|
|
753
|
+
var i = {};
|
|
754
|
+
if (i.e = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventRightClick && (s.onEventRightClick(i), i.preventDefault.value))
|
|
755
|
+
return !1;
|
|
756
|
+
switch (s.eventRightClickHandling) {
|
|
757
|
+
case "ContextMenu":
|
|
758
|
+
var n = t.client.contextMenu();
|
|
759
|
+
n ? n.show(t) : s.contextMenu && s.contextMenu.show(this.event);
|
|
760
|
+
}
|
|
761
|
+
return "function" == typeof s.onEventRightClicked && s.onEventRightClicked(i), e.preventDefault && e.preventDefault(), !1;
|
|
762
|
+
}, this.eventDeleteCallBack = function (e, t) { this.m("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.k("EventDelete", t, e); }, this.S = function (e) {
|
|
707
763
|
if (s.O()) {
|
|
708
764
|
var t = {};
|
|
709
765
|
if (t.e = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventDelete && (s.Q.apply(function () { s.onEventDelete(t); }), t.preventDefault.value))
|
|
@@ -795,7 +851,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
795
851
|
}, this.b = function (e, t, i, n) {
|
|
796
852
|
var a = 1, l = Math.floor((i - a) / s.cellHeight), o = 30 * l * 60 * 1e3, r = e.start(), h = e.end(), c = new Date;
|
|
797
853
|
r instanceof DayPilot.Date && (r = r.toDate()), c.setTime(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()));
|
|
798
|
-
var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.
|
|
854
|
+
var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.T[t], p = v.id, f = v.start.getTime(), g = new Date;
|
|
799
855
|
g.setTime(f + o + d);
|
|
800
856
|
var m = new DayPilot.Date(g), y = m.addTime(u);
|
|
801
857
|
if (s.O()) {
|
|
@@ -846,13 +902,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
846
902
|
break;
|
|
847
903
|
case "JavaScript": s.onTimeRangeSelected(e, t);
|
|
848
904
|
}
|
|
849
|
-
}, this.
|
|
905
|
+
}, this.U = function (e) {
|
|
850
906
|
if (!t.selecting && "Disabled" !== s.timeRangeSelectedHandling) {
|
|
851
907
|
var i = e.which;
|
|
852
908
|
if (1 === i || 0 === i)
|
|
853
|
-
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.
|
|
909
|
+
return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.V(), !1;
|
|
854
910
|
}
|
|
855
|
-
}, this.
|
|
911
|
+
}, this.V = function () {
|
|
856
912
|
this.getSelection();
|
|
857
913
|
!function () {
|
|
858
914
|
var e = t.topSelectedCell, i = t.bottomSelectedCell, n = function () {
|
|
@@ -862,7 +918,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
862
918
|
if (t[i] === e)
|
|
863
919
|
return i;
|
|
864
920
|
return -1;
|
|
865
|
-
}(), a = s.
|
|
921
|
+
}(), a = s.T[n];
|
|
866
922
|
if (a) {
|
|
867
923
|
var l = a.start, o = s.getPixels(e.start, l).boxTop, r = s.getPixels(i.end, l).boxBottom, h = r - o, c = function () {
|
|
868
924
|
if (s.nav.activeSelection)
|
|
@@ -875,12 +931,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
875
931
|
c.className = s.u("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
|
|
876
932
|
}
|
|
877
933
|
}();
|
|
878
|
-
}, this.
|
|
934
|
+
}, this.W = function (e) {
|
|
879
935
|
if ("undefined" != typeof t && t.selecting) {
|
|
880
936
|
var i = DayPilot.mc(e);
|
|
881
|
-
t.getColumn(this) === t.column && (s.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]), s.
|
|
937
|
+
t.getColumn(this) === t.column && (s.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]), s.V());
|
|
882
938
|
}
|
|
883
|
-
}, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, n = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, n, s); }, this.
|
|
939
|
+
}, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, n = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, n, s); }, this.X = function (e) {
|
|
884
940
|
if (e < 0)
|
|
885
941
|
return null;
|
|
886
942
|
for (var t = 0, i = s.nav.events.rows[0].cells, n = 0; n < i.length; n++) {
|
|
@@ -888,11 +944,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
888
944
|
return n;
|
|
889
945
|
}
|
|
890
946
|
return null;
|
|
891
|
-
}, this.
|
|
947
|
+
}, this.Y = {}, this.Y.getCellCoords = function () {
|
|
892
948
|
var e = {};
|
|
893
949
|
if (e.x = 0, e.y = 0, !s.coords)
|
|
894
950
|
return null;
|
|
895
|
-
e.x = s.
|
|
951
|
+
e.x = s.X(s.coords.x);
|
|
896
952
|
var t = 0, i = Math.floor((s.coords.y - t) / s.cellHeight);
|
|
897
953
|
return e.y = i, e.x < 0 ? null : e;
|
|
898
954
|
}, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
|
|
@@ -911,20 +967,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
911
967
|
var o = {};
|
|
912
968
|
if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
|
|
913
969
|
return;
|
|
914
|
-
s.columns.list = i, s.
|
|
970
|
+
s.columns.list = i, s.Z && s.update();
|
|
915
971
|
}
|
|
916
972
|
};
|
|
917
973
|
s.columnsLoadMethod && "POST" === s.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": n }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": n });
|
|
918
974
|
}, this.B = function () {
|
|
919
975
|
var e;
|
|
920
|
-
e = "Resources" !== s.viewType ? this
|
|
976
|
+
e = "Resources" !== s.viewType ? this.$() : s.columns.list, this.T = [];
|
|
921
977
|
for (var t = 0; t < e.length; t++) {
|
|
922
|
-
var i = this
|
|
923
|
-
this.
|
|
978
|
+
var i = this._(e[t]);
|
|
979
|
+
this.T.push(i);
|
|
924
980
|
}
|
|
925
|
-
}, this
|
|
981
|
+
}, this._ = function (e) {
|
|
926
982
|
var t = {};
|
|
927
|
-
return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(s.startDate), t.putIntoBlock = function (e) {
|
|
983
|
+
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(s.startDate), t.putIntoBlock = function (e) {
|
|
928
984
|
for (var t = 0; t < this.blocks.length; t++) {
|
|
929
985
|
var i = this.blocks[t];
|
|
930
986
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
@@ -963,7 +1019,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
963
1019
|
return !0;
|
|
964
1020
|
}, i.push(e), this.lines.push(i), this.lines.length - 1;
|
|
965
1021
|
}, t;
|
|
966
|
-
}, this
|
|
1022
|
+
}, this.$ = function () {
|
|
967
1023
|
var e = [], t = this.startDate.getDatePart(), i = this.days;
|
|
968
1024
|
switch (this.viewType) {
|
|
969
1025
|
case "Day":
|
|
@@ -982,21 +1038,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
982
1038
|
return e;
|
|
983
1039
|
}, this.visibleStart = function () {
|
|
984
1040
|
if ("Resources" === s.viewType) {
|
|
985
|
-
if (0 === s.
|
|
1041
|
+
if (0 === s.T.length)
|
|
986
1042
|
return DayPilot.Date.today();
|
|
987
|
-
var e = s.
|
|
1043
|
+
var e = s.T.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
|
|
988
1044
|
return new DayPilot.Date(t);
|
|
989
1045
|
}
|
|
990
|
-
return this.
|
|
1046
|
+
return this.T[0].start;
|
|
991
1047
|
}, this.visibleEnd = function () {
|
|
992
1048
|
if ("Resources" === s.viewType) {
|
|
993
|
-
if (0 === s.
|
|
1049
|
+
if (0 === s.T.length)
|
|
994
1050
|
return DayPilot.Date.today().addDays(1);
|
|
995
|
-
var e = s.
|
|
1051
|
+
var e = s.T.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
|
|
996
1052
|
return new DayPilot.Date(t).addDays(1);
|
|
997
1053
|
}
|
|
998
|
-
var t = this.
|
|
999
|
-
return this.
|
|
1054
|
+
var t = this.T.length - 1;
|
|
1055
|
+
return this.T[t].start.addDays(1);
|
|
1000
1056
|
}, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
|
|
1001
1057
|
if (this.elements.events)
|
|
1002
1058
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
@@ -1008,31 +1064,31 @@ if ("undefined" == typeof DayPilot)
|
|
|
1008
1064
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
1009
1065
|
}
|
|
1010
1066
|
this.elements.events = [];
|
|
1011
|
-
}, this.
|
|
1067
|
+
}, this.aa = function (e) {
|
|
1012
1068
|
var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
|
|
1013
|
-
a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.P, a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (
|
|
1014
|
-
var
|
|
1069
|
+
a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.P, DayPilot.re(a, "contextmenu", this.R), a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (i) {
|
|
1070
|
+
var n = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
|
|
1015
1071
|
if ("undefined" != typeof t) {
|
|
1016
|
-
var
|
|
1017
|
-
if (
|
|
1072
|
+
var l = DayPilot.mo3(a, i);
|
|
1073
|
+
if (l && !t.resizing && !t.moving) {
|
|
1018
1074
|
a.deleteIcon && (a.deleteIcon.style.display = "");
|
|
1019
|
-
var
|
|
1020
|
-
|
|
1075
|
+
var o = this.isLast;
|
|
1076
|
+
l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <= 5 && e.client.resizeEnabled() ? o ? (this.style.cursor = "s-resize", this.dpBorder = "bottom") : this.style.cursor = "not-allowed" : t.resizing || t.moving || ("Disabled" !== s.eventClickHandling ? this.style.cursor = "pointer" : this.style.cursor = "default");
|
|
1021
1077
|
}
|
|
1022
1078
|
}
|
|
1023
|
-
}, a.onmousedown = function (
|
|
1024
|
-
var
|
|
1025
|
-
if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !==
|
|
1026
|
-
if (1 ===
|
|
1079
|
+
}, a.onmousedown = function (i) {
|
|
1080
|
+
var n = i.which || i.button;
|
|
1081
|
+
if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== n) {
|
|
1082
|
+
if (1 === n && e.client.moveEnabled()) {
|
|
1027
1083
|
t.moving = this, t.moving.event = this.event;
|
|
1028
|
-
var
|
|
1029
|
-
|
|
1030
|
-
var
|
|
1031
|
-
|
|
1084
|
+
var a = t.moving.helper = {};
|
|
1085
|
+
a.oldColumn = s.T[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
1086
|
+
var l = DayPilot.mo3(this, i);
|
|
1087
|
+
l ? t.moveOffsetY = l.y : t.moveOffsetY = 0, s.nav.top.style.cursor = "move";
|
|
1032
1088
|
}
|
|
1033
1089
|
}
|
|
1034
1090
|
else
|
|
1035
|
-
t.resizing = this, t.originalMouse = DayPilot.mc(
|
|
1091
|
+
t.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
|
|
1036
1092
|
return !1;
|
|
1037
1093
|
};
|
|
1038
1094
|
var l = document.createElement("div");
|
|
@@ -1042,24 +1098,24 @@ if ("undefined" == typeof DayPilot)
|
|
|
1042
1098
|
var d = document.createElement("div");
|
|
1043
1099
|
d.setAttribute("unselectable", "on"), d.className = this.u("_event_bar_inner"), d.style.top = r + "%", 0 < h && h <= 1 ? d.style.height = "1px" : d.style.height = h + "%", i.barColor && (d.style.backgroundColor = i.barColor), c.appendChild(d), a.appendChild(c);
|
|
1044
1100
|
}
|
|
1045
|
-
if (
|
|
1101
|
+
if (e.client.deleteEnabled()) {
|
|
1046
1102
|
var u = document.createElement("div");
|
|
1047
|
-
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.u("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.
|
|
1103
|
+
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.u("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.S(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
|
|
1048
1104
|
}
|
|
1049
1105
|
if (n.rows[0].cells[e.part.dayIndex]) {
|
|
1050
|
-
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.
|
|
1106
|
+
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.ba(a);
|
|
1051
1107
|
}
|
|
1052
1108
|
s.elements.events.push(a);
|
|
1053
|
-
}, this.
|
|
1109
|
+
}, this.ba = function (e) {
|
|
1054
1110
|
for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
1055
1111
|
try {
|
|
1056
1112
|
var n = e.childNodes[i];
|
|
1057
|
-
1 === n.nodeType && (n.unselectable = "on", this.
|
|
1113
|
+
1 === n.nodeType && (n.unselectable = "on", this.ba(n));
|
|
1058
1114
|
}
|
|
1059
1115
|
catch (e) { }
|
|
1060
1116
|
}, this.I = function () {
|
|
1061
|
-
for (var e = 0; e < this.
|
|
1062
|
-
var t = this.
|
|
1117
|
+
for (var e = 0; e < this.T.length; e++) {
|
|
1118
|
+
var t = this.T[e];
|
|
1063
1119
|
if (t.blocks)
|
|
1064
1120
|
for (var i = 0; i < t.blocks.length; i++)
|
|
1065
1121
|
for (var n = t.blocks[i], s = 0; s < n.lines.length; s++)
|
|
@@ -1067,13 +1123,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
1067
1123
|
var o = a[l];
|
|
1068
1124
|
o.part.width = 100 / n.lines.length, o.part.left = o.part.width * s;
|
|
1069
1125
|
var r = s === n.lines.length - 1;
|
|
1070
|
-
r || (o.part.width = 1.5 * o.part.width), this.
|
|
1126
|
+
r || (o.part.width = 1.5 * o.part.width), this.aa(o);
|
|
1071
1127
|
}
|
|
1072
1128
|
}
|
|
1073
|
-
}, this.
|
|
1129
|
+
}, this.ca = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_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.da() + "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.ea(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.fa(); 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.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ga(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.fa = 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, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ga(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.ha()), s.appendChild(this.ia()), e.appendChild(t), this.nav.zoom = e, e; }, this.ha = 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.ia = function () {
|
|
1074
1130
|
var e = document.createElement("table");
|
|
1075
1131
|
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;
|
|
1076
|
-
for (var t = this.
|
|
1132
|
+
for (var t = this.T, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
|
|
1077
1133
|
var l = n.insertCell(-1);
|
|
1078
1134
|
l.style.padding = "0px", l.style.border = "0px none", l.style.height = "0px", l.style.overflow = "visible", s.rtl || (l.style.textAlign = "left");
|
|
1079
1135
|
var o = document.createElement("div");
|
|
@@ -1082,13 +1138,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
1082
1138
|
l.selection = r, l.appendChild(o), l.appendChild(r);
|
|
1083
1139
|
}
|
|
1084
1140
|
return e;
|
|
1085
|
-
}, this.
|
|
1141
|
+
}, this.ga = function () {
|
|
1086
1142
|
var e = document.createElement("table");
|
|
1087
1143
|
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; };
|
|
1088
1144
|
for (var t = s.J(), i = 0; i < t; i++)
|
|
1089
|
-
this.
|
|
1145
|
+
this.ja(e, i);
|
|
1090
1146
|
return e;
|
|
1091
|
-
}, this.
|
|
1147
|
+
}, this.ja = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.u("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.u("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.N()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.u("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.da = function () {
|
|
1092
1148
|
switch (this.heightSpec) {
|
|
1093
1149
|
case "Full": return 48 * this.cellHeight;
|
|
1094
1150
|
case "BusinessHours":
|
|
@@ -1099,21 +1155,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
1099
1155
|
return e * this.cellHeight * 2;
|
|
1100
1156
|
default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
|
|
1101
1157
|
}
|
|
1102
|
-
}, this.
|
|
1158
|
+
}, this.ka = function () {
|
|
1103
1159
|
var e = s.nav.corner ? s.nav.corner.parentNode : null;
|
|
1104
1160
|
if (e) {
|
|
1105
1161
|
e.innerHTML = "";
|
|
1106
|
-
var t = this.
|
|
1162
|
+
var t = this.la();
|
|
1107
1163
|
e.appendChild(t), s.nav.corner = t;
|
|
1108
1164
|
}
|
|
1109
|
-
}, this.
|
|
1165
|
+
}, this.ea = function () {
|
|
1110
1166
|
var e = document.createElement("div");
|
|
1111
1167
|
e.style.overflow = "auto";
|
|
1112
1168
|
var t = document.createElement("table");
|
|
1113
1169
|
t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
|
|
1114
1170
|
var i = t.insertRow(-1), n = i.insertCell(-1);
|
|
1115
1171
|
n.style.padding = "0px", n.style.border = "0px none";
|
|
1116
|
-
var s = this.
|
|
1172
|
+
var s = this.la();
|
|
1117
1173
|
n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%", n.valign = "top", n.style.position = "relative", n.style.padding = "0px", n.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; };
|
|
1118
1174
|
var a = "hidden" !== this.nav.scroll.style.overflow;
|
|
1119
1175
|
if (n.appendChild(this.nav.header), a) {
|
|
@@ -1124,17 +1180,18 @@ if ("undefined" == typeof DayPilot)
|
|
|
1124
1180
|
o.className = this.u("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
|
|
1125
1181
|
}
|
|
1126
1182
|
return e.appendChild(t), e;
|
|
1127
|
-
}, this.
|
|
1183
|
+
}, this.la = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_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.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
|
|
1128
1184
|
var e = this.nav.main;
|
|
1129
1185
|
e.root = null, e.onmouseup = null;
|
|
1130
1186
|
for (var t = 0; t < e.rows.length; t++)
|
|
1131
1187
|
for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
|
|
1132
1188
|
var s = i.cells[n];
|
|
1133
|
-
s.root = null, s.onmousedown = null,
|
|
1189
|
+
s.root = null, s.onmousedown = null,
|
|
1190
|
+
s.onmousemove = null, s.onmouseout = null, s.onmouseup = null;
|
|
1134
1191
|
}
|
|
1135
1192
|
this.fasterDispose || DayPilot.pu(e);
|
|
1136
1193
|
}, this.F = function () {
|
|
1137
|
-
var e = this.nav.main, i = 18e5, n = this.M(), a = s.
|
|
1194
|
+
var e = this.nav.main, i = 18e5, n = this.M(), a = s.T;
|
|
1138
1195
|
for (e && this.q(); e && e.rows && e.rows.length > 0;)
|
|
1139
1196
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1140
1197
|
this.tableCreated = !0;
|
|
@@ -1152,11 +1209,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
1152
1209
|
var r = e.insertRow(-1);
|
|
1153
1210
|
r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
|
|
1154
1211
|
for (var h = 0; h < l; h++) {
|
|
1155
|
-
var p = this.
|
|
1156
|
-
c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.
|
|
1212
|
+
var p = this.T[h], c = r.insertCell(-1);
|
|
1213
|
+
c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.U, 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 = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
1157
1214
|
var d = document.createElement("div");
|
|
1158
1215
|
d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.u("_cell");
|
|
1159
|
-
this.
|
|
1216
|
+
this.ma(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
|
|
1160
1217
|
var f = document.createElement("div");
|
|
1161
1218
|
f.setAttribute("unselectable", "on"), f.className = this.u("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
|
|
1162
1219
|
}
|
|
@@ -1194,11 +1251,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
1194
1251
|
f < 0 && (f = 0), f < u.rows[0].cells.length && f >= 0 && t.movingShadow.column !== f && (t.movingShadow.column = f, t.moveShadow(u.rows[0].cells[f]));
|
|
1195
1252
|
}
|
|
1196
1253
|
else if (t.selecting) {
|
|
1197
|
-
var n = DayPilot.mc(e), g = s.
|
|
1198
|
-
n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.
|
|
1254
|
+
var n = DayPilot.mc(e), g = s.Y.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
|
|
1255
|
+
n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.V();
|
|
1199
1256
|
}
|
|
1200
1257
|
}, s.nav.scrollable.style.display = "";
|
|
1201
|
-
}, this.
|
|
1258
|
+
}, this.ma = 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.r = function () {
|
|
1202
1259
|
var e = this.nav.header;
|
|
1203
1260
|
if (e && e.rows)
|
|
1204
1261
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1207,27 +1264,32 @@ if ("undefined" == typeof DayPilot)
|
|
|
1207
1264
|
s.onclick = null, s.onmousemove = null, s.onmouseout = null;
|
|
1208
1265
|
}
|
|
1209
1266
|
this.fasterDispose || DayPilot.pu(e);
|
|
1210
|
-
}, this.
|
|
1211
|
-
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.
|
|
1267
|
+
}, this.na = function (e) {
|
|
1268
|
+
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.T, n = i.length, a = 0; a < n; a++) {
|
|
1212
1269
|
var l = i[a], o = e ? t.insertCell(-1) : t.cells[a];
|
|
1213
|
-
o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px";
|
|
1270
|
+
o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px", o.onclick = s.oa;
|
|
1214
1271
|
var r = e ? document.createElement("div") : o.firstChild;
|
|
1215
1272
|
if (e) {
|
|
1216
|
-
r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
|
|
1273
|
+
r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px", s.headerTextWrappingEnabled || (r.style.whiteSpace = "nowrap");
|
|
1217
1274
|
var h = document.createElement("div");
|
|
1218
1275
|
h.className = s.u("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
|
|
1219
1276
|
}
|
|
1220
1277
|
l.toolTip && (h.title = l.toolTip);
|
|
1221
1278
|
var h = r.firstChild;
|
|
1222
|
-
h.innerHTML = s.
|
|
1279
|
+
h.innerHTML = s.pa(l.name, l.html);
|
|
1223
1280
|
}
|
|
1224
|
-
}, this.oa = function () {
|
|
1225
|
-
|
|
1281
|
+
}, this.oa = function (e) {
|
|
1282
|
+
if ("Disabled" !== s.headerClickHandling) {
|
|
1283
|
+
var t = this.data, i = s.qa(t), n = {};
|
|
1284
|
+
n.header = {}, n.header.id = t.id, n.header.name = t.name, n.header.start = t.start, n.column = i, n.originalEvent = e, n.shift = e.shiftKey, n.ctrl = e.ctrlKey, n.meta = e.metaKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onHeaderClick && (s.onHeaderClick(n), n.preventDefault.value) || "function" == typeof s.onHeaderClicked && s.onHeaderClicked(n);
|
|
1285
|
+
}
|
|
1286
|
+
}, this.qa = function (e) { return new DayPilot.CalendarColumn(e, s); }, this.ra = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
|
|
1287
|
+
var e = this.nav.header, t = !0, i = this.T;
|
|
1226
1288
|
for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1227
1289
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1228
1290
|
this.headerCreated = !0;
|
|
1229
|
-
this.
|
|
1230
|
-
}, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.
|
|
1291
|
+
this.na(t);
|
|
1292
|
+
}, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.sa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.ta(); }); var t = "undefined" != typeof this.ua.scrollpos ? this.ua.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.va = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.wa = 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) {
|
|
1231
1293
|
var t = null;
|
|
1232
1294
|
if (e instanceof DayPilot.Event)
|
|
1233
1295
|
t = e.data;
|
|
@@ -1285,7 +1347,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1285
1347
|
var o = {};
|
|
1286
1348
|
if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
|
|
1287
1349
|
return;
|
|
1288
|
-
s.events.list = i, s.
|
|
1350
|
+
s.events.list = i, s.Z && s.update();
|
|
1289
1351
|
}
|
|
1290
1352
|
};
|
|
1291
1353
|
if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
|
|
@@ -1295,14 +1357,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
1295
1357
|
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
|
|
1296
1358
|
}
|
|
1297
1359
|
}, this.update = function (e) {
|
|
1298
|
-
if (s.
|
|
1299
|
-
s.
|
|
1300
|
-
s.B(), s.E(), s.F(), s.G(), s.H(), s.
|
|
1360
|
+
if (s.xa(e), this.Z) {
|
|
1361
|
+
s.ya(), s.p(), s.nav.top.style.cursor = "auto";
|
|
1362
|
+
s.B(), s.E(), s.F(), s.G(), s.H(), s.ka(), s.za(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1301
1363
|
}
|
|
1302
|
-
}, this.
|
|
1364
|
+
}, this.Aa = null, this.xa = function (e) {
|
|
1303
1365
|
if (e) {
|
|
1304
1366
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
|
|
1305
|
-
this.
|
|
1367
|
+
this.Aa = t;
|
|
1306
1368
|
for (var i in e)
|
|
1307
1369
|
if (t[i]) {
|
|
1308
1370
|
var n = t[i];
|
|
@@ -1311,13 +1373,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
1311
1373
|
else
|
|
1312
1374
|
s[i] = e[i];
|
|
1313
1375
|
}
|
|
1314
|
-
}, this.
|
|
1315
|
-
var e = this.
|
|
1376
|
+
}, this.Ba = function () {
|
|
1377
|
+
var e = this.Aa;
|
|
1316
1378
|
for (var t in e) {
|
|
1317
1379
|
var i = e[t];
|
|
1318
1380
|
i.postInit && i.postInit();
|
|
1319
1381
|
}
|
|
1320
|
-
}, this.
|
|
1382
|
+
}, this.Ca = function () {
|
|
1321
1383
|
if (this.id && this.id.tagName)
|
|
1322
1384
|
this.nav.top = this.id;
|
|
1323
1385
|
else {
|
|
@@ -1326,8 +1388,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
1326
1388
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1327
1389
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1328
1390
|
}
|
|
1329
|
-
}, this.
|
|
1330
|
-
var t = this.
|
|
1391
|
+
}, this.Da = {}, this.Da.events = [], this.Ea = function (e) {
|
|
1392
|
+
var t = this.Da.events, i = this.events.list[e], n = {};
|
|
1331
1393
|
for (var s in i)
|
|
1332
1394
|
n[s] = i[s];
|
|
1333
1395
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -1337,7 +1399,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1337
1399
|
t[e] = n;
|
|
1338
1400
|
}, this.C = function () {
|
|
1339
1401
|
var e = this.events.list;
|
|
1340
|
-
if (s.
|
|
1402
|
+
if (s.Da.events = [], e) {
|
|
1341
1403
|
var t = e.length, i = 864e5;
|
|
1342
1404
|
this.cache.pixels = {};
|
|
1343
1405
|
var n = [];
|
|
@@ -1348,11 +1410,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
1348
1410
|
}
|
|
1349
1411
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1350
1412
|
for (var a = 0; a < t; a++)
|
|
1351
|
-
this.
|
|
1352
|
-
for (var a = 0; a < this.
|
|
1413
|
+
this.Ea(a);
|
|
1414
|
+
for (var a = 0; a < this.T.length; a++) {
|
|
1353
1415
|
var o = {};
|
|
1354
1416
|
o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
|
|
1355
|
-
var r = this.
|
|
1417
|
+
var r = this.T[a];
|
|
1356
1418
|
r.events = [], r.lines = [], r.blocks = [];
|
|
1357
1419
|
for (var h = new DayPilot.Date(r.start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
|
|
1358
1420
|
if (!n[v]) {
|
|
@@ -1368,21 +1430,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
1368
1430
|
var x = w.boxBottom;
|
|
1369
1431
|
b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
|
|
1370
1432
|
var p = b.part.top, f = b.part.top + b.part.height;
|
|
1371
|
-
p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.
|
|
1433
|
+
p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.Da.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
|
|
1372
1434
|
}
|
|
1373
1435
|
}
|
|
1374
1436
|
}
|
|
1375
1437
|
}
|
|
1376
|
-
for (var a = 0; a < this.
|
|
1377
|
-
var r = this.
|
|
1378
|
-
r.events.sort(this.
|
|
1438
|
+
for (var a = 0; a < this.T.length; a++) {
|
|
1439
|
+
var r = this.T[a];
|
|
1440
|
+
r.events.sort(this.Fa);
|
|
1379
1441
|
for (var v = 0; v < r.events.length; v++) {
|
|
1380
1442
|
var l = r.events[v];
|
|
1381
1443
|
r.putIntoBlock(l);
|
|
1382
1444
|
}
|
|
1383
1445
|
for (var v = 0; v < r.blocks.length; v++) {
|
|
1384
1446
|
var k = r.blocks[v];
|
|
1385
|
-
k.events.sort(this.
|
|
1447
|
+
k.events.sort(this.Fa);
|
|
1386
1448
|
for (var H = 0; H < k.events.length; H++) {
|
|
1387
1449
|
var l = k.events[H];
|
|
1388
1450
|
k.putIntoLine(l);
|
|
@@ -1390,7 +1452,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1390
1452
|
}
|
|
1391
1453
|
}
|
|
1392
1454
|
}
|
|
1393
|
-
}, this.
|
|
1455
|
+
}, this.Fa = function (e, t) {
|
|
1394
1456
|
if (!(e && t && e.start && t.start))
|
|
1395
1457
|
return 0;
|
|
1396
1458
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1404,31 +1466,31 @@ if ("undefined" == typeof DayPilot)
|
|
|
1404
1466
|
var a = 18e5, l = n - i, o = l % a, r = l - o, h = r + a;
|
|
1405
1467
|
0 === o && (h = r);
|
|
1406
1468
|
var c = {};
|
|
1407
|
-
return c.cut = !1, c.top = this.
|
|
1408
|
-
}, this.
|
|
1469
|
+
return c.cut = !1, c.top = this.Ga(l), c.boxTop = this.Ga(r), c.boxBottom = this.Ga(h), this.cache.pixels[n + "_" + i] = c, c;
|
|
1470
|
+
}, this.Ga = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.ya = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.da(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.ta = function () {
|
|
1409
1471
|
if (s.nav.scroll) {
|
|
1410
1472
|
var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight);
|
|
1411
|
-
s.
|
|
1473
|
+
s.ua.scrollHour = t;
|
|
1412
1474
|
}
|
|
1413
|
-
}, this.
|
|
1414
|
-
for (var e = this.
|
|
1475
|
+
}, this.za = function () { var e = 0; s.ua.scrollHour ? e = 2 * s.cellHeight * s.ua.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ha = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Ia = function () { this.ya(), this.B(), this.ca(), this.E(), this.F(), this.va(), this.sa(), this.wa(), t.register(this), this.Ja(), this.m("Init"); }, this.ua = {}, this.Ka = function () { this.ua.themes = [], this.ua.themes.push(this.theme || this.cssClassPrefix); }, this.La = function () {
|
|
1476
|
+
for (var e = this.ua.themes, t = 0; t < e.length; t++) {
|
|
1415
1477
|
var i = e[t];
|
|
1416
1478
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1417
1479
|
}
|
|
1418
|
-
this.
|
|
1419
|
-
}, this.
|
|
1480
|
+
this.ua.themes = [];
|
|
1481
|
+
}, this.Ma = function () {
|
|
1420
1482
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1421
1483
|
var e = {};
|
|
1422
1484
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1423
1485
|
}
|
|
1424
|
-
}, this.
|
|
1425
|
-
if ("function" == typeof this.onInit && !this.
|
|
1426
|
-
this.
|
|
1486
|
+
}, this.Na = function () {
|
|
1487
|
+
if ("function" == typeof this.onInit && !this.Oa) {
|
|
1488
|
+
this.Oa = !0;
|
|
1427
1489
|
var e = {};
|
|
1428
1490
|
this.onInit(e);
|
|
1429
1491
|
}
|
|
1430
|
-
}, this.
|
|
1431
|
-
},
|
|
1492
|
+
}, this.Pa = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ja = function () { var e = s.Pa; e() || (s.Qa = setInterval(function () { e() && (s.sa(), s.va(), clearInterval(s.Qa)); }, 100)); }, this.pa = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = s.xa, this.internal.xssTextHtml = s.pa, this.init = function () { this.Ca(); var e = this.Ha(); return this.Ka(), e ? void this.Ia() : (this.ya(), this.B(), this.C(), this.ca(), this.E(), this.F(), this.A(), this.va(), this.sa(), this.wa(), t.register(this), this.events && (this.D(), this.I()), this.Ma(), this.Na(), this.Ja(), this.Z = !0, this); }, this.Init = this.init, this.xa(i);
|
|
1493
|
+
}, 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) {
|
|
1432
1494
|
e.fn.daypilotCalendar = function (e) {
|
|
1433
1495
|
var t = null, i = this.each(function () {
|
|
1434
1496
|
if (!this.daypilot) {
|
|
@@ -1459,7 +1521,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1459
1521
|
r.call(t, h, function (e) {
|
|
1460
1522
|
for (var t in e)
|
|
1461
1523
|
s[t] = e[t];
|
|
1462
|
-
s.update(), s.
|
|
1524
|
+
s.update(), s.Na();
|
|
1463
1525
|
}, !0), r.call(t, c, function (e) { s.events.list = e, s.update(); }, !0);
|
|
1464
1526
|
} };
|
|
1465
1527
|
}]);
|
|
@@ -1470,7 +1532,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1470
1532
|
var DayPilot = {};
|
|
1471
1533
|
!function () {
|
|
1472
1534
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1473
|
-
this.v = "2022.3.
|
|
1535
|
+
this.v = "2022.3.426-lite";
|
|
1474
1536
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1475
1537
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1476
1538
|
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
|
|
@@ -1513,6 +1575,249 @@ if ("undefined" == typeof DayPilot)
|
|
|
1513
1575
|
}, this.prepare(), this.init();
|
|
1514
1576
|
});
|
|
1515
1577
|
}();
|
|
1578
|
+
if ("undefined" == typeof DayPilot)
|
|
1579
|
+
var DayPilot = {};
|
|
1580
|
+
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
1581
|
+
"use strict";
|
|
1582
|
+
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1583
|
+
var e = function () { }, t = {};
|
|
1584
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
|
|
1585
|
+
var i = this, o = null;
|
|
1586
|
+
this.v = "2022.3.426-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.b = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, u) {
|
|
1587
|
+
u = u || {};
|
|
1588
|
+
var a = null;
|
|
1589
|
+
if (n ? "string" == typeof n.id || "number" == typeof n.id ? a = n.id : "function" == typeof n.id ? a = n.id() : "function" == typeof n.value && (a = n.value()) : a = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), u.submenu || t.menuClean(), this.b.submenu = null, null !== t.mouse) {
|
|
1590
|
+
i.cssOnly || (i.cssOnly = !0);
|
|
1591
|
+
var s = null;
|
|
1592
|
+
if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof i.onShow) {
|
|
1593
|
+
var l = {};
|
|
1594
|
+
if (l.source = s, l.menu = i, l.preventDefault = function () { l.preventDefault.value = !0; }, i.onShow(l), l.preventDefault.value)
|
|
1595
|
+
return;
|
|
1596
|
+
}
|
|
1597
|
+
var c = document.createElement("div");
|
|
1598
|
+
if (c.style.position = "absolute", c.style.top = "0px", c.style.left = "0px", c.style.display = "none", c.style.overflow = "hidden", c.style.zIndex = this.zIndex + 1, c.className = this.c("main"), c.onclick = function (e) { e.cancelBubble = !0, this.parentNode.removeChild(this); }, this.hideOnMouseOut && (c.onmousemove = function (e) { clearTimeout(t.hideTimeout); }, c.onmouseleave = function (e) { i.delayedHide({ "hideParent": !0 }); }), !this.items || 0 === this.items.length)
|
|
1599
|
+
throw "No menu items defined.";
|
|
1600
|
+
if (this.showMenuTitle) {
|
|
1601
|
+
var r = document.createElement("div");
|
|
1602
|
+
r.innerHTML = this.menuTitle, r.className = this.c("title"), c.appendChild(r);
|
|
1603
|
+
}
|
|
1604
|
+
for (var d = 0; d < this.items.length; d++) {
|
|
1605
|
+
var m = this.items[d], f = document.createElement("div");
|
|
1606
|
+
if (DayPilot.Util.addClass(f, this.c("item")), m.items && (DayPilot.Util.addClass(f, this.c("item_haschildren")), DayPilot.Util.addClass(c, this.c("withchildren"))), "undefined" != typeof m && !m.hidden) {
|
|
1607
|
+
if ("-" === m.text) {
|
|
1608
|
+
var h = document.createElement("div");
|
|
1609
|
+
h.addEventListener("click", function (e) { e.stopPropagation(); }), f.appendChild(h);
|
|
1610
|
+
}
|
|
1611
|
+
else {
|
|
1612
|
+
var v = document.createElement("a");
|
|
1613
|
+
if (v.style.position = "relative", v.style.display = "block", m.cssClass && DayPilot.Util.addClass(v, m.cssClass), m.disabled)
|
|
1614
|
+
DayPilot.Util.addClass(v, i.c("item_disabled"));
|
|
1615
|
+
else {
|
|
1616
|
+
if (m.onclick || m.onClick) {
|
|
1617
|
+
v.item = m, v.onclick = function (e, t) {
|
|
1618
|
+
return function (n) {
|
|
1619
|
+
if ("function" == typeof e.onClick) {
|
|
1620
|
+
var i = {};
|
|
1621
|
+
if (i.item = e, i.source = t.source, i.originalEvent = n, i.preventDefault = function () { i.preventDefault.value = !0; }, e.onClick(i), i.preventDefault.value)
|
|
1622
|
+
return;
|
|
1623
|
+
}
|
|
1624
|
+
e.onclick && e.onclick.call(t, n);
|
|
1625
|
+
};
|
|
1626
|
+
}(m, v);
|
|
1627
|
+
var p = function (e, n) {
|
|
1628
|
+
return function (i) {
|
|
1629
|
+
i.stopPropagation(), i.preventDefault();
|
|
1630
|
+
var o = function () { window.setTimeout(function () { n.source.calendar.internal.touch.active = !1; }, 500); };
|
|
1631
|
+
if ("function" == typeof e.onClick) {
|
|
1632
|
+
var u = {};
|
|
1633
|
+
if (u.item = e, u.source = n.source, u.originalEvent = i, u.preventDefault = function () { u.preventDefault.value = !0; }, e.onClick(u), u.preventDefault.value)
|
|
1634
|
+
return void o();
|
|
1635
|
+
}
|
|
1636
|
+
e.onclick && e.onclick.call(n, i), t.menuClean(), o();
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
DayPilot.reNonPassive(v, "touchstart", function (e) { e.stopPropagation(), e.preventDefault(), v.source.calendar.internal.touch.active = !0; }), DayPilot.reNonPassive(v, "touchend", p(m, v));
|
|
1640
|
+
}
|
|
1641
|
+
if (m.items && !m.disabled) {
|
|
1642
|
+
var b = function (e, t) { return function (n) { n.preventDefault(), n.stopPropagation(), i.d(e, t); }; };
|
|
1643
|
+
v.ontouchend = b(m, v);
|
|
1644
|
+
}
|
|
1645
|
+
if (m.onclick)
|
|
1646
|
+
e();
|
|
1647
|
+
else if (m.href)
|
|
1648
|
+
v.href = m.href.replace(/\x7B0\x7D/gim, a), m.target && v.setAttribute("target", m.target);
|
|
1649
|
+
else if (m.command) {
|
|
1650
|
+
var b = function (e, t) {
|
|
1651
|
+
return function (n) {
|
|
1652
|
+
var i = t.source, o = e;
|
|
1653
|
+
o.action = o.action ? o.action : "CallBack";
|
|
1654
|
+
var u = i.calendar || i.root;
|
|
1655
|
+
if (i instanceof DayPilot.Link)
|
|
1656
|
+
return void u.internal.linkMenuClick(o.command, i, o.action);
|
|
1657
|
+
if (i instanceof DayPilot.Selection)
|
|
1658
|
+
return void u.internal.timeRangeMenuClick(o.command, i, o.action);
|
|
1659
|
+
if (i instanceof DayPilot.Event)
|
|
1660
|
+
return void u.internal.eventMenuClick(o.command, i, o.action);
|
|
1661
|
+
if (i instanceof DayPilot.Selection)
|
|
1662
|
+
return void u.internal.timeRangeMenuClick(o.command, i, o.action);
|
|
1663
|
+
if (i instanceof DayPilot.Task)
|
|
1664
|
+
return void ("resource" === i.menuType ? u.internal.resourceHeaderMenuClick(o.command, t.menuSource, o.action) : u.internal.eventMenuClick(o.command, t.menuSource, o.action));
|
|
1665
|
+
switch (i.menuType) {
|
|
1666
|
+
case "resource": return void u.internal.resourceHeaderMenuClick(o.command, i, o.action);
|
|
1667
|
+
case "selection": return void u.internal.timeRangeMenuClick(o.command, i, o.action);
|
|
1668
|
+
default: return void u.internal.eventMenuClick(o.command, i, o.action);
|
|
1669
|
+
}
|
|
1670
|
+
n.preventDefault();
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
v.onclick = b(m, v), v.ontouchend = b(m, v);
|
|
1674
|
+
}
|
|
1675
|
+
}
|
|
1676
|
+
m.items && v.addEventListener("click", function (e) { e.stopPropagation(); }), v.source = s, v.menuSource = n;
|
|
1677
|
+
var y = document.createElement("span");
|
|
1678
|
+
if (y.className = i.c("item_text"), y.innerHTML = DayPilot.Util.escapeTextHtml(m.text, m.html), v.appendChild(y), m.image) {
|
|
1679
|
+
var w = document.createElement("img");
|
|
1680
|
+
w.src = m.image, w.style.position = "absolute", w.style.top = "0px", w.style.left = "0px", v.appendChild(w);
|
|
1681
|
+
}
|
|
1682
|
+
if (m.icon) {
|
|
1683
|
+
var g = document.createElement("span");
|
|
1684
|
+
g.className = i.c("item_icon");
|
|
1685
|
+
var C = document.createElement("i");
|
|
1686
|
+
C.className = m.icon, g.appendChild(C), v.appendChild(g);
|
|
1687
|
+
}
|
|
1688
|
+
if (m.symbol) {
|
|
1689
|
+
var M = "http://www.w3.org/2000/svg", k = document.createElementNS(M, "svg");
|
|
1690
|
+
k.setAttribute("width", "100%"), k.setAttribute("height", "100%");
|
|
1691
|
+
var x = document.createElementNS(M, "use");
|
|
1692
|
+
x.setAttribute("href", m.symbol), k.appendChild(x);
|
|
1693
|
+
var T = document.createElement("span");
|
|
1694
|
+
T.className = i.c("item_symbol"), T.style.position = "absolute", T.style.top = "0px", T.style.left = "0px", T.appendChild(k), v.appendChild(T);
|
|
1695
|
+
}
|
|
1696
|
+
var E = function (e, n) {
|
|
1697
|
+
return function () {
|
|
1698
|
+
var o = (n.source, e), u = t.waitingSubmenu;
|
|
1699
|
+
if (u) {
|
|
1700
|
+
if (u.parent === o)
|
|
1701
|
+
return;
|
|
1702
|
+
clearTimeout(u.timeout), t.waitingSubmenu = null;
|
|
1703
|
+
}
|
|
1704
|
+
e.disabled || (t.waitingSubmenu = {}, t.waitingSubmenu.parent = o, t.waitingSubmenu.timeout = setTimeout(function () { t.waitingSubmenu = null, i.d(o, n); }, 300));
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
v.onmouseover = E(m, v), f.appendChild(v);
|
|
1708
|
+
}
|
|
1709
|
+
c.appendChild(f);
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
var P = function (e) { window.setTimeout(function () { t.menuClean(), DayPilot.MenuBar.deactivate(); }, 100); };
|
|
1713
|
+
c.onclick = P, c.ontouchend = P, c.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, c.oncontextmenu = function () { return !1; }, document.body.appendChild(c), i.b.visible = !0, i.b.source = n, c.style.display = "";
|
|
1714
|
+
var S = c.offsetHeight, D = c.offsetWidth;
|
|
1715
|
+
c.style.display = "none";
|
|
1716
|
+
var N = document.documentElement.clientHeight, B = window.innerWidth, H = "number" == typeof u.windowMargin ? u.windowMargin : 5;
|
|
1717
|
+
if (function () {
|
|
1718
|
+
var e = u.initiator;
|
|
1719
|
+
if (e) {
|
|
1720
|
+
var t = e.div, n = e.e, i = e.area, a = i.visibility || i.v || "Visible", s = e.a;
|
|
1721
|
+
if ("Visible" !== a && (s = DayPilot.Areas.createArea(t, n, i), t.appendChild(s), o = s), s) {
|
|
1722
|
+
var l = DayPilot.abs(s);
|
|
1723
|
+
u.x = l.x, u.y = l.y + l.h + 2;
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
}(), function () {
|
|
1727
|
+
var e = "number" == typeof u.x ? u.x : t.mouse.x + 1, n = "number" == typeof u.y ? u.y : t.mouse.y + 1, i = document.body.scrollTop || document.documentElement.scrollTop, o = document.body.scrollLeft || document.documentElement.scrollLeft;
|
|
1728
|
+
if (n - i > N - S && 0 !== N) {
|
|
1729
|
+
var a = n - i - (N - S) + H;
|
|
1730
|
+
c.style.top = n - a + "px";
|
|
1731
|
+
}
|
|
1732
|
+
else
|
|
1733
|
+
c.style.top = n + "px";
|
|
1734
|
+
if ("right" === u.align && (e -= D), e - o > B - D && 0 !== B) {
|
|
1735
|
+
var s = e - o - (B - D) + H;
|
|
1736
|
+
c.style.left = e - s + "px";
|
|
1737
|
+
}
|
|
1738
|
+
else
|
|
1739
|
+
c.style.left = e + "px";
|
|
1740
|
+
}(), u.parentLink) {
|
|
1741
|
+
var _ = u.parentLink, L = parseInt(new DayPilot.StyleReader(c).get("border-top-width")), O = DayPilot.abs(u.parentLink.parentNode), A = O.x + _.offsetWidth, U = O.y - L;
|
|
1742
|
+
A + D > B && (A = Math.max(0, O.x - D));
|
|
1743
|
+
var R = document.body.scrollTop + document.documentElement.scrollTop;
|
|
1744
|
+
U + S - R > N && (U = Math.max(0, N - S + R)), c.style.left = A + "px", c.style.top = U + "px";
|
|
1745
|
+
}
|
|
1746
|
+
c.style.display = "", this.addShadow(c), this.b.div = c, u.submenu || (DayPilot.Menu.active = this);
|
|
1747
|
+
}
|
|
1748
|
+
}, this.d = function (e, t) {
|
|
1749
|
+
var n = e, o = t.source;
|
|
1750
|
+
if ((!i.b.submenu || i.b.submenu.item !== e) && (i.b.submenu && i.b.submenu.item !== e && (DayPilot.Util.removeClass(i.b.submenu.link.parentNode, i.c("item_haschildren_active")), i.b.submenu.menu.hide(), i.b.submenu = null), e.items)) {
|
|
1751
|
+
var u = i.cloneOptions();
|
|
1752
|
+
u.items = e.items, i.b.submenu = {}, i.b.submenu.menu = new DayPilot.Menu(u), i.b.submenu.menu.f = i, i.b.submenu.menu.show(o, { "submenu": !0, "parentLink": t, "parentItem": n }), i.b.submenu.item = e, i.b.submenu.link = t, DayPilot.Util.addClass(t.parentNode, i.c("item_haschildren_active"));
|
|
1753
|
+
}
|
|
1754
|
+
}, this.c = function (e) { var t = this.theme || this.cssClassPrefix, n = this.cssOnly ? "_" : ""; return t ? t + n + e : ""; }, this.cloneOptions = function () { return DayPilot.Util.copyProps(u, {}, ["cssClassPrefix", "theme", "hideAfter", "hideOnMouseOut", "zIndex"]); }, this.hide = function (e) {
|
|
1755
|
+
e = e || {}, this.b.submenu && this.b.submenu.menu.hide();
|
|
1756
|
+
var n = t.waitingSubmenu;
|
|
1757
|
+
if (n && (t.waitingSubmenu = null, clearTimeout(n.timeout)), this.removeShadow(), this.b.div && this.b.div.parentNode === document.body && document.body.removeChild(this.b.div), o && (DayPilot.de(o), o = null), i.b.visible = !1, i.b.source = null, i.f && e.hideParent && i.f.hide(e), DayPilot.Menu.active === i && (DayPilot.Menu.active = null), "function" == typeof this.onHide) {
|
|
1758
|
+
var u = {};
|
|
1759
|
+
this.onHide(u);
|
|
1760
|
+
}
|
|
1761
|
+
}, this.delayedHide = function (e) { t.hideTimeout = setTimeout(function () { i.hide(e); }, i.hideAfter); }, this.cancelHideTimeout = function () { clearTimeout(t.hideTimeout); }, this.init = function (e) { return t.mouseMove(e), this; }, this.addShadow = function (e) { }, this.removeShadow = function () { };
|
|
1762
|
+
var u = DayPilot.isArray(n) ? null : n;
|
|
1763
|
+
if (u)
|
|
1764
|
+
for (var a in u)
|
|
1765
|
+
this[a] = u[a];
|
|
1766
|
+
}, DayPilot.MenuBar = function (e, t) {
|
|
1767
|
+
var n = this;
|
|
1768
|
+
t = t || {}, this.items = [], this.theme = "menubar_default", this.windowMargin = 0, this.nav = {}, this.elements = {}, this.elements.items = DayPilot.list(), this.g = null, this.i = !1;
|
|
1769
|
+
for (var i in t)
|
|
1770
|
+
this[i] = t[i];
|
|
1771
|
+
this.j = function (e) { return this.theme + "_" + e; }, this.k = function () {
|
|
1772
|
+
this.nav.top = document.getElementById(e);
|
|
1773
|
+
var t = this.nav.top;
|
|
1774
|
+
t.className = this.j("main"), DayPilot.list(n.items).forEach(function (e) {
|
|
1775
|
+
var i = document.createElement("span");
|
|
1776
|
+
i.innerHTML = DayPilot.Util.escapeTextHtml(e.text, e.html), i.className = n.j("item"), e.cssClass && i.classList.add(e.cssClass), i.data = e, i.onclick = function (t) {
|
|
1777
|
+
if (n.active && n.active.item === e)
|
|
1778
|
+
n.l();
|
|
1779
|
+
else if (e.children)
|
|
1780
|
+
return void n.m(i);
|
|
1781
|
+
if ("function" == typeof e.onClick) {
|
|
1782
|
+
var o = {};
|
|
1783
|
+
o.item = e, o.originalEvent = t, e.onClick(o);
|
|
1784
|
+
}
|
|
1785
|
+
}, i.onmousedown = function (e) { e.stopPropagation(); }, i.onmouseover = function () { n.active && n.active.item !== e && n.m(i); }, t.appendChild(i), n.elements.items.push(i);
|
|
1786
|
+
});
|
|
1787
|
+
}, this.l = function () { var e = n.j("item_active"); n.elements.items.forEach(function (t) { DayPilot.Util.removeClass(t, e); }), n.active && n.active.menu && n.active.menu.hide(), n.active = null; }, this.n = function (e) { return !!n.active && n.active.item === e.data; }, this.m = function (e) {
|
|
1788
|
+
if (!n.n(e)) {
|
|
1789
|
+
n.l();
|
|
1790
|
+
var t = e.data, i = n.active = {};
|
|
1791
|
+
i.item = t, i.div = e;
|
|
1792
|
+
var o = n.j("item_active");
|
|
1793
|
+
DayPilot.Util.addClass(e, o);
|
|
1794
|
+
var u = DayPilot.abs(e);
|
|
1795
|
+
if (t.children) {
|
|
1796
|
+
i.menu = new DayPilot.Menu({ "items": t.children });
|
|
1797
|
+
var a = u.x;
|
|
1798
|
+
"right" === t.align && (a += u.w), i.menu.show(null, { "x": a, "y": u.y + u.h, "align": t.align, "windowMargin": n.windowMargin });
|
|
1799
|
+
}
|
|
1800
|
+
DayPilot.MenuBar.active = n;
|
|
1801
|
+
}
|
|
1802
|
+
}, this.init = function () { return this.k(), this.i = !0, this; }, this.dispose = function () { this.i && (this.nav.top.innerHTML = "", this.elements.items = []); };
|
|
1803
|
+
}, DayPilot.MenuBar.deactivate = function () { DayPilot.MenuBar.active && (DayPilot.MenuBar.active.l(), 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) {
|
|
1804
|
+
if (!e || !e.touches)
|
|
1805
|
+
return null;
|
|
1806
|
+
var t = e.touches[0], n = {};
|
|
1807
|
+
return n.x = t.pageX, n.y = t.pageY, n;
|
|
1808
|
+
}, t.mousePosition = function (e) { return DayPilot.mo3(null, e); }, DayPilot.Menu.touchPosition = function (e) { e.touches && (t.mouse = t.touchPosition(e)); }, DayPilot.Menu.hide = function (e) {
|
|
1809
|
+
if (e = e || {}, e.calendar) {
|
|
1810
|
+
var n = DayPilot.Menu.active;
|
|
1811
|
+
if (n) {
|
|
1812
|
+
var i = n.b.source;
|
|
1813
|
+
i && i.calendar === e.calendar && t.menuClean();
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
else
|
|
1817
|
+
t.menuClean();
|
|
1818
|
+
}, t.handlersRegistered || (DayPilot.re(document, "mousemove", t.mouseMove), DayPilot.re(document, "mousedown", t.mouseDown), DayPilot.re(document, "touchmove", t.touchMove), DayPilot.re(document, "touchstart", t.touchStart), DayPilot.re(document, "touchend", t.touchEnd), t.handlersRegistered = !0), DayPilot.Menu.def = {};
|
|
1819
|
+
}
|
|
1820
|
+
}(DayPilot);
|
|
1516
1821
|
"undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
|
|
1517
1822
|
"use strict";
|
|
1518
1823
|
function e(t, a, i) {
|
|
@@ -2228,9 +2533,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
2228
2533
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2229
2534
|
var t = {};
|
|
2230
2535
|
t.Month = function (e, i) {
|
|
2231
|
-
this.v = "2022.3.
|
|
2536
|
+
this.v = "2022.3.426-lite", this.nav = {};
|
|
2232
2537
|
var n = this;
|
|
2233
|
-
this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, 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.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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
|
|
2538
|
+
this.id = e, 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.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
|
|
2234
2539
|
var e = null;
|
|
2235
2540
|
if (t instanceof DayPilot.Event)
|
|
2236
2541
|
e = t.data;
|
|
@@ -2321,19 +2626,19 @@ if ("undefined" == typeof DayPilot)
|
|
|
2321
2626
|
for (var e = 0; e < t.length; e++)
|
|
2322
2627
|
this.q(e);
|
|
2323
2628
|
for (var i = 0; i < t.length; i++) {
|
|
2324
|
-
var n = t[i];
|
|
2325
|
-
if (
|
|
2629
|
+
var n = t[i], s = new DayPilot.Date(n.start), a = new DayPilot.Date(n.end);
|
|
2630
|
+
if (!(s.getTime() > a.getTime()))
|
|
2326
2631
|
for (var e = 0; e < this.rows.length; e++) {
|
|
2327
|
-
var
|
|
2328
|
-
|
|
2632
|
+
var l = this.rows[e], o = new DayPilot.Event(n, this);
|
|
2633
|
+
l.belongsHere(o) && (l.events.push(o), "function" == typeof this.onBeforeEventRender && (o.cache = this.p.events[i]));
|
|
2329
2634
|
}
|
|
2330
2635
|
}
|
|
2331
|
-
for (var
|
|
2332
|
-
var
|
|
2333
|
-
|
|
2334
|
-
for (var
|
|
2335
|
-
var
|
|
2336
|
-
|
|
2636
|
+
for (var r = 0; r < this.rows.length; r++) {
|
|
2637
|
+
var l = this.rows[r];
|
|
2638
|
+
l.events.sort(this.r);
|
|
2639
|
+
for (var h = 0; h < this.rows[r].events.length; h++) {
|
|
2640
|
+
var c = l.events[h], d = l.getStartColumn(c), v = l.getWidth(c);
|
|
2641
|
+
l.putIntoLine(c, d, v, r);
|
|
2337
2642
|
}
|
|
2338
2643
|
}
|
|
2339
2644
|
}
|
|
@@ -2368,12 +2673,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2368
2673
|
else
|
|
2369
2674
|
e -= h;
|
|
2370
2675
|
i < 0 && (i = 0, e = 0);
|
|
2371
|
-
var
|
|
2372
|
-
for (t.resizingEvent ?
|
|
2373
|
-
var
|
|
2374
|
-
p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.left = this.getCellWidth() * e + "%", p.style.width = this.getCellWidth() *
|
|
2676
|
+
var c = null;
|
|
2677
|
+
for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
|
|
2678
|
+
var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
|
|
2679
|
+
p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.left = this.getCellWidth() * e + "%", p.style.width = this.getCellWidth() * d + "%", p.style.top = u + "px", p.style.height = f + "px", p.style.cursor = c;
|
|
2375
2680
|
var g = document.createElement("div");
|
|
2376
|
-
g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -=
|
|
2681
|
+
g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
|
|
2377
2682
|
}
|
|
2378
2683
|
}, this.clearShadow = function () {
|
|
2379
2684
|
if (this.shadow) {
|
|
@@ -2386,47 +2691,47 @@ if ("undefined" == typeof DayPilot)
|
|
|
2386
2691
|
i += this.rows[n].getHeight();
|
|
2387
2692
|
return i += this.cellHeaderHeight, i += e * this.lineHeight();
|
|
2388
2693
|
}, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) {
|
|
2389
|
-
var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o,
|
|
2390
|
-
|
|
2694
|
+
var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(s, a), d = document.createElement("div");
|
|
2695
|
+
d.setAttribute("unselectable", "on"), d.style.height = this.eventHeight + "px", d.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(d, i.cssClass), e.part.startsHere || DayPilot.Util.addClass(d, this.u("_event_continueleft")), e.part.endsHere || DayPilot.Util.addClass(d, this.u("_event_continueright")), d.event = e, d.style.width = h + "%", d.style.position = "absolute", d.style.left = r + "%", d.style.top = c + "px", this.showToolTip && e.client.toolTip() && (d.title = e.client.toolTip()), d.onclick = n.w, d.oncontextmenu = n.z, d.onmousedown = function (i) {
|
|
2391
2696
|
i = i || window.event;
|
|
2392
2697
|
var r = i.which || i.button;
|
|
2393
2698
|
if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
|
|
2394
2699
|
if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
2395
2700
|
var h = {};
|
|
2396
|
-
h.start = {}, h.start.x = l, h.start.y = s, h.event =
|
|
2701
|
+
h.start = {}, h.start.x = l, h.start.y = s, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
|
|
2397
2702
|
}
|
|
2398
|
-
else if ("move" === this.style.cursor ||
|
|
2703
|
+
else if ("move" === this.style.cursor || e.client.moveEnabled()) {
|
|
2399
2704
|
n.clearShadow();
|
|
2400
|
-
var
|
|
2401
|
-
if (!
|
|
2705
|
+
var c = DayPilot.mo2(n.nav.top, i);
|
|
2706
|
+
if (!c)
|
|
2402
2707
|
return;
|
|
2403
|
-
var v = n.getCellBelowPoint(
|
|
2708
|
+
var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[s].start), f = 7 * v.y + v.x - (7 * s + l);
|
|
2404
2709
|
u && (f += u);
|
|
2405
2710
|
var p = {};
|
|
2406
|
-
p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event =
|
|
2711
|
+
p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
|
|
2407
2712
|
}
|
|
2408
|
-
},
|
|
2713
|
+
}, d.onmousemove = function (i) {
|
|
2409
2714
|
if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
|
|
2410
|
-
var
|
|
2411
|
-
if (
|
|
2412
|
-
|
|
2413
|
-
var
|
|
2414
|
-
|
|
2715
|
+
var n = DayPilot.mo3(d, i);
|
|
2716
|
+
if (n) {
|
|
2717
|
+
d.deleteIcon && (d.deleteIcon.style.display = "");
|
|
2718
|
+
var s = 6;
|
|
2719
|
+
n.x <= s && e.client.resizeEnabled() ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - n.x <= s && e.client.resizeEnabled() ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : d.style.cursor = "default";
|
|
2415
2720
|
}
|
|
2416
2721
|
}
|
|
2417
|
-
},
|
|
2722
|
+
}, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); };
|
|
2418
2723
|
var v = document.createElement("div");
|
|
2419
|
-
if (v.setAttribute("unselectable", "on"), v.className = this.u("_event_inner"), "darker" === i.borderColor && i.backColor ? v.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : v.style.borderColor = i.borderColor, i.backColor && (v.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (v.style.filter = "")), i.fontColor && (v.style.color = i.fontColor), v.innerHTML = e.client.html(),
|
|
2724
|
+
if (v.setAttribute("unselectable", "on"), v.className = this.u("_event_inner"), "darker" === i.borderColor && i.backColor ? v.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : v.style.borderColor = i.borderColor, i.backColor && (v.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (v.style.filter = "")), i.fontColor && (v.style.color = i.fontColor), v.innerHTML = e.client.html(), d.appendChild(v), e.client.barVisible()) {
|
|
2420
2725
|
var u = document.createElement("div");
|
|
2421
2726
|
u.setAttribute("unselectable", "on"), u.className = this.u("_event_bar"), u.style.position = "absolute";
|
|
2422
2727
|
var f = document.createElement("div");
|
|
2423
|
-
f.setAttribute("unselectable", "on"), f.className = this.u("_event_bar_inner"), f.style.top = "0%", f.style.height = "100%", i.barColor && (f.style.backgroundColor = i.barColor), u.appendChild(f),
|
|
2728
|
+
f.setAttribute("unselectable", "on"), f.className = this.u("_event_bar_inner"), f.style.top = "0%", f.style.height = "100%", i.barColor && (f.style.backgroundColor = i.barColor), u.appendChild(f), d.appendChild(u);
|
|
2424
2729
|
}
|
|
2425
|
-
if (
|
|
2730
|
+
if (e.client.deleteEnabled()) {
|
|
2426
2731
|
var p = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
|
|
2427
|
-
g.style.position = "absolute", g.style.right = "2px", g.style.top = p + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.u("_event_delete"), g.onmousedown = function (t) { t.stopPropagation(); }, g.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.
|
|
2732
|
+
g.style.position = "absolute", g.style.right = "2px", g.style.top = p + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.u("_event_delete"), g.onmousedown = function (t) { t.stopPropagation(); }, g.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.A(e); }, g.style.display = "none", d.deleteIcon = g, d.appendChild(g);
|
|
2428
2733
|
}
|
|
2429
|
-
this.elements.events.push(
|
|
2734
|
+
this.elements.events.push(d), this.nav.events.appendChild(d);
|
|
2430
2735
|
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () {
|
|
2431
2736
|
"string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
|
|
2432
2737
|
var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1;
|
|
@@ -2455,7 +2760,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2455
2760
|
for (var t = this.headerHeight, e = 0; e < this.rows.length; e++)
|
|
2456
2761
|
t += this.rows[e].getHeight();
|
|
2457
2762
|
return t;
|
|
2458
|
-
}, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.u = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.
|
|
2763
|
+
}, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.u = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.B = function () {
|
|
2459
2764
|
var e = this.nav.top;
|
|
2460
2765
|
e.setAttribute("unselectable", "on"), e.style.MozUserSelect = "none", e.style.KhtmlUserSelect = "none", e.style.WebkitUserSelect = "none", e.style.position = "relative", this.width && (e.style.width = this.width), e.style.height = this.getHeight() + "px", e.onselectstart = function (t) { return !1; }, this.hideUntilInit && (e.style.visibility = "hidden"), this.visible || (e.style.display = "none"), e.className = this.u("_main");
|
|
2461
2766
|
var i = document.createElement("div");
|
|
@@ -2489,8 +2794,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2489
2794
|
return;
|
|
2490
2795
|
var s = n.getCellBelowPoint(i.x, i.y);
|
|
2491
2796
|
n.clearShadow();
|
|
2492
|
-
var
|
|
2493
|
-
a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a,
|
|
2797
|
+
var c = t.movingEvent.event, d = t.movingEvent.offset, a = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
|
|
2798
|
+
a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a, d, c);
|
|
2494
2799
|
}
|
|
2495
2800
|
else if (t.timeRangeSelecting) {
|
|
2496
2801
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
@@ -2536,27 +2841,27 @@ if ("undefined" == typeof DayPilot)
|
|
|
2536
2841
|
var a = document.createElement("div");
|
|
2537
2842
|
a.setAttribute("unselectable", "on"), a.innerHTML = s.locale().dayNames[n], i.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.u("_header_inner"), a.innerHTML = s.locale().dayNames[n], t.appendChild(i);
|
|
2538
2843
|
for (var l = 0; l < this.rows.length; l++)
|
|
2539
|
-
this.
|
|
2844
|
+
this.C(e, l, t);
|
|
2540
2845
|
}
|
|
2541
2846
|
}, this.f = function () {
|
|
2542
2847
|
for (var t = 0; t < this.cells.length; t++)
|
|
2543
2848
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
2544
2849
|
this.cells[t][e].onclick = null;
|
|
2545
2850
|
this.nav.cells.innerHTML = "";
|
|
2546
|
-
}, this.
|
|
2851
|
+
}, this.D = function () { return 2 === n.api; }, this.C = function (e, i, a) {
|
|
2547
2852
|
var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div");
|
|
2548
2853
|
if (r.setAttribute("unselectable", "on"), r.style.position = "absolute", r.style.cursor = "default", r.style.left = this.getCellWidth() * e + "%", r.style.width = this.getCellWidth() + "%", r.style.top = this.getRowTop(i) + "px", r.style.height = l.getHeight() + "px", r.className = this.u("_cell"), !this.isWeekend(o)) {
|
|
2549
2854
|
var h = this.u("_cell_business");
|
|
2550
2855
|
DayPilot.Util.addClass(r, h);
|
|
2551
2856
|
}
|
|
2552
|
-
var
|
|
2553
|
-
|
|
2554
|
-
var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.
|
|
2857
|
+
var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
|
|
2858
|
+
c.setAttribute("unselectable", "on"), r.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.u("_cell_inner"), r.onmousedown = function (s) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
|
|
2859
|
+
var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); };
|
|
2555
2860
|
if ("Disabled" !== n.timeRangeSelectedHandling)
|
|
2556
2861
|
return void t(o);
|
|
2557
2862
|
};
|
|
2558
|
-
var
|
|
2559
|
-
|
|
2863
|
+
var d = document.createElement("div");
|
|
2864
|
+
d.setAttribute("unselectable", "on"), d.style.height = this.cellHeaderHeight + "px", d.className = this.u("_cell_header"), d.onclick = function (t) {
|
|
2560
2865
|
if ("Enabled" === n.cellHeaderClickHandling) {
|
|
2561
2866
|
t.stopPropagation();
|
|
2562
2867
|
var e = {};
|
|
@@ -2564,20 +2869,25 @@ if ("undefined" == typeof DayPilot)
|
|
|
2564
2869
|
}
|
|
2565
2870
|
};
|
|
2566
2871
|
var v = o.getDay();
|
|
2567
|
-
1 === v ?
|
|
2872
|
+
1 === v ? d.innerHTML = s.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, a.appendChild(r);
|
|
2568
2873
|
}, this.getWeekStart = function () { return s.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
|
|
2569
2874
|
for (var e = this.headerHeight, i = 0; i < t; i++)
|
|
2570
2875
|
e += this.rows[i].getHeight();
|
|
2571
2876
|
return e;
|
|
2572
|
-
}, this.
|
|
2877
|
+
}, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var s = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.H, s, this.ajaxError); }, this.H = function (t) { n.a(t.responseText); }, this.G = function () { var t = {}; return t.control = "dpm", t.id = this.id, t.v = this.v, t.visibleStart = new DayPilot.Date(this.firstDate), t.visibleEnd = t.visibleStart.addDays(this.days), t.startDate = n.startDate, t.timeFormat = this.timeFormat, t.weekStarts = this.weekStarts, t; }, this.eventClickCallBack = function (t, e) { this.F("EventClick", e, t); }, this.w = function (e) { t.movingEvent = null, t.resizingEvent = null; var i = this, e = e || window.event; e.ctrlKey; e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), n.eventClickSingle(i, e); }, this.eventClickSingle = function (t, e) {
|
|
2573
2878
|
var i = t.event;
|
|
2574
2879
|
if (i.client.clickEnabled())
|
|
2575
|
-
if (n.
|
|
2880
|
+
if (n.D()) {
|
|
2576
2881
|
var s = {};
|
|
2577
2882
|
if (s.e = i, s.control = n, s.div = t, s.originalEvent = e, s.meta = e.metaKey, s.ctrl = e.ctrlKey, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(s); }), s.preventDefault.value))
|
|
2578
2883
|
return;
|
|
2579
2884
|
switch (n.eventClickHandling) {
|
|
2580
|
-
case "CallBack":
|
|
2885
|
+
case "CallBack":
|
|
2886
|
+
n.eventClickCallBack(i);
|
|
2887
|
+
break;
|
|
2888
|
+
case "ContextMenu":
|
|
2889
|
+
var a = i.client.contextMenu();
|
|
2890
|
+
a ? a.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
2581
2891
|
}
|
|
2582
2892
|
"function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(s); });
|
|
2583
2893
|
}
|
|
@@ -2588,8 +2898,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
2588
2898
|
break;
|
|
2589
2899
|
case "JavaScript": n.onEventClick(i);
|
|
2590
2900
|
}
|
|
2591
|
-
}, this.z = function (t) {
|
|
2592
|
-
if (
|
|
2901
|
+
}, this.z = function () { var t = this; return n.I(t.event), !1; }, this.I = function (t) {
|
|
2902
|
+
if (this.event = t, !t.client.rightClickEnabled())
|
|
2903
|
+
return !1;
|
|
2904
|
+
var e = {};
|
|
2905
|
+
if (e.e = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" != typeof n.onEventRightClick || (n.onEventRightClick(e), !e.preventDefault.value)) {
|
|
2906
|
+
switch (n.eventRightClickHandling) {
|
|
2907
|
+
case "ContextMenu":
|
|
2908
|
+
var i = t.client.contextMenu();
|
|
2909
|
+
i ? i.show(t) : n.contextMenu && n.contextMenu.show(this.event);
|
|
2910
|
+
}
|
|
2911
|
+
return "function" == typeof n.onEventRightClicked && n.onEventRightClicked(e), !1;
|
|
2912
|
+
}
|
|
2913
|
+
}, this.A = function (t) {
|
|
2914
|
+
if (n.D()) {
|
|
2593
2915
|
var e = {};
|
|
2594
2916
|
if (e.e = t, e.control = n, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.j.apply(function () { n.onEventDelete(e); }), e.preventDefault.value))
|
|
2595
2917
|
return;
|
|
@@ -2614,20 +2936,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
2614
2936
|
break;
|
|
2615
2937
|
case "JavaScript": n.onEventDelete(t);
|
|
2616
2938
|
}
|
|
2617
|
-
}, this.eventDeleteCallBack = function (t, e) { this.
|
|
2939
|
+
}, this.eventDeleteCallBack = function (t, e) { this.F("EventDelete", e, t); }, this.eventDeletePostBack = function (t, e) { this.J("EventDelete", e, t); }, this.eventMoveCallBack = function (t, e, i, n, s) {
|
|
2618
2940
|
if (!e)
|
|
2619
2941
|
throw "newStart is null";
|
|
2620
2942
|
if (!i)
|
|
2621
2943
|
throw "newEnd is null";
|
|
2622
2944
|
var a = {};
|
|
2623
|
-
a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.
|
|
2624
|
-
}, this.
|
|
2945
|
+
a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.F("EventMove", n, a);
|
|
2946
|
+
}, this.K = function (t, e, i, s, a, l) {
|
|
2625
2947
|
var o = t.start().getTimePart(), r = t.end().getDatePart();
|
|
2626
2948
|
r !== t.end() && (r = r.addDays(1));
|
|
2627
|
-
var h = DayPilot.DateUtil.diff(t.end(), r),
|
|
2628
|
-
|
|
2629
|
-
var
|
|
2630
|
-
if (n.
|
|
2949
|
+
var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i);
|
|
2950
|
+
c = c.addDays(-s);
|
|
2951
|
+
var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h);
|
|
2952
|
+
if (n.D()) {
|
|
2631
2953
|
var p = {};
|
|
2632
2954
|
if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = a.ctrlKey, p.shift = a.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
|
|
2633
2955
|
return;
|
|
@@ -2652,32 +2974,32 @@ if ("undefined" == typeof DayPilot)
|
|
|
2652
2974
|
if (!i)
|
|
2653
2975
|
throw "newEnd is null";
|
|
2654
2976
|
var s = {};
|
|
2655
|
-
s.e = t, s.newStart = e, s.newEnd = i, this.
|
|
2656
|
-
}, this.
|
|
2977
|
+
s.e = t, s.newStart = e, s.newEnd = i, this.F("EventResize", n, s);
|
|
2978
|
+
}, this.L = function (t, e, i) {
|
|
2657
2979
|
var s = t.start().getTimePart(), a = t.end().getDatePart();
|
|
2658
2980
|
a !== t.end() && (a = a.addDays(1));
|
|
2659
|
-
var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s),
|
|
2660
|
-
if (n.
|
|
2661
|
-
var
|
|
2662
|
-
if (
|
|
2981
|
+
var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s), c = r.addTime(l);
|
|
2982
|
+
if (n.D()) {
|
|
2983
|
+
var d = {};
|
|
2984
|
+
if (d.e = t, d.control = n, d.newStart = h, d.newEnd = c, d.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventResize && (n.j.apply(function () { n.onEventResize(d); }), d.preventDefault.value))
|
|
2663
2985
|
return;
|
|
2664
2986
|
switch (n.eventResizeHandling) {
|
|
2665
2987
|
case "CallBack":
|
|
2666
|
-
n.eventResizeCallBack(t, h,
|
|
2988
|
+
n.eventResizeCallBack(t, h, c);
|
|
2667
2989
|
break;
|
|
2668
|
-
case "Update": t.start(h), t.end(
|
|
2990
|
+
case "Update": t.start(h), t.end(c), n.events.update(t);
|
|
2669
2991
|
}
|
|
2670
|
-
"function" == typeof n.onEventResized && n.j.apply(function () { n.onEventResized(
|
|
2992
|
+
"function" == typeof n.onEventResized && n.j.apply(function () { n.onEventResized(d); });
|
|
2671
2993
|
}
|
|
2672
2994
|
else
|
|
2673
2995
|
switch (n.eventResizeHandling) {
|
|
2674
2996
|
case "CallBack":
|
|
2675
|
-
n.eventResizeCallBack(t, h,
|
|
2997
|
+
n.eventResizeCallBack(t, h, c);
|
|
2676
2998
|
break;
|
|
2677
|
-
case "JavaScript": n.onEventResize(t, h,
|
|
2999
|
+
case "JavaScript": n.onEventResize(t, h, c);
|
|
2678
3000
|
}
|
|
2679
|
-
}, this.timeRangeSelectedCallBack = function (t, e, i) { var n = {}; n.start = t, n.end = e, this.
|
|
2680
|
-
if (this.
|
|
3001
|
+
}, this.timeRangeSelectedCallBack = function (t, e, i) { var n = {}; n.start = t, n.end = e, this.F("TimeRangeSelected", i, n); }, this.E = function (t, e) {
|
|
3002
|
+
if (this.D()) {
|
|
2681
3003
|
var i = {};
|
|
2682
3004
|
if (i.control = n, i.start = t, i.end = e, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.j.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
2683
3005
|
return;
|
|
@@ -2693,9 +3015,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
2693
3015
|
break;
|
|
2694
3016
|
case "JavaScript": n.onTimeRangeSelected(t, e);
|
|
2695
3017
|
}
|
|
2696
|
-
}, this.j = {}, this.j.scope = null, this.j.notify = function () { n.j.scope && n.j.scope["$apply"](); }, this.j.apply = function (t) { t(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (t, e) { var i = {}; i.command = t, this.
|
|
2697
|
-
var s = this.
|
|
2698
|
-
this.debug = function (t, e) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(t), "undefined" != typeof console && console.log(t)); }, this.dispose = function () { var t = n; t.nav.top && (t.b(), t.nav.top.removeAttribute("style"), t.nav.top.removeAttribute("class"), t.nav.top.innerHTML = "", t.nav.top.dp = null, t.nav.top.onmousemove = null, t.nav.top = null); }, this.
|
|
3018
|
+
}, this.j = {}, this.j.scope = null, this.j.notify = function () { n.j.scope && n.j.scope["$apply"](); }, this.j.apply = function (t) { t(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (t, e) { var i = {}; i.command = t, this.F("Command", e, i); }, this.isWeekend = function (t) { return t = new DayPilot.Date(t), 0 === t.dayOfWeek() || 6 === t.dayOfWeek(); }, this.M = {}, this.M.locale = function () { var t = DayPilot.Locale.find(n.locale); return t ? t : DayPilot.Locale.US; }, this.M.N = function () { return "Disabled" !== n.xssProtection; };
|
|
3019
|
+
var s = this.M;
|
|
3020
|
+
this.debug = function (t, e) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(t), "undefined" != typeof console && console.log(t)); }, this.dispose = function () { var t = n; t.nav.top && (t.b(), t.nav.top.removeAttribute("style"), t.nav.top.removeAttribute("class"), t.nav.top.innerHTML = "", t.nav.top.dp = null, t.nav.top.onmousemove = null, t.nav.top = null); }, this.O = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.m = 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.P = function () {
|
|
2699
3021
|
if (this.id && this.id.tagName)
|
|
2700
3022
|
this.nav.top = this.id;
|
|
2701
3023
|
else {
|
|
@@ -2704,7 +3026,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2704
3026
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2705
3027
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2706
3028
|
}
|
|
2707
|
-
}, this.
|
|
3029
|
+
}, this.Q = function () { this.c(), this.B(), this.g(), this.O(), this.F("Init"); }, this.R = function (t, e) { return n.M.N() ? DayPilot.Util.escapeTextHtml(t, e) : DayPilot.Util.isNullOrUndefined(e) ? DayPilot.Util.isNullOrUndefined(t) ? "" : t : e; }, this.internal = {}, this.internal.loadOptions = this.l, this.internal.xssTextHtml = n.R, this.init = function () { return this.P(), this.loadFromServer() ? void this.Q() : (this.c(), this.d(), this.B(), this.g(), this.m(), this.i(), this.O(), this.fireAfterRenderDetached(null, !1), this.k = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.l(i);
|
|
2708
3030
|
}, t.gMouseUp = function (e) {
|
|
2709
3031
|
if (t.movingEvent) {
|
|
2710
3032
|
var i = t.movingEvent;
|
|
@@ -2719,7 +3041,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2719
3041
|
var n = t.movingEvent.event.calendar, s = t.movingEvent.event, a = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
|
|
2720
3042
|
n.clearShadow(), t.movingEvent = null;
|
|
2721
3043
|
var e = e || window.event;
|
|
2722
|
-
return n.
|
|
3044
|
+
return n.K(s, a.x, a.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
|
|
2723
3045
|
}
|
|
2724
3046
|
if (t.resizingEvent) {
|
|
2725
3047
|
var i = t.resizingEvent;
|
|
@@ -2732,12 +3054,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2732
3054
|
if (!i.event.calendar.shadow.start)
|
|
2733
3055
|
return;
|
|
2734
3056
|
var n = t.resizingEvent.event.calendar, s = t.resizingEvent.event, a = n.shadow.start, r = n.shadow.width;
|
|
2735
|
-
return n.clearShadow(), t.resizingEvent = null, n.
|
|
3057
|
+
return n.clearShadow(), t.resizingEvent = null, n.L(s, a, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
|
|
2736
3058
|
}
|
|
2737
3059
|
if (t.timeRangeSelecting) {
|
|
2738
3060
|
if (t.timeRangeSelecting.moved) {
|
|
2739
|
-
var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)),
|
|
2740
|
-
n.
|
|
3061
|
+
var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = a.addDays(h.width);
|
|
3062
|
+
n.E(a, c), n.clearShadow();
|
|
2741
3063
|
}
|
|
2742
3064
|
t.timeRangeSelecting = null;
|
|
2743
3065
|
}
|
|
@@ -2768,12 +3090,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2768
3090
|
}
|
|
2769
3091
|
for (var o in n)
|
|
2770
3092
|
0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = t(n[i]); e["$apply"](function () { a(e, { "args": s }); }); }; }(o);
|
|
2771
|
-
var r = e["$watch"], h = n["config"] || n["daypilotConfig"],
|
|
3093
|
+
var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
|
|
2772
3094
|
r.call(e, h, function (t) {
|
|
2773
3095
|
for (var e in t)
|
|
2774
3096
|
s[e] = t[e];
|
|
2775
3097
|
s.update();
|
|
2776
|
-
}, !0), r.call(e,
|
|
3098
|
+
}, !0), r.call(e, c, function (t) { s.events.list = t, s.update(); }, !0);
|
|
2777
3099
|
} };
|
|
2778
3100
|
}]);
|
|
2779
3101
|
}(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
@@ -2784,7 +3106,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2784
3106
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2785
3107
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2786
3108
|
DayPilot.Navigator = function (t, e) {
|
|
2787
|
-
this.v = "2022.3.
|
|
3109
|
+
this.v = "2022.3.426-lite";
|
|
2788
3110
|
var i = this;
|
|
2789
3111
|
this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showWeekNumbers = !1, this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.nav = {}, this.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, 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.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
|
|
2790
3112
|
var s = {};
|