@daypilot/daypilot-lite-angular 3.0.0 → 3.1.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 +377 -371
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +382 -374
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +377 -371
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +54 -0
- package/package.json +2 -2
|
@@ -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 © 2022 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.
|
|
@@ -63,6 +63,9 @@ var DayPilot;
|
|
|
63
63
|
class Util {
|
|
64
64
|
}
|
|
65
65
|
DayPilot.Util = Util;
|
|
66
|
+
class Http {
|
|
67
|
+
}
|
|
68
|
+
DayPilot.Http = Http;
|
|
66
69
|
class Duration {
|
|
67
70
|
}
|
|
68
71
|
DayPilot.Duration = Duration;
|
|
@@ -97,10 +100,10 @@ var DayPilot;
|
|
|
97
100
|
})(DayPilot || (DayPilot = {}));
|
|
98
101
|
/*
|
|
99
102
|
DayPilot Lite
|
|
100
|
-
Copyright (c) 2005 -
|
|
103
|
+
Copyright (c) 2005 - 2022 Annpoint s.r.o.
|
|
101
104
|
http://www.daypilot.org/
|
|
102
105
|
Licensed under Apache Software License 2.0
|
|
103
|
-
Version:
|
|
106
|
+
Version: 2022.1.355-lite
|
|
104
107
|
*/
|
|
105
108
|
if ("undefined" == typeof DayPilot)
|
|
106
109
|
var DayPilot = {};
|
|
@@ -117,17 +120,18 @@ if ("undefined" == typeof DayPilot)
|
|
|
117
120
|
i < 10 && (i = "0" + i);
|
|
118
121
|
var d = r.getUTCHours();
|
|
119
122
|
d < 10 && (d = "0" + d);
|
|
120
|
-
var
|
|
121
|
-
s < 10 && (s = "0" + s);
|
|
122
|
-
var l = r.getUTCMonth() + 1;
|
|
123
|
+
var l = r.getUTCDate();
|
|
123
124
|
l < 10 && (l = "0" + l);
|
|
125
|
+
var s = r.getUTCMonth() + 1;
|
|
126
|
+
s < 10 && (s = "0" + s);
|
|
124
127
|
var u = r.getUTCFullYear();
|
|
125
128
|
if (u <= 0)
|
|
126
129
|
throw "The minimum year supported is 1.";
|
|
127
130
|
u < 10 ? u = "000" + u : u < 100 ? u = "00" + u : u < 1e3 && (u = "0" + u);
|
|
128
|
-
var c = u + "-" +
|
|
131
|
+
var c = u + "-" + s + "-" + l + "T" + d + ":" + i + ":" + n + a;
|
|
129
132
|
return t[e] = c, c;
|
|
130
133
|
}
|
|
134
|
+
function t(e) { e = Math.min(e, 255), e = Math.max(e, 0); var t = e.toString(16); return e < 16 ? "0" + t : t; }
|
|
131
135
|
if ("undefined" == typeof DayPilot.$) {
|
|
132
136
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), DayPilot.$ = function (e) { return document.getElementById(e); }, DayPilot.isKhtml = navigator && navigator.userAgent && navigator.userAgent.indexOf("KHTML") !== -1, DayPilot.isIE = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, DayPilot.mo2 = function (e, t) {
|
|
133
137
|
if (t = t || window.event, "undefined" != typeof t.offsetX) {
|
|
@@ -224,8 +228,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
224
228
|
var t = DayPilot.createXmlHttp();
|
|
225
229
|
if (!t)
|
|
226
230
|
throw new DayPilot.Exception("Unable to create XMLHttpRequest object");
|
|
227
|
-
var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, d = e.url,
|
|
228
|
-
t.open(o, d, !0), t.setRequestHeader("Content-type",
|
|
231
|
+
var a = "object" == typeof e.data, r = e.data, o = e.method || (e.data ? "POST" : "GET"), n = e.success || function () { }, i = e.error || function () { }, d = e.url, l = e.contentType || (a ? "application/json" : "text/plain"), s = e.headers || {};
|
|
232
|
+
t.open(o, d, !0), t.setRequestHeader("Content-type", l), DayPilot.Util.ownPropsAsArray(s).forEach(function (e) { t.setRequestHeader(e.key, e.val); }), t.onreadystatechange = function () {
|
|
229
233
|
if (4 === t.readyState)
|
|
230
234
|
if (200 === t.status || 201 === t.status || 204 === t.status || 304 === t.status) {
|
|
231
235
|
var e = {};
|
|
@@ -238,7 +242,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
238
242
|
else
|
|
239
243
|
window.console && console.log("HTTP error " + t.status);
|
|
240
244
|
}, 4 !== t.readyState && (a && (r = JSON.stringify(r)), t.send(r));
|
|
241
|
-
}, DayPilot.createXmlHttp = function () { return new XMLHttpRequest; }, DayPilot.Http = {}, DayPilot.Http.ajax = function (e) { DayPilot.ajax(e); }, DayPilot.Util = {}, DayPilot.Util.addClass = function (e, t) {
|
|
245
|
+
}, DayPilot.createXmlHttp = function () { return new XMLHttpRequest; }, DayPilot.Http = {}, DayPilot.Http.ajax = function (e) { DayPilot.ajax(e); }, DayPilot.Http.get = function (e, t) { return t = t || {}, new Promise(function (a, r) { var o = {}; o.url = e, o.method = "GET", o.success = function (e) { a(e); }, o.error = function (e) { r(e); }, o.contentType = t.contentType, o.headers = t.headers, DayPilot.ajax(o); }); }, DayPilot.Http.post = function (e, t, a) { return a = a || {}, new Promise(function (r, o) { var n = {}; n.url = e, n.method = "POST", n.data = t, n.success = function (e) { r(e); }, n.error = function (e) { o(e); }, n.contentType = a.contentType, n.headers = a.headers, DayPilot.ajax(n); }); }, DayPilot.Http.put = function (e, t, a) { return a = a || {}, new Promise(function (r, o) { var n = {}; n.url = e, n.method = "PUT", n.data = t, n.success = function (e) { r(e); }, n.error = function (e) { o(e); }, n.contentType = a.contentType, n.headers = a.headers, DayPilot.ajax(n); }); }, DayPilot.Http.delete = function (e, t) { return t = t || {}, new Promise(function (a, r) { var o = {}; o.url = e, o.method = "DELETE", o.success = function (e) { a(e); }, o.error = function (e) { r(e); }, o.contentType = t.contentType, o.headers = t.headers, DayPilot.ajax(o); }); }, DayPilot.Util = {}, DayPilot.Util.addClass = function (e, t) {
|
|
242
246
|
if (e) {
|
|
243
247
|
if (!e.className)
|
|
244
248
|
return void (e.className = t);
|
|
@@ -259,7 +263,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
259
263
|
r.key = a, r.val = e[a], t.push(r);
|
|
260
264
|
}
|
|
261
265
|
return t;
|
|
262
|
-
}, 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.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
|
|
266
|
+
}, 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.Exception = function (e) { return new Error(e); }, DayPilot.Locale = function (e, t) {
|
|
263
267
|
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)
|
|
264
268
|
for (var a in t)
|
|
265
269
|
this[a] = t[a];
|
|
@@ -268,8 +272,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
268
272
|
return null;
|
|
269
273
|
var t = e.toLowerCase();
|
|
270
274
|
return t.length > 2 && (t = DayPilot.Util.replaceCharAt(t, 2, "-")), DayPilot.Locale.all[t];
|
|
271
|
-
}, 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", ""],
|
|
272
|
-
"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("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) {
|
|
275
|
+
}, 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", ""],
|
|
276
|
+
"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("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) {
|
|
273
277
|
var t = this, a = 864e5, r = 36e5, o = 6e4, n = 1e3;
|
|
274
278
|
if (2 === arguments.length) {
|
|
275
279
|
var i = arguments[0], d = arguments[1];
|
|
@@ -352,8 +356,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
352
356
|
for (var r = t.dayOfWeek(); r !== e;)
|
|
353
357
|
t = t.addDays(-1), r = t.dayOfWeek();
|
|
354
358
|
return new DayPilot.Date(t);
|
|
355
|
-
}, 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,
|
|
356
|
-
DayPilot.Date.today = function () { return new DayPilot.Date(DayPilot.DateUtil.localToday(), !0); }, 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) {
|
|
359
|
+
}, 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 a(e, t).print(this) : this.toStringSortable(); }, DayPilot.Date.prototype.toStringSortable = function () { return e(this.ticks); }, DayPilot.Date.parse = function (e, t, r) { return new a(t, r).parse(e); };
|
|
360
|
+
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) {
|
|
357
361
|
if (!e)
|
|
358
362
|
throw "Can't create DayPilot.Date from an empty string";
|
|
359
363
|
var a = e.length, r = 10 === a, o = 19 === a, n = a > 19;
|
|
@@ -361,21 +365,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
361
365
|
throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): " + e;
|
|
362
366
|
if (DayPilot.Date.Cache.Parsing[e] && !t)
|
|
363
367
|
return DayPilot.Stats.cacheHitsParsing += 1, DayPilot.Date.Cache.Parsing[e];
|
|
364
|
-
var i = e.substring(0, 4), d = e.substring(5, 7),
|
|
365
|
-
if (
|
|
366
|
-
return DayPilot.Date.Cache.Parsing[e] =
|
|
368
|
+
var i = e.substring(0, 4), d = e.substring(5, 7), l = e.substring(8, 10), s = new Date(0);
|
|
369
|
+
if (s.setUTCFullYear(i, d - 1, l), r)
|
|
370
|
+
return DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
367
371
|
var u = e.substring(11, 13), c = e.substring(14, 16), f = e.substring(17, 19);
|
|
368
|
-
if (
|
|
369
|
-
return DayPilot.Date.Cache.Parsing[e] =
|
|
372
|
+
if (s.setUTCHours(u), s.setUTCMinutes(c), s.setUTCSeconds(f), o)
|
|
373
|
+
return DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
370
374
|
var m = e[19], y = 0;
|
|
371
375
|
if ("." === m) {
|
|
372
376
|
var h = parseInt(e.substring(20, 23));
|
|
373
|
-
|
|
377
|
+
s.setUTCMilliseconds(h), y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(23));
|
|
374
378
|
}
|
|
375
379
|
else
|
|
376
380
|
y = DayPilot.DateUtil.getTzOffsetMinutes(e.substring(19));
|
|
377
|
-
var g = new DayPilot.Date(
|
|
378
|
-
return t || (g = g.addMinutes(-y)),
|
|
381
|
+
var g = new DayPilot.Date(s);
|
|
382
|
+
return t || (g = g.addMinutes(-y)), s = g.toDate(), DayPilot.Date.Cache.Parsing[e] = s, s;
|
|
379
383
|
}, DayPilot.DateUtil.getTzOffsetMinutes = function (e) {
|
|
380
384
|
if (DayPilot.Util.isNullOrUndefined(e) || "" === e)
|
|
381
385
|
return 0;
|
|
@@ -413,15 +417,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
413
417
|
}
|
|
414
418
|
return r + ":" + a;
|
|
415
419
|
}, 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; };
|
|
416
|
-
var
|
|
420
|
+
var a = function (e, t) {
|
|
417
421
|
"string" == typeof t && (t = DayPilot.Locale.find(t));
|
|
418
422
|
var t = t || DayPilot.Locale.US, a = [{ "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 t.monthNames[e.getMonth()]; }, "transform": function (e) { var a = DayPilot.indexOf(t.monthNames, e, equalsIgnoreCase); return a < 0 ? null : a + 1; } }, { "seq": "MMM", "expr": "[^\\s0-9]*", "str": function (e) { return t.monthNamesShort[e.getMonth()]; }, "transform": function (e) { var a = DayPilot.indexOf(t.monthNamesShort, e, equalsIgnoreCase); return a < 0 ? null : a + 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 t.dayNames[e.getDayOfWeek()]; } }, { "seq": "ddd", "expr": "[^\\s0-9]*", "str": function (e) { return t.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(); } }], r = function (e) { return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); };
|
|
419
423
|
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) {
|
|
420
424
|
function o(e) { return parseInt(e); }
|
|
421
425
|
return e.indexOf(t) === -1 ? null : { "findValue": function (n) {
|
|
422
|
-
for (var i = r(e), d = null,
|
|
423
|
-
var
|
|
424
|
-
|
|
426
|
+
for (var i = r(e), d = null, l = 0; l < a.length; l++) {
|
|
427
|
+
var s = (a[l].length, t === a[l].seq), u = a[l].expr;
|
|
428
|
+
s && (u = "(" + u + ")", d = a[l].transform), i = i.replace(a[l].seq, u);
|
|
425
429
|
}
|
|
426
430
|
i = "^" + i + "$";
|
|
427
431
|
try {
|
|
@@ -439,10 +443,10 @@ if ("undefined" == typeof DayPilot)
|
|
|
439
443
|
return a[t];
|
|
440
444
|
return null;
|
|
441
445
|
}, o = e.length <= 0, n = 0, i = []; !o;) {
|
|
442
|
-
var d = e.substring(n),
|
|
443
|
-
if (
|
|
444
|
-
var
|
|
445
|
-
u ? i.push(u) : i.push(
|
|
446
|
+
var d = e.substring(n), l = /%?(.)\1*/.exec(d);
|
|
447
|
+
if (l && l.length > 0) {
|
|
448
|
+
var s = l[0], u = r(s);
|
|
449
|
+
u ? i.push(u) : i.push(s), n += s.length, o = e.length <= n;
|
|
446
450
|
}
|
|
447
451
|
else
|
|
448
452
|
o = !0;
|
|
@@ -464,12 +468,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
464
468
|
var r = this.day.findValue(e), o = DayPilot.Date.fromYearMonthDay(t, a).daysInMonth();
|
|
465
469
|
if (r < 1 || r > o)
|
|
466
470
|
return null;
|
|
467
|
-
var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, d = this.seconds ? this.seconds.findValue(e) : 0,
|
|
471
|
+
var n = this.hours ? this.hours.findValue(e) : 0, i = this.minutes ? this.minutes.findValue(e) : 0, d = this.seconds ? this.seconds.findValue(e) : 0, l = this.ampm ? this.ampm.findValue(e) : null;
|
|
468
472
|
if (this.ampm && this.hours12) {
|
|
469
|
-
var
|
|
470
|
-
if (
|
|
473
|
+
var s = this.hours12.findValue(e);
|
|
474
|
+
if (s < 1 || s > 12)
|
|
471
475
|
return null;
|
|
472
|
-
n = "PM" ===
|
|
476
|
+
n = "PM" === l ? 12 === s ? 12 : s + 12 : 12 === s ? 0 : s;
|
|
473
477
|
}
|
|
474
478
|
if (n < 0 || n > 23)
|
|
475
479
|
return null;
|
|
@@ -481,7 +485,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
481
485
|
return u.setUTCFullYear(t, a - 1, r), u.setUTCHours(n), u.setUTCMinutes(i), u.setUTCSeconds(d), u.setUTCMilliseconds(0), new DayPilot.Date(u);
|
|
482
486
|
}, this.init();
|
|
483
487
|
};
|
|
484
|
-
DayPilot.
|
|
488
|
+
DayPilot.ColorUtil = {}, DayPilot.ColorUtil.hexToRgb = function (e) {
|
|
489
|
+
if (!/^#[0-9a-f]{6}$/i.test(e))
|
|
490
|
+
throw new DayPilot.Exception("Invalid color, only full hex color string accepted, eg. '#ffaaff'.");
|
|
491
|
+
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) };
|
|
492
|
+
}, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + t(e.r) + t(e.g) + t(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) {
|
|
485
493
|
var r = this;
|
|
486
494
|
this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
|
|
487
495
|
var o = {}, n = ["id", "text", "start", "end"];
|
|
@@ -512,7 +520,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
512
520
|
if (o === -1)
|
|
513
521
|
throw "Field name not found.";
|
|
514
522
|
return t[o];
|
|
515
|
-
}, this.client = {}, this.client.innerHTML = function (e) {
|
|
523
|
+
}, this.client = {}, this.client.innerHTML = function (e) {
|
|
524
|
+
if ("undefined" == typeof e) {
|
|
525
|
+
var t = r.cache || r.data, a = r.calendar && r.calendar.internal && r.calendar.internal.xssTextHtml;
|
|
526
|
+
return a ? a(t.text, t.html) : DayPilot.Util.escapeTextHtml(t.text, t.html);
|
|
527
|
+
}
|
|
528
|
+
r.data.html = e;
|
|
529
|
+
}, this.client.html = this.client.innerHTML, this.client.header = function (e) { return "undefined" == typeof e ? r.data.header : void (r.data.header = e); }, this.client.cssClass = function (e) {
|
|
530
|
+
return "undefined" == typeof e ? r.data.cssClass : void (r.data.cssClass = e);
|
|
531
|
+
}, this.client.toolTip = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.toolTip ? r.cache.toolTip : "undefined" != typeof r.data.toolTip ? r.data.toolTip : r.data.text : void (r.data.toolTip = e); }, this.client.barVisible = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.barHidden ? !r.cache.barHidden : r.calendar.durationBarVisible && !r.data.barHidden : void (r.data.barHidden = !e); }, this.client.backColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.backColor ? r.cache.backColor : "undefined" != typeof r.data.backColor ? r.data.backColor : r.calendar.eventBackColor : void (r.data.backColor = e); }, this.client.borderColor = function (e) { return "undefined" == typeof e ? r.cache && "undefined" != typeof r.cache.borderColor ? r.cache.borderColor : "undefined" != typeof r.data.borderColor ? r.data.borderColor : r.calendar.eventBorderColor : void (r.data.borderColor = e); }, this.client.moveEnabled = function (e) { return "undefined" == typeof e ? "Disabled" !== r.calendar.eventMoveHandling && !r.data.moveDisabled : void (r.data.moveDisabled = !e); }, this.client.resizeEnabled = function (e) { return "undefined" == typeof e ? "Disabled" !== r.calendar.eventResizeHandling && !r.data.resizeDisabled : void (r.data.resizeDisabled = !e); }, this.client.clickEnabled = function (e) { return "undefined" == typeof e ? "Disabled" !== r.calendar.eventClickHandling && !r.data.clickDisabled : void (r.data.clickDisabled = !e); }, this.toJSON = function (e) {
|
|
516
532
|
var t = {};
|
|
517
533
|
if (t.value = this.id(), t.id = this.id(), t.text = this.text(), t.start = this.start(), t.end = this.end(), t.tag = {}, r.calendar && r.calendar.tagFields)
|
|
518
534
|
for (var a = r.calendar.tagFields, o = 0; o < a.length; o++)
|
|
@@ -525,9 +541,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
525
541
|
function e(e) { return e < 10 ? "0" + e : e; }
|
|
526
542
|
function t(e) { return i.lastIndex = 0, i.test(e) ? '"' + e.replace(i, function (e) { var t = d[e]; return "string" == typeof t ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + e + '"'; }
|
|
527
543
|
function a(e, i) {
|
|
528
|
-
var d,
|
|
529
|
-
switch (m && "object" == typeof m && "function" == typeof m.toJSON2 ? m = m.toJSON2(e) : m && "object" == typeof m && "function" == typeof m.toJSON && !m.ignoreToJSON && (m = m.toJSON(e)),
|
|
530
|
-
"function" == typeof n && (m = n.call(i, e, m)), typeof m) {
|
|
544
|
+
var d, l, s, u, c, f = r, m = i[e];
|
|
545
|
+
switch (m && "object" == typeof m && "function" == typeof m.toJSON2 ? m = m.toJSON2(e) : m && "object" == typeof m && "function" == typeof m.toJSON && !m.ignoreToJSON && (m = m.toJSON(e)), "function" == typeof n && (m = n.call(i, e, m)), typeof m) {
|
|
531
546
|
case "string": return t(m);
|
|
532
547
|
case "number": return isFinite(m) ? String(m) : "null";
|
|
533
548
|
case "boolean":
|
|
@@ -538,15 +553,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
538
553
|
if (r += o, c = [], "number" == typeof m.length && !m.propertyIsEnumerable("length")) {
|
|
539
554
|
for (u = m.length, d = 0; d < u; d += 1)
|
|
540
555
|
c[d] = a(d, m) || "null";
|
|
541
|
-
return
|
|
556
|
+
return s = 0 === c.length ? "[]" : r ? "[\n" + r + c.join(",\n" + r) + "\n" + f + "]" : "[" + c.join(",") + "]", r = f, s;
|
|
542
557
|
}
|
|
543
558
|
if (n && "object" == typeof n)
|
|
544
559
|
for (u = n.length, d = 0; d < u; d += 1)
|
|
545
|
-
|
|
560
|
+
l = n[d], "string" == typeof l && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
|
|
546
561
|
else
|
|
547
|
-
for (
|
|
548
|
-
Object.hasOwnProperty.call(m,
|
|
549
|
-
return
|
|
562
|
+
for (l in m)
|
|
563
|
+
Object.hasOwnProperty.call(m, l) && (s = a(l, m), s && c.push(t(l) + (r ? ": " : ":") + s));
|
|
564
|
+
return s = 0 === c.length ? "{}" : r ? "{\n" + r + c.join(",\n" + r) + "\n" + f + "}" : "{" + c.join(",") + "}", r = f, s;
|
|
550
565
|
}
|
|
551
566
|
}
|
|
552
567
|
"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(); });
|
|
@@ -582,13 +597,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
582
597
|
n !== -1 && i.splice(n, 1);
|
|
583
598
|
}
|
|
584
599
|
}, t.getCellsAbove = function (e) {
|
|
585
|
-
for (var i = [], n = t.getColumn(e), s = e.parentNode,
|
|
586
|
-
for (
|
|
600
|
+
for (var i = [], n = t.getColumn(e), s = e.parentNode, a = null; s && a !== t.firstSelected;)
|
|
601
|
+
for (a = s.getElementsByTagName("td")[n], i.push(a), s = s.previousSibling; s && "TR" !== s.tagName;)
|
|
587
602
|
s = s.previousSibling;
|
|
588
603
|
return i;
|
|
589
604
|
}, t.getCellsBelow = function (e) {
|
|
590
|
-
for (var i = [], n = t.getColumn(e), s = e.parentNode,
|
|
591
|
-
for (
|
|
605
|
+
for (var i = [], n = t.getColumn(e), s = e.parentNode, a = null; s && a !== t.firstSelected;)
|
|
606
|
+
for (a = s.getElementsByTagName("td")[n], i.push(a), s = s.nextSibling; s && "TR" !== s.tagName;)
|
|
592
607
|
s = s.nextSibling;
|
|
593
608
|
return i;
|
|
594
609
|
}, t.getColumn = function (e) {
|
|
@@ -605,18 +620,18 @@ if ("undefined" == typeof DayPilot)
|
|
|
605
620
|
if (t.resizing) {
|
|
606
621
|
if (!t.resizingShadow)
|
|
607
622
|
return t.resizing.style.cursor = "default", document.body.style.cursor = "default", void (t.resizing = null);
|
|
608
|
-
var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4,
|
|
609
|
-
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,
|
|
623
|
+
var n = t.resizing.event, s = t.resizingShadow.clientHeight + 4, a = t.resizingShadow.offsetTop, l = t.resizing.dpBorder;
|
|
624
|
+
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);
|
|
610
625
|
}
|
|
611
626
|
else if (t.moving) {
|
|
612
627
|
if (!t.movingShadow)
|
|
613
628
|
return t.moving = null, void (document.body.style.cursor = "default");
|
|
614
|
-
var
|
|
629
|
+
var a = t.movingShadow.offsetTop;
|
|
615
630
|
t.deleteShadow(t.movingShadow);
|
|
616
631
|
var n = t.moving.event, o = t.movingShadow.column;
|
|
617
632
|
t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto";
|
|
618
633
|
var r = i || window.event;
|
|
619
|
-
n.calendar.b(n, o,
|
|
634
|
+
n.calendar.b(n, o, a, r);
|
|
620
635
|
}
|
|
621
636
|
else if (t.selecting && null !== t.topSelectedCell) {
|
|
622
637
|
var h = t.selecting.calendar;
|
|
@@ -631,26 +646,26 @@ if ("undefined" == typeof DayPilot)
|
|
|
631
646
|
if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
|
|
632
647
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
633
648
|
var s = this;
|
|
634
|
-
this.uniqueID = null, this.v = "
|
|
649
|
+
this.uniqueID = null, this.v = "2022.1.355-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.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", 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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
|
|
635
650
|
if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
636
651
|
return new Number(RegExp.$1) >= 10.5;
|
|
637
652
|
}
|
|
638
653
|
return !1;
|
|
639
|
-
}(), this.
|
|
654
|
+
}(), this.j = function () {
|
|
640
655
|
if (/AppleWebKit[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
641
656
|
return new Number(RegExp.$1) >= 522;
|
|
642
657
|
}
|
|
643
658
|
return !1;
|
|
644
|
-
}(), this.cleanSelection = this.clearSelection, this.
|
|
659
|
+
}(), this.cleanSelection = this.clearSelection, this.k = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.l(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.m = 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.l(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.n, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.o, 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.p(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.q(), e.r(), 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 = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e); }, this.s = function () { this.nav.top.dispose = this.dispose; }, this.n = function (e) { s.o(e.responseText); }, this.l = 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.t = function (e, t) {
|
|
645
660
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
646
661
|
i = i.parentNode;
|
|
647
662
|
var n = document.createElement("div");
|
|
648
|
-
n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = s.
|
|
649
|
-
var
|
|
650
|
-
return
|
|
651
|
-
}, this.
|
|
652
|
-
var
|
|
653
|
-
this.
|
|
663
|
+
n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = s.u("_shadow");
|
|
664
|
+
var a = document.createElement("div");
|
|
665
|
+
return a.className = s.u("_shadow_inner"), n.appendChild(a), i.firstChild.appendChild(n), n;
|
|
666
|
+
}, this.w = {}, this.w.locale = function () { var e = DayPilot.Locale.find(s.locale); return e ? e : DayPilot.Locale.US; }, this.w.timeFormat = function () { return "Auto" !== s.timeFormat ? s.timeFormat : this.locale().timeFormat; }, this.w.z = function () { return "Disabled" !== s.xssProtection; };
|
|
667
|
+
var a = this.w;
|
|
668
|
+
this.o = function (e, t) {
|
|
654
669
|
if (e && 0 === e.indexOf("$$$")) {
|
|
655
670
|
if (!window.console)
|
|
656
671
|
throw "Error received from the server side: " + e;
|
|
@@ -661,11 +676,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
661
676
|
return void (document.location.href = e.CallBackRedirect);
|
|
662
677
|
if ("None" === e.UpdateType)
|
|
663
678
|
return s.loadingStop(), void s.A();
|
|
664
|
-
if (s.
|
|
679
|
+
if (s.p(), "Full" === e.UpdateType && (s.columns = e.Columns, s.days = e.Days, s.startDate = new DayPilot.Date(e.StartDate), s.heightSpec = e.HeightSpec ? e.HeightSpec : s.heightSpec, s.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : s.businessBeginsHour, s.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : s.businessEndsHour, s.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : s.headerDateFormat, s.viewType = e.ViewType, s.backColor = e.BackColor ? e.BackColor : s.backColor, s.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : s.eventHeaderVisible, s.timeFormat = e.TimeFormat ? e.TimeFormat : s.timeFormat, s.locale = e.Locale ? e.Locale : s.locale, s.B()), e.Hashes)
|
|
665
680
|
for (var i in e.Hashes)
|
|
666
681
|
s.hashes[i] = e.Hashes[i];
|
|
667
682
|
s.events.list = e.Events, s.C(), s.D(), "Full" === e.UpdateType && (s.E(), s.F(), s.G(), s.H()), s.A(), s.I(), s.clearSelection(), s.afterRender(e.CallBackData, !0), s.loadingStop();
|
|
668
|
-
}, this.J = function () { return 24; }, this.K = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.L = function () { return 48; }, this.M = function () { return 2 === s.api; }, this.eventClickCallBack = function (e, t) { this.
|
|
683
|
+
}, this.J = function () { return 24; }, this.K = function () { return this.businessBeginsHour > this.businessEndsHour ? 24 - this.businessBeginsHour + this.businessEndsHour : this.businessEndsHour - this.businessBeginsHour; }, this.L = function () { return 48; }, this.M = function () { return 2 === s.api; }, this.eventClickCallBack = function (e, t) { this.m("EventClick", t, e); }, this.eventClickPostBack = function (e, t) { this.k("EventClick", t, e); }, this.N = function (e) {
|
|
669
684
|
var t = this, i = t.event;
|
|
670
685
|
if (s.M()) {
|
|
671
686
|
var n = {};
|
|
@@ -689,7 +704,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
689
704
|
break;
|
|
690
705
|
case "JavaScript": s.onEventClick(i);
|
|
691
706
|
}
|
|
692
|
-
}, this.eventDeleteCallBack = function (e, t) { this.
|
|
707
|
+
}, this.eventDeleteCallBack = function (e, t) { this.m("EventDelete", t, e); }, this.eventDeletePostBack = function (e, t) { this.k("EventDelete", t, e); }, this.P = function (e) {
|
|
693
708
|
if (s.M()) {
|
|
694
709
|
var t = {};
|
|
695
710
|
if (t.e = e, t.control = s, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventDelete && (s.O.apply(function () { s.onEventDelete(t); }), t.preventDefault.value))
|
|
@@ -721,65 +736,65 @@ if ("undefined" == typeof DayPilot)
|
|
|
721
736
|
if (!i)
|
|
722
737
|
throw "newEnd is null";
|
|
723
738
|
var s = {};
|
|
724
|
-
s.e = e, s.newStart = t, s.newEnd = i, this.
|
|
739
|
+
s.e = e, s.newStart = t, s.newEnd = i, this.m("EventResize", n, s);
|
|
725
740
|
}, this.eventResizePostBack = function (e, t, i, n) {
|
|
726
741
|
if (!t)
|
|
727
742
|
throw "newStart is null";
|
|
728
743
|
if (!i)
|
|
729
744
|
throw "newEnd is null";
|
|
730
745
|
var s = {};
|
|
731
|
-
s.e = e, s.newStart = t, s.newEnd = i, this.
|
|
746
|
+
s.e = e, s.newStart = t, s.newEnd = i, this.k("EventResize", n, s);
|
|
732
747
|
}, this.a = function (e, t, i, n) {
|
|
733
|
-
var
|
|
748
|
+
var a = 1, l = new Date, o = new Date, r = e.start(), h = e.end();
|
|
734
749
|
if ("top" === n) {
|
|
735
|
-
var c = r.getDatePart(), d = Math.floor((i -
|
|
736
|
-
|
|
750
|
+
var c = r.getDatePart(), d = Math.floor((i - a) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3;
|
|
751
|
+
l = c.addTime(v), o = e.end();
|
|
737
752
|
}
|
|
738
753
|
else if ("bottom" === n) {
|
|
739
|
-
var c = h.getDatePart(), d = Math.floor((i + t -
|
|
740
|
-
|
|
754
|
+
var c = h.getDatePart(), d = Math.floor((i + t - a) / s.cellHeight), u = 30 * d, v = 60 * u * 1e3;
|
|
755
|
+
l = r, o = c.addTime(v);
|
|
741
756
|
}
|
|
742
757
|
if (s.M()) {
|
|
743
758
|
var p = {};
|
|
744
|
-
if (p.e = e, p.control = s, p.newStart =
|
|
759
|
+
if (p.e = e, p.control = s, p.newStart = l, p.newEnd = o, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventResize && (s.O.apply(function () { s.onEventResize(p); }), p.preventDefault.value))
|
|
745
760
|
return;
|
|
746
761
|
switch (s.eventResizeHandling) {
|
|
747
762
|
case "PostBack":
|
|
748
|
-
s.eventResizePostBack(e,
|
|
763
|
+
s.eventResizePostBack(e, l, o);
|
|
749
764
|
break;
|
|
750
765
|
case "CallBack":
|
|
751
|
-
s.eventResizeCallBack(e,
|
|
766
|
+
s.eventResizeCallBack(e, l, o);
|
|
752
767
|
break;
|
|
753
|
-
case "Update": e.start(
|
|
768
|
+
case "Update": e.start(l), e.end(o), s.events.update(e);
|
|
754
769
|
}
|
|
755
770
|
"function" == typeof s.onEventResized && s.O.apply(function () { s.onEventResized(p); });
|
|
756
771
|
}
|
|
757
772
|
else
|
|
758
773
|
switch (s.eventResizeHandling) {
|
|
759
774
|
case "PostBack":
|
|
760
|
-
s.eventResizePostBack(e,
|
|
775
|
+
s.eventResizePostBack(e, l, o);
|
|
761
776
|
break;
|
|
762
777
|
case "CallBack":
|
|
763
|
-
s.eventResizeCallBack(e,
|
|
778
|
+
s.eventResizeCallBack(e, l, o);
|
|
764
779
|
break;
|
|
765
|
-
case "JavaScript": s.onEventResize(e,
|
|
780
|
+
case "JavaScript": s.onEventResize(e, l, o);
|
|
766
781
|
}
|
|
767
782
|
}, this.eventMovePostBack = function (e, t, i, n, s) {
|
|
768
783
|
if (!t)
|
|
769
784
|
throw "newStart is null";
|
|
770
785
|
if (!i)
|
|
771
786
|
throw "newEnd is null";
|
|
772
|
-
var
|
|
773
|
-
|
|
787
|
+
var a = {};
|
|
788
|
+
a.e = e, a.newStart = t, a.newEnd = i, this.k("EventMove", s, a);
|
|
774
789
|
}, this.eventMoveCallBack = function (e, t, i, n, s) {
|
|
775
790
|
if (!t)
|
|
776
791
|
throw "newStart is null";
|
|
777
792
|
if (!i)
|
|
778
793
|
throw "newEnd is null";
|
|
779
|
-
var
|
|
780
|
-
|
|
794
|
+
var a = {};
|
|
795
|
+
a.e = e, a.newStart = t, a.newEnd = i, this.m("EventMove", s, a);
|
|
781
796
|
}, this.b = function (e, t, i, n) {
|
|
782
|
-
var
|
|
797
|
+
var a = 1, l = Math.floor((i - a) / s.cellHeight), o = 30 * l * 60 * 1e3, r = e.start(), h = e.end(), c = new Date;
|
|
783
798
|
r instanceof DayPilot.Date && (r = r.toDate()), c.setTime(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()));
|
|
784
799
|
var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.columns[t], p = v.Start.getTime(), f = new Date;
|
|
785
800
|
f.setTime(p + o + d);
|
|
@@ -809,7 +824,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
809
824
|
break;
|
|
810
825
|
case "JavaScript": s.onEventMove(e, g, m, v.Value, !1);
|
|
811
826
|
}
|
|
812
|
-
}, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.
|
|
827
|
+
}, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.m("TimeRangeSelected", n, s); }, this.c = function (e, t) {
|
|
813
828
|
if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.M()) {
|
|
814
829
|
var i = {};
|
|
815
830
|
if (i.start = e, i.end = t, i.control = s, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.O.apply(function () { s.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
@@ -848,17 +863,17 @@ if ("undefined" == typeof DayPilot)
|
|
|
848
863
|
if (t[i] === e)
|
|
849
864
|
return i;
|
|
850
865
|
return -1;
|
|
851
|
-
}(),
|
|
852
|
-
if (
|
|
853
|
-
var
|
|
866
|
+
}(), a = s.columns[n];
|
|
867
|
+
if (a) {
|
|
868
|
+
var l = a.Start, o = s.getPixels(e.start, l).boxTop, r = s.getPixels(i.end, l).boxBottom, h = r - o, c = function () {
|
|
854
869
|
if (s.nav.activeSelection)
|
|
855
870
|
return s.nav.activeSelection;
|
|
856
871
|
var e = document.createElement("div");
|
|
857
872
|
e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%";
|
|
858
873
|
var t = document.createElement("div");
|
|
859
|
-
return t.setAttribute("unselectable", "on"), t.className = s.
|
|
874
|
+
return t.setAttribute("unselectable", "on"), t.className = s.u("_shadow_inner"), e.appendChild(t), s.nav.events.rows[0].cells[n].selection.appendChild(e), s.elements.selection.push(e), s.nav.activeSelection = e, e;
|
|
860
875
|
}();
|
|
861
|
-
c.className = s.
|
|
876
|
+
c.className = s.u("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
|
|
862
877
|
}
|
|
863
878
|
}();
|
|
864
879
|
}, this.S = function (e) {
|
|
@@ -902,8 +917,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
902
917
|
var i = [];
|
|
903
918
|
return i.isFree = function (e, t) {
|
|
904
919
|
for (var i = e + t - 1, n = this.length, s = 0; s < n; s++) {
|
|
905
|
-
var
|
|
906
|
-
if (!(i <
|
|
920
|
+
var a = this[s];
|
|
921
|
+
if (!(i < a.part.top || e > a.part.top + a.part.height - 1))
|
|
907
922
|
return !1;
|
|
908
923
|
}
|
|
909
924
|
return !0;
|
|
@@ -918,8 +933,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
918
933
|
var i = [];
|
|
919
934
|
return i.isFree = function (e, t) {
|
|
920
935
|
for (var i = e + t - 1, n = this.length, s = 0; s < n; s++) {
|
|
921
|
-
var
|
|
922
|
-
if (!(i <
|
|
936
|
+
var a = this[s];
|
|
937
|
+
if (!(i < a.part.top || e > a.part.top + a.part.height - 1))
|
|
923
938
|
return !1;
|
|
924
939
|
}
|
|
925
940
|
return !0;
|
|
@@ -932,16 +947,16 @@ if ("undefined" == typeof DayPilot)
|
|
|
932
947
|
i = 1;
|
|
933
948
|
break;
|
|
934
949
|
case "Week":
|
|
935
|
-
i = 7, t = t.firstDayOfWeek(
|
|
950
|
+
i = 7, t = t.firstDayOfWeek(a.locale().weekStarts);
|
|
936
951
|
break;
|
|
937
952
|
case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
|
|
938
953
|
}
|
|
939
954
|
for (var n = 0; n < i; n++) {
|
|
940
|
-
var
|
|
941
|
-
o.Start = t.addDays(n), o.Name = o.Start.toString(
|
|
955
|
+
var l = s.headerDateFormat ? s.headerDateFormat : a.locale().datePattern, o = {};
|
|
956
|
+
o.Start = t.addDays(n), o.Name = o.Start.toString(l, a.locale()), o.InnerHTML = o.Name, e.push(o);
|
|
942
957
|
}
|
|
943
958
|
return e;
|
|
944
|
-
}, this.visibleStart = function () { return this.columns[0].Start; }, this.visibleEnd = function () { var e = this.columns.length - 1; return this.columns[e].Start.addDays(1); }, this.
|
|
959
|
+
}, this.visibleStart = function () { return this.columns[0].Start; }, this.visibleEnd = function () { var e = this.columns.length - 1; return this.columns[e].Start.addDays(1); }, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
|
|
945
960
|
if (this.elements.events)
|
|
946
961
|
for (var e = 0; e < this.elements.events.length; e++) {
|
|
947
962
|
var t = this.elements.events[e], i = t.event;
|
|
@@ -953,18 +968,18 @@ if ("undefined" == typeof DayPilot)
|
|
|
953
968
|
}
|
|
954
969
|
this.elements.events = [];
|
|
955
970
|
}, this.Y = function (e) {
|
|
956
|
-
var i = e.cache || e.data, n = this.nav.events,
|
|
957
|
-
|
|
971
|
+
var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
|
|
972
|
+
a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.N, a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (e) {
|
|
958
973
|
var i = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
|
|
959
974
|
if ("undefined" != typeof t) {
|
|
960
|
-
var n = DayPilot.mo3(
|
|
975
|
+
var n = DayPilot.mo3(a, e);
|
|
961
976
|
if (n && !t.resizing && !t.moving) {
|
|
962
|
-
|
|
963
|
-
var
|
|
964
|
-
n.y <= i && "Disabled" !== s.eventResizeHandling ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - n.y <= 5 && "Disabled" !== s.eventResizeHandling ?
|
|
977
|
+
a.deleteIcon && (a.deleteIcon.style.display = "");
|
|
978
|
+
var l = this.isLast;
|
|
979
|
+
n.y <= i && "Disabled" !== s.eventResizeHandling ? (this.style.cursor = "n-resize", this.dpBorder = "top") : this.offsetHeight - n.y <= 5 && "Disabled" !== s.eventResizeHandling ? l ? (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");
|
|
965
980
|
}
|
|
966
981
|
}
|
|
967
|
-
},
|
|
982
|
+
}, a.onmousedown = function (e) {
|
|
968
983
|
e = e || window.event;
|
|
969
984
|
var i = e.which || e.button;
|
|
970
985
|
if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== i) {
|
|
@@ -972,29 +987,29 @@ if ("undefined" == typeof DayPilot)
|
|
|
972
987
|
t.moving = this, t.moving.event = this.event;
|
|
973
988
|
var n = t.moving.helper = {};
|
|
974
989
|
n.oldColumn = s.columns[this.data.part.dayIndex].Value, t.originalMouse = DayPilot.mc(e), t.originalTop = this.offsetTop;
|
|
975
|
-
var
|
|
976
|
-
|
|
990
|
+
var a = DayPilot.mo3(this, e);
|
|
991
|
+
a ? t.moveOffsetY = a.y : t.moveOffsetY = 0, s.nav.top.style.cursor = "move";
|
|
977
992
|
}
|
|
978
993
|
}
|
|
979
994
|
else
|
|
980
995
|
t.resizing = this, t.originalMouse = DayPilot.mc(e), t.originalHeight = this.offsetHeight, t.originalTop = this.offsetTop, s.nav.top.style.cursor = this.style.cursor;
|
|
981
996
|
return !1;
|
|
982
997
|
};
|
|
983
|
-
var
|
|
984
|
-
if (
|
|
998
|
+
var l = document.createElement("div");
|
|
999
|
+
if (l.setAttribute("unselectable", "on"), l.className = s.u("_event_inner"), l.innerHTML = e.client.html(), "darker" === i.borderColor && i.backColor ? l.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : l.style.borderColor = i.borderColor, i.backColor && (l.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (l.style.filter = "")), i.fontColor && (l.style.color = i.fontColor), a.appendChild(l), e.client.barVisible()) {
|
|
985
1000
|
var o = e.part.height - 2, r = 100 * e.part.barTop / o, h = Math.ceil(100 * e.part.barHeight / o), c = document.createElement("div");
|
|
986
|
-
c.setAttribute("unselectable", "on"), c.className = this.
|
|
1001
|
+
c.setAttribute("unselectable", "on"), c.className = this.u("_event_bar"), c.style.position = "absolute", i.barBackColor && (c.style.backgroundColor = i.barBackColor);
|
|
987
1002
|
var d = document.createElement("div");
|
|
988
|
-
d.setAttribute("unselectable", "on"), d.className = this.
|
|
1003
|
+
d.setAttribute("unselectable", "on"), d.className = this.u("_event_bar_inner"), d.style.top = r + "%", 0 < h && h <= 1 ? d.style.height = "1px" : d.style.height = h + "%", i.barColor && (d.style.backgroundColor = i.barColor), c.appendChild(d), a.appendChild(c);
|
|
989
1004
|
}
|
|
990
1005
|
if ("Disabled" !== s.eventDeleteHandling) {
|
|
991
1006
|
var u = document.createElement("div");
|
|
992
|
-
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.
|
|
1007
|
+
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.u("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
|
|
993
1008
|
}
|
|
994
1009
|
if (n.rows[0].cells[e.part.dayIndex]) {
|
|
995
|
-
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(
|
|
1010
|
+
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.Z(a);
|
|
996
1011
|
}
|
|
997
|
-
s.elements.events.push(
|
|
1012
|
+
s.elements.events.push(a);
|
|
998
1013
|
}, this.Z = function (e) {
|
|
999
1014
|
for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
1000
1015
|
try {
|
|
@@ -1008,50 +1023,32 @@ if ("undefined" == typeof DayPilot)
|
|
|
1008
1023
|
if (t.blocks)
|
|
1009
1024
|
for (var i = 0; i < t.blocks.length; i++)
|
|
1010
1025
|
for (var n = t.blocks[i], s = 0; s < n.lines.length; s++)
|
|
1011
|
-
for (var
|
|
1012
|
-
var o = l
|
|
1026
|
+
for (var a = n.lines[s], l = 0; l < a.length; l++) {
|
|
1027
|
+
var o = a[l];
|
|
1013
1028
|
o.part.width = 100 / n.lines.length, o.part.left = o.part.width * s;
|
|
1014
1029
|
var r = s === n.lines.length - 1;
|
|
1015
1030
|
r || (o.part.width = 1.5 * o.part.width), this.Y(o);
|
|
1016
1031
|
}
|
|
1017
1032
|
}
|
|
1018
|
-
}, this.$ = function () { this.nav.top.innerHTML = "",
|
|
1019
|
-
var e = document.createElement("div");
|
|
1020
|
-
e.style.zoom = 1, e.style.position = "relative";
|
|
1021
|
-
var t = document.createElement("table");
|
|
1022
|
-
t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute";
|
|
1023
|
-
var i, n = t.insertRow(-1);
|
|
1024
|
-
if (i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ca(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none", this.f) {
|
|
1025
|
-
var s = document.createElement("div");
|
|
1026
|
-
s.style.position = "relative", i.appendChild(s), s.appendChild(this.da()), s.appendChild(this.ea());
|
|
1027
|
-
}
|
|
1028
|
-
else
|
|
1029
|
-
i.appendChild(this.da());
|
|
1030
|
-
return e.appendChild(t), this.nav.zoom = e, e;
|
|
1031
|
-
}, this.da = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.f || (e.style.borderLeft = "1px solid " + this.borderColor), this.nav.main = e, this.nav.events = e, e; }, this.ea = function () {
|
|
1033
|
+
}, this.$ = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this._() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.aa(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.ba(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ca(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.ba = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ca(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.da()), s.appendChild(this.ea()), e.appendChild(t), this.nav.zoom = e, e; }, this.da = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.ea = function () {
|
|
1032
1034
|
var e = document.createElement("table");
|
|
1033
1035
|
e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
|
|
1034
|
-
for (var t = this.columns, i = t.length, n = e.insertRow(-1),
|
|
1035
|
-
var
|
|
1036
|
-
|
|
1036
|
+
for (var t = this.columns, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
|
|
1037
|
+
var l = n.insertCell(-1);
|
|
1038
|
+
l.style.padding = "0px", l.style.border = "0px none", l.style.height = "0px", l.style.overflow = "visible", s.rtl || (l.style.textAlign = "left");
|
|
1037
1039
|
var o = document.createElement("div");
|
|
1038
|
-
o.style.marginRight = s.columnMarginRight + "px", o.style.position = "relative", o.style.height = "1px",
|
|
1040
|
+
o.style.marginRight = s.columnMarginRight + "px", o.style.position = "relative", o.style.height = "1px", o.style.marginTop = "-1px";
|
|
1039
1041
|
var r = document.createElement("div");
|
|
1040
|
-
|
|
1042
|
+
l.selection = r, l.appendChild(o), l.appendChild(r);
|
|
1041
1043
|
}
|
|
1042
1044
|
return e;
|
|
1043
1045
|
}, this.ca = function () {
|
|
1044
1046
|
var e = document.createElement("table");
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
var i = t.insertCell(-1);
|
|
1049
|
-
i.style.padding = "0px", i.style.border = "0px none";
|
|
1050
|
-
}
|
|
1051
|
-
for (var n = 24, s = 0; s < n; s++)
|
|
1052
|
-
this.fa(e, s);
|
|
1047
|
+
e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
|
|
1048
|
+
for (var t = 24, i = 0; i < t; i++)
|
|
1049
|
+
this.fa(e, i);
|
|
1053
1050
|
return e;
|
|
1054
|
-
}, this.fa = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var s = n.insertCell(-1); s.valign = "bottom", s.unselectable = "on",
|
|
1051
|
+
}, this.fa = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var s = n.insertCell(-1); s.valign = "bottom", s.unselectable = "on", s.style.cursor = "default", s.style.padding = "0px", s.style.border = "0px none"; var l = document.createElement("div"); l.style.position = "relative", l.className = this.u("_rowheader"), l.style.width = this.hourWidth + "px", l.style.height = i + "px", l.style.overflow = "hidden", l.unselectable = "on"; var o = document.createElement("div"); o.className = this.u("_rowheader_inner"), o.unselectable = "on"; var r = document.createElement("div"); r.unselectable = "on"; var h = this.startDate.addHours(t), c = h.getHours(), d = c < 12, u = a.timeFormat(); "Clock12Hours" === u && (c %= 12, 0 === c && (c = 12)), r.innerHTML = c; var v = document.createElement("span"); v.unselectable = "on", v.className = this.u("_rowheader_minutes"); var p; p = "Clock12Hours" === u ? d ? "AM" : "PM" : "00", v.innerHTML = p, r.appendChild(v), o.appendChild(r), l.appendChild(o), s.appendChild(l); }, this._ = function () {
|
|
1055
1052
|
switch (this.heightSpec) {
|
|
1056
1053
|
case "Full": return 48 * this.cellHeight;
|
|
1057
1054
|
case "BusinessHours":
|
|
@@ -1071,28 +1068,23 @@ if ("undefined" == typeof DayPilot)
|
|
|
1071
1068
|
}
|
|
1072
1069
|
}, this.aa = function () {
|
|
1073
1070
|
var e = document.createElement("div");
|
|
1074
|
-
|
|
1071
|
+
e.style.overflow = "auto";
|
|
1075
1072
|
var t = document.createElement("table");
|
|
1076
1073
|
t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
|
|
1077
1074
|
var i = t.insertRow(-1), n = i.insertCell(-1);
|
|
1078
1075
|
n.style.padding = "0px", n.style.border = "0px none";
|
|
1079
1076
|
var s = this.ha();
|
|
1080
|
-
n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%",
|
|
1081
|
-
var
|
|
1082
|
-
if (
|
|
1083
|
-
n = i.insertCell(-1), n.unselectable = "on"
|
|
1084
|
-
var
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
o.className = this.w("_cornerright_inner"), a.appendChild(o);
|
|
1089
|
-
}
|
|
1090
|
-
else
|
|
1091
|
-
;
|
|
1092
|
-
n.appendChild(a), this.nav.cornerRight = a;
|
|
1077
|
+
n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%", n.valign = "top", n.style.position = "relative", n.style.padding = "0px", n.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
|
|
1078
|
+
var a = "hidden" !== this.nav.scroll.style.overflow;
|
|
1079
|
+
if (n.appendChild(this.nav.header), a) {
|
|
1080
|
+
n = i.insertCell(-1), n.unselectable = "on";
|
|
1081
|
+
var l = document.createElement("div");
|
|
1082
|
+
l.unselectable = "on", l.style.position = "relative", l.style.width = "16px", l.style.height = this.headerHeight + "px", l.className = this.u("_cornerright");
|
|
1083
|
+
var o = document.createElement("div");
|
|
1084
|
+
o.className = this.u("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
|
|
1093
1085
|
}
|
|
1094
1086
|
return e.appendChild(t), e;
|
|
1095
|
-
}, this.ha = function () { var e = document.createElement("div"); e.style.position = "relative",
|
|
1087
|
+
}, this.ha = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
|
|
1096
1088
|
var e = this.nav.main;
|
|
1097
1089
|
e.root = null, e.onmouseup = null;
|
|
1098
1090
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1102,49 +1094,31 @@ if ("undefined" == typeof DayPilot)
|
|
|
1102
1094
|
}
|
|
1103
1095
|
this.fasterDispose || DayPilot.pu(e);
|
|
1104
1096
|
}, this.F = function () {
|
|
1105
|
-
var e = this.nav.main, i = 18e5, n = this.L(),
|
|
1106
|
-
for (e && this.
|
|
1097
|
+
var e = this.nav.main, i = 18e5, n = this.L(), a = s.columns;
|
|
1098
|
+
for (e && this.q(); e && e.rows && e.rows.length > 0;)
|
|
1107
1099
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1108
1100
|
this.tableCreated = !0;
|
|
1109
|
-
var a =
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
var u = document.createElement("div");
|
|
1119
|
-
u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
if (!this.f) {
|
|
1123
|
-
var r = e.insertRow(-1);
|
|
1124
|
-
r.style.backgroundColor = "white";
|
|
1125
|
-
for (var h = 0; h < a; h++) {
|
|
1126
|
-
var c = r.insertCell(-1);
|
|
1127
|
-
c.style.padding = "0px", c.style.border = "0px none", c.style.height = "1px", c.style.overflow = "visible", c.style.width = 100 / l.length + "%";
|
|
1128
|
-
var d = document.createElement("div");
|
|
1129
|
-
d.style.display = "block", d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.fontSize = "1px", d.style.lineHeight = "1.2", d.style.marginTop = "-1px", c.appendChild(d);
|
|
1130
|
-
}
|
|
1101
|
+
for (var l = a.length, o = this.nav.events; o && o.rows && o.rows.length > 0;)
|
|
1102
|
+
this.fasterDispose || DayPilot.pu(o.rows[0]), o.deleteRow(0);
|
|
1103
|
+
for (var l = a.length, r = o.insertRow(-1), h = 0; h < l; h++) {
|
|
1104
|
+
var c = r.insertCell(-1);
|
|
1105
|
+
c.style.padding = "0px", c.style.border = "0px none", c.style.height = "0px", c.style.overflow = "visible", s.rtl || (c.style.textAlign = "left");
|
|
1106
|
+
var d = document.createElement("div");
|
|
1107
|
+
d.style.marginRight = s.columnMarginRight + "px", d.style.position = "relative", d.style.height = "1px", d.style.marginTop = "-1px";
|
|
1108
|
+
var u = document.createElement("div");
|
|
1109
|
+
u.style.position = "relative", c.selection = u, c.appendChild(d), c.appendChild(u);
|
|
1131
1110
|
}
|
|
1132
1111
|
for (var v = 0; v < n; v++) {
|
|
1133
|
-
var r =
|
|
1112
|
+
var r = e.insertRow(-1);
|
|
1134
1113
|
r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
|
|
1135
|
-
for (var h = 0; h <
|
|
1114
|
+
for (var h = 0; h < l; h++) {
|
|
1136
1115
|
var p = this.columns[h], c = r.insertCell(-1);
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
f.setAttribute("unselectable", "on"), f.className = this.w("_cell_inner"), d.appendChild(f), c.appendChild(d);
|
|
1144
|
-
}
|
|
1145
|
-
else
|
|
1146
|
-
;
|
|
1147
|
-
c.appendChild(d);
|
|
1116
|
+
c.start = p.Start.addTime(v * i), c.end = c.start.addTime(i), c.onmousedown = this.Q, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
|
|
1117
|
+
var d = document.createElement("div");
|
|
1118
|
+
d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.u("_cell");
|
|
1119
|
+
this.ia(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
|
|
1120
|
+
var f = document.createElement("div");
|
|
1121
|
+
f.setAttribute("unselectable", "on"), f.className = this.u("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
|
|
1148
1122
|
}
|
|
1149
1123
|
}
|
|
1150
1124
|
e.onmouseup = this.T, e.root = this, s.nav.scrollable.onmousemove = function (e) {
|
|
@@ -1153,28 +1127,29 @@ if ("undefined" == typeof DayPilot)
|
|
|
1153
1127
|
s.coords = DayPilot.mo3(i, e);
|
|
1154
1128
|
var n = DayPilot.mc(e);
|
|
1155
1129
|
if (t.resizing) {
|
|
1156
|
-
t.resizingShadow || (t.resizingShadow = s.
|
|
1157
|
-
var
|
|
1130
|
+
t.resizingShadow || (t.resizingShadow = s.t(t.resizing, !1, s.shadow));
|
|
1131
|
+
var a = s.cellHeight, l = 1, o = n.y - t.originalMouse.y;
|
|
1158
1132
|
if ("bottom" === t.resizing.dpBorder) {
|
|
1159
|
-
var r = Math.floor((t.originalHeight + t.originalTop + o +
|
|
1160
|
-
r <
|
|
1133
|
+
var r = Math.floor((t.originalHeight + t.originalTop + o + a / 2) / a) * a - t.originalTop + l;
|
|
1134
|
+
r < a && (r = a);
|
|
1161
1135
|
var h = s.nav.main.clientHeight;
|
|
1162
1136
|
t.originalTop + r > h && (r = h - t.originalTop), t.resizingShadow.style.height = r + "px";
|
|
1163
1137
|
}
|
|
1164
1138
|
else if ("top" === t.resizing.dpBorder) {
|
|
1165
|
-
var c = Math.floor((t.originalTop + o -
|
|
1166
|
-
c <
|
|
1139
|
+
var c = Math.floor((t.originalTop + o - l + a / 2) / a) * a + l;
|
|
1140
|
+
c < l && (c = l), c > t.originalTop + t.originalHeight - a && (c = t.originalTop + t.originalHeight - a);
|
|
1167
1141
|
var r = t.originalHeight - (c - t.originalTop);
|
|
1168
|
-
r <
|
|
1142
|
+
r < a ? r = a : t.resizingShadow.style.top = c + "px",
|
|
1143
|
+
t.resizingShadow.style.height = r + "px";
|
|
1169
1144
|
}
|
|
1170
1145
|
}
|
|
1171
1146
|
else if (t.moving) {
|
|
1172
|
-
if (t.movingShadow || (t.movingShadow = s.
|
|
1147
|
+
if (t.movingShadow || (t.movingShadow = s.t(t.moving, !s.g, s.shadow), t.movingShadow.style.width = t.movingShadow.parentNode.offsetWidth + 1 + "px"), !s.coords)
|
|
1173
1148
|
return;
|
|
1174
|
-
var
|
|
1175
|
-
d || (d =
|
|
1176
|
-
var c = Math.floor((s.coords.y - d -
|
|
1177
|
-
c <
|
|
1149
|
+
var a = s.cellHeight, l = 1, d = t.moveOffsetY;
|
|
1150
|
+
d || (d = a / 2);
|
|
1151
|
+
var c = Math.floor((s.coords.y - d - l + a / 2) / a) * a + l;
|
|
1152
|
+
c < l && (c = l);
|
|
1178
1153
|
var u = s.nav.events, h = s.nav.main.clientHeight, v = parseInt(t.movingShadow.style.height);
|
|
1179
1154
|
c + v > h && (c = h - v), t.movingShadow.parentNode.style.display = "none", t.movingShadow.style.top = c + "px", t.movingShadow.parentNode.style.display = "";
|
|
1180
1155
|
var p = u.clientWidth / u.rows[0].cells.length, f = Math.floor((s.coords.x - 45) / p);
|
|
@@ -1185,7 +1160,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1185
1160
|
n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.R();
|
|
1186
1161
|
}
|
|
1187
1162
|
}, s.nav.scrollable.style.display = "";
|
|
1188
|
-
}, this.ia = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.
|
|
1163
|
+
}, this.ia = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.r = function () {
|
|
1189
1164
|
var e = this.nav.header;
|
|
1190
1165
|
if (e && e.rows)
|
|
1191
1166
|
for (var t = 0; t < e.rows.length; t++)
|
|
@@ -1195,17 +1170,17 @@ if ("undefined" == typeof DayPilot)
|
|
|
1195
1170
|
}
|
|
1196
1171
|
this.fasterDispose || DayPilot.pu(e);
|
|
1197
1172
|
}, this.ja = function (e) {
|
|
1198
|
-
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.columns, n = i.length,
|
|
1199
|
-
var
|
|
1200
|
-
o.data =
|
|
1173
|
+
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.columns, n = i.length, a = 0; a < n; a++) {
|
|
1174
|
+
var l = i[a], o = e ? t.insertCell(-1) : t.cells[a];
|
|
1175
|
+
o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px";
|
|
1201
1176
|
var r = e ? document.createElement("div") : o.firstChild;
|
|
1202
1177
|
if (e) {
|
|
1203
|
-
r.unselectable = "on", r.style.MozUserSelect = "none", r.style.backgroundColor =
|
|
1178
|
+
r.unselectable = "on", r.style.MozUserSelect = "none", r.style.backgroundColor = l.BackColor, r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
|
|
1204
1179
|
var h = document.createElement("div");
|
|
1205
|
-
|
|
1180
|
+
h.className = s.u("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
|
|
1206
1181
|
}
|
|
1207
1182
|
var h = r.firstChild;
|
|
1208
|
-
h.innerHTML =
|
|
1183
|
+
h.innerHTML = l.InnerHTML;
|
|
1209
1184
|
}
|
|
1210
1185
|
}, this.ka = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
|
|
1211
1186
|
var e = this.nav.header, t = !0, i = this.columns;
|
|
@@ -1213,7 +1188,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1213
1188
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1214
1189
|
this.headerCreated = !0;
|
|
1215
1190
|
this.ja(t);
|
|
1216
|
-
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.
|
|
1191
|
+
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.la = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.ma(); }); var t = "undefined" != typeof this.na.scrollpos ? this.na.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.oa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && e > 0 && (t.style.width = e + "px"); }, this.pa = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
|
|
1217
1192
|
var t = null;
|
|
1218
1193
|
if (e instanceof DayPilot.Event)
|
|
1219
1194
|
t = e.data;
|
|
@@ -1256,14 +1231,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
1256
1231
|
var n = DayPilot.indexOf(s.events.list, t);
|
|
1257
1232
|
s.events.list.splice(n, 1), s.update(), s.O.notify();
|
|
1258
1233
|
}, this.events.load = function (e, t, i) {
|
|
1259
|
-
var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); },
|
|
1260
|
-
var i,
|
|
1234
|
+
var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, a = function (e) {
|
|
1235
|
+
var i, a = e.request;
|
|
1261
1236
|
try {
|
|
1262
|
-
i = JSON.parse(
|
|
1237
|
+
i = JSON.parse(a.responseText);
|
|
1263
1238
|
}
|
|
1264
1239
|
catch (e) {
|
|
1265
|
-
var
|
|
1266
|
-
return
|
|
1240
|
+
var l = {};
|
|
1241
|
+
return l.exception = e, void n(l);
|
|
1267
1242
|
}
|
|
1268
1243
|
if (DayPilot.isArray(i)) {
|
|
1269
1244
|
var o = {};
|
|
@@ -1273,15 +1248,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
1273
1248
|
}
|
|
1274
1249
|
};
|
|
1275
1250
|
if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
|
|
1276
|
-
DayPilot.Http.ajax({ "method": "POST", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success":
|
|
1251
|
+
DayPilot.Http.ajax({ "method": "POST", "data": { "start": s.visibleStart().toString(), "end": s.visibleEnd().toString() }, "url": e, "success": a, "error": n });
|
|
1277
1252
|
else {
|
|
1278
|
-
var
|
|
1279
|
-
|
|
1253
|
+
var l = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
|
|
1254
|
+
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
|
|
1280
1255
|
}
|
|
1281
|
-
}, this.update = function (e) { s.ra(), s.sa(
|
|
1256
|
+
}, this.update = function (e) { s.ra(e), s.sa(), s.p(), s.nav.top.style.cursor = "auto"; s.B(), s.E(), s.F(), s.G(), s.H(), s.ga(), s.ta(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide(); }, this.ua = null, this.ra = function (e) {
|
|
1282
1257
|
if (e) {
|
|
1283
1258
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } } };
|
|
1284
|
-
this.
|
|
1259
|
+
this.ua = t;
|
|
1285
1260
|
for (var i in e)
|
|
1286
1261
|
if (t[i]) {
|
|
1287
1262
|
var n = t[i];
|
|
@@ -1290,13 +1265,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
1290
1265
|
else
|
|
1291
1266
|
s[i] = e[i];
|
|
1292
1267
|
}
|
|
1293
|
-
}, this.
|
|
1294
|
-
var e = this.
|
|
1268
|
+
}, this.va = function () {
|
|
1269
|
+
var e = this.ua;
|
|
1295
1270
|
for (var t in e) {
|
|
1296
1271
|
var i = e[t];
|
|
1297
1272
|
i.postInit && i.postInit();
|
|
1298
1273
|
}
|
|
1299
|
-
}, this.
|
|
1274
|
+
}, this.wa = function () {
|
|
1300
1275
|
if (this.id && this.id.tagName)
|
|
1301
1276
|
this.nav.top = this.id;
|
|
1302
1277
|
else {
|
|
@@ -1305,71 +1280,71 @@ if ("undefined" == typeof DayPilot)
|
|
|
1305
1280
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1306
1281
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1307
1282
|
}
|
|
1308
|
-
}, this.
|
|
1309
|
-
var t = this.
|
|
1283
|
+
}, this.xa = {}, this.xa.events = [], this.ya = function (e) {
|
|
1284
|
+
var t = this.xa.events, i = this.events.list[e], n = {};
|
|
1310
1285
|
for (var s in i)
|
|
1311
1286
|
n[s] = i[s];
|
|
1312
1287
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
1313
|
-
var
|
|
1314
|
-
|
|
1288
|
+
var a = {};
|
|
1289
|
+
a.data = n, this.onBeforeEventRender(a);
|
|
1315
1290
|
}
|
|
1316
1291
|
t[e] = n;
|
|
1317
1292
|
}, this.C = function () {
|
|
1318
1293
|
var e = this.events.list;
|
|
1319
|
-
if (s.
|
|
1294
|
+
if (s.xa.events = [], e) {
|
|
1320
1295
|
var t = e.length, i = 864e5;
|
|
1321
1296
|
this.cache.pixels = {};
|
|
1322
1297
|
var n = [];
|
|
1323
1298
|
this.scrollLabels = [], this.minStart = 1e4, this.maxEnd = 0;
|
|
1324
|
-
for (var
|
|
1325
|
-
var
|
|
1326
|
-
|
|
1299
|
+
for (var a = 0; a < t; a++) {
|
|
1300
|
+
var l = e[a];
|
|
1301
|
+
l.start = new DayPilot.Date(l.start), l.end = new DayPilot.Date(l.end);
|
|
1327
1302
|
}
|
|
1328
1303
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1329
|
-
for (var
|
|
1330
|
-
this.
|
|
1331
|
-
for (var
|
|
1304
|
+
for (var a = 0; a < t; a++)
|
|
1305
|
+
this.ya(a);
|
|
1306
|
+
for (var a = 0; a < this.columns.length; a++) {
|
|
1332
1307
|
var o = {};
|
|
1333
1308
|
o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
|
|
1334
|
-
var r = this.columns[
|
|
1309
|
+
var r = this.columns[a];
|
|
1335
1310
|
r.events = [], r.lines = [], r.blocks = [];
|
|
1336
1311
|
for (var h = new DayPilot.Date(r.Start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
|
|
1337
1312
|
if (!n[v]) {
|
|
1338
|
-
var
|
|
1313
|
+
var l = e[v], p = l.start, f = l.end, g = p.getTime(), m = f.getTime();
|
|
1339
1314
|
if (!(m < g)) {
|
|
1340
1315
|
var y = !(m <= c || g >= u);
|
|
1341
1316
|
if (y) {
|
|
1342
|
-
var b = new DayPilot.Event(
|
|
1343
|
-
b.part.dayIndex =
|
|
1344
|
-
var
|
|
1345
|
-
if (
|
|
1317
|
+
var b = new DayPilot.Event(l, s);
|
|
1318
|
+
b.part.dayIndex = a, b.part.start = c < g ? l.start : h, b.part.end = u > m ? l.end : d;
|
|
1319
|
+
var C = this.getPixels(b.part.start, r.Start), w = this.getPixels(b.part.end, r.Start), D = C.top, S = w.top;
|
|
1320
|
+
if (D === S && (C.cut || w.cut))
|
|
1346
1321
|
continue;
|
|
1347
|
-
var x =
|
|
1348
|
-
b.part.top = Math.floor(
|
|
1322
|
+
var x = w.boxBottom;
|
|
1323
|
+
b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
|
|
1349
1324
|
var p = b.part.top, f = b.part.top + b.part.height;
|
|
1350
|
-
p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.
|
|
1325
|
+
p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.xa.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
|
|
1351
1326
|
}
|
|
1352
1327
|
}
|
|
1353
1328
|
}
|
|
1354
1329
|
}
|
|
1355
|
-
for (var
|
|
1356
|
-
var r = this.columns[
|
|
1357
|
-
r.events.sort(this.
|
|
1330
|
+
for (var a = 0; a < this.columns.length; a++) {
|
|
1331
|
+
var r = this.columns[a];
|
|
1332
|
+
r.events.sort(this.za);
|
|
1358
1333
|
for (var v = 0; v < r.events.length; v++) {
|
|
1359
|
-
var
|
|
1360
|
-
r.putIntoBlock(
|
|
1334
|
+
var l = r.events[v];
|
|
1335
|
+
r.putIntoBlock(l);
|
|
1361
1336
|
}
|
|
1362
1337
|
for (var v = 0; v < r.blocks.length; v++) {
|
|
1363
1338
|
var k = r.blocks[v];
|
|
1364
|
-
k.events.sort(this.
|
|
1339
|
+
k.events.sort(this.za);
|
|
1365
1340
|
for (var H = 0; H < k.events.length; H++) {
|
|
1366
|
-
var
|
|
1367
|
-
k.putIntoLine(
|
|
1341
|
+
var l = k.events[H];
|
|
1342
|
+
k.putIntoLine(l);
|
|
1368
1343
|
}
|
|
1369
1344
|
}
|
|
1370
1345
|
}
|
|
1371
1346
|
}
|
|
1372
|
-
}, this.
|
|
1347
|
+
}, this.za = function (e, t) {
|
|
1373
1348
|
if (!(e && t && e.start && t.start))
|
|
1374
1349
|
return 0;
|
|
1375
1350
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1380,28 +1355,28 @@ if ("undefined" == typeof DayPilot)
|
|
|
1380
1355
|
if (s)
|
|
1381
1356
|
return s;
|
|
1382
1357
|
i = t.getTime();
|
|
1383
|
-
var
|
|
1358
|
+
var a = 18e5, l = n - i, o = l % a, r = l - o, h = r + a;
|
|
1384
1359
|
0 === o && (h = r);
|
|
1385
1360
|
var c = {};
|
|
1386
|
-
return c.cut = !1, c.top = this.
|
|
1387
|
-
}, this.
|
|
1361
|
+
return c.cut = !1, c.top = this.Aa(l), c.boxTop = this.Aa(r), c.boxBottom = this.Aa(h), this.cache.pixels[n + "_" + i] = c, c;
|
|
1362
|
+
}, this.Aa = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.sa = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this._(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.O = {}, this.O.scope = null, this.O.notify = function () { s.O.scope && s.O.scope["$apply"](); }, this.O.apply = function (e) { e(); }, this.ma = function () { var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight); s.na.scrollHour = t; }, this.ta = function () { var e = 0; s.na.scrollHour ? e = 2 * s.cellHeight * s.na.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ba = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Ca = function () { this.sa(), this.B(), this.$(), this.E(), this.F(), this.oa(), this.la(), this.pa(), t.register(this), this.Da(), this.m("Init"); }, this.na = {}, this.Ea = function () { this.na.themes = [], this.na.themes.push(this.theme || this.cssClassPrefix); }, this.Fa = function () {
|
|
1388
1363
|
for (var e = this.na.themes, t = 0; t < e.length; t++) {
|
|
1389
1364
|
var i = e[t];
|
|
1390
1365
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1391
1366
|
}
|
|
1392
1367
|
this.na.themes = [];
|
|
1393
|
-
}, this.
|
|
1368
|
+
}, this.Ga = function () {
|
|
1394
1369
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1395
1370
|
var e = {};
|
|
1396
1371
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1397
1372
|
}
|
|
1398
|
-
}, this.
|
|
1399
|
-
if ("function" == typeof this.onInit && !this.
|
|
1400
|
-
this.
|
|
1373
|
+
}, this.Ha = function () {
|
|
1374
|
+
if ("function" == typeof this.onInit && !this.Ia) {
|
|
1375
|
+
this.Ia = !0;
|
|
1401
1376
|
var e = {};
|
|
1402
1377
|
this.onInit(e);
|
|
1403
1378
|
}
|
|
1404
|
-
}, this.
|
|
1379
|
+
}, this.Ja = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Da = function () { var e = s.Ja; e() || (s.Ka = setInterval(function () { e() && (s.la(), s.oa(), clearInterval(s.Ka)); }, 100)); }, this.La = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.xssTextHtml = s.La, this.init = function () { this.wa(); var e = this.Ba(); return this.Ea(), e ? void this.Ca() : (this.sa(), this.B(), this.C(), this.$(), this.E(), this.F(), this.A(), this.oa(), this.la(), this.pa(), t.register(this), this.events && (this.D(), this.I()), this.Ga(), this.Ha(), this.Da(), this.qa = !0, this); }, this.Init = this.init, this.ra(i);
|
|
1405
1380
|
}, t.Cell = function (e, t, i) { this.start = e, this.end = t, this.column = function () { }; }, t.Column = function (e, t, i) { this.value = e, this.name = t, this.date = new DayPilot.Date(i); }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
|
|
1406
1381
|
e.fn.daypilotCalendar = function (e) {
|
|
1407
1382
|
var t = null, i = this.each(function () {
|
|
@@ -1421,19 +1396,19 @@ if ("undefined" == typeof DayPilot)
|
|
|
1421
1396
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (t, i, n) {
|
|
1422
1397
|
var s = new DayPilot.Calendar(i[0]);
|
|
1423
1398
|
s.O.scope = t, s.init();
|
|
1424
|
-
var
|
|
1425
|
-
|
|
1426
|
-
var
|
|
1427
|
-
if (
|
|
1428
|
-
(0, e(
|
|
1399
|
+
var a = n["id"];
|
|
1400
|
+
a && (t[a] = s);
|
|
1401
|
+
var l = n["publishAs"];
|
|
1402
|
+
if (l) {
|
|
1403
|
+
(0, e(l).assign)(t, s);
|
|
1429
1404
|
}
|
|
1430
1405
|
for (var o in n)
|
|
1431
|
-
0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var
|
|
1406
|
+
0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = e(n[i]); t["$apply"](function () { a(t, { "args": s }); }); }; }(o);
|
|
1432
1407
|
var r = t["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
|
|
1433
1408
|
r.call(t, h, function (e) {
|
|
1434
1409
|
for (var t in e)
|
|
1435
1410
|
s[t] = e[t];
|
|
1436
|
-
s.update(), s.
|
|
1411
|
+
s.update(), s.Ha();
|
|
1437
1412
|
}, !0), r.call(t, c, function (e) { s.events.list = e, s.update(); }, !0);
|
|
1438
1413
|
} };
|
|
1439
1414
|
}]);
|
|
@@ -1444,7 +1419,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1444
1419
|
var DayPilot = {};
|
|
1445
1420
|
!function () {
|
|
1446
1421
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1447
|
-
this.v = "
|
|
1422
|
+
this.v = "2022.1.355-lite";
|
|
1448
1423
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1449
1424
|
this.prepare = function () {
|
|
1450
1425
|
if (this.locale = "en-us", this.target = null, this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.cssClassPrefix = "navigator_default", this.theme = null, this.patterns = [], t)
|
|
@@ -2125,9 +2100,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
2125
2100
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2126
2101
|
var t = {};
|
|
2127
2102
|
t.Month = function (e, i) {
|
|
2128
|
-
this.v = "
|
|
2103
|
+
this.v = "2022.1.355-lite", this.nav = {};
|
|
2129
2104
|
var n = this;
|
|
2130
|
-
this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cssClassPrefix = "month_default", this.eventHeight =
|
|
2105
|
+
this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cssClassPrefix = "month_default", this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = 1, this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) { t.calendar = n, n.events.list || (n.events.list = []), n.events.list.push(t.data), n.update(), n.j.notify(); }, this.events.update = function (t) { t.commit(), n.update(), n.j.notify(); }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.j.notify(); }, this.events.load = function (t, e, i) {
|
|
2131
2106
|
var s = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, a = function (t) {
|
|
2132
2107
|
var i, a = t.request;
|
|
2133
2108
|
try {
|
|
@@ -2141,7 +2116,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2141
2116
|
var o = {};
|
|
2142
2117
|
if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof e && e(o), o.preventDefault.value)
|
|
2143
2118
|
return;
|
|
2144
|
-
n.events.list = i, n.
|
|
2119
|
+
n.events.list = i, n.k && n.update();
|
|
2145
2120
|
}
|
|
2146
2121
|
};
|
|
2147
2122
|
if (n.eventsLoadMethod && "POST" === n.eventsLoadMethod.toUpperCase())
|
|
@@ -2152,12 +2127,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2152
2127
|
}
|
|
2153
2128
|
}, this.update = function (t) {
|
|
2154
2129
|
if (this.cells) {
|
|
2155
|
-
|
|
2130
|
+
n.l(t), n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
|
|
2156
2131
|
}
|
|
2157
|
-
}, this.
|
|
2132
|
+
}, this.n = null, this.l = function (t) {
|
|
2158
2133
|
if (t) {
|
|
2159
2134
|
var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t); } } };
|
|
2160
|
-
this.
|
|
2135
|
+
this.n = e;
|
|
2161
2136
|
for (var i in t)
|
|
2162
2137
|
if (e[i]) {
|
|
2163
2138
|
var s = e[i];
|
|
@@ -2166,14 +2141,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
2166
2141
|
else
|
|
2167
2142
|
n[i] = t[i];
|
|
2168
2143
|
}
|
|
2169
|
-
}, this.
|
|
2170
|
-
var t = this.
|
|
2144
|
+
}, this.o = function () {
|
|
2145
|
+
var t = this.n;
|
|
2171
2146
|
for (var e in t) {
|
|
2172
2147
|
var i = t[e];
|
|
2173
2148
|
i.postInit && i.postInit();
|
|
2174
2149
|
}
|
|
2175
|
-
}, this.
|
|
2176
|
-
var e = this.
|
|
2150
|
+
}, this.p = {}, this.p.events = [], this.q = function (t) {
|
|
2151
|
+
var e = this.p.events, i = this.events.list[t], n = {};
|
|
2177
2152
|
for (var s in i)
|
|
2178
2153
|
n[s] = i[s];
|
|
2179
2154
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -2181,42 +2156,42 @@ if ("undefined" == typeof DayPilot)
|
|
|
2181
2156
|
a.data = n, this.onBeforeEventRender(a);
|
|
2182
2157
|
}
|
|
2183
2158
|
e[t] = n;
|
|
2184
|
-
}, this.
|
|
2159
|
+
}, this.d = function () {
|
|
2185
2160
|
var t = this.events.list;
|
|
2186
2161
|
if (t) {
|
|
2187
2162
|
if ("function" == typeof this.onBeforeEventRender)
|
|
2188
2163
|
for (var e = 0; e < t.length; e++)
|
|
2189
|
-
this.
|
|
2164
|
+
this.q(e);
|
|
2190
2165
|
for (var i = 0; i < t.length; i++) {
|
|
2191
2166
|
var n = t[i];
|
|
2192
2167
|
if (n.start = new DayPilot.Date(n.start), n.end = new DayPilot.Date(n.end), !(n.start.getTime() > n.end.getTime()))
|
|
2193
2168
|
for (var e = 0; e < this.rows.length; e++) {
|
|
2194
2169
|
var s = this.rows[e], a = new DayPilot.Event(n, this);
|
|
2195
|
-
s.belongsHere(a) && (s.events.push(a), "function" == typeof this.onBeforeEventRender && (a.cache = this.
|
|
2170
|
+
s.belongsHere(a) && (s.events.push(a), "function" == typeof this.onBeforeEventRender && (a.cache = this.p.events[i]));
|
|
2196
2171
|
}
|
|
2197
2172
|
}
|
|
2198
2173
|
for (var l = 0; l < this.rows.length; l++) {
|
|
2199
2174
|
var s = this.rows[l];
|
|
2200
|
-
s.events.sort(this.
|
|
2175
|
+
s.events.sort(this.r);
|
|
2201
2176
|
for (var o = 0; o < this.rows[l].events.length; o++) {
|
|
2202
|
-
var r = s.events[o], h = s.getStartColumn(r),
|
|
2203
|
-
s.putIntoLine(r, h,
|
|
2177
|
+
var r = s.events[o], h = s.getStartColumn(r), c = s.getWidth(r);
|
|
2178
|
+
s.putIntoLine(r, h, c, l);
|
|
2204
2179
|
}
|
|
2205
2180
|
}
|
|
2206
2181
|
}
|
|
2207
|
-
}, this.
|
|
2182
|
+
}, this.b = function () {
|
|
2208
2183
|
for (var t = 0; t < this.elements.events.length; t++) {
|
|
2209
2184
|
var e = this.elements.events[t];
|
|
2210
2185
|
e.event = null, e.click = null, e.parentNode.removeChild(e);
|
|
2211
2186
|
}
|
|
2212
2187
|
this.elements.events = [];
|
|
2213
|
-
}, this.
|
|
2188
|
+
}, this.i = function () { this.s(); }, this.s = function () {
|
|
2214
2189
|
this.elements.events = [];
|
|
2215
2190
|
for (var t = 0; t < this.rows.length; t++)
|
|
2216
2191
|
for (var e = this.rows[t], i = 0; i < e.lines.length; i++)
|
|
2217
2192
|
for (var n = e.lines[i], s = 0; s < n.length; s++)
|
|
2218
|
-
this.
|
|
2219
|
-
}, this.
|
|
2193
|
+
this.t(n[s]);
|
|
2194
|
+
}, this.r = function (t, e) {
|
|
2220
2195
|
if (!(t && e && t.start && e.start))
|
|
2221
2196
|
return 0;
|
|
2222
2197
|
var i = t.start().getTime() - e.start().getTime();
|
|
@@ -2235,12 +2210,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2235
2210
|
else
|
|
2236
2211
|
e -= h;
|
|
2237
2212
|
i < 0 && (i = 0, e = 0);
|
|
2238
|
-
var
|
|
2239
|
-
for (t.resizingEvent ?
|
|
2240
|
-
var
|
|
2241
|
-
p.setAttribute("unselectable", "on"), p.style.position = "absolute", p.style.left = this.getCellWidth() * e + "%", p.style.width = this.getCellWidth() *
|
|
2213
|
+
var c = null;
|
|
2214
|
+
for (t.resizingEvent ? c = "w-resize" : t.movingEvent && (c = "move"), this.nav.top.style.cursor = c; o > 0 && i < this.rows.length;) {
|
|
2215
|
+
var d = Math.min(this.getColCount() - e, o), v = this.rows[i], u = this.getRowTop(i), f = v.getHeight(), p = document.createElement("div");
|
|
2216
|
+
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;
|
|
2242
2217
|
var g = document.createElement("div");
|
|
2243
|
-
g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -=
|
|
2218
|
+
g.setAttribute("unselectable", "on"), p.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.style.backgroundColor = "#aaaaaa", g.style.opacity = .5, g.style.filter = "alpha(opacity=50)", this.nav.top.appendChild(p), this.shadow.list.push(p), o -= d + 7 - this.getColCount(), e = 0, i++;
|
|
2244
2219
|
}
|
|
2245
2220
|
}, this.clearShadow = function () {
|
|
2246
2221
|
if (this.shadow) {
|
|
@@ -2252,38 +2227,43 @@ if ("undefined" == typeof DayPilot)
|
|
|
2252
2227
|
for (var i = this.headerHeight, n = 0; n < t; n++)
|
|
2253
2228
|
i += this.rows[n].getHeight();
|
|
2254
2229
|
return i += this.cellHeaderHeight, i += e * this.lineHeight();
|
|
2255
|
-
}, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.
|
|
2256
|
-
var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o,
|
|
2257
|
-
|
|
2230
|
+
}, this.getDateFromCell = function (t, e) { return this.firstDate.addDays(7 * e + t); }, this.t = function (e) {
|
|
2231
|
+
var i = e.cache || e.data, s = e.part.row, a = e.part.line, l = e.part.colStart, o = e.part.colWidth, r = this.getCellWidth() * l, h = this.getCellWidth() * o, c = this.getEventTop(s, a), d = document.createElement("div");
|
|
2232
|
+
d.setAttribute("unselectable", "on"), d.style.height = this.eventHeight + "px", d.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(d, i.cssClass), 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.onmousedown = function (i) {
|
|
2258
2233
|
i = i || window.event;
|
|
2259
2234
|
var r = i.which || i.button;
|
|
2260
2235
|
if (i.cancelBubble = !0, i.stopPropagation && i.stopPropagation(), 1 === r)
|
|
2261
2236
|
if (t.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
2262
2237
|
var h = {};
|
|
2263
|
-
h.start = {}, h.start.x = l, h.start.y = s, h.event =
|
|
2238
|
+
h.start = {}, h.start.x = l, h.start.y = s, h.event = d.event, h.width = DayPilot.DateUtil.daysSpan(h.event.start(), h.event.end()) + 1, h.direction = this.style.cursor, t.resizingEvent = h;
|
|
2264
2239
|
}
|
|
2265
2240
|
else if ("move" === this.style.cursor || "Disabled" !== n.eventMoveHandling) {
|
|
2266
2241
|
n.clearShadow();
|
|
2267
|
-
var
|
|
2268
|
-
if (!
|
|
2242
|
+
var c = DayPilot.mo2(n.nav.top, i);
|
|
2243
|
+
if (!c)
|
|
2269
2244
|
return;
|
|
2270
|
-
var v = n.getCellBelowPoint(
|
|
2245
|
+
var v = n.getCellBelowPoint(c.x, c.y), u = DayPilot.DateUtil.daysDiff(e.start(), n.rows[s].start), f = 7 * v.y + v.x - (7 * s + l);
|
|
2271
2246
|
u && (f += u);
|
|
2272
2247
|
var p = {};
|
|
2273
|
-
p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event =
|
|
2248
|
+
p.start = {}, p.start.x = l, p.start.y = s, p.start.line = a, p.offset = n.eventMoveToPosition ? 0 : f, p.colWidth = o, p.event = d.event, p.coords = c, t.movingEvent = p;
|
|
2274
2249
|
}
|
|
2275
|
-
},
|
|
2250
|
+
}, d.onmousemove = function (i) {
|
|
2276
2251
|
if ("undefined" != typeof t && !t.movingEvent && !t.resizingEvent) {
|
|
2277
|
-
var s = DayPilot.mo3(
|
|
2252
|
+
var s = DayPilot.mo3(d, i);
|
|
2278
2253
|
if (s) {
|
|
2254
|
+
d.deleteIcon && (d.deleteIcon.style.display = "");
|
|
2279
2255
|
var a = 6;
|
|
2280
|
-
s.x <= a && "Disabled" !== n.eventResizeHandling ? e.part.startsHere ? (
|
|
2256
|
+
s.x <= a && "Disabled" !== n.eventResizeHandling ? e.part.startsHere ? (d.style.cursor = "w-resize", d.dpBorder = "left") : d.style.cursor = "not-allowed" : d.clientWidth - s.x <= a && "Disabled" !== n.eventResizeHandling ? e.part.endsHere ? (d.style.cursor = "e-resize", d.dpBorder = "right") : d.style.cursor = "not-allowed" : d.style.cursor = "default";
|
|
2281
2257
|
}
|
|
2282
2258
|
}
|
|
2283
|
-
},
|
|
2259
|
+
}, d.onmouseleave = function (t) { d.deleteIcon && (d.deleteIcon.style.display = "none"), d.style.cursor = ""; }, d.onmouseenter = function (t) { d.deleteIcon && (d.deleteIcon.style.display = ""); };
|
|
2284
2260
|
var v = document.createElement("div");
|
|
2285
|
-
v.setAttribute("unselectable", "on"), v.className = this.
|
|
2286
|
-
|
|
2261
|
+
if (v.setAttribute("unselectable", "on"), v.className = this.u("_event_inner"), "darker" === i.borderColor && i.backColor ? v.style.borderColor = DayPilot.ColorUtil.darker(i.backColor, 2) : v.style.borderColor = i.borderColor, i.backColor && (v.style.background = i.backColor, (DayPilot.browser.ie9 || DayPilot.browser.ielt9) && (v.style.filter = "")), i.fontColor && (v.style.color = i.fontColor), v.innerHTML = e.client.html(), d.appendChild(v), "Disabled" !== n.eventDeleteHandling) {
|
|
2262
|
+
var u = Math.floor(n.eventHeight / 2 - 9), f = document.createElement("div");
|
|
2263
|
+
f.style.position = "absolute", f.style.right = "2px", f.style.top = u + "px", f.style.width = "18px", f.style.height = "18px", f.className = n.u("_event_delete"), f.onmousedown = function (t) { t.stopPropagation(); }, f.onclick = function (t) { t.stopPropagation(); var e = this.parentNode.event; e && n.z(e); }, f.style.display = "none", d.deleteIcon = f, d.appendChild(f);
|
|
2264
|
+
}
|
|
2265
|
+
this.elements.events.push(d), this.nav.events.appendChild(d);
|
|
2266
|
+
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.c = function () {
|
|
2287
2267
|
"string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
|
|
2288
2268
|
var t, e = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, e) + 1;
|
|
2289
2269
|
t = Math.ceil(i / 7), this.days = 7 * t, this.rows = [];
|
|
@@ -2311,9 +2291,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
2311
2291
|
for (var t = this.headerHeight, e = 0; e < this.rows.length; e++)
|
|
2312
2292
|
t += this.rows[e].getHeight();
|
|
2313
2293
|
return t;
|
|
2314
|
-
}, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.
|
|
2294
|
+
}, this.getWidth = function (t, e) { return 7 * e.y + e.x - (7 * t.y + t.x) + 1; }, this.getMinCoords = function (t, e) { return 7 * t.y + t.x < 7 * e.y + e.x ? t : e; }, this.u = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.A = function () {
|
|
2315
2295
|
var e = this.nav.top;
|
|
2316
|
-
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.
|
|
2296
|
+
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");
|
|
2317
2297
|
var i = document.createElement("div");
|
|
2318
2298
|
this.nav.cells = i, i.style.position = "absolute", i.style.left = "0px", i.style.right = "0px", i.setAttribute("unselectable", "on"), e.appendChild(i);
|
|
2319
2299
|
var s = document.createElement("div");
|
|
@@ -2345,8 +2325,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2345
2325
|
return;
|
|
2346
2326
|
var s = n.getCellBelowPoint(i.x, i.y);
|
|
2347
2327
|
n.clearShadow();
|
|
2348
|
-
var
|
|
2349
|
-
a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a,
|
|
2328
|
+
var c = t.movingEvent.event, d = t.movingEvent.offset, a = n.cellMode ? 1 : DayPilot.DateUtil.daysSpan(c.start(), c.end()) + 1;
|
|
2329
|
+
a < 1 && (a = 1), n.drawShadow(s.x, s.y, 0, a, d, c);
|
|
2350
2330
|
}
|
|
2351
2331
|
else if (t.timeRangeSelecting) {
|
|
2352
2332
|
var i = DayPilot.mo2(n.nav.top, e);
|
|
@@ -2360,7 +2340,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2360
2340
|
t.timeRangeSelecting.from = { x: f.x, y: f.y }, t.timeRangeSelecting.width = a, t.timeRangeSelecting.moved = !0, n.drawShadow(f.x, f.y, 0, a, 0, null);
|
|
2361
2341
|
}
|
|
2362
2342
|
};
|
|
2363
|
-
}, this.
|
|
2343
|
+
}, this.h = function () {
|
|
2364
2344
|
this.nav.top.style.height = this.getHeight() + "px";
|
|
2365
2345
|
for (var t = 0; t < this.cells.length; t++)
|
|
2366
2346
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
@@ -2380,7 +2360,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2380
2360
|
for (var e = DayPilot.DateUtil.daysDiff(this.firstDate, t), i = { x: 0, y: 0 }; e >= 7;)
|
|
2381
2361
|
i.y++, e -= 7;
|
|
2382
2362
|
return i.x = e, i;
|
|
2383
|
-
}, this.
|
|
2363
|
+
}, this.g = function () {
|
|
2384
2364
|
var t = document.createElement("div");
|
|
2385
2365
|
t.oncontextmenu = function () { return !1; }, this.nav.cells.appendChild(t), this.cells = [];
|
|
2386
2366
|
for (var e = 0; e < this.getColCount(); e++) {
|
|
@@ -2388,48 +2368,48 @@ if ("undefined" == typeof DayPilot)
|
|
|
2388
2368
|
var i = document.createElement("div");
|
|
2389
2369
|
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";
|
|
2390
2370
|
var n = e + this.getWeekStart();
|
|
2391
|
-
n > 6 && (n -= 7),
|
|
2371
|
+
n > 6 && (n -= 7), i.className = this.u("_header");
|
|
2392
2372
|
var a = document.createElement("div");
|
|
2393
|
-
a.setAttribute("unselectable", "on"), a.innerHTML = s.locale().dayNames[n], i.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.
|
|
2373
|
+
a.setAttribute("unselectable", "on"), a.innerHTML = s.locale().dayNames[n], i.appendChild(a), a.style.position = "absolute", a.style.top = "0px", a.style.bottom = "0px", a.style.left = "0px", a.style.right = "0px", a.className = this.u("_header_inner"), a.innerHTML = s.locale().dayNames[n], t.appendChild(i);
|
|
2394
2374
|
for (var l = 0; l < this.rows.length; l++)
|
|
2395
|
-
this.
|
|
2375
|
+
this.B(e, l, t);
|
|
2396
2376
|
}
|
|
2397
|
-
}, this.
|
|
2377
|
+
}, this.f = function () {
|
|
2398
2378
|
for (var t = 0; t < this.cells.length; t++)
|
|
2399
2379
|
for (var e = 0; e < this.cells[t].length; e++)
|
|
2400
2380
|
this.cells[t][e].onclick = null;
|
|
2401
2381
|
this.nav.cells.innerHTML = "";
|
|
2402
|
-
}, this.C = function () { return 2 === n.api; }, this.
|
|
2403
|
-
var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r =
|
|
2404
|
-
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",
|
|
2405
|
-
var h = this.
|
|
2382
|
+
}, this.C = function () { return 2 === n.api; }, this.B = function (e, i, a) {
|
|
2383
|
+
var l = this.rows[i], o = this.firstDate.addDays(7 * i + e), r = document.createElement("div");
|
|
2384
|
+
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)) {
|
|
2385
|
+
var h = this.u("_cell_business");
|
|
2406
2386
|
DayPilot.Util.addClass(r, h);
|
|
2407
2387
|
}
|
|
2408
|
-
var
|
|
2409
|
-
|
|
2388
|
+
var c = (this.startDate.addMonths(-1).getMonth(), this.startDate.addMonths(1).getMonth(), this.startDate.getMonth(), document.createElement("div"));
|
|
2389
|
+
c.setAttribute("unselectable", "on"), r.appendChild(c), c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.top = "0px", c.style.bottom = "0px", c.className = this.u("_cell_inner"), r.onmousedown = function (s) { "Disabled" !== n.timeRangeSelectedHandling && (n.clearShadow(), t.timeRangeSelecting = { "root": n, "x": e, "y": i, "from": { x: e, y: i }, "width": 1 }); }, r.onclick = function () {
|
|
2410
2390
|
var t = function (t) { var e = new DayPilot.Date(t), i = e.addDays(1); n.D(e, i); };
|
|
2411
2391
|
if ("Disabled" !== n.timeRangeSelectedHandling)
|
|
2412
2392
|
return void t(o);
|
|
2413
2393
|
};
|
|
2414
|
-
var
|
|
2415
|
-
|
|
2394
|
+
var d = document.createElement("div");
|
|
2395
|
+
d.setAttribute("unselectable", "on"), d.style.height = this.cellHeaderHeight + "px", d.className = this.u("_cell_header"), d.onclick = function (t) { t.stopPropagation(); var e = {}; e.control = n, e.start = o, e.end = o.addDays(1), e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onCellHeaderClick && (n.onCellHeaderClick(e), e.preventDefault.value) || "function" == typeof n.onCellHeaderClicked && n.onCellHeaderClicked(e); };
|
|
2416
2396
|
var v = o.getDay();
|
|
2417
|
-
1 === v ?
|
|
2397
|
+
1 === v ? d.innerHTML = s.locale().monthNames[o.getMonth()] + " " + v : d.innerHTML = v, c.appendChild(d), this.cells[e][i] = r, a.appendChild(r);
|
|
2418
2398
|
}, this.getWeekStart = function () { return s.locale().weekStarts; }, this.getColCount = function () { return 7; }, this.getCellWidth = function () { return 14.285; }, this.getRowTop = function (t) {
|
|
2419
2399
|
for (var e = this.headerHeight, i = 0; i < t; i++)
|
|
2420
2400
|
e += this.rows[i].getHeight();
|
|
2421
2401
|
return e;
|
|
2422
|
-
}, this.E = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.F(); var s = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.G, s, this.ajaxError); }, this.G = function (t) { n.
|
|
2402
|
+
}, this.E = function (t, e, i) { var n = {}; n.action = t, n.parameters = i, n.data = e, n.header = this.F(); var s = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl && DayPilot.request(this.backendUrl, this.G, s, this.ajaxError); }, this.G = function (t) { n.a(t.responseText); }, this.F = 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.E("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) {
|
|
2423
2403
|
var i = t.event;
|
|
2424
2404
|
if (i.client.clickEnabled())
|
|
2425
2405
|
if (n.C()) {
|
|
2426
2406
|
var s = {};
|
|
2427
|
-
if (s.e = i, s.control = n, s.div = t, s.originalEvent = e, s.meta = e.metaKey, s.ctrl = e.ctrlKey, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.
|
|
2407
|
+
if (s.e = i, s.control = n, s.div = t, s.originalEvent = e, s.meta = e.metaKey, s.ctrl = e.ctrlKey, s.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventClick && (n.j.apply(function () { n.onEventClick(s); }), s.preventDefault.value))
|
|
2428
2408
|
return;
|
|
2429
2409
|
switch (n.eventClickHandling) {
|
|
2430
2410
|
case "CallBack": n.eventClickCallBack(i);
|
|
2431
2411
|
}
|
|
2432
|
-
"function" == typeof n.onEventClicked && n.
|
|
2412
|
+
"function" == typeof n.onEventClicked && n.j.apply(function () { n.onEventClicked(s); });
|
|
2433
2413
|
}
|
|
2434
2414
|
else
|
|
2435
2415
|
switch (n.eventClickHandling) {
|
|
@@ -2438,22 +2418,48 @@ if ("undefined" == typeof DayPilot)
|
|
|
2438
2418
|
break;
|
|
2439
2419
|
case "JavaScript": n.onEventClick(i);
|
|
2440
2420
|
}
|
|
2441
|
-
}, this.
|
|
2421
|
+
}, this.z = function (t) {
|
|
2422
|
+
if (n.C()) {
|
|
2423
|
+
var e = {};
|
|
2424
|
+
if (e.e = t, e.control = n, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventDelete && (n.j.apply(function () { n.onEventDelete(e); }), e.preventDefault.value))
|
|
2425
|
+
return;
|
|
2426
|
+
switch (n.eventDeleteHandling) {
|
|
2427
|
+
case "CallBack":
|
|
2428
|
+
n.eventDeleteCallBack(t);
|
|
2429
|
+
break;
|
|
2430
|
+
case "PostBack":
|
|
2431
|
+
n.eventDeletePostBack(t);
|
|
2432
|
+
break;
|
|
2433
|
+
case "Update": n.events.remove(t);
|
|
2434
|
+
}
|
|
2435
|
+
"function" == typeof n.onEventDeleted && n.j.apply(function () { n.onEventDeleted(e); });
|
|
2436
|
+
}
|
|
2437
|
+
else
|
|
2438
|
+
switch (n.eventDeleteHandling) {
|
|
2439
|
+
case "PostBack":
|
|
2440
|
+
n.eventDeletePostBack(t);
|
|
2441
|
+
break;
|
|
2442
|
+
case "CallBack":
|
|
2443
|
+
n.eventDeleteCallBack(t);
|
|
2444
|
+
break;
|
|
2445
|
+
case "JavaScript": n.onEventDelete(t);
|
|
2446
|
+
}
|
|
2447
|
+
}, this.eventDeleteCallBack = function (t, e) { this.E("EventDelete", e, t); }, this.eventDeletePostBack = function (t, e) { this.H("EventDelete", e, t); }, this.eventMoveCallBack = function (t, e, i, n, s) {
|
|
2442
2448
|
if (!e)
|
|
2443
2449
|
throw "newStart is null";
|
|
2444
2450
|
if (!i)
|
|
2445
2451
|
throw "newEnd is null";
|
|
2446
2452
|
var a = {};
|
|
2447
2453
|
a.e = t, a.newStart = e, a.newEnd = i, a.position = s, this.E("EventMove", n, a);
|
|
2448
|
-
}, this.
|
|
2454
|
+
}, this.I = function (t, e, i, s, a, l) {
|
|
2449
2455
|
var o = t.start().getTimePart(), r = t.end().getDatePart();
|
|
2450
2456
|
r !== t.end() && (r = r.addDays(1));
|
|
2451
|
-
var h = DayPilot.DateUtil.diff(t.end(), r),
|
|
2452
|
-
|
|
2453
|
-
var
|
|
2457
|
+
var h = DayPilot.DateUtil.diff(t.end(), r), c = this.getDateFromCell(e, i);
|
|
2458
|
+
c = c.addDays(-s);
|
|
2459
|
+
var d = DayPilot.DateUtil.daysSpan(t.start(), t.end()) + 1, v = c.addDays(d), u = c.addTime(o), f = v.addTime(h);
|
|
2454
2460
|
if (n.C()) {
|
|
2455
2461
|
var p = {};
|
|
2456
|
-
if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = a.ctrlKey, p.shift = a.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.
|
|
2462
|
+
if (p.e = t, p.control = n, p.newStart = u, p.newEnd = f, p.ctrl = a.ctrlKey, p.shift = a.shiftKey, p.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onEventMove && (n.j.apply(function () { n.onEventMove(p); }), p.preventDefault.value))
|
|
2457
2463
|
return;
|
|
2458
2464
|
switch (n.eventMoveHandling) {
|
|
2459
2465
|
case "CallBack":
|
|
@@ -2461,7 +2467,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2461
2467
|
break;
|
|
2462
2468
|
case "Update": t.start(u), t.end(f), n.events.update(t);
|
|
2463
2469
|
}
|
|
2464
|
-
"function" == typeof n.onEventMoved && n.
|
|
2470
|
+
"function" == typeof n.onEventMoved && n.j.apply(function () { n.onEventMoved(p); });
|
|
2465
2471
|
}
|
|
2466
2472
|
else
|
|
2467
2473
|
switch (n.eventMoveHandling) {
|
|
@@ -2477,38 +2483,38 @@ if ("undefined" == typeof DayPilot)
|
|
|
2477
2483
|
throw "newEnd is null";
|
|
2478
2484
|
var s = {};
|
|
2479
2485
|
s.e = t, s.newStart = e, s.newEnd = i, this.E("EventResize", n, s);
|
|
2480
|
-
}, this.
|
|
2486
|
+
}, this.J = function (t, e, i) {
|
|
2481
2487
|
var s = t.start().getTimePart(), a = t.end().getDatePart();
|
|
2482
2488
|
a !== t.end() && (a = a.addDays(1));
|
|
2483
|
-
var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s),
|
|
2489
|
+
var l = DayPilot.DateUtil.diff(t.end(), a), o = this.getDateFromCell(e.x, e.y), r = o.addDays(i), h = o.addTime(s), c = r.addTime(l);
|
|
2484
2490
|
if (n.C()) {
|
|
2485
|
-
var
|
|
2486
|
-
if (
|
|
2491
|
+
var d = {};
|
|
2492
|
+
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))
|
|
2487
2493
|
return;
|
|
2488
2494
|
switch (n.eventResizeHandling) {
|
|
2489
2495
|
case "CallBack":
|
|
2490
|
-
n.eventResizeCallBack(t, h,
|
|
2496
|
+
n.eventResizeCallBack(t, h, c);
|
|
2491
2497
|
break;
|
|
2492
|
-
case "Update": t.start(h), t.end(
|
|
2498
|
+
case "Update": t.start(h), t.end(c), n.events.update(t);
|
|
2493
2499
|
}
|
|
2494
|
-
"function" == typeof n.onEventResized && n.
|
|
2500
|
+
"function" == typeof n.onEventResized && n.j.apply(function () { n.onEventResized(d); });
|
|
2495
2501
|
}
|
|
2496
2502
|
else
|
|
2497
2503
|
switch (n.eventResizeHandling) {
|
|
2498
2504
|
case "CallBack":
|
|
2499
|
-
n.eventResizeCallBack(t, h,
|
|
2505
|
+
n.eventResizeCallBack(t, h, c);
|
|
2500
2506
|
break;
|
|
2501
|
-
case "JavaScript": n.onEventResize(t, h,
|
|
2507
|
+
case "JavaScript": n.onEventResize(t, h, c);
|
|
2502
2508
|
}
|
|
2503
2509
|
}, this.timeRangeSelectedCallBack = function (t, e, i) { var n = {}; n.start = t, n.end = e, this.E("TimeRangeSelected", i, n); }, this.D = function (t, e) {
|
|
2504
2510
|
if (this.C()) {
|
|
2505
2511
|
var i = {};
|
|
2506
|
-
if (i.control = n, i.start = t, i.end = e, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.
|
|
2512
|
+
if (i.control = n, i.start = t, i.end = e, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.j.apply(function () { n.onTimeRangeSelect(i); }), i.preventDefault.value))
|
|
2507
2513
|
return;
|
|
2508
2514
|
switch (n.timeRangeSelectedHandling) {
|
|
2509
2515
|
case "CallBack": n.timeRangeSelectedCallBack(t, e);
|
|
2510
2516
|
}
|
|
2511
|
-
"function" == typeof n.onTimeRangeSelected && n.
|
|
2517
|
+
"function" == typeof n.onTimeRangeSelected && n.j.apply(function () { n.onTimeRangeSelected(i); });
|
|
2512
2518
|
}
|
|
2513
2519
|
else
|
|
2514
2520
|
switch (n.timeRangeSelectedHandling) {
|
|
@@ -2517,9 +2523,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
2517
2523
|
break;
|
|
2518
2524
|
case "JavaScript": n.onTimeRangeSelected(t, e);
|
|
2519
2525
|
}
|
|
2520
|
-
}, this.
|
|
2521
|
-
var s = this.
|
|
2522
|
-
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.
|
|
2526
|
+
}, 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.E("Command", e, i); }, this.isWeekend = function (t) { return t = new DayPilot.Date(t), 0 === t.dayOfWeek() || 6 === t.dayOfWeek(); }, this.K = {}, this.K.locale = function () { var t = DayPilot.Locale.find(n.locale); return t ? t : DayPilot.Locale.US; }, this.K.L = function () { return "Disabled" !== n.xssProtection; };
|
|
2527
|
+
var s = this.K;
|
|
2528
|
+
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.M = 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.N = function () {
|
|
2523
2529
|
if (this.id && this.id.tagName)
|
|
2524
2530
|
this.nav.top = this.id;
|
|
2525
2531
|
else {
|
|
@@ -2528,7 +2534,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2528
2534
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2529
2535
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
2530
2536
|
}
|
|
2531
|
-
}, this.
|
|
2537
|
+
}, this.O = function () { this.c(), this.A(), this.g(), this.M(), this.E("Init"); }, this.P = function (t, e) { return n.K.L() ? DayPilot.Util.escapeTextHtml(t, e) : DayPilot.Util.isNullOrUndefined(e) ? DayPilot.Util.isNullOrUndefined(t) ? "" : t : e; }, this.internal = {}, this.internal.xssTextHtml = n.P, this.init = function () { return this.N(), this.loadFromServer() ? void this.O() : (this.c(), this.d(), this.A(), this.g(), this.m(), this.i(), this.M(), this.messageHTML && this.message(this.messageHTML), void this.fireAfterRenderDetached(null, !1)); }, this.Init = this.init, this.l(i);
|
|
2532
2538
|
}, t.gMouseUp = function (e) {
|
|
2533
2539
|
if (t.movingEvent) {
|
|
2534
2540
|
var i = t.movingEvent;
|
|
@@ -2543,7 +2549,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2543
2549
|
var n = t.movingEvent.event.calendar, s = t.movingEvent.event, a = n.shadow.start, l = n.shadow.position, o = t.movingEvent.offset;
|
|
2544
2550
|
n.clearShadow(), t.movingEvent = null;
|
|
2545
2551
|
var e = e || window.event;
|
|
2546
|
-
return n.
|
|
2552
|
+
return n.I(s, a.x, a.y, o, e, l), e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(), t.movingEvent = null, !1;
|
|
2547
2553
|
}
|
|
2548
2554
|
if (t.resizingEvent) {
|
|
2549
2555
|
var i = t.resizingEvent;
|
|
@@ -2556,12 +2562,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2556
2562
|
if (!i.event.calendar.shadow.start)
|
|
2557
2563
|
return;
|
|
2558
2564
|
var n = t.resizingEvent.event.calendar, s = t.resizingEvent.event, a = n.shadow.start, r = n.shadow.width;
|
|
2559
|
-
return n.clearShadow(), t.resizingEvent = null, n.
|
|
2565
|
+
return n.clearShadow(), t.resizingEvent = null, n.J(s, a, r), e.cancelBubble = !0, t.resizingEvent = null, !1;
|
|
2560
2566
|
}
|
|
2561
2567
|
if (t.timeRangeSelecting) {
|
|
2562
2568
|
if (t.timeRangeSelecting.moved) {
|
|
2563
|
-
var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)),
|
|
2564
|
-
n.D(a,
|
|
2569
|
+
var h = t.timeRangeSelecting, n = h.root, a = new DayPilot.Date(n.getDateFromCell(h.from.x, h.from.y)), c = a.addDays(h.width);
|
|
2570
|
+
n.D(a, c), n.clearShadow();
|
|
2565
2571
|
}
|
|
2566
2572
|
t.timeRangeSelecting = null;
|
|
2567
2573
|
}
|
|
@@ -2583,7 +2589,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2583
2589
|
t && t.directive("daypilotMonth", ["$parse", function (t) {
|
|
2584
2590
|
return { "restrict": "E", "template": "<div></div>", "replace": !0, "link": function (e, i, n) {
|
|
2585
2591
|
var s = new DayPilot.Month(i[0]);
|
|
2586
|
-
s.
|
|
2592
|
+
s.j.scope = e, s.init();
|
|
2587
2593
|
var a = n["id"];
|
|
2588
2594
|
a && (e[a] = s);
|
|
2589
2595
|
var l = n["publishAs"];
|
|
@@ -2592,12 +2598,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
2592
2598
|
}
|
|
2593
2599
|
for (var o in n)
|
|
2594
2600
|
0 === o.indexOf("on") && !function (i) { s[i] = function (s) { var a = t(n[i]); e["$apply"](function () { a(e, { "args": s }); }); }; }(o);
|
|
2595
|
-
var r = e["$watch"], h = n["config"] || n["daypilotConfig"],
|
|
2601
|
+
var r = e["$watch"], h = n["config"] || n["daypilotConfig"], c = n["events"] || n["daypilotEvents"];
|
|
2596
2602
|
r.call(e, h, function (t) {
|
|
2597
2603
|
for (var e in t)
|
|
2598
2604
|
s[e] = t[e];
|
|
2599
2605
|
s.update();
|
|
2600
|
-
}, !0), r.call(e,
|
|
2606
|
+
}, !0), r.call(e, c, function (t) { s.events.list = t, s.update(); }, !0);
|
|
2601
2607
|
} };
|
|
2602
2608
|
}]);
|
|
2603
2609
|
}(), "undefined" != typeof Sys && Sys.Application && Sys.Application.notifyScriptLoaded && Sys.Application.notifyScriptLoaded();
|
|
@@ -2608,7 +2614,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2608
2614
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2609
2615
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2610
2616
|
DayPilot.Navigator = function (t, e) {
|
|
2611
|
-
this.v = "
|
|
2617
|
+
this.v = "2022.1.355-lite";
|
|
2612
2618
|
var i = this;
|
|
2613
2619
|
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) {
|
|
2614
2620
|
var s = {};
|
|
@@ -2658,27 +2664,27 @@ if ("undefined" == typeof DayPilot)
|
|
|
2658
2664
|
var H = document.createElement("div");
|
|
2659
2665
|
H.style.position = "absolute", H.style.left = M * a.cellWidth() + w + "px", H.style.right = M * a.cellWidth() + w + "px", H.style.top = this.titleHeight + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.dayHeaderHeight + "px", H.style.lineHeight = this.dayHeaderHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_dayheader"), H.innerHTML = "<span>" + this.l(M) + "</span>", v.appendChild(H), s.days.push(H);
|
|
2660
2666
|
for (var k = 0; k < u; k++) {
|
|
2661
|
-
var S = r.addDays(7 * k + M), P = this.m(S) && "none" !== this.n(),
|
|
2667
|
+
var S = r.addDays(7 * k + M), P = this.m(S) && "none" !== this.n(), E = S.firstDayOfMonth() === n, N = S < n, W = S >= n.addMonths(1);
|
|
2662
2668
|
if ("month" === this.n())
|
|
2663
|
-
P = P &&
|
|
2669
|
+
P = P && E;
|
|
2664
2670
|
else if ("day" === this.n())
|
|
2665
|
-
P = P && (
|
|
2671
|
+
P = P && (E || l && N || o && W);
|
|
2666
2672
|
else if ("week" === this.n()) {
|
|
2667
2673
|
var O = S.firstDayOfMonth() === n;
|
|
2668
|
-
P = P && (O || l &&
|
|
2674
|
+
P = P && (O || l && N || o && W);
|
|
2669
2675
|
}
|
|
2670
2676
|
var R = document.createElement("div");
|
|
2671
2677
|
s.cells[M][k] = R;
|
|
2672
2678
|
var T = i.o(M, k), A = T.x, B = T.y;
|
|
2673
|
-
R.day = S, R.x = M, R.y = k, R.left = A, R.top = B, R.isCurrentMonth =
|
|
2679
|
+
R.day = S, R.x = M, R.y = k, R.left = A, R.top = B, R.isCurrentMonth = E, R.isNextMonth = W, R.isPrevMonth = N, R.showBefore = l, R.showAfter = o, R.className = this.c(E ? "_day" : "_dayother"), i.g(R, "cell"), S.getTime() === f.getTime() && E && this.g(R, "today"), 0 !== S.dayOfWeek() && 6 !== S.dayOfWeek() || this.g(R, "weekend"), R.style.position = "absolute", R.style.left = A + "px", R.style.right = A + "px", R.style.top = B + "px", R.style.width = a.cellWidth() + "px", R.style.height = this.cellHeight + "px", R.style.lineHeight = this.cellHeight + "px";
|
|
2674
2680
|
var _ = document.createElement("div");
|
|
2675
|
-
_.style.position = "absolute", _.className = S.getTime() === f.getTime() &&
|
|
2681
|
+
_.style.position = "absolute", _.className = S.getTime() === f.getTime() && E ? this.c("_todaybox") : this.c("_daybox"), i.g(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", R.appendChild(_);
|
|
2676
2682
|
var U = null;
|
|
2677
2683
|
if (this.cells && this.cells[S.toStringSortable()] && (U = this.cells[S.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
2678
2684
|
var I = {};
|
|
2679
|
-
I.cell = U || {}, I.cell.day = S, I.cell.isCurrentMonth =
|
|
2685
|
+
I.cell = U || {}, I.cell.day = S, I.cell.isCurrentMonth = E, I.cell.isToday = S.getTime() === f.getTime() && E, I.cell.isWeekend = 0 === S.dayOfWeek() || 6 === S.dayOfWeek(), U ? (I.cell.html = U.html || S.getDay(), I.cell.cssClass = U.css) : (I.cell.html = S.getDay(), I.cell.cssClass = null), i.onBeforeCellRender(I), U = I.cell;
|
|
2680
2686
|
}
|
|
2681
|
-
if (U && DayPilot.Util.addClass(R, U.cssClass || U.css),
|
|
2687
|
+
if (U && DayPilot.Util.addClass(R, U.cssClass || U.css), E || l && N || o && W) {
|
|
2682
2688
|
var L = document.createElement("div");
|
|
2683
2689
|
L.innerHTML = S.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.g(L, "cell_text"), R.isClickable = !0, U && U.html && (L.innerHTML = U.html), R.appendChild(L);
|
|
2684
2690
|
}
|
|
@@ -2732,7 +2738,9 @@ if ("undefined" == typeof DayPilot)
|
|
|
2732
2738
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that hasn't been initialized yet.");
|
|
2733
2739
|
if (i.F)
|
|
2734
2740
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2735
|
-
i.G(), i.H(t)
|
|
2741
|
+
i.G(), i.H(t);
|
|
2742
|
+
var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2743
|
+
i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
|
|
2736
2744
|
}, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.G = function () { i.a = {}; }, this.K = null, this.H = function (t) {
|
|
2737
2745
|
if (t) {
|
|
2738
2746
|
var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
|