@daypilot/daypilot-lite-angular 3.10.1 → 3.12.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 +430 -268
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +418 -214
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +429 -267
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +48 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core'
|
|
|
3
3
|
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
/*
|
|
6
|
-
Copyright ©
|
|
6
|
+
Copyright © 2023 Annpoint, s.r.o.
|
|
7
7
|
|
|
8
8
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
9
|
you may not use this file except in compliance with the License.
|
|
@@ -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;
|
|
@@ -115,10 +118,10 @@ var DayPilot;
|
|
|
115
118
|
})(DayPilot || (DayPilot = {}));
|
|
116
119
|
/*
|
|
117
120
|
DayPilot Lite
|
|
118
|
-
Copyright (c) 2005 -
|
|
121
|
+
Copyright (c) 2005 - 2023 Annpoint s.r.o.
|
|
119
122
|
https://www.daypilot.org/
|
|
120
123
|
Licensed under Apache Software License 2.0
|
|
121
|
-
Version:
|
|
124
|
+
Version: 2023.1.447-lite
|
|
122
125
|
*/
|
|
123
126
|
if ("undefined" == typeof DayPilot)
|
|
124
127
|
var DayPilot = {};
|
|
@@ -133,17 +136,17 @@ if ("undefined" == typeof DayPilot)
|
|
|
133
136
|
n < 10 && (n = "0" + n);
|
|
134
137
|
var i = r.getUTCMinutes();
|
|
135
138
|
i < 10 && (i = "0" + i);
|
|
136
|
-
var
|
|
137
|
-
d < 10 && (d = "0" + d);
|
|
138
|
-
var l = r.getUTCDate();
|
|
139
|
+
var l = r.getUTCHours();
|
|
139
140
|
l < 10 && (l = "0" + l);
|
|
141
|
+
var d = r.getUTCDate();
|
|
142
|
+
d < 10 && (d = "0" + d);
|
|
140
143
|
var s = r.getUTCMonth() + 1;
|
|
141
144
|
s < 10 && (s = "0" + s);
|
|
142
145
|
var u = r.getUTCFullYear();
|
|
143
146
|
if (u <= 0)
|
|
144
147
|
throw "The minimum year supported is 1.";
|
|
145
148
|
u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u);
|
|
146
|
-
var c = u + "-" + s + "-" +
|
|
149
|
+
var c = u + "-" + s + "-" + d + "T" + l + ":" + i + ":" + n + a;
|
|
147
150
|
return t[e] = c, c;
|
|
148
151
|
}
|
|
149
152
|
function t(e, t) { return !DayPilot.Util.isNullOrUndefined(e) && (!DayPilot.Util.isNullOrUndefined(t) && e.toLocaleLowerCase() === t.toLocaleLowerCase()); }
|
|
@@ -183,7 +186,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
183
186
|
else if (a = DayPilot.mo2(e, t), !a)
|
|
184
187
|
return null;
|
|
185
188
|
return a.shift = t.shiftKey, a.meta = t.metaKey, a.ctrl = t.ctrlKey, a.alt = t.altKey, a;
|
|
186
|
-
}, DayPilot.browser = {}, DayPilot.browser.ie9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.browser.ielt9 = function () { var e = document.createElement("div"); return e.innerHTML = "<!--[if lt IE 9]><i></i><![endif]-->", 1 === e.getElementsByTagName("i").length; }(), DayPilot.page = function (e) { var t = e.changedTouches && e.changedTouches[0] ? e.changedTouches[0] : e; return "undefined" == typeof t.pageX || DayPilot.browser.ie ? "undefined" != typeof e.clientX && document.body && document.documentElement ? { x: e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft, y: e.clientY + document.body.scrollTop + document.documentElement.scrollTop } : null : { x: t.pageX, y: t.pageY }; }, DayPilot.abs = function (e, t) {
|
|
189
|
+
}, 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) {
|
|
187
190
|
if (!e)
|
|
188
191
|
return null;
|
|
189
192
|
if (e.getBoundingClientRect) {
|
|
@@ -217,7 +220,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
217
220
|
if (e[a] === t)
|
|
218
221
|
return a;
|
|
219
222
|
return -1;
|
|
220
|
-
}, DayPilot.
|
|
223
|
+
}, DayPilot.ac = function (e, t) {
|
|
224
|
+
if (!t)
|
|
225
|
+
var t = [];
|
|
226
|
+
for (var a = 0; e.children && a < e.children.length; a++)
|
|
227
|
+
t.push(e.children[a]), DayPilot.ac(e.children[a], t);
|
|
228
|
+
return t;
|
|
229
|
+
}, 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) {
|
|
221
230
|
var t, a, r, o = e.attributes;
|
|
222
231
|
if (o)
|
|
223
232
|
for (a = o.length, t = 0; t < a; t += 1)
|
|
@@ -247,8 +256,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
247
256
|
var t = DayPilot.createXmlHttp();
|
|
248
257
|
if (!t)
|
|
249
258
|
throw new DayPilot.Exception("Unable to create XMLHttpRequest object");
|
|
250
|
-
var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { },
|
|
251
|
-
t.open(o,
|
|
259
|
+
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 || {};
|
|
260
|
+
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 () {
|
|
252
261
|
if (4 === t.readyState)
|
|
253
262
|
if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
|
|
254
263
|
var e = {};
|
|
@@ -294,7 +303,183 @@ if ("undefined" == typeof DayPilot)
|
|
|
294
303
|
r.key = a, r.val = e[a], t.push(r);
|
|
295
304
|
}
|
|
296
305
|
return t;
|
|
297
|
-
}, 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.
|
|
306
|
+
}, 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) {
|
|
307
|
+
var a = a || {}, o = a.areas, n = a.allowed || function () { return !0; }, i = a.offsetX || 0;
|
|
308
|
+
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) {
|
|
309
|
+
if (DayPilot.Areas.isVisible(r)) {
|
|
310
|
+
var o = DayPilot.Areas.createArea(e, t, r, { "offsetX": i, "eventDiv": a.eventDiv });
|
|
311
|
+
e.appendChild(o);
|
|
312
|
+
}
|
|
313
|
+
}));
|
|
314
|
+
}, 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, {}); }) : []; };
|
|
315
|
+
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; };
|
|
316
|
+
DayPilot.Areas.showAreas = function (e, t, a, r, o) {
|
|
317
|
+
if (!DayPilot.Global.resizing && !DayPilot.Global.moving && !DayPilot.Global.selecting && !e.active && DayPilot.browser.hover) {
|
|
318
|
+
if (DayPilot.Areas.all && DayPilot.Areas.all.length > 0)
|
|
319
|
+
for (var n = 0; n < DayPilot.Areas.all.length; n++) {
|
|
320
|
+
var i = DayPilot.Areas.all[n];
|
|
321
|
+
i !== e && DayPilot.Areas.hideAreas(i, a);
|
|
322
|
+
}
|
|
323
|
+
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)) {
|
|
324
|
+
e.areas = [];
|
|
325
|
+
for (var n = 0; n < r.length; n++) {
|
|
326
|
+
var l = r[n];
|
|
327
|
+
if (!DayPilot.Areas.isVisible(l)) {
|
|
328
|
+
var d = DayPilot.Areas.createArea(e, t, l, o);
|
|
329
|
+
e.areas.push(d), e.appendChild(d), DayPilot.Areas.all.push(e);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
e.active.children = DayPilot.ac(e);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}, DayPilot.Areas.createArea = function (e, t, a, r) {
|
|
336
|
+
function o(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
|
|
337
|
+
function n(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; }
|
|
338
|
+
function i(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
|
|
339
|
+
function l(e, t, a, r) {
|
|
340
|
+
DayPilot.Menu && DayPilot.Menu.touchPosition(r);
|
|
341
|
+
var o = a.contextMenu || a.menu;
|
|
342
|
+
if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)),
|
|
343
|
+
o && o.show) {
|
|
344
|
+
var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
|
|
345
|
+
o.show(t, { "initiator": n });
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
var r = r || {}, d = (r.offsetX || 0, r.eventDiv || e), s = document.createElement("div");
|
|
349
|
+
s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
|
|
350
|
+
var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
|
|
351
|
+
if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute", s.style.width = o(u), s.style.height = o(c), s.style.right = o(a.right), s.style.top = o(a.top), s.style.left = o(a.left), s.style.bottom = o(a.bottom), "undefined" != typeof a.html || "undefined" != typeof a.text)
|
|
352
|
+
s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
|
|
353
|
+
else if (a.icon) {
|
|
354
|
+
var y = document.createElement("i");
|
|
355
|
+
y.className = a.icon, s.appendChild(y);
|
|
356
|
+
}
|
|
357
|
+
else if (a.image) {
|
|
358
|
+
var m = document.createElement("img");
|
|
359
|
+
m.src = a.image, s.appendChild(m);
|
|
360
|
+
}
|
|
361
|
+
else if (a.symbol) {
|
|
362
|
+
var h = "http://www.w3.org/2000/svg", p = document.createElementNS(h, "svg");
|
|
363
|
+
p.setAttribute("width", "100%"), p.setAttribute("height", "100%");
|
|
364
|
+
var g = document.createElementNS(h, "use");
|
|
365
|
+
g.setAttribute("href", a.symbol), p.appendChild(g), s.appendChild(p);
|
|
366
|
+
}
|
|
367
|
+
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)
|
|
368
|
+
switch (s.style.display = "flex", a.verticalAlignment) {
|
|
369
|
+
case "center":
|
|
370
|
+
s.style.alignItems = "center";
|
|
371
|
+
break;
|
|
372
|
+
case "top":
|
|
373
|
+
s.style.alignItems = "flex-start";
|
|
374
|
+
break;
|
|
375
|
+
case "bottom": s.style.alignItems = "flex-end";
|
|
376
|
+
}
|
|
377
|
+
if (a.horizontalAlignment)
|
|
378
|
+
switch (s.style.display = "flex", a.horizontalAlignment) {
|
|
379
|
+
case "right":
|
|
380
|
+
s.style.justifyContent = "flex-end";
|
|
381
|
+
break;
|
|
382
|
+
case "left":
|
|
383
|
+
s.style.justifyContent = "flex-start";
|
|
384
|
+
break;
|
|
385
|
+
case "center": s.style.justifyContent = "center";
|
|
386
|
+
}
|
|
387
|
+
if ("ResizeEnd" === a.action || "ResizeStart" === a.action || "Move" === a.action) {
|
|
388
|
+
if (t.calendar.isCalendar)
|
|
389
|
+
switch (a.action) {
|
|
390
|
+
case "ResizeEnd":
|
|
391
|
+
a.cursor = "s-resize", a.dpBorder = "bottom";
|
|
392
|
+
break;
|
|
393
|
+
case "ResizeStart":
|
|
394
|
+
a.cursor = "n-resize", a.dpBorder = "top";
|
|
395
|
+
break;
|
|
396
|
+
case "Move": a.cursor = "move";
|
|
397
|
+
}
|
|
398
|
+
if (t.calendar.isScheduler || t.calendar.isMonth)
|
|
399
|
+
switch (a.action) {
|
|
400
|
+
case "ResizeEnd":
|
|
401
|
+
a.cursor = "e-resize", a.dpBorder = "right";
|
|
402
|
+
break;
|
|
403
|
+
case "ResizeStart":
|
|
404
|
+
a.cursor = "w-resize", a.dpBorder = "left";
|
|
405
|
+
break;
|
|
406
|
+
case "Move": a.cursor = "move";
|
|
407
|
+
}
|
|
408
|
+
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);
|
|
409
|
+
}
|
|
410
|
+
if (("ResizeEnd" === a.action || "ResizeStart" === a.action) && t.isEvent && t.calendar.internal.touch) {
|
|
411
|
+
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);
|
|
412
|
+
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
413
|
+
}
|
|
414
|
+
if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
415
|
+
var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(), l(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);
|
|
416
|
+
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
417
|
+
}
|
|
418
|
+
if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
419
|
+
var b = function (e, t, a) {
|
|
420
|
+
return function (e) {
|
|
421
|
+
e.cancelBubble = !0, e.preventDefault();
|
|
422
|
+
var r = n(a, t, e);
|
|
423
|
+
if (!r.preventDefault.value) {
|
|
424
|
+
i(t, a, e);
|
|
425
|
+
t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
}(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
|
|
429
|
+
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
430
|
+
}
|
|
431
|
+
if ("Move" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
432
|
+
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);
|
|
433
|
+
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
434
|
+
}
|
|
435
|
+
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) {
|
|
436
|
+
var b = function (e, t, a) { return function (e) { var r = n(a, t, e); "function" == typeof a.onClicked && a.onClicked(r), e.preventDefault(), e.stopPropagation(); }; }(d, t, a);
|
|
437
|
+
DayPilot.reNonPassive(s, DayPilot.touch.start, b);
|
|
438
|
+
}
|
|
439
|
+
return s.onmousedown = function (e, t, a) {
|
|
440
|
+
return function (r) {
|
|
441
|
+
if ("function" == typeof a.onmousedown && a.onmousedown(r), "function" == typeof a.mousedown) {
|
|
442
|
+
var o = {};
|
|
443
|
+
o.area = a, o.div = e, o.originalEvent = r, o.source = t, a.mousedown(o);
|
|
444
|
+
}
|
|
445
|
+
if ("Move" === a.action && t.isRow) {
|
|
446
|
+
var n = t.$.row;
|
|
447
|
+
(0, t.calendar.internal.rowStartMoving)(n);
|
|
448
|
+
}
|
|
449
|
+
"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);
|
|
450
|
+
"Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0);
|
|
451
|
+
};
|
|
452
|
+
}(e, t, a), s.onclick = function (e, t, a) {
|
|
453
|
+
return function (r) {
|
|
454
|
+
var o = n(a, t, r);
|
|
455
|
+
if (!o.preventDefault.value) {
|
|
456
|
+
switch (a.action) {
|
|
457
|
+
case "ContextMenu":
|
|
458
|
+
l(e, t, a, r), r.cancelBubble = !0;
|
|
459
|
+
break;
|
|
460
|
+
case "None": r.cancelBubble = !0;
|
|
461
|
+
}
|
|
462
|
+
"function" == typeof a.onClicked && a.onClicked(o);
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}(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;
|
|
466
|
+
}, DayPilot.Areas.all = [], DayPilot.Areas.hideAreas = function (e, t) {
|
|
467
|
+
if (e && e && e.active) {
|
|
468
|
+
var a = e.active, r = e.areas;
|
|
469
|
+
if (a && a.children && t) {
|
|
470
|
+
var o = t.toElement || t.relatedTarget;
|
|
471
|
+
if (~DayPilot.indexOf(a.children, o))
|
|
472
|
+
return;
|
|
473
|
+
}
|
|
474
|
+
if (!r || 0 === r.length)
|
|
475
|
+
return void (e.active = null);
|
|
476
|
+
DayPilot.de(r), e.active = null, e.areas = [], DayPilot.rfa(DayPilot.Areas.all, e), a.children = null;
|
|
477
|
+
}
|
|
478
|
+
}, DayPilot.Areas.hideAll = function (e) {
|
|
479
|
+
if (DayPilot.Areas.all && 0 !== DayPilot.Areas.all.length)
|
|
480
|
+
for (var t = 0; t < DayPilot.Areas.all.length; t++)
|
|
481
|
+
DayPilot.Areas.hideAreas(DayPilot.Areas.all[t], e);
|
|
482
|
+
}, DayPilot.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
|
|
298
483
|
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)
|
|
299
484
|
for (var a in t)
|
|
300
485
|
this[a] = t[a];
|
|
@@ -303,17 +488,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
303
488
|
return null;
|
|
304
489
|
var t = e.toLowerCase();
|
|
305
490
|
return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
|
|
306
|
-
}, DayPilot.Locale.register = function (e) { DayPilot.Locale.all[e.id] = e; }, DayPilot.Locale.register(new DayPilot.Locale("ca-es", { "dayNames": ["diumenge", "dilluns", "dimarts", "dimecres", "dijous", "divendres", "dissabte"], "dayNamesShort": ["dg", "dl", "dt", "dc", "dj", "dv", "ds"], "monthNames": ["gener", "febrer", "març", "abril", "maig", "juny", "juliol", "agost", "setembre", "octubre", "novembre", "desembre", ""], "monthNamesShort": ["gen.", "febr.", "març", "abr.", "maig", "juny", "jul.", "ag.", "set.", "oct.", "nov.", "des.", ""], "timePattern": "H:mm", "datePattern": "dd/MM/yyyy", "dateTimePattern": "dd/MM/yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("cs-cz", { "dayNames": ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"], "dayNamesShort": ["ne", "po", "út", "st", "čt", "pá", "so"], "monthNames": ["leden", "únor", "březen", "duben", "květen", "červen", "červenec", "srpen", "září", "říjen", "listopad", "prosinec", ""], "monthNamesShort": ["I", "II", "III", "IV", "V", "VI", "VII", "VIII", "IX", "X", "XI", "XII", ""], "timePattern": "H:mm", "datePattern": "d. M. yyyy", "dateTimePattern": "d. M. yyyy H:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("da-dk", { "dayNames": ["søndag", "mandag", "tirsdag", "onsdag", "torsdag", "fredag", "lørdag"], "dayNamesShort": ["sø", "ma", "ti", "on", "to", "fr", "lø"], "monthNames": ["januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december", ""], "monthNamesShort": ["jan", "feb", "mar", "apr", "maj", "jun", "jul", "aug", "sep", "okt", "nov", "dec", ""], "timePattern": "HH:mm", "datePattern": "dd-MM-yyyy", "dateTimePattern": "dd-MM-yyyy HH:mm", "timeFormat": "Clock24Hours", "weekStarts": 1 })), DayPilot.Locale.register(new DayPilot.Locale("de-at", {
|
|
307
|
-
"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
|
|
308
|
-
})), 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) {
|
|
491
|
+
}, 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) {
|
|
309
492
|
var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
|
|
310
493
|
if (2 === arguments.length) {
|
|
311
|
-
var i = arguments[0],
|
|
494
|
+
var i = arguments[0], l = arguments[1];
|
|
312
495
|
if (!(i instanceof DayPilot.Date) && "string" != typeof i)
|
|
313
496
|
throw "DayPilot.Duration(): Invalid start argument, DayPilot.Date expected";
|
|
314
|
-
if (!(
|
|
497
|
+
if (!(l instanceof DayPilot.Date) && "string" != typeof l)
|
|
315
498
|
throw "DayPilot.Duration(): Invalid end argument, DayPilot.Date expected";
|
|
316
|
-
"string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof
|
|
499
|
+
"string" == typeof i && (i = new DayPilot.Date(i)), "string" == typeof l && (l = new DayPilot.Date(l)), e = l.getTime() - i.getTime();
|
|
317
500
|
}
|
|
318
501
|
return this.ticks = e, DayPilot.Date.Cache.DurationCtor["" + e] ? DayPilot.Date.Cache.DurationCtor["" + e] : (DayPilot.Date.Cache.DurationCtor["" + e] = this, this.toString = function (e) {
|
|
319
502
|
if (!e)
|
|
@@ -351,7 +534,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
351
534
|
}
|
|
352
535
|
var i = e(r);
|
|
353
536
|
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));
|
|
354
|
-
}, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {},
|
|
537
|
+
}, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {},
|
|
538
|
+
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) {
|
|
355
539
|
if (!e)
|
|
356
540
|
return this;
|
|
357
541
|
var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1;
|
|
@@ -388,7 +572,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
388
572
|
for (var r = t.dayOfWeek(); r !== e;)
|
|
389
573
|
t = t.addDays(-1), r = t.dayOfWeek();
|
|
390
574
|
return new DayPilot.Date(t);
|
|
391
|
-
}, 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
|
|
575
|
+
}, 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); };
|
|
392
576
|
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) {
|
|
393
577
|
if (!e)
|
|
394
578
|
throw "Can't create DayPilot.Date from an empty string";
|
|
@@ -397,21 +581,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
397
581
|
throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e;
|
|
398
582
|
if (DayPilot.Date.Cache.Parsing[e] && !t)
|
|
399
583
|
return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e];
|
|
400
|
-
var i = e.substring(0, 4),
|
|
401
|
-
if (s.setUTCFullYear(i,
|
|
584
|
+
var i = e.substring(0, 4), l = e.substring(5, 7), d = e.substring(8, 10), s = new Date(0);
|
|
585
|
+
if (s.setUTCFullYear(i, l - 1, d), r)
|
|
402
586
|
return DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
403
587
|
var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19);
|
|
404
588
|
if (s.setUTCHours(u), s.setUTCMinutes(c), s.setUTCSeconds(f), o)
|
|
405
589
|
return DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
406
|
-
var
|
|
407
|
-
if ("." ===
|
|
590
|
+
var y = e[19], m = 0;
|
|
591
|
+
if ("." === y) {
|
|
408
592
|
var h = parseInt(e.substring(20, 23));
|
|
409
|
-
s.setUTCMilliseconds(h),
|
|
593
|
+
s.setUTCMilliseconds(h), m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
|
|
410
594
|
}
|
|
411
595
|
else
|
|
412
|
-
|
|
596
|
+
m = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
|
|
413
597
|
var p = new DayPilot.Date(s);
|
|
414
|
-
return t || (p = p.addMinutes(-
|
|
598
|
+
return t || (p = p.addMinutes(-m)), s = p.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
415
599
|
}, DayPilot.DateUtil.getTzOffsetMinutes = function (e) {
|
|
416
600
|
if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
|
|
417
601
|
return 0;
|
|
@@ -449,22 +633,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
449
633
|
}
|
|
450
634
|
return r + ":" + a;
|
|
451
635
|
}, 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; };
|
|
452
|
-
var
|
|
636
|
+
var o = function (e, a) {
|
|
453
637
|
"string" == typeof a && (a = DayPilot.Locale.find(a));
|
|
454
|
-
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) {
|
|
455
|
-
return a.dayNames[e.getDayOfWeek()];
|
|
456
|
-
} }, { "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, "\\$&"); };
|
|
638
|
+
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, "\\$&"); };
|
|
457
639
|
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) {
|
|
458
640
|
function a(e) { return parseInt(e); }
|
|
459
641
|
return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
|
|
460
|
-
for (var i = o(e),
|
|
461
|
-
var s = (r[
|
|
462
|
-
s && (u = "(" + u + ")",
|
|
642
|
+
for (var i = o(e), l = null, d = 0; d < r.length; d++) {
|
|
643
|
+
var s = (r[d].length, t === r[d].seq), u = r[d].expr;
|
|
644
|
+
s && (u = "(" + u + ")", l = r[d].transform), i = i.replace(r[d].seq, u);
|
|
463
645
|
}
|
|
464
646
|
i = "^" + i + "$";
|
|
465
647
|
try {
|
|
466
648
|
var c = new RegExp(i), f = c.exec(n);
|
|
467
|
-
return f ? (
|
|
649
|
+
return f ? (l = l || a)(f[1]) : null;
|
|
468
650
|
}
|
|
469
651
|
catch (e) {
|
|
470
652
|
throw "unable to create regex from: " + i;
|
|
@@ -477,9 +659,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
477
659
|
return r[t];
|
|
478
660
|
return null;
|
|
479
661
|
}, o = e.length <= 0, n = 0, i = []; !o;) {
|
|
480
|
-
var
|
|
481
|
-
if (
|
|
482
|
-
var s =
|
|
662
|
+
var l = e.substring(n), d = /%?(.)\1*/.exec(l);
|
|
663
|
+
if (d && d.length > 0) {
|
|
664
|
+
var s = d[0], u = a(s);
|
|
483
665
|
u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
|
|
484
666
|
}
|
|
485
667
|
else
|
|
@@ -502,28 +684,28 @@ if ("undefined" == typeof DayPilot)
|
|
|
502
684
|
var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth();
|
|
503
685
|
if (r < 1 || r > o)
|
|
504
686
|
return null;
|
|
505
|
-
var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0,
|
|
687
|
+
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;
|
|
506
688
|
if (this.ampm && this.hours12) {
|
|
507
689
|
var s = this.hours12.findValue(e);
|
|
508
690
|
if (s < 1 || s > 12)
|
|
509
691
|
return null;
|
|
510
|
-
n = "PM" ===
|
|
692
|
+
n = "PM" === d ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
|
|
511
693
|
}
|
|
512
694
|
if (n < 0 || n > 23)
|
|
513
695
|
return null;
|
|
514
696
|
if (i < 0 || i > 59)
|
|
515
697
|
return null;
|
|
516
|
-
if (
|
|
698
|
+
if (l < 0 || l > 59)
|
|
517
699
|
return null;
|
|
518
700
|
var u = new Date;
|
|
519
|
-
return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(
|
|
701
|
+
return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(l), u.setUTCMilliseconds(0), new DayPilot.Date(u);
|
|
520
702
|
}, this.init();
|
|
521
703
|
};
|
|
522
704
|
DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) {
|
|
523
705
|
if (!/^#[0-9a-f]{6}$/i.test(e))
|
|
524
706
|
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
|
|
525
707
|
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) };
|
|
526
|
-
}, 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) {
|
|
708
|
+
}, 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) {
|
|
527
709
|
var r = this;
|
|
528
710
|
this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
|
|
529
711
|
var o = {}, n = ["id", "text", "start", "end", "resource"];
|
|
@@ -579,37 +761,37 @@ if ("undefined" == typeof DayPilot)
|
|
|
579
761
|
}
|
|
580
762
|
}(), DayPilot.JSON = {}, function () {
|
|
581
763
|
function e(e) { return e < 10 ? "0" + e : e; }
|
|
582
|
-
function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t =
|
|
764
|
+
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 + '"'; }
|
|
583
765
|
function a(e, i) {
|
|
584
|
-
var
|
|
585
|
-
switch (
|
|
586
|
-
case "string": return t(
|
|
587
|
-
case "number": return isFinite(
|
|
766
|
+
var l, d, s, u, c, f = r, y = i[e];
|
|
767
|
+
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) {
|
|
768
|
+
case "string": return t(y);
|
|
769
|
+
case "number": return isFinite(y) ? String(y) : "null";
|
|
588
770
|
case "boolean":
|
|
589
|
-
case "null": return String(
|
|
771
|
+
case "null": return String(y);
|
|
590
772
|
case "object":
|
|
591
|
-
if (!
|
|
773
|
+
if (!y)
|
|
592
774
|
return "null";
|
|
593
|
-
if (r += o, c = [], "number" == typeof
|
|
594
|
-
for (u =
|
|
595
|
-
c[
|
|
775
|
+
if (r += o, c = [], "number" == typeof y.length && !y.propertyIsEnumerable("length")) {
|
|
776
|
+
for (u = y.length, l = 0; l < u; l += 1)
|
|
777
|
+
c[l] = a(l, y) || "null";
|
|
596
778
|
return s = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, s;
|
|
597
779
|
}
|
|
598
780
|
if (n && "object" == typeof n)
|
|
599
|
-
for (u = n.length,
|
|
600
|
-
|
|
781
|
+
for (u = n.length, l = 0; l < u; l += 1)
|
|
782
|
+
d = n[l], "string" == typeof d && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
|
|
601
783
|
else
|
|
602
|
-
for (
|
|
603
|
-
Object.hasOwnProperty.call(
|
|
784
|
+
for (d in y)
|
|
785
|
+
Object.hasOwnProperty.call(y, d) && (s = a(d, y), s && c.push(t(d) + (r ? ": " : ":") + s));
|
|
604
786
|
return s = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, s;
|
|
605
787
|
}
|
|
606
788
|
}
|
|
607
789
|
"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(); });
|
|
608
|
-
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,
|
|
790
|
+
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", '"': '\\"', "\\": "\\\\" };
|
|
609
791
|
"function" != typeof DayPilot.JSON.stringify && (DayPilot.JSON.stringify = function (e, t, i) {
|
|
610
|
-
var
|
|
792
|
+
var l;
|
|
611
793
|
if (r = "", o = "", "number" == typeof i)
|
|
612
|
-
for (
|
|
794
|
+
for (l = 0; l < i; l += 1)
|
|
613
795
|
o += " ";
|
|
614
796
|
else
|
|
615
797
|
"string" == typeof i && (o = i);
|
|
@@ -659,17 +841,17 @@ if ("undefined" == typeof DayPilot)
|
|
|
659
841
|
}, t.gMouseUp = function (i) {
|
|
660
842
|
if (t.resizing) {
|
|
661
843
|
if (!t.resizingShadow)
|
|
662
|
-
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (
|
|
844
|
+
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", t.resizing = null, void (DayPilot.Global.resizing = null);
|
|
663
845
|
var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, a = t.resizingShadow.offsetTop, l = t.resizing.dpBorder;
|
|
664
|
-
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);
|
|
846
|
+
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);
|
|
665
847
|
}
|
|
666
848
|
else if (t.moving) {
|
|
667
849
|
if (!t.movingShadow)
|
|
668
|
-
return t.moving = null, void (document.body.style.cursor = "default");
|
|
850
|
+
return t.moving = null, DayPilot.Global.moving = null, void (document.body.style.cursor = "default");
|
|
669
851
|
var a = t.movingShadow.offsetTop, n = t.moving.event;
|
|
670
852
|
t.deleteShadow(t.movingShadow), DayPilot.Util.removeClass(t.moving, n.calendar.b("_event_moving_source"));
|
|
671
853
|
var o = t.movingShadow.column;
|
|
672
|
-
t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
|
|
854
|
+
t.moving = null, DayPilot.Global.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.c(n, o, a, i);
|
|
673
855
|
}
|
|
674
856
|
else if (t.selecting && null !== t.topSelectedCell) {
|
|
675
857
|
var r = t.selecting.calendar;
|
|
@@ -684,7 +866,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
684
866
|
if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
|
|
685
867
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
686
868
|
var s = this;
|
|
687
|
-
this.uniqueID = null, this.v = "
|
|
869
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.1.447-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) {
|
|
688
870
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
689
871
|
i = i.parentNode;
|
|
690
872
|
var n = document.createElement("div");
|
|
@@ -1058,20 +1240,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
1058
1240
|
}, this.Z = function (e) {
|
|
1059
1241
|
var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
|
|
1060
1242
|
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) {
|
|
1061
|
-
var n =
|
|
1243
|
+
var n = 5;
|
|
1062
1244
|
if ("undefined" != typeof t) {
|
|
1063
1245
|
var l = DayPilot.mo3(a, i);
|
|
1064
1246
|
if (l && !t.resizing && !t.moving) {
|
|
1065
1247
|
a.deleteIcon && (a.deleteIcon.style.display = "");
|
|
1066
1248
|
var o = this.isLast;
|
|
1067
|
-
l.y <= n && e.client.resizeEnabled() ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - l.y <=
|
|
1249
|
+
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");
|
|
1068
1250
|
}
|
|
1069
1251
|
}
|
|
1070
1252
|
}, a.onmousedown = function (i) {
|
|
1071
1253
|
var n = i.which || i.button;
|
|
1072
1254
|
if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== n) {
|
|
1073
1255
|
if (1 === n && e.client.moveEnabled()) {
|
|
1074
|
-
t.moving = this, t.moving.event = this.event;
|
|
1256
|
+
t.moving = this, DayPilot.Global.moving = this, t.moving.event = this.event;
|
|
1075
1257
|
var a = t.moving.helper = {};
|
|
1076
1258
|
a.oldColumn = s.Q[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(i), t.originalTop = this.offsetTop;
|
|
1077
1259
|
var l = DayPilot.mo3(this, i);
|
|
@@ -1079,7 +1261,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1079
1261
|
}
|
|
1080
1262
|
}
|
|
1081
1263
|
else
|
|
1082
|
-
t.resizing = this, t.originalMouse = DayPilot.mc(i), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
|
|
1264
|
+
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;
|
|
1083
1265
|
return !1;
|
|
1084
1266
|
};
|
|
1085
1267
|
var l = document.createElement("div");
|
|
@@ -1091,9 +1273,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
1091
1273
|
}
|
|
1092
1274
|
if (e.client.deleteEnabled()) {
|
|
1093
1275
|
var u = document.createElement("div");
|
|
1094
|
-
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);
|
|
1276
|
+
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) { e.stopPropagation(); var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
|
|
1095
1277
|
}
|
|
1096
|
-
|
|
1278
|
+
var v = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
1279
|
+
if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
|
|
1097
1280
|
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.$(a);
|
|
1098
1281
|
}
|
|
1099
1282
|
s.elements.events.push(a);
|
|
@@ -1177,7 +1360,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
1177
1360
|
for (var t = 0; t < e.rows.length; t++)
|
|
1178
1361
|
for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
|
|
1179
1362
|
var s = i.cells[n];
|
|
1180
|
-
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
|
|
1363
|
+
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
|
|
1364
|
+
s.onmouseup = null;
|
|
1181
1365
|
}
|
|
1182
1366
|
this.fasterDispose || DayPilot.pu(e);
|
|
1183
1367
|
}, this.C = function () {
|
|
@@ -1361,7 +1545,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1361
1545
|
}
|
|
1362
1546
|
}, this.ya = null, this.va = function (e) {
|
|
1363
1547
|
if (e) {
|
|
1364
|
-
var t = { "events": { "preInit": function () { var e = this.data
|
|
1548
|
+
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e; } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
|
|
1365
1549
|
this.ya = t;
|
|
1366
1550
|
for (var i in e)
|
|
1367
1551
|
if (t[i]) {
|
|
@@ -1398,54 +1582,64 @@ if ("undefined" == typeof DayPilot)
|
|
|
1398
1582
|
}, this.z = function () {
|
|
1399
1583
|
var e = this.events.list;
|
|
1400
1584
|
if (s.Ba.events = [], e) {
|
|
1585
|
+
if (!DayPilot.isArray(e))
|
|
1586
|
+
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1401
1587
|
var t = e.length, i = 864e5;
|
|
1402
1588
|
this.cache.pixels = {};
|
|
1403
1589
|
var n = [];
|
|
1404
1590
|
this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
|
|
1405
1591
|
for (var a = 0; a < t; a++) {
|
|
1406
|
-
var l = e[a];
|
|
1592
|
+
var l = e[a], o = l;
|
|
1593
|
+
if ("object" != typeof o)
|
|
1594
|
+
throw new DayPilot.Exception("Event data item must be an object");
|
|
1595
|
+
if (!o.start)
|
|
1596
|
+
throw new DayPilot.Exception("Event data item must specify 'start' property");
|
|
1597
|
+
if (!o.end)
|
|
1598
|
+
throw new DayPilot.Exception("Event data item must specify 'end' property");
|
|
1599
|
+
if (o instanceof DayPilot.Event)
|
|
1600
|
+
throw new DayPilot.Exception("DayPilot.Calendar: DayPilot.Event object detected in events.list array. Use raw event data instead.");
|
|
1407
1601
|
l.start = new DayPilot.Date(l.start), l.end = new DayPilot.Date(l.end);
|
|
1408
1602
|
}
|
|
1409
1603
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1410
1604
|
for (var a = 0; a < t; a++)
|
|
1411
1605
|
this.Ca(a);
|
|
1412
1606
|
for (var a = 0; a < this.Q.length; a++) {
|
|
1413
|
-
var
|
|
1414
|
-
|
|
1415
|
-
var
|
|
1416
|
-
|
|
1417
|
-
for (var
|
|
1418
|
-
if (!n[
|
|
1419
|
-
var l = e[
|
|
1420
|
-
if (!(
|
|
1421
|
-
var
|
|
1422
|
-
if ("Resources" === s.viewType && (
|
|
1423
|
-
var
|
|
1424
|
-
|
|
1425
|
-
var
|
|
1426
|
-
if (
|
|
1607
|
+
var r = {};
|
|
1608
|
+
r.minEnd = 1e6, r.maxStart = -1, this.scrollLabels.push(r);
|
|
1609
|
+
var h = this.Q[a];
|
|
1610
|
+
h.events = [], h.lines = [], h.blocks = [];
|
|
1611
|
+
for (var c = new DayPilot.Date(h.start), d = c.getTime(), u = c.addTime(i), v = u.getTime(), p = 0; p < t; p++)
|
|
1612
|
+
if (!n[p]) {
|
|
1613
|
+
var l = e[p], f = l.start, g = l.end, m = f.getTime(), y = g.getTime();
|
|
1614
|
+
if (!(y < m)) {
|
|
1615
|
+
var b = !(y <= d || m >= v);
|
|
1616
|
+
if ("Resources" === s.viewType && (b = b && h.id === l.resource), b) {
|
|
1617
|
+
var C = new DayPilot.Event(l, s);
|
|
1618
|
+
C.part.dayIndex = a, C.part.start = d < m ? l.start : c, C.part.end = v > y ? l.end : u;
|
|
1619
|
+
var w = this.getPixels(C.part.start, h.start), D = this.getPixels(C.part.end, h.start), S = w.top, x = D.top;
|
|
1620
|
+
if (S === x && (w.cut || D.cut))
|
|
1427
1621
|
continue;
|
|
1428
|
-
var k =
|
|
1429
|
-
|
|
1430
|
-
var
|
|
1431
|
-
|
|
1622
|
+
var k = D.boxBottom;
|
|
1623
|
+
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);
|
|
1624
|
+
var f = C.part.top, g = C.part.top + C.part.height;
|
|
1625
|
+
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);
|
|
1432
1626
|
}
|
|
1433
1627
|
}
|
|
1434
1628
|
}
|
|
1435
1629
|
}
|
|
1436
1630
|
for (var a = 0; a < this.Q.length; a++) {
|
|
1437
|
-
var
|
|
1438
|
-
|
|
1439
|
-
for (var
|
|
1440
|
-
var l =
|
|
1441
|
-
|
|
1631
|
+
var h = this.Q[a];
|
|
1632
|
+
h.events.sort(this.Da);
|
|
1633
|
+
for (var p = 0; p < h.events.length; p++) {
|
|
1634
|
+
var l = h.events[p];
|
|
1635
|
+
h.putIntoBlock(l);
|
|
1442
1636
|
}
|
|
1443
|
-
for (var
|
|
1444
|
-
var
|
|
1445
|
-
|
|
1446
|
-
for (var
|
|
1447
|
-
var l =
|
|
1448
|
-
|
|
1637
|
+
for (var p = 0; p < h.blocks.length; p++) {
|
|
1638
|
+
var P = h.blocks[p];
|
|
1639
|
+
P.events.sort(this.Da);
|
|
1640
|
+
for (var E = 0; E < P.events.length; E++) {
|
|
1641
|
+
var l = P.events[E];
|
|
1642
|
+
P.putIntoLine(l);
|
|
1449
1643
|
}
|
|
1450
1644
|
}
|
|
1451
1645
|
}
|
|
@@ -1530,7 +1724,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1530
1724
|
var DayPilot = {};
|
|
1531
1725
|
!function () {
|
|
1532
1726
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1533
|
-
this.v = "
|
|
1727
|
+
this.v = "2023.1.447-lite";
|
|
1534
1728
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1535
1729
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1536
1730
|
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)
|
|
@@ -1581,7 +1775,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1581
1775
|
var e = function () { }, t = {};
|
|
1582
1776
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
|
|
1583
1777
|
var i = this, o = null;
|
|
1584
|
-
this.v = "
|
|
1778
|
+
this.v = "2023.1.447-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) {
|
|
1585
1779
|
u = u || {};
|
|
1586
1780
|
var a = null;
|
|
1587
1781
|
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) {
|
|
@@ -2531,7 +2725,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2531
2725
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2532
2726
|
var t = {};
|
|
2533
2727
|
t.Month = function (e, i) {
|
|
2534
|
-
this.v = "
|
|
2728
|
+
this.v = "2023.1.447-lite", this.nav = {};
|
|
2535
2729
|
var n = this;
|
|
2536
2730
|
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) {
|
|
2537
2731
|
var e = null;
|
|
@@ -2564,14 +2758,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
2564
2758
|
}
|
|
2565
2759
|
n.update(), n.j.notify();
|
|
2566
2760
|
}, 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) {
|
|
2567
|
-
var
|
|
2568
|
-
var i,
|
|
2761
|
+
var a = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, s = function (t) {
|
|
2762
|
+
var i, s = t.request;
|
|
2569
2763
|
try {
|
|
2570
|
-
i = JSON.parse(
|
|
2764
|
+
i = JSON.parse(s.responseText);
|
|
2571
2765
|
}
|
|
2572
2766
|
catch (t) {
|
|
2573
2767
|
var l = {};
|
|
2574
|
-
return l.exception = t, void
|
|
2768
|
+
return l.exception = t, void a(l);
|
|
2575
2769
|
}
|
|
2576
2770
|
if (DayPilot.isArray(i)) {
|
|
2577
2771
|
var o = {};
|
|
@@ -2581,10 +2775,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
2581
2775
|
}
|
|
2582
2776
|
};
|
|
2583
2777
|
if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
2584
|
-
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success":
|
|
2778
|
+
DayPilot.Http.ajax({ "method": "POST", "data": { "start": n.visibleStart().toString(), "end": n.visibleEnd().toString() }, "url": t, "success": s, "error": a });
|
|
2585
2779
|
else {
|
|
2586
2780
|
var l = t, o = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
2587
|
-
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success":
|
|
2781
|
+
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": s, "error": a });
|
|
2588
2782
|
}
|
|
2589
2783
|
}, this.update = function (t) {
|
|
2590
2784
|
if (n.l(t), this.k && this.cells) {
|
|
@@ -2592,12 +2786,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2592
2786
|
}
|
|
2593
2787
|
}, this.n = null, this.l = function (t) {
|
|
2594
2788
|
if (t) {
|
|
2595
|
-
var e = { "events": { "preInit": function () { var t = this.data
|
|
2789
|
+
var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t; } } };
|
|
2596
2790
|
this.n = e;
|
|
2597
2791
|
for (var i in t)
|
|
2598
2792
|
if (e[i]) {
|
|
2599
|
-
var
|
|
2600
|
-
|
|
2793
|
+
var a = e[i];
|
|
2794
|
+
a.data = t[i], a.preInit && a.preInit();
|
|
2601
2795
|
}
|
|
2602
2796
|
else
|
|
2603
2797
|
n[i] = t[i];
|
|
@@ -2610,22 +2804,31 @@ if ("undefined" == typeof DayPilot)
|
|
|
2610
2804
|
}
|
|
2611
2805
|
}, this.p = {}, this.p.events = [], this.q = function (t) {
|
|
2612
2806
|
var e = this.p.events, i = this.events.list[t], n = {};
|
|
2613
|
-
for (var
|
|
2614
|
-
n[
|
|
2807
|
+
for (var a in i)
|
|
2808
|
+
n[a] = i[a];
|
|
2615
2809
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
2616
|
-
var
|
|
2617
|
-
|
|
2810
|
+
var s = {};
|
|
2811
|
+
s.data = n, this.onBeforeEventRender(s);
|
|
2618
2812
|
}
|
|
2619
2813
|
e[t] = n;
|
|
2620
2814
|
}, this.d = function () {
|
|
2621
2815
|
var t = this.events.list;
|
|
2622
2816
|
if (t) {
|
|
2817
|
+
if (!DayPilot.isArray(t))
|
|
2818
|
+
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof t);
|
|
2623
2819
|
if ("function" == typeof this.onBeforeEventRender)
|
|
2624
2820
|
for (var e = 0; e < t.length; e++)
|
|
2625
2821
|
this.q(e);
|
|
2626
2822
|
for (var i = 0; i < t.length; i++) {
|
|
2627
|
-
var n = t[i]
|
|
2628
|
-
if (
|
|
2823
|
+
var n = t[i];
|
|
2824
|
+
if ("object" != typeof n)
|
|
2825
|
+
throw new DayPilot.Exception("Event data item must be an object");
|
|
2826
|
+
if (!n.start)
|
|
2827
|
+
throw new DayPilot.Exception("Event data item must specify 'start' property");
|
|
2828
|
+
if (!n.end)
|
|
2829
|
+
throw new DayPilot.Exception("Event data item must specify 'end' property");
|
|
2830
|
+
var a = new DayPilot.Date(n.start), s = new DayPilot.Date(n.end);
|
|
2831
|
+
if (!(a.getTime() > s.getTime()))
|
|
2629
2832
|
for (var e = 0; e < this.rows.length; e++) {
|
|
2630
2833
|
var l = this.rows[e], o = new DayPilot.Event(n, this);
|
|
2631
2834
|
l.belongsHere(o) && (l.events.push(o), "function" == typeof this.onBeforeEventRender && (o.cache = this.p.events[i]));
|
|
@@ -2650,20 +2853,20 @@ if ("undefined" == typeof DayPilot)
|
|
|
2650
2853
|
this.elements.events = [];
|
|
2651
2854
|
for (var t = 0; t < this.rows.length; t++)
|
|
2652
2855
|
for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
|
|
2653
|
-
for (var n = e.lines[i],
|
|
2654
|
-
this.t(n[
|
|
2856
|
+
for (var n = e.lines[i], a = 0; a < n.length; a++)
|
|
2857
|
+
this.t(n[a]);
|
|
2655
2858
|
}, this.r = function (t, e) {
|
|
2656
2859
|
if (!(t && e && t.start && e.start))
|
|
2657
2860
|
return 0;
|
|
2658
2861
|
var i = t.start().getTime() - e.start().getTime();
|
|
2659
2862
|
return 0 !== i ? i : e.end().getTime() - t.end().getTime();
|
|
2660
|
-
}, this.drawShadow = function (e, i, n,
|
|
2661
|
-
|
|
2662
|
-
var o =
|
|
2663
|
-
this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width =
|
|
2664
|
-
var r = 7 * i + e -
|
|
2863
|
+
}, this.drawShadow = function (e, i, n, a, s, l) {
|
|
2864
|
+
s || (s = 0);
|
|
2865
|
+
var o = a;
|
|
2866
|
+
this.shadow = {}, this.shadow.list = [], this.shadow.start = { x: e, y: i }, this.shadow.width = a;
|
|
2867
|
+
var r = 7 * i + e - s;
|
|
2665
2868
|
r < 0 && (o += r, e = 0, i = 0);
|
|
2666
|
-
for (var h =
|
|
2869
|
+
for (var h = s; h >= 7;)
|
|
2667
2870
|
i--, h -= 7;
|
|
2668
2871
|
if (h > e) {
|
|
2669
2872
|
h > e + (7 - this.getColCount()) ? (i--, e = e + 7 - h) : (o = o - h + e, e = 0);
|
|
@@ -2675,8 +2878,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2675
2878
|
for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
|
|
2676
2879
|
var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
|
|
2677
2880
|
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;
|
|
2678
|
-
var
|
|
2679
|
-
|
|
2881
|
+
var y = document.createElement("div");
|
|
2882
|
+
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++;
|
|
2680
2883
|
}
|
|
2681
2884
|
}, this.clearShadow = function () {
|
|
2682
2885
|
if (this.shadow) {
|
|
@@ -2689,32 +2892,32 @@ if ("undefined" == typeof DayPilot)
|
|
|
2689
2892
|
i += this.rows[n].getHeight();
|
|
2690
2893
|
return i += this.cellHeaderHeight, i += e * this.lineHeight();
|
|
2691
2894
|
}, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) {
|
|
2692
|
-
var i = e.cache || e.data,
|
|
2895
|
+
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");
|
|
2693
2896
|
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) {
|
|
2694
2897
|
i = i || window.event;
|
|
2695
2898
|
var r = i.which || i.button;
|
|
2696
2899
|
if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
|
|
2697
2900
|
if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
2698
2901
|
var h = {};
|
|
2699
|
-
h.start = {}, h.start.x = l, h.start.y =
|
|
2902
|
+
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;
|
|
2700
2903
|
}
|
|
2701
2904
|
else if ("move" === this.style.cursor || e.client.moveEnabled()) {
|
|
2702
2905
|
n.clearShadow();
|
|
2703
2906
|
var c = DayPilot.mo2(n.nav.top, i);
|
|
2704
2907
|
if (!c)
|
|
2705
2908
|
return;
|
|
2706
|
-
var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[
|
|
2909
|
+
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);
|
|
2707
2910
|
u && (f += u);
|
|
2708
2911
|
var p = {};
|
|
2709
|
-
p.start = {}, p.start.x = l, p.start.y =
|
|
2912
|
+
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;
|
|
2710
2913
|
}
|
|
2711
2914
|
}, d.onmousemove = function (i) {
|
|
2712
2915
|
if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
|
|
2713
2916
|
var n = DayPilot.mo3(d, i);
|
|
2714
2917
|
if (n) {
|
|
2715
2918
|
d.deleteIcon && (d.deleteIcon.style.display = "");
|
|
2716
|
-
var
|
|
2717
|
-
n.x <=
|
|
2919
|
+
var a = 6;
|
|
2920
|
+
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";
|
|
2718
2921
|
}
|
|
2719
2922
|
}
|
|
2720
2923
|
}, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); };
|
|
@@ -2726,32 +2929,33 @@ if ("undefined" == typeof DayPilot)
|
|
|
2726
2929
|
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);
|
|
2727
2930
|
}
|
|
2728
2931
|
if (e.client.deleteEnabled()) {
|
|
2729
|
-
var p = Math.floor(n.eventHeight / 2 - 9),
|
|
2730
|
-
|
|
2932
|
+
var p = Math.floor(n.eventHeight / 2 - 9), y = document.createElement("div");
|
|
2933
|
+
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);
|
|
2731
2934
|
}
|
|
2732
|
-
|
|
2935
|
+
var g = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
2936
|
+
DayPilot.Areas.attach(d, e, { "areas": g }), this.elements.events.push(d), this.nav.events.appendChild(d);
|
|
2733
2937
|
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () {
|
|
2734
2938
|
"string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
|
|
2735
2939
|
var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1;
|
|
2736
2940
|
t = Math.ceil(i / 7), this.days = 7 * t, this.rows = [];
|
|
2737
|
-
for (var
|
|
2738
|
-
var
|
|
2739
|
-
|
|
2740
|
-
for (var
|
|
2741
|
-
var l = this.lines[
|
|
2941
|
+
for (var a = 0; a < t; a++) {
|
|
2942
|
+
var s = {};
|
|
2943
|
+
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) {
|
|
2944
|
+
for (var a = this, s = 0; s < this.lines.length; s++) {
|
|
2945
|
+
var l = this.lines[s];
|
|
2742
2946
|
if (l.isFree(e, i))
|
|
2743
|
-
return l.addEvent(t, e, i, n,
|
|
2947
|
+
return l.addEvent(t, e, i, n, s), s;
|
|
2744
2948
|
}
|
|
2745
2949
|
var l = [];
|
|
2746
2950
|
return l.isFree = function (t, e) {
|
|
2747
2951
|
for (var i = !0, n = 0; n < this.length; n++)
|
|
2748
2952
|
t + e - 1 < this[n].part.colStart || t > this[n].part.colStart + this[n].part.colWidth - 1 || (i = !1);
|
|
2749
2953
|
return i;
|
|
2750
|
-
}, l.addEvent = function (t, e, i, n,
|
|
2751
|
-
},
|
|
2954
|
+
}, 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;
|
|
2955
|
+
}, s.getStart = function () {
|
|
2752
2956
|
for (var t = 0, e = 0; e < n.rows.length && e < this.index; e++)
|
|
2753
2957
|
t += n.rows[e].getHeight();
|
|
2754
|
-
},
|
|
2958
|
+
}, s.getHeight = function () { return Math.max(this.lines.length * n.lineHeight() + n.cellHeaderHeight, this.calendar.cellHeight); }, this.rows.push(s);
|
|
2755
2959
|
}
|
|
2756
2960
|
this.endDate = this.firstDate.addDays(7 * t);
|
|
2757
2961
|
}, this.visibleStart = function () { return n.firstDate; }, this.visibleEnd = function () { return n.endDate; }, this.getHeight = function () {
|
|
@@ -2763,26 +2967,26 @@ if ("undefined" == typeof DayPilot)
|
|
|
2763
2967
|
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");
|
|
2764
2968
|
var i = document.createElement("div");
|
|
2765
2969
|
this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i);
|
|
2766
|
-
var
|
|
2767
|
-
this.nav.events =
|
|
2970
|
+
var a = document.createElement("div");
|
|
2971
|
+
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) {
|
|
2768
2972
|
if (t.resizingEvent) {
|
|
2769
2973
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
2770
2974
|
if (!i)
|
|
2771
2975
|
return;
|
|
2772
|
-
var
|
|
2976
|
+
var a = n.getCellBelowPoint(i.x, i.y);
|
|
2773
2977
|
n.clearShadow();
|
|
2774
|
-
var
|
|
2978
|
+
var s, l, o = t.resizingEvent;
|
|
2775
2979
|
o.start;
|
|
2776
2980
|
if ("w-resize" === o.direction) {
|
|
2777
|
-
l =
|
|
2981
|
+
l = a;
|
|
2778
2982
|
var r = o.event.end();
|
|
2779
2983
|
r.getDatePart() === r && (r = r.addDays(-1));
|
|
2780
2984
|
var h = n.getCellFromDate(r);
|
|
2781
|
-
|
|
2985
|
+
s = n.getWidth(a, h);
|
|
2782
2986
|
}
|
|
2783
2987
|
else
|
|
2784
|
-
l = n.getCellFromDate(o.event.start()),
|
|
2785
|
-
|
|
2988
|
+
l = n.getCellFromDate(o.event.start()), s = n.getWidth(l, a);
|
|
2989
|
+
s < 1 && (s = 1), n.drawShadow(l.x, l.y, 0, s);
|
|
2786
2990
|
}
|
|
2787
2991
|
else if (t.movingEvent) {
|
|
2788
2992
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
@@ -2790,21 +2994,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
2790
2994
|
return;
|
|
2791
2995
|
if (i.x === t.movingEvent.coords.x && i.y === t.movingEvent.coords.y)
|
|
2792
2996
|
return;
|
|
2793
|
-
var
|
|
2997
|
+
var a = n.getCellBelowPoint(i.x, i.y);
|
|
2794
2998
|
n.clearShadow();
|
|
2795
|
-
var c = t.movingEvent.event, d = t.movingEvent.offset,
|
|
2796
|
-
|
|
2999
|
+
var c = t.movingEvent.event, d = t.movingEvent.offset, s = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
|
|
3000
|
+
s < 1 && (s = 1), n.drawShadow(a.x, a.y, 0, s, d, c);
|
|
2797
3001
|
}
|
|
2798
3002
|
else if (t.timeRangeSelecting) {
|
|
2799
3003
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
2800
3004
|
if (!i)
|
|
2801
3005
|
return;
|
|
2802
|
-
var
|
|
3006
|
+
var a = n.getCellBelowPoint(i.x, i.y);
|
|
2803
3007
|
n.clearShadow();
|
|
2804
|
-
var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 *
|
|
2805
|
-
|
|
2806
|
-
var f = v < u ? l :
|
|
2807
|
-
t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width =
|
|
3008
|
+
var l = t.timeRangeSelecting, v = 7 * l.y + l.x, u = 7 * a.y + a.x, s = Math.abs(u - v) + 1;
|
|
3009
|
+
s < 1 && (s = 1);
|
|
3010
|
+
var f = v < u ? l : a;
|
|
3011
|
+
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);
|
|
2808
3012
|
}
|
|
2809
3013
|
};
|
|
2810
3014
|
}, this.h = function () {
|
|
@@ -2813,16 +3017,16 @@ if ("undefined" == typeof DayPilot)
|
|
|
2813
3017
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
2814
3018
|
this.cells[t][e].style.top = this.getRowTop(e) + "px", this.cells[t][e].style.height = this.rows[e].getHeight() + "px";
|
|
2815
3019
|
}, this.getCellBelowPoint = function (t, e) {
|
|
2816
|
-
for (var i = Math.floor(this.nav.top.clientWidth / this.getColCount()), n = Math.min(Math.floor(t / i), this.getColCount() - 1),
|
|
2817
|
-
var r =
|
|
2818
|
-
if (
|
|
2819
|
-
l = e - r,
|
|
3020
|
+
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++) {
|
|
3021
|
+
var r = s;
|
|
3022
|
+
if (s += this.rows[o].getHeight(), e < s) {
|
|
3023
|
+
l = e - r, a = o;
|
|
2820
3024
|
break;
|
|
2821
3025
|
}
|
|
2822
3026
|
}
|
|
2823
|
-
null ===
|
|
3027
|
+
null === a && (a = this.rows.length - 1);
|
|
2824
3028
|
var h = {};
|
|
2825
|
-
return h.x = n, h.y =
|
|
3029
|
+
return h.x = n, h.y = a, h.relativeY = l, h;
|
|
2826
3030
|
}, this.getCellFromDate = function (t) {
|
|
2827
3031
|
for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
|
|
2828
3032
|
i.y++, e -= 7;
|
|
@@ -2836,8 +3040,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2836
3040
|
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";
|
|
2837
3041
|
var n = e + this.getWeekStart();
|
|
2838
3042
|
n > 6 && (n -= 7), i.className = this.u("_header");
|
|
2839
|
-
var
|
|
2840
|
-
|
|
3043
|
+
var s = document.createElement("div");
|
|
3044
|
+
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);
|
|
2841
3045
|
for (var l = 0; l < this.rows.length; l++)
|
|
2842
3046
|
this.C(e, l, t);
|
|
2843
3047
|
}
|
|
@@ -2846,14 +3050,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
2846
3050
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
2847
3051
|
this.cells[t][e].onclick = null;
|
|
2848
3052
|
this.nav.cells.innerHTML = "";
|
|
2849
|
-
}, this.D = function () { return 2 === n.api; }, this.C = function (e, i,
|
|
3053
|
+
}, this.D = function () { return 2 === n.api; }, this.C = function (e, i, s) {
|
|
2850
3054
|
var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div");
|
|
2851
3055
|
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)) {
|
|
2852
3056
|
var h = this.u("_cell_business");
|
|
2853
3057
|
DayPilot.Util.addClass(r, h);
|
|
2854
3058
|
}
|
|
2855
3059
|
var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
|
|
2856
|
-
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 (
|
|
3060
|
+
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 () {
|
|
2857
3061
|
var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.E(e, i); };
|
|
2858
3062
|
if ("Disabled" !== n.timeRangeSelectedHandling)
|
|
2859
3063
|
return void t(o);
|
|
@@ -2867,27 +3071,27 @@ if ("undefined" == typeof DayPilot)
|
|
|
2867
3071
|
}
|
|
2868
3072
|
};
|
|
2869
3073
|
var v = o.getDay();
|
|
2870
|
-
1 === v ? d.innerHTML =
|
|
2871
|
-
}, this.getWeekStart = function () { return
|
|
3074
|
+
1 === v ? d.innerHTML = a.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, s.appendChild(r);
|
|
3075
|
+
}, this.getWeekStart = function () { return a.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
|
|
2872
3076
|
for (var e = this.headerHeight, i = 0; i < t; i++)
|
|
2873
3077
|
e += this.rows[i].getHeight();
|
|
2874
3078
|
return e;
|
|
2875
|
-
}, this.F = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.G(); var
|
|
3079
|
+
}, 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) {
|
|
2876
3080
|
var i = t.event;
|
|
2877
3081
|
if (i.client.clickEnabled())
|
|
2878
3082
|
if (n.D()) {
|
|
2879
|
-
var
|
|
2880
|
-
if (
|
|
3083
|
+
var a = {};
|
|
3084
|
+
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))
|
|
2881
3085
|
return;
|
|
2882
3086
|
switch (n.eventClickHandling) {
|
|
2883
3087
|
case "CallBack":
|
|
2884
3088
|
n.eventClickCallBack(i);
|
|
2885
3089
|
break;
|
|
2886
3090
|
case "ContextMenu":
|
|
2887
|
-
var
|
|
2888
|
-
|
|
3091
|
+
var s = i.client.contextMenu();
|
|
3092
|
+
s ? s.show(i) : n.contextMenu && n.contextMenu.show(i);
|
|
2889
3093
|
}
|
|
2890
|
-
"function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(
|
|
3094
|
+
"function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(a); });
|
|
2891
3095
|
}
|
|
2892
3096
|
else
|
|
2893
3097
|
switch (n.eventClickHandling) {
|
|
@@ -2934,22 +3138,22 @@ if ("undefined" == typeof DayPilot)
|
|
|
2934
3138
|
break;
|
|
2935
3139
|
case "JavaScript": n.onEventDelete(t);
|
|
2936
3140
|
}
|
|
2937
|
-
}, 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,
|
|
3141
|
+
}, 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) {
|
|
2938
3142
|
if (!e)
|
|
2939
3143
|
throw "newStart is null";
|
|
2940
3144
|
if (!i)
|
|
2941
3145
|
throw "newEnd is null";
|
|
2942
|
-
var
|
|
2943
|
-
|
|
2944
|
-
}, this.K = function (t, e, i,
|
|
3146
|
+
var s = {};
|
|
3147
|
+
s.e = t, s.newStart = e, s.newEnd = i, s.position = a, this.F("EventMove", n, s);
|
|
3148
|
+
}, this.K = function (t, e, i, a, s, l) {
|
|
2945
3149
|
var o = t.start().getTimePart(), r = t.end().getDatePart();
|
|
2946
3150
|
r !== t.end() && (r = r.addDays(1));
|
|
2947
3151
|
var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i);
|
|
2948
|
-
c = c.addDays(-
|
|
3152
|
+
c = c.addDays(-a);
|
|
2949
3153
|
var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h);
|
|
2950
3154
|
if (n.D()) {
|
|
2951
3155
|
var p = {};
|
|
2952
|
-
if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl =
|
|
3156
|
+
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))
|
|
2953
3157
|
return;
|
|
2954
3158
|
switch (n.eventMoveHandling) {
|
|
2955
3159
|
case "CallBack":
|
|
@@ -2971,12 +3175,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2971
3175
|
throw "newStart is null";
|
|
2972
3176
|
if (!i)
|
|
2973
3177
|
throw "newEnd is null";
|
|
2974
|
-
var
|
|
2975
|
-
|
|
3178
|
+
var a = {};
|
|
3179
|
+
a.e = t, a.newStart = e, a.newEnd = i, this.F("EventResize", n, a);
|
|
2976
3180
|
}, this.L = function (t, e, i) {
|
|
2977
|
-
var
|
|
2978
|
-
|
|
2979
|
-
var l = DayPilot.DateUtil.diff(t.end(),
|
|
3181
|
+
var a = t.start().getTimePart(), s = t.end().getDatePart();
|
|
3182
|
+
s !== t.end() && (s = s.addDays(1));
|
|
3183
|
+
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);
|
|
2980
3184
|
if (n.D()) {
|
|
2981
3185
|
var d = {};
|
|
2982
3186
|
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))
|
|
@@ -3014,7 +3218,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3014
3218
|
case "JavaScript": n.onTimeRangeSelected(t, e);
|
|
3015
3219
|
}
|
|
3016
3220
|
}, 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; };
|
|
3017
|
-
var
|
|
3221
|
+
var a = this.M;
|
|
3018
3222
|
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 () {
|
|
3019
3223
|
if (this.id && this.id.tagName)
|
|
3020
3224
|
this.nav.top = this.id;
|
|
@@ -3036,10 +3240,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
3036
3240
|
return;
|
|
3037
3241
|
if (!i.event.calendar.shadow.start)
|
|
3038
3242
|
return;
|
|
3039
|
-
var n = t.movingEvent.event.calendar,
|
|
3243
|
+
var n = t.movingEvent.event.calendar, a = t.movingEvent.event, s = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
|
|
3040
3244
|
n.clearShadow(), t.movingEvent = null;
|
|
3041
3245
|
var e = e || window.event;
|
|
3042
|
-
return n.K(
|
|
3246
|
+
return n.K(a, s.x, s.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
|
|
3043
3247
|
}
|
|
3044
3248
|
if (t.resizingEvent) {
|
|
3045
3249
|
var i = t.resizingEvent;
|
|
@@ -3051,13 +3255,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
3051
3255
|
return;
|
|
3052
3256
|
if (!i.event.calendar.shadow.start)
|
|
3053
3257
|
return;
|
|
3054
|
-
var n = t.resizingEvent.event.calendar,
|
|
3055
|
-
return n.clearShadow(), t.resizingEvent = null, n.L(
|
|
3258
|
+
var n = t.resizingEvent.event.calendar, a = t.resizingEvent.event, s = n.shadow.start, r = n.shadow.width;
|
|
3259
|
+
return n.clearShadow(), t.resizingEvent = null, n.L(a, s, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
|
|
3056
3260
|
}
|
|
3057
3261
|
if (t.timeRangeSelecting) {
|
|
3058
3262
|
if (t.timeRangeSelecting.moved) {
|
|
3059
|
-
var h = t.timeRangeSelecting, n = h.root,
|
|
3060
|
-
n.E(
|
|
3263
|
+
var h = t.timeRangeSelecting, n = h.root, s = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = s.addDays(h.width);
|
|
3264
|
+
n.E(s, c), n.clearShadow();
|
|
3061
3265
|
}
|
|
3062
3266
|
t.timeRangeSelecting = null;
|
|
3063
3267
|
}
|
|
@@ -3078,22 +3282,22 @@ if ("undefined" == typeof DayPilot)
|
|
|
3078
3282
|
var t = DayPilot.am();
|
|
3079
3283
|
t && t.directive("daypilotMonth", ["$parse", function (t) {
|
|
3080
3284
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) {
|
|
3081
|
-
var
|
|
3082
|
-
|
|
3083
|
-
var
|
|
3084
|
-
|
|
3285
|
+
var a = new DayPilot.Month(i[0]);
|
|
3286
|
+
a.j.scope = e, a.init();
|
|
3287
|
+
var s = n["id"];
|
|
3288
|
+
s && (e[s] = a);
|
|
3085
3289
|
var l = n["publishAs"];
|
|
3086
3290
|
if (l) {
|
|
3087
|
-
(0, t(l).assign)(e,
|
|
3291
|
+
(0, t(l).assign)(e, a);
|
|
3088
3292
|
}
|
|
3089
3293
|
for (var o in n)
|
|
3090
|
-
0 === o.indexOf("on") && !function (i) {
|
|
3294
|
+
0 === o.indexOf("on") && !function (i) { a[i] = function (a) { var s = t(n[i]); e["$apply"](function () { s(e, { "args": a }); }); }; }(o);
|
|
3091
3295
|
var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
|
|
3092
3296
|
r.call(e, h, function (t) {
|
|
3093
3297
|
for (var e in t)
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
}, !0), r.call(e, c, function (t) {
|
|
3298
|
+
a[e] = t[e];
|
|
3299
|
+
a.update();
|
|
3300
|
+
}, !0), r.call(e, c, function (t) { a.events.list = t, a.update(); }, !0);
|
|
3097
3301
|
} };
|
|
3098
3302
|
}]);
|
|
3099
3303
|
}(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
@@ -3104,7 +3308,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3104
3308
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3105
3309
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
3106
3310
|
DayPilot.Navigator = function (t, e) {
|
|
3107
|
-
this.v = "
|
|
3311
|
+
this.v = "2023.1.447-lite";
|
|
3108
3312
|
var i = this;
|
|
3109
3313
|
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) {
|
|
3110
3314
|
var s = {};
|
|
@@ -3209,11 +3413,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
3209
3413
|
default: throw "Unknown selectMode value.";
|
|
3210
3414
|
}
|
|
3211
3415
|
}, this.w = null, this.select = function (t, e, s) {
|
|
3212
|
-
var n = e && (e instanceof DayPilot.Date || "string" == typeof e), a = "object" == typeof e || "boolean" == typeof e, l = t, o = n ? e : null, h = a ? e : s;
|
|
3416
|
+
var n = e && (e instanceof DayPilot.Date || "string" == typeof e), a = e && "object" == typeof e || "boolean" == typeof e, l = t, o = n ? e : null, h = a ? e : s;
|
|
3213
3417
|
if (!this.z)
|
|
3214
3418
|
return void (this.w = { "date1": l, "date2": o, "options": h });
|
|
3215
3419
|
var r = !0, c = !0;
|
|
3216
|
-
"object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h);
|
|
3420
|
+
h && "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h);
|
|
3217
3421
|
var d = this.selectionStart, u = this.selectionEnd;
|
|
3218
3422
|
this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart;
|
|
3219
3423
|
var f = !1;
|
|
@@ -3232,7 +3436,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3232
3436
|
}
|
|
3233
3437
|
}, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.H = function () { i.a = {}; }, this.K = null, this.F = function (t) {
|
|
3234
3438
|
if (t) {
|
|
3235
|
-
var e = { "events": { "preInit": function () { var t = this.data
|
|
3439
|
+
var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t; } } };
|
|
3236
3440
|
this.K = e;
|
|
3237
3441
|
for (var s in t)
|
|
3238
3442
|
if (e[s]) {
|