@daypilot/daypilot-lite-angular 3.10.1 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/daypilot-core.mjs +419 -260
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +406 -205
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +418 -259
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +6 -0
- package/package.json +1 -1
|
@@ -78,6 +78,9 @@ var DayPilot;
|
|
|
78
78
|
class Util {
|
|
79
79
|
}
|
|
80
80
|
DayPilot.Util = Util;
|
|
81
|
+
class ColorUtil {
|
|
82
|
+
}
|
|
83
|
+
DayPilot.ColorUtil = ColorUtil;
|
|
81
84
|
class Http {
|
|
82
85
|
}
|
|
83
86
|
DayPilot.Http = Http;
|
|
@@ -118,14 +121,14 @@ DayPilot Lite
|
|
|
118
121
|
Copyright (c) 2005 - 2022 Annpoint s.r.o.
|
|
119
122
|
https://www.daypilot.org/
|
|
120
123
|
Licensed under Apache Software License 2.0
|
|
121
|
-
Version: 2022.
|
|
124
|
+
Version: 2022.4.438-lite
|
|
122
125
|
*/
|
|
123
126
|
if ("undefined" == typeof DayPilot)
|
|
124
127
|
var DayPilot = {};
|
|
125
128
|
!function () {
|
|
126
129
|
function e(e) { var t = DayPilot.Date.Cache.Ticks; if (t[e])
|
|
127
|
-
return DayPilot.Stats.cacheHitsTicks += 1, t[e]; var a, r = new Date(e), o = r.getUTCMilliseconds(); a = 0 === o ? "" : o < 10 ? ".00" + o : o < 100 ? ".0" + o : "." + o; var n = r.getUTCSeconds(); n < 10 && (n = "0" + n); var i = r.getUTCMinutes(); i < 10 && (i = "0" + i); var
|
|
128
|
-
throw "The minimum year supported is 1."; u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u); var c = u + "-" + s + "-" +
|
|
130
|
+
return DayPilot.Stats.cacheHitsTicks += 1, t[e]; var a, r = new Date(e), o = r.getUTCMilliseconds(); a = 0 === o ? "" : o < 10 ? ".00" + o : o < 100 ? ".0" + o : "." + o; var n = r.getUTCSeconds(); n < 10 && (n = "0" + n); var i = r.getUTCMinutes(); i < 10 && (i = "0" + i); var l = r.getUTCHours(); l < 10 && (l = "0" + l); var d = r.getUTCDate(); d < 10 && (d = "0" + d); var s = r.getUTCMonth() + 1; s < 10 && (s = "0" + s); var u = r.getUTCFullYear(); if (u <= 0)
|
|
131
|
+
throw "The minimum year supported is 1."; u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u); var c = u + "-" + s + "-" + d + "T" + l + ":" + i + ":" + n + a; return t[e] = c, c; }
|
|
129
132
|
function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
|
|
130
133
|
function a(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
|
|
131
134
|
if ("undefined" == typeof DayPilot.$) {
|
|
@@ -155,7 +158,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
155
158
|
else
|
|
156
159
|
a = { x: r.x, y: r.y };
|
|
157
160
|
else if (a = DayPilot.mo2(e, t), !a)
|
|
158
|
-
return null; return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a; }, 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) { if (!e)
|
|
161
|
+
return null; return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a; }, 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.browser.hover = !window.matchMedia("(any-hover: none)").matches, DayPilot.touch = {}, 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) { if (!e)
|
|
159
162
|
return null; if (e.getBoundingClientRect) {
|
|
160
163
|
var a = DayPilot.absBoundingClientBased(e);
|
|
161
164
|
if (t) {
|
|
@@ -171,7 +174,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
171
174
|
return { x: pageXOffset, y: pageYOffset }; var e = DayPilot.doc(); return { x: e.scrollLeft, y: e.scrollTop }; }, DayPilot.indexOf = function (e, t) { if (!e || !e.length)
|
|
172
175
|
return -1; for (var a = 0; a < e.length; a++)
|
|
173
176
|
if (e[a] === t)
|
|
174
|
-
return a; return -1; }, DayPilot.
|
|
177
|
+
return a; return -1; }, DayPilot.ac = function (e, t) { if (!t)
|
|
178
|
+
var t = []; for (var a = 0; e.children && a < e.children.length; a++)
|
|
179
|
+
t.push(e.children[a]), DayPilot.ac(e.children[a], t); return t; }, DayPilot.rfa = function (e, t) { var a = DayPilot.indexOf(e, t); a !== -1 && e.splice(a, 1); }, 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.re = function (e, t, a) { a && t && e && e.addEventListener(t, a, !1); }, DayPilot.rePassive = function (e, t, a) { a && t && e && e.addEventListener(t, a, { "passive": !0 }); }, DayPilot.reNonPassive = function (e, t, a) { a && t && e && e.addEventListener(t, a, { "passive": !1 }); }, DayPilot.pu = function (e) { var t, a, r, o = e.attributes; if (o)
|
|
175
180
|
for (a = o.length, t = 0; t < a; t += 1)
|
|
176
181
|
o[t] && (r = o[t].name, "function" == typeof e[r] && (e[r] = null)); if (o = e.childNodes)
|
|
177
182
|
for (a = o.length, t = 0; t < a; t += 1) {
|
|
@@ -185,7 +190,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
185
190
|
return 200 !== o.status && 304 !== o.status ? void (r ? r(o) : window.console && console.log("HTTP error " + o.status)) : void t(o); }, 4 !== o.readyState && ("object" == typeof a && (a = JSON.stringify(a)), o.send(a))); }, DayPilot.ajax = function (e) { if (!e)
|
|
186
191
|
throw new DayPilot.Exception("Parameter object required."); if ("string" != typeof e.url)
|
|
187
192
|
throw new DayPilot.Exception("The parameter object must have 'url' property."); var t = DayPilot.createXmlHttp(); if (!t)
|
|
188
|
-
throw new DayPilot.Exception("Unable to create XMLHttpRequest object"); var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { },
|
|
193
|
+
throw new DayPilot.Exception("Unable to create XMLHttpRequest object"); var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, l = e.url, d = e.contentType || (a ? "application/json" : "text/plain"), s = e.headers || {}; t.open(o, l, !0), t.setRequestHeader("Content-type", d), DayPilot.Util.ownPropsAsArray(s).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () { if (4 === t.readyState)
|
|
189
194
|
if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
|
|
190
195
|
var e = {};
|
|
191
196
|
e.request = t, t.responseText && (e.data = JSON.parse(t.responseText)), n(e);
|
|
@@ -215,18 +220,161 @@ if ("undefined" == typeof DayPilot)
|
|
|
215
220
|
if (e.hasOwnProperty(a)) {
|
|
216
221
|
var r = {};
|
|
217
222
|
r.key = a, r.val = e[a], t.push(r);
|
|
218
|
-
} return t; }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.
|
|
223
|
+
} return t; }, DayPilot.Util.replaceCharAt = function (e, t, a) { return e.substr(0, t) + a + e.substr(t + a.length); }, DayPilot.Util.isNullOrUndefined = function (e) { return null === e || "undefined" == typeof e; }, DayPilot.Util.escapeHtml = function (e) { var t = document.createElement("div"); return t.innerText = e, t.innerHTML; }, DayPilot.Util.escapeTextHtml = function (e, t) { return DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : DayPilot.Util.escapeHtml(e) : t; }, DayPilot.Areas = {}, DayPilot.Areas.attach = function (e, t, a) { var a = a || {}, o = a.areas, n = a.allowed || function () { return !0; }, i = a.offsetX || 0; o = r(t, o), o && DayPilot.isArray(o) && 0 !== o.length && (DayPilot.re(e, "mousemove", function (r) { e.active || e.areasDisabled || !n() || DayPilot.Areas.showAreas(e, t, r, o, { "offsetX": i, "eventDiv": a.eventDiv }); }), DayPilot.re(e, "mouseleave", function (t) { DayPilot.Areas.hideAreas(e, t); }), o.forEach(function (r) { if (DayPilot.Areas.isVisible(r)) {
|
|
224
|
+
var o = DayPilot.Areas.createArea(e, t, r, { "offsetX": i, "eventDiv": a.eventDiv });
|
|
225
|
+
e.appendChild(o);
|
|
226
|
+
} })); }, DayPilot.Areas.disable = function (e) { e.areasDisabled = !0, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c = e.style.display, e.style.display = "none"; }); }, DayPilot.Areas.enable = function (e) { e.areasDisabled = !1, Array.from(e.childNodes).filter(function (e) { return e.isActiveArea && !e.area.start; }).forEach(function (e) { e.c ? e.style.display = e.c : e.style.display = ""; }); }, DayPilot.Areas.remove = function (e) { var t = Array.from(e.childNodes).filter(function (e) { return e.isActiveArea; }); DayPilot.de(t); }, DayPilot.Areas.isVisible = function (e) { var t = e.visibility || e.v || "Visible"; return "Visible" === t || "TouchVisible" === t && !DayPilot.browser.hover; }, DayPilot.Areas.copy = function (e) { return DayPilot.isArray(e) ? e.map(function (e) { return DayPilot.Util.copyProps(e, {}); }) : []; };
|
|
227
|
+
var r = function (e, t) { return DayPilot.isArray(t) || (t = e.areas, t || (e.cache ? t = e.cache.areas : e.data && (t = e.data.areas))), t; };
|
|
228
|
+
DayPilot.Areas.showAreas = function (e, t, a, r, o) { if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
|
|
229
|
+
if (DayPilot.Areas.all && DayPilot.Areas.all.length > 0)
|
|
230
|
+
for (var n = 0; n < DayPilot.Areas.all.length; n++) {
|
|
231
|
+
var i = DayPilot.Areas.all[n];
|
|
232
|
+
i !== e && DayPilot.Areas.hideAreas(i, a);
|
|
233
|
+
}
|
|
234
|
+
if (e.active = {}, DayPilot.isArray(r) || (r = t.areas, r || (t.cache ? r = t.cache.areas : t.data && (r = t.data.areas))), r && 0 !== r.length && !(e.areas && e.areas.length > 0)) {
|
|
235
|
+
e.areas = [];
|
|
236
|
+
for (var n = 0; n < r.length; n++) {
|
|
237
|
+
var l = r[n];
|
|
238
|
+
if (!DayPilot.Areas.isVisible(l)) {
|
|
239
|
+
var d = DayPilot.Areas.createArea(e, t, l, o);
|
|
240
|
+
e.areas.push(d), e.appendChild(d), DayPilot.Areas.all.push(e);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
e.active.children = DayPilot.ac(e);
|
|
244
|
+
}
|
|
245
|
+
} }, DayPilot.Areas.createArea = function (e, t, a, r) {
|
|
246
|
+
function o(e, t, a) { var r = {}; return r.area = e, r.source = t, r.originalEvent = a, r.preventDefault = function () { r.preventDefault.value = !0; }, "function" == typeof e.onClick && e.onClick(r), r; }
|
|
247
|
+
function n(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
|
|
248
|
+
function i(e, t, a, r) {
|
|
249
|
+
DayPilot.Menu && DayPilot.Menu.touchPosition(r);
|
|
250
|
+
var o = a.contextMenu || a.menu;
|
|
251
|
+
if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)), o && o.show) {
|
|
252
|
+
var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
|
|
253
|
+
o.show(t, { "initiator": n });
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
var r = r || {}, l = r.offsetX || 0, d = r.eventDiv || e, s = document.createElement("div");
|
|
257
|
+
s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
|
|
258
|
+
var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
|
|
259
|
+
if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute", "undefined" != typeof u && (s.style.width = u + "px"), "undefined" != typeof c && (s.style.height = c + "px"), "undefined" != typeof a.right && (s.style.right = a.right + "px"), "undefined" != typeof a.top && (s.style.top = a.top + "px"), "undefined" != typeof a.left && (s.style.left = a.left + l + "px"), "undefined" != typeof a.bottom && (s.style.bottom = a.bottom + "px"), "undefined" != typeof a.html || "undefined" != typeof a.text)
|
|
260
|
+
s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
|
|
261
|
+
else if (a.icon) {
|
|
262
|
+
var y = document.createElement("i");
|
|
263
|
+
y.className = a.icon, s.appendChild(y);
|
|
264
|
+
}
|
|
265
|
+
else if (a.image) {
|
|
266
|
+
var m = document.createElement("img");
|
|
267
|
+
m.src = a.image, s.appendChild(m);
|
|
268
|
+
}
|
|
269
|
+
else if (a.symbol) {
|
|
270
|
+
var h = "http://www.w3.org/2000/svg", p = document.createElementNS(h, "svg");
|
|
271
|
+
p.setAttribute("width", "100%"), p.setAttribute("height", "100%");
|
|
272
|
+
var g = document.createElementNS(h, "use");
|
|
273
|
+
g.setAttribute("href", a.symbol), p.appendChild(g), s.appendChild(p);
|
|
274
|
+
}
|
|
275
|
+
if (f && (s.className = f), a.toolTip && s.setAttribute("title", a.toolTip), a.backColor && (s.style.background = a.backColor), a.background && (s.style.background = a.background), a.fontColor && (s.style.color = a.fontColor), a.padding && (s.style.padding = a.padding + "px", s.style.boxSizing = "border-box"), a.verticalAlignment)
|
|
276
|
+
switch (s.style.display = "flex", a.verticalAlignment) {
|
|
277
|
+
case "center":
|
|
278
|
+
s.style.alignItems = "center";
|
|
279
|
+
break;
|
|
280
|
+
case "top":
|
|
281
|
+
s.style.alignItems = "flex-start";
|
|
282
|
+
break;
|
|
283
|
+
case "bottom": s.style.alignItems = "flex-end";
|
|
284
|
+
}
|
|
285
|
+
if (a.horizontalAlignment)
|
|
286
|
+
switch (s.style.display = "flex", a.horizontalAlignment) {
|
|
287
|
+
case "right":
|
|
288
|
+
s.style.justifyContent = "flex-end";
|
|
289
|
+
break;
|
|
290
|
+
case "left":
|
|
291
|
+
s.style.justifyContent = "flex-start";
|
|
292
|
+
break;
|
|
293
|
+
case "center": s.style.justifyContent = "center";
|
|
294
|
+
}
|
|
295
|
+
if ("ResizeEnd" === a.action || "ResizeStart" === a.action || "Move" === a.action) {
|
|
296
|
+
if (t.calendar.isCalendar)
|
|
297
|
+
switch (a.action) {
|
|
298
|
+
case "ResizeEnd":
|
|
299
|
+
a.cursor = "s-resize", a.dpBorder = "bottom";
|
|
300
|
+
break;
|
|
301
|
+
case "ResizeStart":
|
|
302
|
+
a.cursor = "n-resize", a.dpBorder = "top";
|
|
303
|
+
break;
|
|
304
|
+
case "Move": a.cursor = "move";
|
|
305
|
+
}
|
|
306
|
+
if (t.calendar.isScheduler || t.calendar.isMonth)
|
|
307
|
+
switch (a.action) {
|
|
308
|
+
case "ResizeEnd":
|
|
309
|
+
a.cursor = "e-resize", a.dpBorder = "right";
|
|
310
|
+
break;
|
|
311
|
+
case "ResizeStart":
|
|
312
|
+
a.cursor = "w-resize", a.dpBorder = "left";
|
|
313
|
+
break;
|
|
314
|
+
case "Move": a.cursor = "move";
|
|
315
|
+
}
|
|
316
|
+
s.onmousemove = function (e, t, a) { return function (r) { t.calendar.internal && t.calendar.internal.dragInProgress && t.calendar.internal.dragInProgress() || (r.cancelBubble = !0, e.style.cursor = a.cursor, a.dpBorder && (e.dpBorder = a.dpBorder)); }; }(d, t, a), s.onmouseout = function (e, t, a) { return function (t) { e.style.cursor = ""; }; }(d, t, a);
|
|
317
|
+
}
|
|
318
|
+
if (("ResizeEnd" === a.action || "ResizeStart" === a.action) && t.isEvent && t.calendar.internal.touch) {
|
|
319
|
+
var b = function (e, t, a) { return function (r) { r.cancelBubble = !0; var o = t.calendar.internal.touch, n = r.touches ? r.touches[0] : r, i = { x: n.pageX, y: n.pageY }; t.calendar.coords = o.relativeCoords(r), o.preventEventTap = !0, t.calendar.isScheduler ? o.startResizing(e, "ResizeEnd" === a.action ? "right" : "left") : t.calendar.isCalendar && o.startResizing(e, "ResizeEnd" === a.action ? "bottom" : "top", i); }; }(d, t, a);
|
|
320
|
+
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
321
|
+
}
|
|
322
|
+
if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
323
|
+
var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(), i(e, t, a, r), t.calendar.internal.touch.preventEventTap = !0; }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
|
|
324
|
+
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
325
|
+
}
|
|
326
|
+
if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
327
|
+
var b = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); var r = o(a, t, e); if (!r.preventDefault.value) {
|
|
328
|
+
n(t, a, e);
|
|
329
|
+
t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
|
|
330
|
+
} }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
|
|
331
|
+
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
332
|
+
}
|
|
333
|
+
if ("Move" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
334
|
+
var b = function (e, t, a) { return function (a) { a.cancelBubble = !0; var r = t.calendar.internal.touch, o = a.touches ? a.touches[0] : a, n = { x: o.pageX, y: o.pageY }; t.calendar.coords = r.relativeCoords(a), DayPilot.Global && DayPilot.Global.touch && (DayPilot.Global.touch.active = !0), r.preventEventTap = !0, r.startMoving(e, n); }; }(d, t, a);
|
|
335
|
+
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
336
|
+
}
|
|
337
|
+
if ("Bubble" === a.action && t.isEvent ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showEvent(t, !0) : t.calendar.bubble && t.calendar.bubble.showEvent(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.bubble && t.calendar.bubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && t.isRow ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showResource(t, !0) : t.calendar.resourceBubble && t.calendar.resourceBubble.showResource(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.resourceBubble && t.calendar.resourceBubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && "undefined" != typeof DayPilot.Bubble && a.bubble instanceof DayPilot.Bubble && (s.onmousemove = function (e, t, a) { return function (e) { a.bubble.showHtml(null, null); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && a.bubble && a.bubble.hideOnMouseOut(); }; }(e, t, a)), "HoverMenu" === a.action && (s.onmousemove = function (e, t, a) { return function (e) { var r = a.menu; r && r.show && (r.visible ? r.source && "undefined" != typeof r.source.id && r.source.id !== t.id && r.show(t) : r.show(t), r.cancelHideTimeout()); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { var t = a.menu; t && t.hideOnMouseOver && t.delayedHide(); }; }(e, t, a)), "None" === a.action) {
|
|
338
|
+
var b = function (e, t, a) { return function (e) { var r = o(a, t, e); "function" == typeof a.onClicked && a.onClicked(r), e.preventDefault(), e.stopPropagation(); }; }(d, t, a);
|
|
339
|
+
DayPilot.reNonPassive(s, DayPilot.touch.start, b);
|
|
340
|
+
}
|
|
341
|
+
return s.onmousedown = function (e, t, a) { return function (r) { if ("function" == typeof a.onmousedown && a.onmousedown(r), "function" == typeof a.mousedown) {
|
|
342
|
+
var o = {};
|
|
343
|
+
o.area = a, o.div = e, o.originalEvent = r, o.source = t, a.mousedown(o);
|
|
344
|
+
} if ("Move" === a.action && t.isRow) {
|
|
345
|
+
var n = t.$.row;
|
|
346
|
+
(0, t.calendar.internal.rowStartMoving)(n);
|
|
347
|
+
} "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), "Move" === a.action && (DayPilot.Global.movingAreaData = a.data), "Move" === a.action && t.isEvent && t.calendar.internal && t.calendar.internal.startMoving && t.calendar.internal.startMoving(e, r); "Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0); }; }(e, t, a), s.onclick = function (e, t, a) { return function (r) { var n = o(a, t, r); if (!n.preventDefault.value) {
|
|
348
|
+
switch (a.action) {
|
|
349
|
+
case "ContextMenu":
|
|
350
|
+
i(e, t, a, r), r.cancelBubble = !0;
|
|
351
|
+
break;
|
|
352
|
+
case "None": r.cancelBubble = !0;
|
|
353
|
+
}
|
|
354
|
+
"function" == typeof a.onClicked && a.onClicked(n);
|
|
355
|
+
} }; }(e, t, a), "function" == typeof a.onMouseEnter && s.addEventListener("mouseenter", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseEnter(r); }; }(e, t, a)), "function" == typeof a.onMouseLeave && s.addEventListener("mouseleave", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseLeave(r); }; }(e, t, a)), s;
|
|
356
|
+
}, DayPilot.Areas.all = [], DayPilot.Areas.hideAreas = function (e, t) { if (e && e && e.active) {
|
|
357
|
+
var a = e.active, r = e.areas;
|
|
358
|
+
if (a && a.children && t) {
|
|
359
|
+
var o = t.toElement || t.relatedTarget;
|
|
360
|
+
if (~DayPilot.indexOf(a.children, o))
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
if (!r || 0 === r.length)
|
|
364
|
+
return void (e.active = null);
|
|
365
|
+
DayPilot.de(r), e.active = null, e.areas = [], DayPilot.rfa(DayPilot.Areas.all, e), a.children = null;
|
|
366
|
+
} }, DayPilot.Areas.hideAll = function (e) { if (DayPilot.Areas.all && 0 !== DayPilot.Areas.all.length)
|
|
367
|
+
for (var t = 0; t < DayPilot.Areas.all.length; t++)
|
|
368
|
+
DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e); }, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) { if (this.id = e, this.dayNames = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], this.dayNamesShort = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], this.monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], this.datePattern = "M/d/yyyy", this.timePattern = "H:mm", this.dateTimePattern = "M/d/yyyy H:mm", this.timeFormat = "Clock12Hours", this.weekStarts = 0, t)
|
|
219
369
|
for (var a in t)
|
|
220
370
|
this[a] = t[a]; }, DayPilot.Locale.all = {}, DayPilot.Locale.find = function (e) { if (!e)
|
|
221
|
-
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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", {
|
|
222
|
-
|
|
223
|
-
})), 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) { var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3; if (2 === arguments.length) {
|
|
224
|
-
var i = arguments[0], d = arguments[1];
|
|
371
|
+
return null; var t = e.toLowerCase(); return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t]; }, 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"], "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) { var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3; if (2 === arguments.length) {
|
|
372
|
+
var i = arguments[0], l = arguments[1];
|
|
225
373
|
if (!(i instanceof DayPilot.Date) && "string" != typeof i)
|
|
226
374
|
throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
|
|
227
|
-
if (!(
|
|
375
|
+
if (!(l instanceof DayPilot.Date) && "string" != typeof l)
|
|
228
376
|
throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";
|
|
229
|
-
"string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof
|
|
377
|
+
"string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof l && (l = new DayPilot.Date(l)), e = l.getTime() - i.getTime();
|
|
230
378
|
} return this.ticks = e, DayPilot.Date.Cache.DurationCtor["" + e] ? DayPilot.Date.Cache.DurationCtor["" + e] : (DayPilot.Date.Cache.DurationCtor["" + e] = this, this.toString = function (e) { if (!e)
|
|
231
379
|
return t.days() + "." + t.hours() + ":" + t.minutes() + ":" + t.seconds() + "." + t.milliseconds(); var a = t.minutes(); a = (a < 10 ? "0" : "") + a; var r = e; return r = r.replace("mm", a), r = r.replace("m", t.minutes()), r = r.replace("H", t.hours()), r = r.replace("h", t.hours()), r = r.replace("d", t.days()), r = r.replace("s", t.seconds()); }, this.totalHours = function () { return t.ticks / r; }, this.totalDays = function () { return t.ticks / a; }, this.totalMinutes = function () { return t.ticks / o; }, this.totalSeconds = function () { return t.ticks / n; }, this.days = function () { return Math.floor(t.totalDays()); }, this.hours = function () { var e = t.ticks - t.days() * a; return Math.floor(e / r); }, this.minutes = function () { var e = t.ticks - Math.floor(t.totalHours()) * r; return Math.floor(e / o); }, this.seconds = function () { var e = t.ticks - Math.floor(t.totalMinutes()) * o; return Math.floor(e / n); }, void (this.milliseconds = function () { return t.ticks % n; })); }, DayPilot.Duration.weeks = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24 * 7); }, DayPilot.Duration.days = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24); }, DayPilot.Duration.hours = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60); }, DayPilot.Duration.minutes = function (e) { return new DayPilot.Duration(1e3 * e * 60); }, DayPilot.Duration.seconds = function (e) { return new DayPilot.Duration(1e3 * e); }, DayPilot.TimeSpan = function () { throw "Please use DayPilot.Duration class instead of DayPilot.TimeSpan."; };
|
|
232
380
|
try {
|
|
@@ -246,7 +394,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
246
394
|
if (!(t instanceof Date))
|
|
247
395
|
throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";
|
|
248
396
|
r = a ? DayPilot.DateUtil.fromLocal(t).getTime() : t.getTime();
|
|
249
|
-
} var i = e(r); return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1)); }, DayPilot.Date.Config = {},
|
|
397
|
+
} var i = e(r); return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1)); }, DayPilot.Date.Config = {},
|
|
398
|
+
DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}, DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) { if (!e)
|
|
250
399
|
return this; var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1; if (e > 0) {
|
|
251
400
|
for (; e >= 12;)
|
|
252
401
|
e -= 12, a++;
|
|
@@ -266,18 +415,18 @@ if ("undefined" == typeof DayPilot)
|
|
|
266
415
|
}
|
|
267
416
|
else
|
|
268
417
|
e = e || 0; for (var r = t.dayOfWeek(); r !== e;)
|
|
269
|
-
t = t.addDays(-1), r = t.dayOfWeek(); return new DayPilot.Date(t); }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new
|
|
418
|
+
t = t.addDays(-1), r = t.dayOfWeek(); return new DayPilot.Date(t); }, DayPilot.Date.prototype.getDay = function () { return new Date(this.ticks).getUTCDate(); }, DayPilot.Date.prototype.getDatePart = function () { var e = new Date(this.ticks); return e.setUTCHours(0), e.setUTCMinutes(0), e.setUTCSeconds(0), e.setUTCMilliseconds(0), new DayPilot.Date(e); }, DayPilot.Date.prototype.getYear = function () { return new Date(this.ticks).getUTCFullYear(); }, DayPilot.Date.prototype.getHours = function () { return new Date(this.ticks).getUTCHours(); }, DayPilot.Date.prototype.getMilliseconds = function () { return new Date(this.ticks).getUTCMilliseconds(); }, DayPilot.Date.prototype.getMinutes = function () { return new Date(this.ticks).getUTCMinutes(); }, DayPilot.Date.prototype.getMonth = function () { return new Date(this.ticks).getUTCMonth(); }, DayPilot.Date.prototype.getSeconds = function () { return new Date(this.ticks).getUTCSeconds(); }, DayPilot.Date.prototype.getTotalTicks = function () { return this.getTime(); }, DayPilot.Date.prototype.getTime = function () { return this.ticks; }, DayPilot.Date.prototype.getTimePart = function () { var e = this.getDatePart(); return DayPilot.DateUtil.diff(this, e); }, DayPilot.Date.prototype.lastDayOfMonth = function () { var e = new Date(this.firstDayOfMonth().getTime()), t = this.daysInMonth(); return e.setUTCDate(t), new DayPilot.Date(e); }, DayPilot.Date.prototype.weekNumber = function () { var e = this.firstDayOfYear(), t = (this.getTime() - e.getTime()) / 864e5; return Math.ceil((t + e.dayOfWeek() + 1) / 7); }, DayPilot.Date.prototype.weekNumberISO = function () { var e = !1, t = this.dayOfYear(), a = this.firstDayOfYear().dayOfWeek(), r = this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek(); 0 === a && (a = 7), 0 === r && (r = 7); var o = 8 - a; 4 !== a && 4 !== r || (e = !0); var n = Math.ceil((t - o) / 7), i = n; return o >= 4 && (i += 1), i > 52 && !e && (i = 1), 0 === i && (i = this.firstDayOfYear().addDays(-1).weekNumberISO()), i; }, DayPilot.Date.prototype.toDateLocal = function () { var e = new Date(this.ticks), t = new Date; return t.setFullYear(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate()), t.setHours(e.getUTCHours()), t.setMinutes(e.getUTCMinutes()), t.setSeconds(e.getUTCSeconds()), t.setMilliseconds(e.getUTCMilliseconds()), t; }, DayPilot.Date.prototype.toDate = function () { return new Date(this.ticks); }, DayPilot.Date.prototype.toJSON = function () { return this.value; }, DayPilot.Date.prototype.toString = function (e, t) { return e ? new o(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, a) { return new o(t, a).parse(e); };
|
|
270
419
|
DayPilot.Date.today = function () { return new DayPilot.Date(DayPilot.DateUtil.localToday(), !0); }, DayPilot.Date.now = function () { return new DayPilot.Date; }, DayPilot.Date.fromYearMonthDay = function (e, t, a) { t = t || 1, a = a || 1; var r = new Date(0); return r.setUTCFullYear(e), r.setUTCMonth(t - 1), r.setUTCDate(a), new DayPilot.Date(r); }, DayPilot.DateUtil = {}, DayPilot.DateUtil.fromStringSortable = function (e, t) { if (!e)
|
|
271
420
|
throw "Can't create DayPilot.Date from an empty string"; var a = e.length, r = 10 === a, o = 19 === a, n = a > 19; if (!r && !o && !n)
|
|
272
421
|
throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e; if (DayPilot.Date.Cache.Parsing[e] && !t)
|
|
273
|
-
return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e]; var i = e.substring(0, 4),
|
|
422
|
+
return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e]; var i = e.substring(0, 4), l = e.substring(5, 7), d = e.substring(8, 10), s = new Date(0); if (s.setUTCFullYear(i, l - 1, d), r)
|
|
274
423
|
return DayPilot.Date.Cache.Parsing[e] = s, s; var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19); if (s.setUTCHours(u), s.setUTCMinutes(c), s.setUTCSeconds(f), o)
|
|
275
|
-
return DayPilot.Date.Cache.Parsing[e] = s, s; var
|
|
424
|
+
return DayPilot.Date.Cache.Parsing[e] = s, s; var y = e[19], m = 0; if ("." === y) {
|
|
276
425
|
var h = parseInt(e.substring(20, 23));
|
|
277
|
-
s.setUTCMilliseconds(h),
|
|
426
|
+
s.setUTCMilliseconds(h), m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
|
|
278
427
|
}
|
|
279
428
|
else
|
|
280
|
-
|
|
429
|
+
m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19)); var p = new DayPilot.Date(s); return t || (p = p.addMinutes(-m)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s; }, DayPilot.DateUtil.getTzOffsetMinutes = function (e) { if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
|
|
281
430
|
return 0; if ("Z" === e)
|
|
282
431
|
return 0; var t = e[0], a = parseInt(e.substring(1, 3)), r = parseInt(e.substring(4)), o = 60 * a + r; if ("-" === t)
|
|
283
432
|
return -o; if ("+" === t)
|
|
@@ -290,49 +439,43 @@ if ("undefined" == typeof DayPilot)
|
|
|
290
439
|
0 === r && (r = 12);
|
|
291
440
|
return r + ":" + a + " " + (o ? "AM" : "PM");
|
|
292
441
|
} return r + ":" + a; }, 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; };
|
|
293
|
-
var r = function (e, a) {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
return null;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
n = "PM" === l ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
|
|
329
|
-
} if (n < 0 || n > 23)
|
|
330
|
-
return null; if (i < 0 || i > 59)
|
|
331
|
-
return null; if (d < 0 || d > 59)
|
|
332
|
-
return null; var u = new Date; return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(d), u.setUTCMilliseconds(0), new DayPilot.Date(u); }, this.init();
|
|
333
|
-
};
|
|
442
|
+
var o = function (e, a) { "string" == typeof a && (a = DayPilot.Locale.find(a)); 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) { return a.dayNamesShort[e.getDayOfWeek()]; } }, { "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, "\\$&"); }; 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) { function a(e) { return parseInt(e); } return e.indexOf(t) === -1 ? null : { "findValue": function (n) { for (var i = o(e), l = null, d = 0; d < r.length; d++) {
|
|
443
|
+
var s = (r[d].length, t === r[d].seq), u = r[d].expr;
|
|
444
|
+
s && (u = "(" + u + ")", l = r[d].transform), i = i.replace(r[d].seq, u);
|
|
445
|
+
} i = "^" + i + "$"; try {
|
|
446
|
+
var c = new RegExp(i), f = c.exec(n);
|
|
447
|
+
return f ? (l = l || a)(f[1]) : null;
|
|
448
|
+
}
|
|
449
|
+
catch (e) {
|
|
450
|
+
throw "unable to create regex from: " + i;
|
|
451
|
+
} } }; }, this.print = function (t) { for (var a = function (e) { for (var t = 0; t < r.length; t++)
|
|
452
|
+
if (r[t] && r[t].seq === e)
|
|
453
|
+
return r[t]; return null; }, o = e.length <= 0, n = 0, i = []; !o;) {
|
|
454
|
+
var l = e.substring(n), d = /%?(.)\1*/.exec(l);
|
|
455
|
+
if (d && d.length > 0) {
|
|
456
|
+
var s = d[0], u = a(s);
|
|
457
|
+
u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
|
|
458
|
+
}
|
|
459
|
+
else
|
|
460
|
+
o = !0;
|
|
461
|
+
} for (var c = 0; c < i.length; c++) {
|
|
462
|
+
var f = i[c];
|
|
463
|
+
"string" != typeof f && (i[c] = f.str(t));
|
|
464
|
+
} return i.join(""); }, this.parse = function (e) { var t = this.year.findValue(e); if (!t)
|
|
465
|
+
return null; var a = this.month.findValue(e); if (DayPilot.Util.isNullOrUndefined(a))
|
|
466
|
+
return null; if (a > 12 || a < 1)
|
|
467
|
+
return null; var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth(); if (r < 1 || r > o)
|
|
468
|
+
return null; var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, l = this.seconds ? this.seconds.findValue(e) : 0, d = this.ampm ? this.ampm.findValue(e) : null; if (this.ampm && this.hours12) {
|
|
469
|
+
var s = this.hours12.findValue(e);
|
|
470
|
+
if (s < 1 || s > 12)
|
|
471
|
+
return null;
|
|
472
|
+
n = "PM" === d ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
|
|
473
|
+
} if (n < 0 || n > 23)
|
|
474
|
+
return null; if (i < 0 || i > 59)
|
|
475
|
+
return null; if (l < 0 || l > 59)
|
|
476
|
+
return null; var u = new Date; return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(l), u.setUTCMilliseconds(0), new DayPilot.Date(u); }, this.init(); };
|
|
334
477
|
DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) { if (!/^#[0-9a-f]{6}$/i.test(e))
|
|
335
|
-
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) }; }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.Event = function (e, t, a) { var r = this; this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var o = {}, n = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (o.dirty)
|
|
478
|
+
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'."); return e = e.replace("#", ""), { r: parseInt(e.substring(0, 2), 16), g: parseInt(e.substring(2, 4), 16), b: parseInt(e.substring(4, 6), 16) }; }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + a(e.r) + a(e.g) + a(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.ColorUtil.lighter = function (e, t) { return "number" != typeof t && (t = 1), DayPilot.ColorUtil.darker(e, -t); }, DayPilot.ColorUtil.pl = function (e) { var t = DayPilot.ColorUtil.hexToRgb(e), a = t.r / 255, r = t.g / 255, o = t.b / 255; return Math.sqrt(.299 * a * a + .587 * r * r + .114 * o * o); }, DayPilot.ColorUtil.contrasting = function (e, t, a) { var r = DayPilot.ColorUtil.pl(e); return t = t || "#ffffff", a = a || "#000000", r > .5 ? a : t; }, DayPilot.Event = function (e, t, a) { var r = this; this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value); var o = {}, n = ["id", "text", "start", "end", "resource"]; this.isEvent = !0, this.temp = function () { if (o.dirty)
|
|
336
479
|
return o; for (var e = 0; e < n.length; e++)
|
|
337
480
|
o[n[e]] = r.data[n[e]]; return o.dirty = !0, o; }, this.copy = function () { for (var e = {}, t = 0; t < n.length; t++)
|
|
338
481
|
e[n[t]] = r.data[n[t]]; return e; }, this.commit = function () { if (o.dirty) {
|
|
@@ -356,28 +499,28 @@ if ("undefined" == typeof DayPilot)
|
|
|
356
499
|
for (var a = r.calendar.tagFields, o = 0; o < a.length; o++)
|
|
357
500
|
t.tag[a[o]] = this.tag(a[o]); return t; }; };
|
|
358
501
|
}
|
|
359
|
-
}(), DayPilot.JSON = {}, function () { function e(e) { return e < 10 ? "0" + e : e; } function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t =
|
|
360
|
-
case "string": return t(
|
|
361
|
-
case "number": return isFinite(
|
|
502
|
+
}(), DayPilot.JSON = {}, function () { function e(e) { return e < 10 ? "0" + e : e; } function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = l[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; } function a(e, i) { var l, d, s, u, c, f = r, y = i[e]; switch (y && "object" == typeof y && "function" == typeof y.toJSON2 ? y = y.toJSON2(e) : y && "object" == typeof y && "function" == typeof y.toJSON && !y.ignoreToJSON && (y = y.toJSON(e)), "function" == typeof n && (y = n.call(i, e, y)), typeof y) {
|
|
503
|
+
case "string": return t(y);
|
|
504
|
+
case "number": return isFinite(y) ? String(y) : "null";
|
|
362
505
|
case "boolean":
|
|
363
|
-
case "null": return String(
|
|
506
|
+
case "null": return String(y);
|
|
364
507
|
case "object":
|
|
365
|
-
if (!
|
|
508
|
+
if (!y)
|
|
366
509
|
return "null";
|
|
367
|
-
if (r += o, c = [], "number" == typeof
|
|
368
|
-
for (u =
|
|
369
|
-
c[
|
|
510
|
+
if (r += o, c = [], "number" == typeof y.length && !y.propertyIsEnumerable("length")) {
|
|
511
|
+
for (u = y.length, l = 0; l < u; l += 1)
|
|
512
|
+
c[l] = a(l, y) || "null";
|
|
370
513
|
return s = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, s;
|
|
371
514
|
}
|
|
372
515
|
if (n && "object" == typeof n)
|
|
373
|
-
for (u = n.length,
|
|
374
|
-
|
|
516
|
+
for (u = n.length, l = 0; l < u; l += 1)
|
|
517
|
+
d = n[l], "string" == typeof d && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
|
|
375
518
|
else
|
|
376
|
-
for (
|
|
377
|
-
Object.hasOwnProperty.call(
|
|
519
|
+
for (d in y)
|
|
520
|
+
Object.hasOwnProperty.call(y, d) && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
|
|
378
521
|
return s = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, s;
|
|
379
|
-
} } "function" != typeof Date.prototype.toJSON2 && (Date.prototype.toJSON2 = function (t) { return this.getUTCFullYear() + "-" + e(this.getUTCMonth() + 1) + "-" + e(this.getUTCDate()) + "T" + e(this.getUTCHours()) + ":" + e(this.getUTCMinutes()) + ":" + e(this.getUTCSeconds()); }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (e) { return this.valueOf(); }); var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
|
|
380
|
-
for (
|
|
522
|
+
} } "function" != typeof Date.prototype.toJSON2 && (Date.prototype.toJSON2 = function (t) { return this.getUTCFullYear() + "-" + e(this.getUTCMonth() + 1) + "-" + e(this.getUTCDate()) + "T" + e(this.getUTCHours()) + ":" + e(this.getUTCMinutes()) + ":" + e(this.getUTCSeconds()); }, String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (e) { return this.valueOf(); }); var r, o, n, i = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, l = { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", '"': '\\"', "\\": "\\\\" }; "function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) { var l; if (r = "", o = "", "number" == typeof i)
|
|
523
|
+
for (l = 0; l < i; l += 1)
|
|
381
524
|
o += " ";
|
|
382
525
|
else
|
|
383
526
|
"string" == typeof i && (o = i); if (n = t, t && "function" != typeof t && ("object" != typeof t || "number" != typeof t.length))
|
|
@@ -404,17 +547,17 @@ if ("undefined" == typeof DayPilot)
|
|
|
404
547
|
s.dispose(), t.unregister(s);
|
|
405
548
|
} }, t.gMouseUp = function (i) { if (t.resizing) {
|
|
406
549
|
if (!t.resizingShadow)
|
|
407
|
-
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (
|
|
550
|
+
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
|
|
408
551
|
var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, a = t.resizingShadow.offsetTop, l = t.resizing.dpBorder;
|
|
409
|
-
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, n.calendar.a(n, s, a, l);
|
|
552
|
+
t.deleteShadow(t.resizingShadow), t.resizingShadow = null, t.resizing.style.cursor = "default", n.calendar.nav.top.style.cursor = "auto", t.resizing.onclick = null, t.resizing = null, DayPilot.Global.resizing = null, n.calendar.a(n, s, a, l);
|
|
410
553
|
}
|
|
411
554
|
else if (t.moving) {
|
|
412
555
|
if (!t.movingShadow)
|
|
413
|
-
return t.moving = null, void (document.body.style.cursor = "default");
|
|
556
|
+
return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
|
|
414
557
|
var a = t.movingShadow.offsetTop, n = t.moving.event;
|
|
415
558
|
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, n.calendar.b("_event_moving_source"));
|
|
416
559
|
var o = t.movingShadow.column;
|
|
417
|
-
t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
|
|
560
|
+
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
|
|
418
561
|
}
|
|
419
562
|
else if (t.selecting && null !== t.topSelectedCell) {
|
|
420
563
|
var r = t.selecting.calendar;
|
|
@@ -428,7 +571,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
428
571
|
if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
|
|
429
572
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
430
573
|
var s = this;
|
|
431
|
-
this.uniqueID = null, this.v = "2022.
|
|
574
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2022.4.438-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellHeight = 30, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", this.locale = "en-us", this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeEventRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.g(); }, this.g = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.i = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.k = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.l, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.m, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.n(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.o(), e.p(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.q = function () { this.nav.top.dispose = this.dispose; }, this.l = function (e) { s.m(e.responseText); }, this.j = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.r = function (e, t) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
432
575
|
i = i.parentNode; var n = document.createElement("div"); n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = s.b("_shadow"); var a = document.createElement("div"); return a.className = s.b("_shadow_inner"), n.appendChild(a), i.firstChild.appendChild(n), n; }, this.s = {}, this.s.locale = function () { var e = DayPilot.Locale.find(s.locale); return e ? e : DayPilot.Locale.US; }, this.s.timeFormat = function () { return "Auto" !== s.timeFormat ? s.timeFormat : this.locale().timeFormat; }, this.s.t = function () { return "Disabled" !== s.xssProtection; };
|
|
433
576
|
var a = this.s;
|
|
434
577
|
this.m = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
|
|
@@ -662,16 +805,16 @@ if ("undefined" == typeof DayPilot)
|
|
|
662
805
|
n.onmousedown = null, n.onmousemove = null, n.onclick = null;
|
|
663
806
|
}
|
|
664
807
|
t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
|
|
665
|
-
} this.elements.events = []; }, this.Z = function (e) { var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div"); 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.b("_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.M, DayPilot.re(a, "contextmenu", this.O), a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (i) { var n =
|
|
808
|
+
} this.elements.events = []; }, this.Z = function (e) { var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div"); 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.b("_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.M, DayPilot.re(a, "contextmenu", this.O), a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (i) { var n = 5; if ("undefined" != typeof t) {
|
|
666
809
|
var l = DayPilot.mo3(a, i);
|
|
667
810
|
if (l && !t.resizing && !t.moving) {
|
|
668
811
|
a.deleteIcon && (a.deleteIcon.style.display = "");
|
|
669
812
|
var o = this.isLast;
|
|
670
|
-
l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <=
|
|
813
|
+
l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <= n && 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");
|
|
671
814
|
}
|
|
672
815
|
} }, a.onmousedown = function (i) { var n = i.which || i.button; if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== n) {
|
|
673
816
|
if (1 === n && e.client.moveEnabled()) {
|
|
674
|
-
t.moving = this, t.moving.event = this.event;
|
|
817
|
+
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
675
818
|
var a = t.moving.helper = {};
|
|
676
819
|
a.oldColumn = s.Q[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
677
820
|
var l = DayPilot.mo3(this, i);
|
|
@@ -679,7 +822,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
679
822
|
}
|
|
680
823
|
}
|
|
681
824
|
else
|
|
682
|
-
t.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor; return !1; }; var l = document.createElement("div"); if (l.setAttribute("unselectable", "on"), l.className = s.b("_event_inner"), l.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : l.style.borderColor = i.borderColor, i.backColor && (l.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (l.style.filter = "")), i.fontColor && (l.style.color = i.fontColor), a.appendChild(l), e.client.barVisible()) {
|
|
825
|
+
t.resizing = this, DayPilot.Global.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor; return !1; }; var l = document.createElement("div"); if (l.setAttribute("unselectable", "on"), l.className = s.b("_event_inner"), l.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : l.style.borderColor = i.borderColor, i.backColor && (l.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (l.style.filter = "")), i.fontColor && (l.style.color = i.fontColor), a.appendChild(l), e.client.barVisible()) {
|
|
683
826
|
var o = e.part.height - 2, r = 100 * e.part.barTop / o, h = Math.ceil(100 * e.part.barHeight / o), c = document.createElement("div");
|
|
684
827
|
c.setAttribute("unselectable", "on"), c.className = this.b("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
|
|
685
828
|
var d = document.createElement("div");
|
|
@@ -687,7 +830,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
687
830
|
} if (e.client.deleteEnabled()) {
|
|
688
831
|
var u = document.createElement("div");
|
|
689
832
|
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.b("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
|
|
690
|
-
} if (n.rows[0].cells[e.part.dayIndex]) {
|
|
833
|
+
} var v = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
|
|
691
834
|
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.$(a);
|
|
692
835
|
} s.elements.events.push(a); }, this.$ = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
693
836
|
try {
|
|
@@ -732,71 +875,68 @@ if ("undefined" == typeof DayPilot)
|
|
|
732
875
|
l.unselectable = "on", l.style.position = "relative", l.style.width = "16px", l.style.height = this.headerHeight + "px", l.className = this.b("_cornerright");
|
|
733
876
|
var o = document.createElement("div");
|
|
734
877
|
o.className = this.b("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
|
|
735
|
-
} return e.appendChild(t), e; }, this.ia = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.b("_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.b("_corner_inner"), e.appendChild(t), e; }, this.o = function () {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
743
|
-
this.tableCreated = !0;
|
|
744
|
-
for (var l = a.length, o = this.nav.events; o && o.rows && o.rows.length > 0;)
|
|
745
|
-
this.fasterDispose || DayPilot.pu(o.rows[0]), o.deleteRow(0);
|
|
746
|
-
for (var l = a.length, r = o.insertRow(-1), h = 0; h < l; h++) {
|
|
747
|
-
var c = r.insertCell(-1);
|
|
748
|
-
c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", s.rtl || (c.style.textAlign = "left");
|
|
749
|
-
var d = document.createElement("div");
|
|
750
|
-
d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.marginTop = "-1px";
|
|
751
|
-
var u = document.createElement("div");
|
|
752
|
-
u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
|
|
753
|
-
}
|
|
754
|
-
for (var v = 0; v < n; v++) {
|
|
755
|
-
var r = e.insertRow(-1);
|
|
756
|
-
r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
|
|
757
|
-
for (var h = 0; h < l; h++) {
|
|
758
|
-
var p = this.Q[h], c = r.insertCell(-1);
|
|
759
|
-
c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.R, 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";
|
|
760
|
-
var d = document.createElement("div");
|
|
761
|
-
d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.b("_cell");
|
|
762
|
-
this.ja(c.start, c.end) && DayPilot.Util.addClass(d, s.b("_cell_business"));
|
|
763
|
-
var f = document.createElement("div");
|
|
764
|
-
f.setAttribute("unselectable", "on"), f.className = this.b("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
|
|
878
|
+
} return e.appendChild(t), e; }, this.ia = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.b("_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.b("_corner_inner"), e.appendChild(t), e; }, this.o = function () {
|
|
879
|
+
var e = this.nav.main;
|
|
880
|
+
e.root = null, e.onmouseup = null;
|
|
881
|
+
for (var t = 0; t < e.rows.length; t++)
|
|
882
|
+
for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
|
|
883
|
+
var s = i.cells[n];
|
|
884
|
+
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null, s.onmouseup = null;
|
|
765
885
|
}
|
|
886
|
+
this.fasterDispose || DayPilot.pu(e);
|
|
887
|
+
}, this.C = function () { var e = this.nav.main, i = 18e5, n = this.J(), a = s.Q; for (e && this.o(); e && e.rows && e.rows.length > 0;)
|
|
888
|
+
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.tableCreated = !0; for (var l = a.length, o = this.nav.events; o && o.rows && o.rows.length > 0;)
|
|
889
|
+
this.fasterDispose || DayPilot.pu(o.rows[0]), o.deleteRow(0); for (var l = a.length, r = o.insertRow(-1), h = 0; h < l; h++) {
|
|
890
|
+
var c = r.insertCell(-1);
|
|
891
|
+
c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", s.rtl || (c.style.textAlign = "left");
|
|
892
|
+
var d = document.createElement("div");
|
|
893
|
+
d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.marginTop = "-1px";
|
|
894
|
+
var u = document.createElement("div");
|
|
895
|
+
u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
|
|
896
|
+
} for (var v = 0; v < n; v++) {
|
|
897
|
+
var r = e.insertRow(-1);
|
|
898
|
+
r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
|
|
899
|
+
for (var h = 0; h < l; h++) {
|
|
900
|
+
var p = this.Q[h], c = r.insertCell(-1);
|
|
901
|
+
c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.R, 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";
|
|
902
|
+
var d = document.createElement("div");
|
|
903
|
+
d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.b("_cell");
|
|
904
|
+
this.ja(c.start, c.end) && DayPilot.Util.addClass(d, s.b("_cell_business"));
|
|
905
|
+
var f = document.createElement("div");
|
|
906
|
+
f.setAttribute("unselectable", "on"), f.className = this.b("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
|
|
766
907
|
}
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
776
|
-
else if ("top" === t.resizing.dpBorder) {
|
|
777
|
-
var c = Math.floor((t.originalTop + o - l + a / 2) / a) * a + l;
|
|
778
|
-
c < l && (c = l), c > t.originalTop + t.originalHeight - a && (c = t.originalTop + t.originalHeight - a);
|
|
779
|
-
var r = t.originalHeight - (c - t.originalTop);
|
|
780
|
-
r < a ? r = a : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = r + "px";
|
|
781
|
-
}
|
|
908
|
+
} e.root = this, s.nav.scrollable.onmousemove = function (e) { var i = s.nav.scrollable; s.coords = DayPilot.mo3(i, e); var n = DayPilot.mc(e); if (t.resizing) {
|
|
909
|
+
t.resizingShadow || (t.resizingShadow = s.r(t.resizing, !1, s.shadow));
|
|
910
|
+
var a = s.cellHeight, l = 1, o = n.y - t.originalMouse.y;
|
|
911
|
+
if ("bottom" === t.resizing.dpBorder) {
|
|
912
|
+
var r = Math.floor((t.originalHeight + t.originalTop + o + a / 2) / a) * a - t.originalTop + l;
|
|
913
|
+
r < a && (r = a);
|
|
914
|
+
var h = s.nav.main.clientHeight;
|
|
915
|
+
t.originalTop + r > h && (r = h - t.originalTop), t.resizingShadow.style.height = r + "px";
|
|
782
916
|
}
|
|
783
|
-
else if (t.
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
var
|
|
787
|
-
|
|
788
|
-
var c = Math.floor((s.coords.y - d - l + a / 2) / a) * a + l;
|
|
789
|
-
c < l && (c = l);
|
|
790
|
-
var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
|
|
791
|
-
c + v > h && (c = h - v), DayPilot.Util.addClass(t.moving, s.b("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
792
|
-
var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
|
|
793
|
-
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]));
|
|
917
|
+
else if ("top" === t.resizing.dpBorder) {
|
|
918
|
+
var c = Math.floor((t.originalTop + o - l + a / 2) / a) * a + l;
|
|
919
|
+
c < l && (c = l), c > t.originalTop + t.originalHeight - a && (c = t.originalTop + t.originalHeight - a);
|
|
920
|
+
var r = t.originalHeight - (c - t.originalTop);
|
|
921
|
+
r < a ? r = a : t.resizingShadow.style.top = c + "px", t.resizingShadow.style.height = r + "px";
|
|
794
922
|
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
923
|
+
}
|
|
924
|
+
else if (t.moving) {
|
|
925
|
+
if (t.movingShadow || (t.movingShadow = s.r(t.moving, !s.h, s.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !s.coords)
|
|
926
|
+
return;
|
|
927
|
+
var a = s.cellHeight, l = 1, d = t.moveOffsetY;
|
|
928
|
+
d || (d = a / 2);
|
|
929
|
+
var c = Math.floor((s.coords.y - d - l + a / 2) / a) * a + l;
|
|
930
|
+
c < l && (c = l);
|
|
931
|
+
var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
|
|
932
|
+
c + v > h && (c = h - v), DayPilot.Util.addClass(t.moving, s.b("_event_moving_source")), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
933
|
+
var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
|
|
934
|
+
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]));
|
|
935
|
+
}
|
|
936
|
+
else if (t.selecting) {
|
|
937
|
+
var n = DayPilot.mc(e), g = s.V.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
|
|
938
|
+
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.S();
|
|
939
|
+
} }, s.nav.scrollable.style.display = ""; }, this.ja = 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.p = function () { var e = this.nav.header; if (e && e.rows)
|
|
800
940
|
for (var t = 0; t < e.rows.length; t++)
|
|
801
941
|
for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
|
|
802
942
|
var s = i.cells[n];
|
|
@@ -895,54 +1035,64 @@ if ("undefined" == typeof DayPilot)
|
|
|
895
1035
|
var a = {};
|
|
896
1036
|
a.data = n, this.onBeforeEventRender(a);
|
|
897
1037
|
} t[e] = n; }, this.z = function () { var e = this.events.list; if (s.Ba.events = [], e) {
|
|
1038
|
+
if (!DayPilot.isArray(e))
|
|
1039
|
+
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
898
1040
|
var t = e.length, i = 864e5;
|
|
899
1041
|
this.cache.pixels = {};
|
|
900
1042
|
var n = [];
|
|
901
1043
|
this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
|
|
902
1044
|
for (var a = 0; a < t; a++) {
|
|
903
|
-
var l = e[a];
|
|
1045
|
+
var l = e[a], o = l;
|
|
1046
|
+
if ("object" != typeof o)
|
|
1047
|
+
throw new DayPilot.Exception("Event data item must be an object");
|
|
1048
|
+
if (!o.start)
|
|
1049
|
+
throw new DayPilot.Exception("Event data item must specify 'start' property");
|
|
1050
|
+
if (!o.end)
|
|
1051
|
+
throw new DayPilot.Exception("Event data item must specify 'end' property");
|
|
1052
|
+
if (o instanceof DayPilot.Event)
|
|
1053
|
+
throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
|
|
904
1054
|
l.start = new DayPilot.Date(l.start), l.end = new DayPilot.Date(l.end);
|
|
905
1055
|
}
|
|
906
1056
|
if ("function" == typeof this.onBeforeEventRender)
|
|
907
1057
|
for (var a = 0; a < t; a++)
|
|
908
1058
|
this.Ca(a);
|
|
909
1059
|
for (var a = 0; a < this.Q.length; a++) {
|
|
910
|
-
var
|
|
911
|
-
|
|
912
|
-
var
|
|
913
|
-
|
|
914
|
-
for (var
|
|
915
|
-
if (!n[
|
|
916
|
-
var l = e[
|
|
917
|
-
if (!(
|
|
918
|
-
var
|
|
919
|
-
if ("Resources" === s.viewType && (
|
|
920
|
-
var
|
|
921
|
-
|
|
922
|
-
var
|
|
923
|
-
if (
|
|
1060
|
+
var r = {};
|
|
1061
|
+
r.minEnd = 1e6, r.maxStart = -1, this.scrollLabels.push(r);
|
|
1062
|
+
var h = this.Q[a];
|
|
1063
|
+
h.events = [], h.lines = [], h.blocks = [];
|
|
1064
|
+
for (var c = new DayPilot.Date(h.start), d = c.getTime(), u = c.addTime(i), v = u.getTime(), p = 0; p < t; p++)
|
|
1065
|
+
if (!n[p]) {
|
|
1066
|
+
var l = e[p], f = l.start, g = l.end, m = f.getTime(), y = g.getTime();
|
|
1067
|
+
if (!(y < m)) {
|
|
1068
|
+
var b = !(y <= d || m >= v);
|
|
1069
|
+
if ("Resources" === s.viewType && (b = b && h.id === l.resource), b) {
|
|
1070
|
+
var C = new DayPilot.Event(l, s);
|
|
1071
|
+
C.part.dayIndex = a, C.part.start = d < m ? l.start : c, C.part.end = v > y ? l.end : u;
|
|
1072
|
+
var w = this.getPixels(C.part.start, h.start), D = this.getPixels(C.part.end, h.start), S = w.top, x = D.top;
|
|
1073
|
+
if (S === x && (w.cut || D.cut))
|
|
924
1074
|
continue;
|
|
925
|
-
var k =
|
|
926
|
-
|
|
927
|
-
var
|
|
928
|
-
|
|
1075
|
+
var k = D.boxBottom;
|
|
1076
|
+
C.part.top = Math.floor(S / this.cellHeight) * this.cellHeight + 1, C.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - C.part.top, this.cellHeight - 1) + 1, C.part.barTop = Math.max(S - C.part.top - 1, 0), C.part.barHeight = Math.max(x - S - 2, 1);
|
|
1077
|
+
var f = C.part.top, g = C.part.top + C.part.height;
|
|
1078
|
+
f > r.maxStart && (r.maxStart = f), g < r.minEnd && (r.minEnd = g), f < this.minStart && (this.minStart = f), g > this.maxEnd && (this.maxEnd = g), h.events.push(C), "function" == typeof this.onBeforeEventRender && (C.cache = this.Ba.events[p]), C.part.start.getTime() === m && C.part.end.getTime() === y && (n[p] = !0);
|
|
929
1079
|
}
|
|
930
1080
|
}
|
|
931
1081
|
}
|
|
932
1082
|
}
|
|
933
1083
|
for (var a = 0; a < this.Q.length; a++) {
|
|
934
|
-
var
|
|
935
|
-
|
|
936
|
-
for (var
|
|
937
|
-
var l =
|
|
938
|
-
|
|
1084
|
+
var h = this.Q[a];
|
|
1085
|
+
h.events.sort(this.Da);
|
|
1086
|
+
for (var p = 0; p < h.events.length; p++) {
|
|
1087
|
+
var l = h.events[p];
|
|
1088
|
+
h.putIntoBlock(l);
|
|
939
1089
|
}
|
|
940
|
-
for (var
|
|
941
|
-
var
|
|
942
|
-
|
|
943
|
-
for (var
|
|
944
|
-
var l =
|
|
945
|
-
|
|
1090
|
+
for (var p = 0; p < h.blocks.length; p++) {
|
|
1091
|
+
var P = h.blocks[p];
|
|
1092
|
+
P.events.sort(this.Da);
|
|
1093
|
+
for (var E = 0; E < P.events.length; E++) {
|
|
1094
|
+
var l = P.events[E];
|
|
1095
|
+
P.putIntoLine(l);
|
|
946
1096
|
}
|
|
947
1097
|
}
|
|
948
1098
|
}
|
|
@@ -977,7 +1127,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
977
1127
|
}();
|
|
978
1128
|
if ("undefined" == typeof DayPilot)
|
|
979
1129
|
var DayPilot = {};
|
|
980
|
-
!function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2022.
|
|
1130
|
+
!function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2022.4.438-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
|
|
981
1131
|
for (var e in t)
|
|
982
1132
|
this[e] = t[e]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t ? this.c(this.date) : this.resetTarget || (i.date = t); var e = this.d(); return e && e.addEventListener("input", function () { i.date = i.b(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.e && (this.e = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (t) { this.date = new DayPilot.Date(t), this.c(this.date); }, this.b = function () { var t = this.d(); if (!t)
|
|
983
1133
|
return this.date; var e = null; if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
|
|
@@ -1008,7 +1158,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1008
1158
|
"use strict";
|
|
1009
1159
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1010
1160
|
var e = function () { }, t = {};
|
|
1011
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, o = null; this.v = "2022.
|
|
1161
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, o = null; this.v = "2022.4.438-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) { u = u || {}; var a = null; 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) {
|
|
1012
1162
|
i.cssOnly || (i.cssOnly = !0);
|
|
1013
1163
|
var s = null;
|
|
1014
1164
|
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) {
|
|
@@ -1517,7 +1667,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1517
1667
|
var DayPilot = {};
|
|
1518
1668
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1519
1669
|
var t = {};
|
|
1520
|
-
t.Month = function (e, i) { this.v = "2022.
|
|
1670
|
+
t.Month = function (e, i) { this.v = "2022.4.438-lite", this.nav = {}; var n = this; 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) { var e = null; if (t instanceof DayPilot.Event)
|
|
1521
1671
|
e = t.data;
|
|
1522
1672
|
else {
|
|
1523
1673
|
if ("object" != typeof t)
|
|
@@ -1536,22 +1686,22 @@ if ("undefined" == typeof DayPilot)
|
|
|
1536
1686
|
var i = DayPilot.indexOf(n.events.list, e.data);
|
|
1537
1687
|
n.events.list.splice(i, 1, t);
|
|
1538
1688
|
}
|
|
1539
|
-
} n.update(), n.j.notify(); }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.j.notify(); }, this.events.load = function (t, e, i) { var
|
|
1540
|
-
i = JSON.parse(
|
|
1689
|
+
} n.update(), n.j.notify(); }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.j.notify(); }, this.events.load = function (t, e, i) { var a = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, s = function (t) { var i, s = t.request; try {
|
|
1690
|
+
i = JSON.parse(s.responseText);
|
|
1541
1691
|
}
|
|
1542
1692
|
catch (t) {
|
|
1543
1693
|
var l = {};
|
|
1544
|
-
return l.exception = t, void
|
|
1694
|
+
return l.exception = t, void a(l);
|
|
1545
1695
|
} if (DayPilot.isArray(i)) {
|
|
1546
1696
|
var o = {};
|
|
1547
1697
|
if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof e && e(o), o.preventDefault.value)
|
|
1548
1698
|
return;
|
|
1549
1699
|
n.events.list = i, n.k && n.update();
|
|
1550
1700
|
} }; if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
1551
|
-
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success":
|
|
1701
|
+
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": s, "error": a });
|
|
1552
1702
|
else {
|
|
1553
1703
|
var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
1554
|
-
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success":
|
|
1704
|
+
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": s, "error": a });
|
|
1555
1705
|
} }, this.update = function (t) { if (n.l(t), this.k && this.cells) {
|
|
1556
1706
|
n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
|
|
1557
1707
|
} }, this.n = null, this.l = function (t) { if (t) {
|
|
@@ -1559,25 +1709,34 @@ if ("undefined" == typeof DayPilot)
|
|
|
1559
1709
|
this.n = e;
|
|
1560
1710
|
for (var i in t)
|
|
1561
1711
|
if (e[i]) {
|
|
1562
|
-
var
|
|
1563
|
-
|
|
1712
|
+
var a = e[i];
|
|
1713
|
+
a.data = t[i], a.preInit && a.preInit();
|
|
1564
1714
|
}
|
|
1565
1715
|
else
|
|
1566
1716
|
n[i] = t[i];
|
|
1567
1717
|
} }, this.o = function () { var t = this.n; for (var e in t) {
|
|
1568
1718
|
var i = t[e];
|
|
1569
1719
|
i.postInit && i.postInit();
|
|
1570
|
-
} }, this.p = {}, this.p.events = [], this.q = function (t) { var e = this.p.events, i = this.events.list[t], n = {}; for (var
|
|
1571
|
-
n[
|
|
1572
|
-
var
|
|
1573
|
-
|
|
1720
|
+
} }, this.p = {}, this.p.events = [], this.q = function (t) { var e = this.p.events, i = this.events.list[t], n = {}; for (var a in i)
|
|
1721
|
+
n[a] = i[a]; if ("function" == typeof this.onBeforeEventRender) {
|
|
1722
|
+
var s = {};
|
|
1723
|
+
s.data = n, this.onBeforeEventRender(s);
|
|
1574
1724
|
} e[t] = n; }, this.d = function () { var t = this.events.list; if (t) {
|
|
1725
|
+
if (!DayPilot.isArray(t))
|
|
1726
|
+
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof t);
|
|
1575
1727
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1576
1728
|
for (var e = 0; e < t.length; e++)
|
|
1577
1729
|
this.q(e);
|
|
1578
1730
|
for (var i = 0; i < t.length; i++) {
|
|
1579
|
-
var n = t[i]
|
|
1580
|
-
if (
|
|
1731
|
+
var n = t[i];
|
|
1732
|
+
if ("object" != typeof n)
|
|
1733
|
+
throw new DayPilot.Exception("Event data item must be an object");
|
|
1734
|
+
if (!n.start)
|
|
1735
|
+
throw new DayPilot.Exception("Event data item must specify 'start' property");
|
|
1736
|
+
if (!n.end)
|
|
1737
|
+
throw new DayPilot.Exception("Event data item must specify 'end' property");
|
|
1738
|
+
var a = new DayPilot.Date(n.start), s = new DayPilot.Date(n.end);
|
|
1739
|
+
if (!(a.getTime() > s.getTime()))
|
|
1581
1740
|
for (var e = 0; e < this.rows.length; e++) {
|
|
1582
1741
|
var l = this.rows[e], o = new DayPilot.Event(n, this);
|
|
1583
1742
|
l.belongsHere(o) && (l.events.push(o), "function" == typeof this.onBeforeEventRender && (o.cache = this.p.events[i]));
|
|
@@ -1596,9 +1755,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
1596
1755
|
e.event = null, e.click = null, e.parentNode.removeChild(e);
|
|
1597
1756
|
} this.elements.events = []; }, this.i = function () { this.s(); }, this.s = function () { this.elements.events = []; for (var t = 0; t < this.rows.length; t++)
|
|
1598
1757
|
for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
|
|
1599
|
-
for (var n = e.lines[i],
|
|
1600
|
-
this.t(n[
|
|
1601
|
-
return 0; var i = t.start().getTime() - e.start().getTime(); return 0 !== i ? i : e.end().getTime() - t.end().getTime(); }, this.drawShadow = function (e, i, n,
|
|
1758
|
+
for (var n = e.lines[i], a = 0; a < n.length; a++)
|
|
1759
|
+
this.t(n[a]); }, this.r = function (t, e) { if (!(t && e && t.start && e.start))
|
|
1760
|
+
return 0; var i = t.start().getTime() - e.start().getTime(); return 0 !== i ? i : e.end().getTime() - t.end().getTime(); }, this.drawShadow = function (e, i, n, a, s, l) { s || (s = 0); var o = a; this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = a; var r = 7 * i + e - s; r < 0 && (o += r, e = 0, i = 0); for (var h = s; h >= 7;)
|
|
1602
1761
|
i--, h -= 7; if (h > e) {
|
|
1603
1762
|
h > e + (7 - this.getColCount()) ? (i--, e = e + 7 - h) : (o = o - h + e, e = 0);
|
|
1604
1763
|
}
|
|
@@ -1606,33 +1765,33 @@ if ("undefined" == typeof DayPilot)
|
|
|
1606
1765
|
e -= h; i < 0 && (i = 0, e = 0); var c = null; for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
|
|
1607
1766
|
var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
|
|
1608
1767
|
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;
|
|
1609
|
-
var
|
|
1610
|
-
|
|
1768
|
+
var y = document.createElement("div");
|
|
1769
|
+
y.setAttribute("unselectable", "on"), p.appendChild(y), y.style.position = "absolute", y.style.top = "0px", y.style.right = "0px", y.style.left = "0px", y.style.bottom = "0px", y.style.backgroundColor = "#aaaaaa", y.style.opacity = .5, y.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
|
|
1611
1770
|
} }, this.clearShadow = function () { if (this.shadow) {
|
|
1612
1771
|
for (var t = 0; t < this.shadow.list.length; t++)
|
|
1613
1772
|
this.nav.top.removeChild(this.shadow.list[t]);
|
|
1614
1773
|
this.shadow = null, this.nav.top.style.cursor = "";
|
|
1615
1774
|
} }, this.getEventTop = function (t, e) { for (var i = this.headerHeight, n = 0; n < t; n++)
|
|
1616
|
-
i += this.rows[n].getHeight(); return i += this.cellHeaderHeight, i += e * this.lineHeight(); }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) { var i = e.cache || e.data,
|
|
1775
|
+
i += this.rows[n].getHeight(); return i += this.cellHeaderHeight, i += e * this.lineHeight(); }, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) { var i = e.cache || e.data, a = e.part.row, s = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(a, s), d = document.createElement("div"); 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) { i = i || window.event; var r = i.which || i.button; if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
|
|
1617
1776
|
if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
1618
1777
|
var h = {};
|
|
1619
|
-
h.start = {}, h.start.x = l, h.start.y =
|
|
1778
|
+
h.start = {}, h.start.x = l, h.start.y = a, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
|
|
1620
1779
|
}
|
|
1621
1780
|
else if ("move" === this.style.cursor || e.client.moveEnabled()) {
|
|
1622
1781
|
n.clearShadow();
|
|
1623
1782
|
var c = DayPilot.mo2(n.nav.top, i);
|
|
1624
1783
|
if (!c)
|
|
1625
1784
|
return;
|
|
1626
|
-
var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[
|
|
1785
|
+
var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[a].start), f = 7 * v.y + v.x - (7 * a + l);
|
|
1627
1786
|
u && (f += u);
|
|
1628
1787
|
var p = {};
|
|
1629
|
-
p.start = {}, p.start.x = l, p.start.y =
|
|
1788
|
+
p.start = {}, p.start.x = l, p.start.y = a, p.start.line = s, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
|
|
1630
1789
|
} }, d.onmousemove = function (i) { if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
|
|
1631
1790
|
var n = DayPilot.mo3(d, i);
|
|
1632
1791
|
if (n) {
|
|
1633
1792
|
d.deleteIcon && (d.deleteIcon.style.display = "");
|
|
1634
|
-
var
|
|
1635
|
-
n.x <=
|
|
1793
|
+
var a = 6;
|
|
1794
|
+
n.x <= a && e.client.resizeEnabled() ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - n.x <= a && e.client.resizeEnabled() ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : e.client.clickEnabled() ? d.style.cursor = "pointer" : d.style.cursor = "default";
|
|
1636
1795
|
}
|
|
1637
1796
|
} }, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); }; var v = document.createElement("div"); 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()) {
|
|
1638
1797
|
var u = document.createElement("div");
|
|
@@ -1640,36 +1799,36 @@ if ("undefined" == typeof DayPilot)
|
|
|
1640
1799
|
var f = document.createElement("div");
|
|
1641
1800
|
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);
|
|
1642
1801
|
} if (e.client.deleteEnabled()) {
|
|
1643
|
-
var p = Math.floor(n.eventHeight / 2 - 9),
|
|
1644
|
-
|
|
1645
|
-
} this.elements.events.push(d), this.nav.events.appendChild(d); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1; t = Math.ceil(i / 7), this.days = 7 * t, this.rows = []; for (var
|
|
1646
|
-
var
|
|
1647
|
-
|
|
1648
|
-
var l = this.lines[
|
|
1802
|
+
var p = Math.floor(n.eventHeight / 2 - 9), y = document.createElement("div");
|
|
1803
|
+
y.style.position = "absolute", y.style.right = "2px", y.style.top = p + "px", y.style.width = "18px", y.style.height = "18px", y.className = n.u("_event_delete"), y.onmousedown = function (t) { t.stopPropagation(); }, y.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.A(e); }, y.style.display = "none", d.deleteIcon = y, d.appendChild(y);
|
|
1804
|
+
} var g = i.areas ? DayPilot.Areas.copy(i.areas) : []; DayPilot.Areas.attach(d, e, { "areas": g }), this.elements.events.push(d), this.nav.events.appendChild(d); }, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () { "string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart()); var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1; t = Math.ceil(i / 7), this.days = 7 * t, this.rows = []; for (var a = 0; a < t; a++) {
|
|
1805
|
+
var s = {};
|
|
1806
|
+
s.start = this.firstDate.addDays(7 * a), s.end = s.start.addDays(this.getColCount()), s.events = [], s.lines = [], s.index = a, s.minHeight = this.cellHeight, s.calendar = this, s.belongsHere = function (t) { return t.end().getTime() === t.start().getTime() && t.start().getTime() === this.start.getTime() || !(t.end().getTime() <= this.start.getTime() || t.start().getTime() >= this.end.getTime()); }, s.getPartStart = function (t) { return DayPilot.DateUtil.max(this.start, t.start()); }, s.getPartEnd = function (t) { return DayPilot.DateUtil.min(this.end, t.end()); }, s.getStartColumn = function (t) { var e = this.getPartStart(t); return DayPilot.DateUtil.daysDiff(this.start, e); }, s.getWidth = function (t) { return DayPilot.DateUtil.daysSpan(this.getPartStart(t), this.getPartEnd(t)) + 1; }, s.putIntoLine = function (t, e, i, n) { for (var a = this, s = 0; s < this.lines.length; s++) {
|
|
1807
|
+
var l = this.lines[s];
|
|
1649
1808
|
if (l.isFree(e, i))
|
|
1650
|
-
return l.addEvent(t, e, i, n,
|
|
1809
|
+
return l.addEvent(t, e, i, n, s), s;
|
|
1651
1810
|
} var l = []; return l.isFree = function (t, e) { for (var i = !0, n = 0; n < this.length; n++)
|
|
1652
|
-
t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1); return i; }, l.addEvent = function (t, e, i, n,
|
|
1653
|
-
t += n.rows[e].getHeight(); },
|
|
1811
|
+
t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1); return i; }, l.addEvent = function (t, e, i, n, s) { t.part.colStart = e, t.part.colWidth = i, t.part.row = n, t.part.line = s, t.part.startsHere = a.start.getTime() <= t.start().getTime(), t.part.endsHere = a.end.getTime() >= t.end().getTime(), this.push(t); }, l.addEvent(t, e, i, n, this.lines.length), this.lines.push(l), this.lines.length - 1; }, s.getStart = function () { for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
|
|
1812
|
+
t += n.rows[e].getHeight(); }, s.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(s);
|
|
1654
1813
|
} this.endDate = this.firstDate.addDays(7 * t); }, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () { for (var t = this.headerHeight, e = 0; e < this.rows.length; e++)
|
|
1655
|
-
t += this.rows[e].getHeight(); return t; }, 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 () { var e = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i); var
|
|
1814
|
+
t += this.rows[e].getHeight(); return t; }, 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 () { var e = this.nav.top; 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"); var i = document.createElement("div"); this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i); var a = document.createElement("div"); this.nav.events = a, a.style.position = "absolute", a.style.left = "0px", a.style.right = "0px", a.setAttribute("unselectable", "on"), e.appendChild(a), e.onmousemove = function (e) { if (t.resizingEvent) {
|
|
1656
1815
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
1657
1816
|
if (!i)
|
|
1658
1817
|
return;
|
|
1659
|
-
var
|
|
1818
|
+
var a = n.getCellBelowPoint(i.x, i.y);
|
|
1660
1819
|
n.clearShadow();
|
|
1661
|
-
var
|
|
1820
|
+
var s, l, o = t.resizingEvent;
|
|
1662
1821
|
o.start;
|
|
1663
1822
|
if ("w-resize" === o.direction) {
|
|
1664
|
-
l =
|
|
1823
|
+
l = a;
|
|
1665
1824
|
var r = o.event.end();
|
|
1666
1825
|
r.getDatePart() === r && (r = r.addDays(-1));
|
|
1667
1826
|
var h = n.getCellFromDate(r);
|
|
1668
|
-
|
|
1827
|
+
s = n.getWidth(a, h);
|
|
1669
1828
|
}
|
|
1670
1829
|
else
|
|
1671
|
-
l = n.getCellFromDate(o.event.start()),
|
|
1672
|
-
|
|
1830
|
+
l = n.getCellFromDate(o.event.start()), s = n.getWidth(l, a);
|
|
1831
|
+
s < 1 && (s = 1), n.drawShadow(l.x, l.y, 0, s);
|
|
1673
1832
|
}
|
|
1674
1833
|
else if (t.movingEvent) {
|
|
1675
1834
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
@@ -1677,65 +1836,65 @@ if ("undefined" == typeof DayPilot)
|
|
|
1677
1836
|
return;
|
|
1678
1837
|
if (i.x === t.movingEvent.coords.x && i.y === t.movingEvent.coords.y)
|
|
1679
1838
|
return;
|
|
1680
|
-
var
|
|
1839
|
+
var a = n.getCellBelowPoint(i.x, i.y);
|
|
1681
1840
|
n.clearShadow();
|
|
1682
|
-
var c = t.movingEvent.event, d = t.movingEvent.offset,
|
|
1683
|
-
|
|
1841
|
+
var c = t.movingEvent.event, d = t.movingEvent.offset, s = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
|
|
1842
|
+
s < 1 && (s = 1), n.drawShadow(a.x, a.y, 0, s, d, c);
|
|
1684
1843
|
}
|
|
1685
1844
|
else if (t.timeRangeSelecting) {
|
|
1686
1845
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
1687
1846
|
if (!i)
|
|
1688
1847
|
return;
|
|
1689
|
-
var
|
|
1848
|
+
var a = n.getCellBelowPoint(i.x, i.y);
|
|
1690
1849
|
n.clearShadow();
|
|
1691
|
-
var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 *
|
|
1692
|
-
|
|
1693
|
-
var f = v < u ? l :
|
|
1694
|
-
t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width =
|
|
1850
|
+
var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * a.y + a.x, s = Math.abs(u - v) + 1;
|
|
1851
|
+
s < 1 && (s = 1);
|
|
1852
|
+
var f = v < u ? l : a;
|
|
1853
|
+
t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = s, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, s, 0, null);
|
|
1695
1854
|
} }; }, this.h = function () { this.nav.top.style.height = this.getHeight() + "px"; for (var t = 0; t < this.cells.length; t++)
|
|
1696
1855
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
1697
|
-
this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px"; }, this.getCellBelowPoint = function (t, e) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1),
|
|
1698
|
-
var r =
|
|
1699
|
-
if (
|
|
1700
|
-
l = e - r,
|
|
1856
|
+
this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px"; }, this.getCellBelowPoint = function (t, e) { for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1), a = null, s = this.headerHeight, l = 0, o = 0; o < this.rows.length; o++) {
|
|
1857
|
+
var r = s;
|
|
1858
|
+
if (s += this.rows[o].getHeight(), e < s) {
|
|
1859
|
+
l = e - r, a = o;
|
|
1701
1860
|
break;
|
|
1702
1861
|
}
|
|
1703
|
-
} null ===
|
|
1862
|
+
} null === a && (a = this.rows.length - 1); var h = {}; return h.x = n, h.y = a, h.relativeY = l, h; }, this.getCellFromDate = function (t) { for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
|
|
1704
1863
|
i.y++, e -= 7; return i.x = e, i; }, this.g = function () { var t = document.createElement("div"); t.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(t), this.cells = []; for (var e = 0; e < this.getColCount(); e++) {
|
|
1705
1864
|
this.cells[e] = [];
|
|
1706
1865
|
var i = document.createElement("div");
|
|
1707
1866
|
i.setAttribute("unselectable", "on"), i.style.position = "absolute", i.style.left = this.getCellWidth() * e + "%", i.style.width = this.getCellWidth() + "%", i.style.top = "0px", i.style.height = this.headerHeight + "px";
|
|
1708
1867
|
var n = e + this.getWeekStart();
|
|
1709
1868
|
n > 6 && (n -= 7), i.className = this.u("_header");
|
|
1710
|
-
var
|
|
1711
|
-
|
|
1869
|
+
var s = document.createElement("div");
|
|
1870
|
+
s.setAttribute("unselectable", "on"), s.innerHTML = a.locale().dayNames[n], i.appendChild(s), s.style.position = "absolute", s.style.top = "0px", s.style.bottom = "0px", s.style.left = "0px", s.style.right = "0px", s.className = this.u("_header_inner"), s.innerHTML = a.locale().dayNames[n], t.appendChild(i);
|
|
1712
1871
|
for (var l = 0; l < this.rows.length; l++)
|
|
1713
1872
|
this.C(e, l, t);
|
|
1714
1873
|
} }, this.f = function () { for (var t = 0; t < this.cells.length; t++)
|
|
1715
1874
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
1716
|
-
this.cells[t][e].onclick = null; this.nav.cells.innerHTML = ""; }, this.D = function () { return 2 === n.api; }, this.C = function (e, i,
|
|
1875
|
+
this.cells[t][e].onclick = null; this.nav.cells.innerHTML = ""; }, this.D = function () { return 2 === n.api; }, this.C = function (e, i, s) { var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div"); 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)) {
|
|
1717
1876
|
var h = this.u("_cell_business");
|
|
1718
1877
|
DayPilot.Util.addClass(r, h);
|
|
1719
|
-
} var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 (
|
|
1878
|
+
} var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div")); 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 (a) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () { var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); }; if ("Disabled" !== n.timeRangeSelectedHandling)
|
|
1720
1879
|
return void t(o); }; var d = document.createElement("div"); d.setAttribute("unselectable", "on"), d.style.height = this.cellHeaderHeight + "px", d.className = this.u("_cell_header"), d.onclick = function (t) { if ("Enabled" === n.cellHeaderClickHandling) {
|
|
1721
1880
|
t.stopPropagation();
|
|
1722
1881
|
var e = {};
|
|
1723
1882
|
e.control = n, e.start = o, e.end = o.addDays(1), e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onCellHeaderClick && (n.onCellHeaderClick(e), e.preventDefault.value) || "function" == typeof n.onCellHeaderClicked && n.onCellHeaderClicked(e);
|
|
1724
|
-
} }; var v = o.getDay(); 1 === v ? d.innerHTML =
|
|
1725
|
-
e += this.rows[i].getHeight(); return e; }, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var
|
|
1883
|
+
} }; var v = o.getDay(); 1 === v ? d.innerHTML = a.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, s.appendChild(r); }, this.getWeekStart = function () { return a.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) { for (var e = this.headerHeight, i = 0; i < t; i++)
|
|
1884
|
+
e += this.rows[i].getHeight(); return e; }, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.H, a, 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) { var i = t.event; if (i.client.clickEnabled())
|
|
1726
1885
|
if (n.D()) {
|
|
1727
|
-
var
|
|
1728
|
-
if (
|
|
1886
|
+
var a = {};
|
|
1887
|
+
if (a.e = i, a.control = n, a.div = t, a.originalEvent = e, a.meta = e.metaKey, a.ctrl = e.ctrlKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(a); }), a.preventDefault.value))
|
|
1729
1888
|
return;
|
|
1730
1889
|
switch (n.eventClickHandling) {
|
|
1731
1890
|
case "CallBack":
|
|
1732
1891
|
n.eventClickCallBack(i);
|
|
1733
1892
|
break;
|
|
1734
1893
|
case "ContextMenu":
|
|
1735
|
-
var
|
|
1736
|
-
|
|
1894
|
+
var s = i.client.contextMenu();
|
|
1895
|
+
s ? s.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
1737
1896
|
}
|
|
1738
|
-
"function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(
|
|
1897
|
+
"function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(a); });
|
|
1739
1898
|
}
|
|
1740
1899
|
else
|
|
1741
1900
|
switch (n.eventClickHandling) {
|
|
@@ -1775,11 +1934,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
1775
1934
|
n.eventDeleteCallBack(t);
|
|
1776
1935
|
break;
|
|
1777
1936
|
case "JavaScript": n.onEventDelete(t);
|
|
1778
|
-
} }, 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,
|
|
1937
|
+
} }, 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, a) { if (!e)
|
|
1779
1938
|
throw "newStart is null"; if (!i)
|
|
1780
|
-
throw "newEnd is null"; var
|
|
1939
|
+
throw "newEnd is null"; var s = {}; s.e = t, s.newStart = e, s.newEnd = i, s.position = a, this.F("EventMove", n, s); }, this.K = function (t, e, i, a, s, l) { var o = t.start().getTimePart(), r = t.end().getDatePart(); r !== t.end() && (r = r.addDays(1)); var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i); c = c.addDays(-a); var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h); if (n.D()) {
|
|
1781
1940
|
var p = {};
|
|
1782
|
-
if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl =
|
|
1941
|
+
if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = s.ctrlKey, p.shift = s.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
|
|
1783
1942
|
return;
|
|
1784
1943
|
switch (n.eventMoveHandling) {
|
|
1785
1944
|
case "CallBack":
|
|
@@ -1797,7 +1956,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1797
1956
|
case "JavaScript": n.onEventMove(t, u, f);
|
|
1798
1957
|
} }, this.eventResizeCallBack = function (t, e, i, n) { if (!e)
|
|
1799
1958
|
throw "newStart is null"; if (!i)
|
|
1800
|
-
throw "newEnd is null"; var
|
|
1959
|
+
throw "newEnd is null"; var a = {}; a.e = t, a.newStart = e, a.newEnd = i, this.F("EventResize", n, a); }, this.L = function (t, e, i) { var a = t.start().getTimePart(), s = t.end().getDatePart(); s !== t.end() && (s = s.addDays(1)); var l = DayPilot.DateUtil.diff(t.end(), s), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(a), c = r.addTime(l); if (n.D()) {
|
|
1801
1960
|
var d = {};
|
|
1802
1961
|
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))
|
|
1803
1962
|
return;
|
|
@@ -1830,7 +1989,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1830
1989
|
n.timeRangeSelectedCallBack(t, e);
|
|
1831
1990
|
break;
|
|
1832
1991
|
case "JavaScript": n.onTimeRangeSelected(t, e);
|
|
1833
|
-
} }, 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; }; var
|
|
1992
|
+
} }, 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; }; var a = this.M; 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 () { if (this.id && this.id.tagName)
|
|
1834
1993
|
this.nav.top = this.id;
|
|
1835
1994
|
else {
|
|
1836
1995
|
if ("string" != typeof this.id)
|
|
@@ -1847,10 +2006,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
1847
2006
|
return;
|
|
1848
2007
|
if (!i.event.calendar.shadow.start)
|
|
1849
2008
|
return;
|
|
1850
|
-
var n = t.movingEvent.event.calendar,
|
|
2009
|
+
var n = t.movingEvent.event.calendar, a = t.movingEvent.event, s = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
|
|
1851
2010
|
n.clearShadow(), t.movingEvent = null;
|
|
1852
2011
|
var e = e || window.event;
|
|
1853
|
-
return n.K(
|
|
2012
|
+
return n.K(a, s.x, s.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
|
|
1854
2013
|
} if (t.resizingEvent) {
|
|
1855
2014
|
var i = t.resizingEvent;
|
|
1856
2015
|
if (!i.event)
|
|
@@ -1861,12 +2020,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
1861
2020
|
return;
|
|
1862
2021
|
if (!i.event.calendar.shadow.start)
|
|
1863
2022
|
return;
|
|
1864
|
-
var n = t.resizingEvent.event.calendar,
|
|
1865
|
-
return n.clearShadow(), t.resizingEvent = null, n.L(
|
|
2023
|
+
var n = t.resizingEvent.event.calendar, a = t.resizingEvent.event, s = n.shadow.start, r = n.shadow.width;
|
|
2024
|
+
return n.clearShadow(), t.resizingEvent = null, n.L(a, s, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
|
|
1866
2025
|
} if (t.timeRangeSelecting) {
|
|
1867
2026
|
if (t.timeRangeSelecting.moved) {
|
|
1868
|
-
var h = t.timeRangeSelecting, n = h.root,
|
|
1869
|
-
n.E(
|
|
2027
|
+
var h = t.timeRangeSelecting, n = h.root, s = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = s.addDays(h.width);
|
|
2028
|
+
n.E(s, c), n.clearShadow();
|
|
1870
2029
|
}
|
|
1871
2030
|
t.timeRangeSelecting = null;
|
|
1872
2031
|
} }, DayPilot.Month = t.Month, "undefined" != typeof jQuery && !function (t) { t.fn.daypilotMonth = function (t) { var e = null, i = this.each(function () { if (!this.daypilot) {
|
|
@@ -1875,16 +2034,16 @@ if ("undefined" == typeof DayPilot)
|
|
|
1875
2034
|
for (name in t)
|
|
1876
2035
|
i[name] = t[name];
|
|
1877
2036
|
i.Init(), e || (e = i);
|
|
1878
|
-
} }); return 1 === this.length ? e : i; }; }(jQuery), function () { var t = DayPilot.am(); t && t.directive("daypilotMonth", ["$parse", function (t) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) { var
|
|
1879
|
-
(0, t(l).assign)(e,
|
|
2037
|
+
} }); return 1 === this.length ? e : i; }; }(jQuery), function () { var t = DayPilot.am(); t && t.directive("daypilotMonth", ["$parse", function (t) { return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) { var a = new DayPilot.Month(i[0]); a.j.scope = e, a.init(); var s = n["id"]; s && (e[s] = a); var l = n["publishAs"]; if (l) {
|
|
2038
|
+
(0, t(l).assign)(e, a);
|
|
1880
2039
|
} for (var o in n)
|
|
1881
|
-
0 === o.indexOf("on") && !function (i) {
|
|
1882
|
-
|
|
2040
|
+
0 === o.indexOf("on") && !function (i) { a[i] = function (a) { var s = t(n[i]); e["$apply"](function () { s(e, { "args": a }); }); }; }(o); var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"]; r.call(e, h, function (t) { for (var e in t)
|
|
2041
|
+
a[e] = t[e]; a.update(); }, !0), r.call(e, c, function (t) { a.events.list = t, a.update(); }, !0); } }; }]); }(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
1883
2042
|
} }();
|
|
1884
2043
|
if ("undefined" == typeof DayPilot)
|
|
1885
2044
|
var DayPilot = {};
|
|
1886
2045
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
1887
|
-
DayPilot.Navigator = function (t, e) { this.v = "2022.
|
|
2046
|
+
DayPilot.Navigator = function (t, e) { this.v = "2022.4.438-lite"; var i = this; 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) { var s = {}; s.cells = [], s.days = [], s.weeks = []; var n = this.startDate.addMonths(t), l = e.before, o = e.after, h = n.firstDayOfMonth(), r = h.firstDayOfWeek(a.weekStarts()), c = h.addMonths(1), d = DayPilot.DateUtil.daysDiff(r, c), u = "Auto" === this.rowsPerMonth ? Math.ceil(d / 7) : 6; s.rowCount = u; var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d(); s.width = y; var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight; s.height = p; var v = document.createElement("div"); if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
1888
2047
|
v.style.position = "absolute", v.style.left = y * t + "px", v.style.top = "0px", s.top = 0, s.left = y * t;
|
|
1889
2048
|
else {
|
|
1890
2049
|
v.style.position = "relative";
|